use of net.minecraftforge.event.entity.PlaySoundAtEntityEvent in project MinecraftForge by MinecraftForge.
the class ForgeEventFactory method onPlaySoundAtEntity.
public static PlaySoundAtEntityEvent onPlaySoundAtEntity(Entity entity, SoundEvent name, SoundCategory category, float volume, float pitch) {
PlaySoundAtEntityEvent event = new PlaySoundAtEntityEvent(entity, name, category, volume, pitch);
MinecraftForge.EVENT_BUS.post(event);
return event;
}
use of net.minecraftforge.event.entity.PlaySoundAtEntityEvent in project MinecraftForge by MinecraftForge.
the class ForgeEventFactory method onPlaySoundAtEntity.
public static PlaySoundAtEntityEvent onPlaySoundAtEntity(Entity entity, SoundEvent name, SoundSource category, float volume, float pitch) {
PlaySoundAtEntityEvent event = new PlaySoundAtEntityEvent(entity, name, category, volume, pitch);
MinecraftForge.EVENT_BUS.post(event);
return event;
}
Aggregations