Package net.minecraftforge.event.entity
Class EntityEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityEvent
-
- Direct Known Subclasses:
EntityEvent.CanUpdate,EntityEvent.EnteringChunk,EntityEvent.EntityConstructing,EntityEvent.Size,EntityJoinWorldEvent,EntityLeaveWorldEvent,EntityMobGriefingEvent,EntityMountEvent,EntityStruckByLightningEvent,EntityTeleportEvent,EntityTravelToDimensionEvent,ItemEvent,LivingEvent,PlaySoundAtEntityEvent,ProjectileImpactEvent,RenderNameplateEvent,ZombieEvent
public class EntityEvent extends net.minecraftforge.eventbus.api.EventEntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEventas its parameter, the method will receive every child event of this class.
entitycontains the entity that caused this event to occur.
All children of this event are fired on theMinecraftForge.EVENT_BUS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityEvent.CanUpdateCanUpdate is fired when an Entity is being created.static classEntityEvent.EnteringChunkEnteringChunk is fired when an Entity enters a chunk.static classEntityEvent.EntityConstructingEntityConstructing is fired when an Entity is being created.static classEntityEvent.SizeThis event is fired whenever thePosechanges, and in a few other hardcoded scenarios.
CAREFUL: This is also fired in the Entity constructor.
-
Constructor Summary
Constructors Constructor Description EntityEvent(Entity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntitygetEntity()
-