Class EndermanAttackPlayerEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
com.destroystokyo.paper.event.entity.EndermanAttackPlayerEvent
- All Implemented Interfaces:
- Cancellable
Fired when an Enderman determines if it should attack a player or not.
 Starts off cancelled if the player is wearing a pumpkin head or is not looking
 at the Enderman, according to Vanilla rules.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.entity.EntityEvententity
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThe enderman considering attackingstatic @NotNull HandlerListThe player the Enderman is considering attackingbooleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Cancels if the Enderman will attack this playerMethods inherited from class org.bukkit.event.entity.EntityEventgetEntityTypeMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
EndermanAttackPlayerEvent
 
- 
- 
Method Details- 
getEntityThe enderman considering attacking- Overrides:
- getEntityin class- EntityEvent
- Returns:
- The enderman considering attacking
 
- 
getPlayerThe player the Enderman is considering attacking- Returns:
- The player the Enderman is considering attacking
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
- 
isCancelledpublic boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- If cancelled, the enderman will not attack
 
- 
setCancelledpublic void setCancelled(boolean cancel) Cancels if the Enderman will attack this player- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancel- true if you wish to cancel this event
 
 
-