Class EnderManAngerEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
net.neoforged.neoforge.event.entity.living.EnderManAngerEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class EnderManAngerEvent
extends LivingEvent
implements net.neoforged.bus.api.ICancellableEvent
This event is fired on the forge bus before an Enderman detects that a player is looking at them.
It will not be fired if the detection is already prevented by
IItemExtension.isEnderMask(net.minecraft.world.item.ItemStack, net.minecraft.world.entity.player.Player, net.minecraft.world.entity.monster.EnderMan)
This event is ICancellableEvent
.
If this event is canceled, the Enderman will not target the player.
This event does not have a
.invalid reference
Result
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
player
-
-
Constructor Details
-
EnderManAngerEvent
-
-
Method Details
-
getPlayer
The player that is being checked. -
getEntity
- Overrides:
getEntity
in classLivingEvent
-