Class GrindstoneTakeResultEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.purpurmc.purpur.event.inventory.GrindstoneTakeResultEvent

@NullMarked public class GrindstoneTakeResultEvent extends InventoryEvent
Called when a player takes the result item out of a Grindstone
  • Constructor Details

  • Method Details

    • getPlayer

      public Player getPlayer()
    • getResult

      public ItemStack getResult()
    • getInventory

      public GrindstoneInventory getInventory()
      Description copied from class: InventoryEvent
      Gets the primary Inventory involved in this transaction
      Overrides:
      getInventory in class InventoryEvent
      Returns:
      The upper inventory.
    • getExperienceAmount

      public int getExperienceAmount()
      Get the amount of experience this transaction will give (takes priority over and uses result from BlockExpEvent)
      Returns:
      Amount of experience to give
    • setExperienceAmount

      public void setExperienceAmount(int experienceAmount)
      Set the amount of experience this transaction will give (takes priority over BlockExpEvent)
      Parameters:
      experienceAmount - Amount of experience to give
    • getHandlers

      public HandlerList getHandlers()
      Overrides:
      getHandlers in class InventoryEvent
    • getHandlerList

      public static HandlerList getHandlerList()