public class EndermanEscapeEvent extends EntityEvent implements Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
EndermanEscapeEvent.Reason |
Event.Resultentity| Constructor and Description |
|---|
EndermanEscapeEvent(Enderman entity,
EndermanEscapeEvent.Reason reason) |
| Modifier and Type | Method and Description |
|---|---|
Enderman |
getEntity()
Returns the Entity involved in this event
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
EndermanEscapeEvent.Reason |
getReason() |
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Cancels the escape.
|
getEntityTypecallEvent, getEventName, isAsynchronouspublic EndermanEscapeEvent(Enderman entity, EndermanEscapeEvent.Reason reason)
public Enderman getEntity()
EntityEventgetEntity in class EntityEventpublic EndermanEscapeEvent.Reason getReason()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
setCancelled in interface Cancellablecancel - true if you wish to cancel this eventCopyright © 2021. All rights reserved.