Class EntityEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
- Direct Known Subclasses:
EntityEvent.EnteringSection,EntityEvent.EntityConstructing,EntityEvent.Size,EntityJoinLevelEvent,EntityLeaveLevelEvent,EntityMobGriefingEvent,EntityMountEvent,EntityStruckByLightningEvent,EntityTeleportEvent,EntityTickEvent,EntityTravelToDimensionEvent,ItemEvent,LivingEvent,MobSpawnEvent,ProjectileImpactEvent,RenderNameTagEvent
public abstract class EntityEvent
extends net.neoforged.bus.api.Event
EntityEvent is fired when an event involving any Entity occurs.
If a method utilizes this
All children of this event are fired on the
If a method utilizes this
Event as its parameter, the method will
receive every child event of this class.entity contains the entity that caused this event to occur.All children of this event are fired on the
NeoForge.EVENT_BUS.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis event is fired on server and client after an Entity has entered a different section.static classEntityConstructing is fired when an Entity is being created.static classThis event is fired whenever thePosechanges, and in a few other hardcoded scenarios.
CAREFUL: This is also fired in the Entity constructor. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
entity
-
-
Constructor Details
-
EntityEvent
-
-
Method Details
-
getEntity
-