public class InventoryOpenEvent extends InventoryEvent implements Cancellable
Event.Result
transaction
コンストラクタと説明 |
---|
InventoryOpenEvent(InventoryView transaction) |
修飾子とタイプ | メソッドと説明 |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
HumanEntity |
getPlayer()
Returns the player involved in this event
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
getInventory, getView, getViewers
getEventName, isAsynchronous
public InventoryOpenEvent(InventoryView transaction)
public final HumanEntity getPlayer()
public boolean isCancelled()
If an inventory open event is cancelled, the inventory screen will not show.
isCancelled
インタフェース内 Cancellable
public void setCancelled(boolean cancel)
If an inventory open event is cancelled, the inventory screen will not show.
setCancelled
インタフェース内 Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
クラス内 InventoryEvent
public static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.