Package org.bukkit.event.inventory
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
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description protected InventoryView
transaction
-
Constructor Summary
Constructors Constructor Description InventoryEvent(InventoryView transaction)
-
Method Summary
Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
Inventory
getInventory()
Gets the primary Inventory involved in this transactionInventoryView
getView()
Gets the view object itselfList<HumanEntity>
getViewers()
Gets the list of players viewing the primary (upper) inventory involved in this event
-
Field Details
-
Constructor Details
-
Method Details
-
getInventory
Gets the primary Inventory involved in this transaction- Returns:
- The upper inventory.
-
getViewers
Gets the list of players viewing the primary (upper) inventory involved in this event- Returns:
- A list of people viewing.
-
getView
Gets the view object itself- Returns:
- InventoryView
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-