Package org.bukkit.event.inventory
Class InventoryEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
- Direct Known Subclasses:
AnvilDamagedEvent
,EnchantItemEvent
,InventoryCloseEvent
,InventoryInteractEvent
,InventoryOpenEvent
,PrepareItemCraftEvent
,PrepareItemEnchantEvent
,PrepareResultEvent
Represents a player related inventory event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Gets the primary Inventory involved in this transactiongetView()
Gets the view object itselfGets the list of players viewing the primary (upper) inventory involved in this eventMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Field Details
-
transaction
-
-
Constructor Details
-
InventoryEvent
-
-
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
-