2012-08-09 18:37:52 -07:00
|
|
|
package net.minecraftforge.event.entity;
|
2012-08-09 16:47:35 -07:00
|
|
|
|
2012-12-12 21:58:35 -08:00
|
|
|
import net.minecraft.entity.Entity;
|
2012-08-09 16:47:35 -07:00
|
|
|
import net.minecraftforge.event.Cancelable;
|
|
|
|
|
|
|
|
|
|
@Cancelable
|
2012-08-09 18:37:52 -07:00
|
|
|
public class PlaySoundAtEntityEvent extends EntityEvent
|
|
|
|
|
{
|
2012-08-09 16:47:35 -07:00
|
|
|
public String name;
|
|
|
|
|
public final float volume;
|
|
|
|
|
public final float pitch;
|
|
|
|
|
|
|
|
|
|
public PlaySoundAtEntityEvent(Entity entity, String name, float volume, float pitch)
|
|
|
|
|
{
|
2012-08-09 18:37:52 -07:00
|
|
|
super(entity);
|
2012-08-09 16:47:35 -07:00
|
|
|
this.name = name;
|
|
|
|
|
this.volume = volume;
|
|
|
|
|
this.pitch = pitch;
|
|
|
|
|
}
|
|
|
|
|
}
|