public class PlayerLeashEntityEvent extends Event implements Cancellable
Event.Result| コンストラクタと説明 |
|---|
PlayerLeashEntityEvent(Entity what,
Entity leashHolder,
Player leasher) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Entity |
getEntity()
Returns the entity being leashed.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Entity |
getLeashHolder()
Returns the entity that is holding the leash.
|
Player |
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.
|
getEventName, isAsynchronouspublic Entity getLeashHolder()
public Entity getEntity()
public final Player getPlayer()
public HandlerList getHandlers()
getHandlers クラス内 Eventpublic static HandlerList getHandlerList()
public boolean isCancelled()
CancellableisCancelled インタフェース内 Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled インタフェース内 Cancellablecancel - true if you wish to cancel this eventCopyright © 2016. All rights reserved.