Cancellablepublic class PlayerUnleashEntityEvent extends EntityUnleashEvent implements Cancellable
EntityUnleashEvent.UnleashReasonEvent.Resultentity| 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, getEntityTypegetHandlerList, getHandlers, getReasoncallEvent, getEventName, isAsynchronouspublic Player getPlayer()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventCopyright © 2018. All rights reserved.