public class InventoryEvent extends Event
Event.Result
限定符和类型 | 字段和说明 |
---|---|
protected InventoryView |
transaction |
构造器和说明 |
---|
InventoryEvent(InventoryView transaction) |
限定符和类型 | 方法和说明 |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Inventory |
getInventory()
获取此事件涉及的主要物品栏.
|
InventoryView |
getView()
获取物品栏本身的 InventoryView 对象。
|
java.util.List<HumanEntity> |
getViewers()
获取正在查看此主要/顶部物品栏的玩家列表.
|
getEventName, isAsynchronous
protected InventoryView transaction
public InventoryEvent(InventoryView transaction)
public Inventory getInventory()
原文:Gets the primary Inventory involved in this transaction
public java.util.List<HumanEntity> getViewers()
原文:Gets the list of players viewing the primary (upper) inventory involved in this event
public InventoryView getView()
原文:Gets the view object itself
public HandlerList getHandlers()
getHandlers
在类中 Event
public static HandlerList getHandlerList()