Class AncientAltarCraftEvent

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

public class AncientAltarCraftEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.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:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Field Summary

    Fields inherited from class org.bukkit.event.player.PlayerEvent

    player
  • Constructor Summary

    Constructors
    Constructor
    Description
    AncientAltarCraftEvent(org.bukkit.inventory.ItemStack output, org.bukkit.block.Block block, org.bukkit.entity.Player player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.block.Block
    This method returns the main altar's block Block
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.inventory.ItemStack
    This method returns the ItemStack that would be dropped by the AncientAltar
    boolean
     
    void
    setCancelled(boolean cancel)
     
    void
    setItem(org.bukkit.inventory.ItemStack output)
    This method will change the item that would be dropped by the AncientAltar

    Methods inherited from class org.bukkit.event.player.PlayerEvent

    getPlayer

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AncientAltarCraftEvent

      @ParametersAreNonnullByDefault public AncientAltarCraftEvent(org.bukkit.inventory.ItemStack output, org.bukkit.block.Block block, org.bukkit.entity.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 org.bukkit.block.Block getAltarBlock()
      This method returns the main altar's block Block
      Returns:
      the main altar's block Block
    • getItem

      @Nonnull public org.bukkit.inventory.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(org.bukkit.inventory.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 org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlerList

      @Nonnull public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @Nonnull public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event