Class | Description |
---|---|
EntityEvent |
EntityEvent is fired when an event involving any Entity occurs.
If a method utilizes this Event as its parameter, the method will
receive every child event of this class.EntityEvent.entity contains the entity that caused this event to occur.All children of this event are fired on the MinecraftForge#EVENT_BUS . |
EntityEvent.CanUpdate |
CanUpdate is fired when an Entity is being created.
|
EntityEvent.EnteringChunk |
EnteringChunk is fired when an Entity enters a chunk.
|
EntityEvent.EntityConstructing |
EntityConstructing is fired when an Entity is being created.
|
EntityJoinWorldEvent |
EntityJoinWorldEvent is fired when an Entity joins the world.
|
EntityStruckByLightningEvent |
EntityStruckByLightningEvent is fired when an Entity is about to be struck by lightening.
This event is fired whenever an EntityLightningBolt is updated to strike an Entity in EntityLightningBolt#onUpdate() via ForgeEventFactory#onEntityStruckByLightning(Entity, EntityLightningBolt) .EntityStruckByLightningEvent.lightning contains the instance of EntityLightningBolt attempting to strike an entity.This event is Cancelable .If this event is canceled, the Entity is not struck by the lightening. This event does not have a result. |
PlaySoundAtEntityEvent |
PlaySoundAtEntityEvent is fired a sound is to be played at an Entity
This event is fired whenever a sound is set to be played at an Entity such as in EntityPlayerSP#playSound(String, float, float), World#playSoundAtEntity(Entity, String, float, float), and World#playerSoundToNearExcept(EntityPlayer, String, float, float). PlaySoundAtEntityEvent.name contains the name of the sound to be played at the Entity.PlaySoundAtEntityEvent.volume contains the volume at which the sound is to be played.PlaySoundAtEntityEvent.pitch contains the pitch at which the sound is to be played.Changing the PlaySoundAtEntityEvent.name field will cause the sound of this name to be played instead of the originally intended sound.This event is Cancelable .If this event is canceled, the sound is not played. This event does not have a result. |