Class ItemCraftedEvent

java.lang.Object
org.bukkit.event.Event
io.papermc.paper.event.inventory.ItemCraftedEvent

@NullMarked public class ItemCraftedEvent extends Event
Called when a player picks up a crafted item from the result slot of a crafting grid.
  • Constructor Details

  • Method Details

    • getPlayer

      public Player getPlayer()
      Gets the player who triggered the event by picking up the crafted item.
      Returns:
      the player
    • getCraftedItem

      public ItemStack getCraftedItem()
      Gets the item that was crafted and picked up by the player.
      Returns:
      the crafted item
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()