Class AncientAltarCraftEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.github.thebusybiscuit.slimefun4.api.events.AncientAltarCraftEvent
All Implemented Interfaces:
Cancellable

public class AncientAltarCraftEvent extends PlayerEvent implements Cancellable
This Event is fired before an item is dropped by an AncientAltar. Cancelling this event will make the AncientAltar drop no item after the recipe is finished.
Author:
Tweep
See Also:
  • Constructor Details

    • AncientAltarCraftEvent

      @ParametersAreNonnullByDefault public AncientAltarCraftEvent(ItemStack output, Block block, Player player)
      Parameters:
      output - The ItemStack that would be dropped by the ritual
      block - The altar Block
      player - The Player that started the ritual.
  • Method Details

    • getAltarBlock

      @Nonnull public Block getAltarBlock()
      This method returns the main altar's block Block
      Returns:
      the main altar's block Block
    • getItem

      @Nonnull public ItemStack getItem()
      This method returns the ItemStack that would be dropped by the AncientAltar
      Returns:
      the ItemStack that would be dropped by the AncientAltar
    • setItem

      public void setItem(ItemStack output)
      This method will change the item that would be dropped by the AncientAltar
      Parameters:
      output - being the ItemStack you want to change the item to.
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface Cancellable
    • getHandlerList

      @Nonnull public static HandlerList getHandlerList()
    • getHandlers

      @Nonnull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event