public class PlayerLeashEntityEvent extends Event implements Cancellable
Event.Result| Constructor and Description | 
|---|
PlayerLeashEntityEvent(@NotNull Entity what,
                      @NotNull Entity leashHolder,
                      @NotNull Player leasher)  | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Entity | 
getEntity()
Returns the entity being leashed. 
 | 
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull HandlerList | 
getHandlers()  | 
@NotNull Entity | 
getLeashHolder()
Returns the entity that is holding the leash. 
 | 
@NotNull 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 @NotNull Entity getLeashHolder()
@NotNull public @NotNull Entity getEntity()
@NotNull public final @NotNull Player getPlayer()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull 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 © 2021. All rights reserved.