Cancellable
public class EndermanEscapeEvent extends EntityEvent implements Cancellable
Modifier and Type | Class | Description |
---|---|---|
static class |
EndermanEscapeEvent.Reason |
Event.Result
entity
Constructor | Description |
---|---|
EndermanEscapeEvent(Enderman entity,
EndermanEscapeEvent.Reason reason) |
Modifier and Type | Method | 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.
|
getEntityType
callEvent, getEventName, isAsynchronous
public EndermanEscapeEvent(@NotNull Enderman entity, @NotNull EndermanEscapeEvent.Reason reason)
@NotNull public Enderman getEntity()
EntityEvent
getEntity
in class EntityEvent
@NotNull public EndermanEscapeEvent.Reason getReason()
@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventCopyright © 2020. All rights reserved.