public class EndermanAttackPlayerEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor and Description |
|---|
EndermanAttackPlayerEvent(Enderman entity,
Player player) |
| Modifier and Type | Method and Description |
|---|---|
Enderman |
getEntity()
The enderman considering attacking
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
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
|
getEntityTypecallEvent, getEventName, isAsynchronouspublic Enderman getEntity()
getEntity in class EntityEventpublic Player getPlayer()
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.