Cancellablepublic class PlayerLeashEntityEvent extends Event implements Cancellable
Event.Result| Constructor | Description | 
|---|---|
PlayerLeashEntityEvent(Entity what,
                      Entity leashHolder,
                      Player leasher) | 
| Modifier and Type | Method | Description | 
|---|---|---|
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, isAsynchronous@NotNull public Entity getLeashHolder()
@NotNull public Entity getEntity()
@NotNull public final Player getPlayer()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventCopyright © 2019. All rights reserved.