public class InventoryOpenEvent extends InventoryEvent implements Cancellable
Event.Result
transaction
构造器和说明 |
---|
InventoryOpenEvent(InventoryView transaction) |
限定符和类型 | 方法和说明 |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
HumanEntity |
getPlayer()
返回涉及此事件的玩家.
|
boolean |
isCancelled()
获取此事件的取消状态.
|
void |
setCancelled(boolean cancel)
设置此事件的取消状态.
|
getInventory, getView, getViewers
getEventName, isAsynchronous
public 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
在接口中 Cancellable
public 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
在接口中 Cancellable
cancel
- 事件取消状态public HandlerList getHandlers()
getHandlers
在类中 InventoryEvent
public static HandlerList getHandlerList()