EnchantItemEvent
, InventoryCloseEvent
, InventoryInteractEvent
, InventoryOpenEvent
, PrepareAnvilEvent
, PrepareItemCraftEvent
, PrepareItemEnchantEvent
public 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
|
List<HumanEntity> |
getViewers() |
Gets the list of players viewing the primary (upper) inventory involved
in this event
|
getEventName, isAsynchronous
protected InventoryView transaction
public InventoryEvent(@NotNull InventoryView transaction)
@NotNull public Inventory getInventory()
@NotNull public List<HumanEntity> getViewers()
@NotNull public InventoryView getView()
@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.