EnchantItemEvent, InventoryCloseEvent, InventoryInteractEvent, InventoryOpenEvent, PrepareAnvilEvent, PrepareItemCraftEvent, PrepareItemEnchantEventpublic class InventoryEvent extends Event
Event.Result| Modifier and Type | Field | Description |
|---|---|---|
protected InventoryView |
transaction |
| Constructor | Description |
|---|---|
InventoryEvent(InventoryView transaction) |
| Modifier and Type | Method | Description |
|---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
Inventory |
getInventory() |
Gets the primary Inventory involved in this transaction
|
InventoryView |
getView() |
Gets the view object itself
|
java.util.List<HumanEntity> |
getViewers() |
Gets the list of players viewing the primary (upper) inventory involved
in this event
|
getEventName, isAsynchronousprotected InventoryView transaction
public InventoryEvent(InventoryView transaction)
public Inventory getInventory()
public java.util.List<HumanEntity> getViewers()
public InventoryView getView()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.