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).
name
contains the name of the sound to be played at the Entity.
volume
contains the volume at which the sound is to be played originally.
pitch
contains the pitch at which the sound is to be played originally.
newVolume
contains the volume at which the sound is actually played.
newPitch
contains the pitch at which the sound is actually played.
Changing the
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.
HasResult
This event is fired on the
MinecraftForge#EVENT_BUS
.