public class EndermanAttackPlayerEvent extends EntityEvent implements Cancellable
Event.Result
entity
Constructor and Description |
---|
EndermanAttackPlayerEvent(@NotNull Enderman entity,
@NotNull Player player) |
Modifier and Type | Method and Description |
---|---|
@NotNull Enderman |
getEntity()
The enderman considering attacking
|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@NotNull Player |
getPlayer()
The player the Enderman is considering attacking
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Cancels if the Enderman will attack this player
|
getEntityType
callEvent, getEventName, isAsynchronous
@NotNull public @NotNull Enderman getEntity()
getEntity
in class EntityEvent
@NotNull public @NotNull Player getPlayer()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull 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 © 2021. All rights reserved.