public class PlayerUnleashEntityEvent extends EntityUnleashEvent implements Cancellable
EntityUnleashEvent.UnleashReason
Event.Result
entity
Constructor and Description |
---|
PlayerUnleashEntityEvent(@NotNull Entity entity,
@NotNull Player player)
Deprecated.
|
PlayerUnleashEntityEvent(@NotNull Entity entity,
@NotNull Player player,
boolean dropLeash) |
Modifier and Type | Method and Description |
---|---|
@NotNull Player |
getPlayer()
Returns the player who is unleashing the entity.
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
getHandlerList, getHandlers, getReason, isDropLeash, setDropLeash
getEntity, getEntityType
callEvent, getEventName, isAsynchronous
@Deprecated public PlayerUnleashEntityEvent(@NotNull @NotNull Entity entity, @NotNull @NotNull Player player)
@NotNull public @NotNull Player getPlayer()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventCopyright © 2021. All rights reserved.