public class InventoryOpenEvent extends InventoryEvent implements Cancellable
Event.Resulttransaction| 构造器和说明 |
|---|
InventoryOpenEvent(InventoryView transaction) |
| 限定符和类型 | 方法和说明 |
|---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
HumanEntity |
getPlayer()
返回涉及此事件的玩家.
|
boolean |
isCancelled()
获取此事件的取消状态.
|
void |
setCancelled(boolean cancel)
设置此事件的取消状态.
|
getInventory, getView, getViewersgetEventName, isAsynchronouspublic InventoryOpenEvent(InventoryView transaction)
public final HumanEntity getPlayer()
原文:Returns the player involved in this event
public boolean isCancelled()
如果一个物品栏打开事件被取消,物品栏界面将不会显示.
原文:Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
If an inventory open event is cancelled, the inventory screen will not show.
isCancelled 在接口中 Cancellablepublic void setCancelled(boolean cancel)
如果一个物品栏打开事件被取消,物品栏界面将不会显示.
原文:Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
If an inventory open event is cancelled, the inventory screen will not show.
setCancelled 在接口中 Cancellablecancel - 事件取消状态public HandlerList getHandlers()
getHandlers 在类中 InventoryEventpublic static HandlerList getHandlerList()