Class InventoryEvent

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

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

  • Constructor Details Link icon

    • InventoryEvent Link icon

      public InventoryEvent(@NotNull InventoryView transaction)
  • Method Details Link icon

    • getInventory Link icon

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

      @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 Link icon

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

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

      @NotNull public static HandlerList getHandlerList()