Uses of Package
net.minecraftforge.event.entity
-
Classes in net.minecraftforge.event.entity used by net.minecraftforge.client.event Class Description EntityEvent EntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
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 theMinecraftForge.EVENT_BUS
. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.common Class Description EntityJoinWorldEvent EntityJoinWorldEvent is fired when an Entity joins the world. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.debug.entity Class Description EntityAttributeModificationEvent EntityAttributeModificationEvent.
Use this event to add attributes to existing entity types.ProjectileImpactEvent.FishingBobber Event is cancellable, causes bobber to ignore the current hit and continue on its journey. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.debug.item Class Description EntityAttributeCreationEvent EntityAttributeCreationEvent.
Use this event to register attributes for your own EntityTypes. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event Class Description EntityEvent.Size This event is fired whenever thePose
changes, and in a few other hardcoded scenarios.
CAREFUL: This is also fired in the Entity constructor.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 inClientPlayerEntity.playSound(SoundEvent, float, float)
andWorld.playSound(PlayerEntity, double, double, double, SoundEvent, SoundCategory, 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 originally.
PlaySoundAtEntityEvent.pitch
contains the pitch at which the sound is to be played originally.
PlaySoundAtEntityEvent.newVolume
contains the volume at which the sound is actually played.
PlaySoundAtEntityEvent.newPitch
contains the pitch at which the sound is actually played.
Changing thePlaySoundAtEntityEvent.name
field will cause the sound of this name to be played instead of the originally intended sound.
This event isCancelable
.
If this event is canceled, the sound is not played.
This event does not have a result. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event.brewing Class Description EntityEvent EntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
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 theMinecraftForge.EVENT_BUS
. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event.entity Class Description EntityEvent EntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
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 theMinecraftForge.EVENT_BUS
.ProjectileImpactEvent This event is fired when a projectile entity impacts something. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event.entity.item Class Description EntityEvent EntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
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 theMinecraftForge.EVENT_BUS
. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event.entity.living Class Description EntityEvent EntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
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 theMinecraftForge.EVENT_BUS
. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event.entity.player Class Description EntityEvent EntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
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 theMinecraftForge.EVENT_BUS
.