Class InventoryEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
- Direct Known Subclasses:
AnvilDamagedEvent, EnchantItemEvent, InventoryCloseEvent, InventoryInteractEvent, InventoryOpenEvent, PrepareInventoryResultEvent, PrepareItemCraftEvent, PrepareItemEnchantEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList@NotNull HandlerList@NotNull InventoryGets the primary Inventory involved in this transaction@NotNull InventoryViewgetView()Gets the view object itself@NotNull List<HumanEntity> Gets the list of players viewing the primary (upper) inventory involved in this eventMethods inherited from class 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.
- Since:
- 1.1.0
-
getViewers
Gets the list of players viewing the primary (upper) inventory involved in this event- Returns:
- A list of people viewing.
- Since:
- 1.1.0
-
getView
Gets the view object itself- Returns:
- InventoryView
- Since:
- 1.1.0
-
getHandlers
- Specified by:
getHandlersin classEvent- Since:
- 1.1.0
-
getHandlerList
- Since:
- 1.1.0
-