Cancellablepublic class EndermanEscapeEvent extends EntityEvent implements Cancellable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
EndermanEscapeEvent.Reason |
Event.Resultentity| Constructor | Description |
|---|---|
EndermanEscapeEvent(@NotNull Enderman entity,
@NotNull EndermanEscapeEvent.Reason reason) |
| Modifier and Type | Method | Description |
|---|---|---|
@NotNull Enderman |
getEntity() |
Returns the Entity involved in this event
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@NotNull EndermanEscapeEvent.Reason |
getReason() |
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Cancels the escape.
|
getEntityTypecallEvent, getEventName, isAsynchronouspublic EndermanEscapeEvent(@NotNull
@NotNull Enderman entity,
@NotNull
@NotNull EndermanEscapeEvent.Reason reason)
@NotNull public @NotNull Enderman getEntity()
EntityEventgetEntity in class EntityEvent@NotNull public @NotNull EndermanEscapeEvent.Reason getReason()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull 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 © 2020. All rights reserved.