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