Cancellable
public class PlayerUnleashEntityEvent extends EntityUnleashEvent implements Cancellable
EntityUnleashEvent.UnleashReason
Event.Result
entity
Constructor | Description |
---|---|
PlayerUnleashEntityEvent(Entity entity,
Player player) |
Modifier and Type | Method | Description |
---|---|---|
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.
|
getEntity, getEntityType
getHandlerList, getHandlers, getReason
getEventName, isAsynchronous
@NotNull public 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 © 2020. All rights reserved.