Class InventoryEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
Direct Known Subclasses:
EnchantItemEvent, InventoryCloseEvent, InventoryInteractEvent, InventoryOpenEvent, PrepareAnvilEvent, PrepareItemCraftEvent, PrepareItemEnchantEvent, PrepareSmithingEvent

public class InventoryEvent extends Event
Represents a player related inventory event
  • Field Details

  • Constructor Details

  • Method Details

    • getInventory

      @NotNull public Inventory getInventory()
      Gets the primary Inventory involved in this transaction
      Returns:
      The upper inventory.
    • getViewers

      @NotNull public List<HumanEntity> getViewers()
      Gets the list of players viewing the primary (upper) inventory involved in this event
      Returns:
      A list of people viewing.
    • getView

      @NotNull public InventoryView getView()
      Gets the view object itself
      Returns:
      InventoryView
    • getHandlers

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

      @NotNull public static HandlerList getHandlerList()