2012-08-10 01:37:52 +00:00
|
|
|
package net.minecraftforge.event.entity;
|
2012-08-09 23:47:35 +00:00
|
|
|
|
|
|
|
import net.minecraft.src.Entity;
|
|
|
|
import net.minecraftforge.event.Cancelable;
|
|
|
|
|
|
|
|
@Cancelable
|
2012-08-10 01:37:52 +00:00
|
|
|
public class PlaySoundAtEntityEvent extends EntityEvent
|
|
|
|
{
|
2012-08-09 23:47:35 +00:00
|
|
|
public String name;
|
|
|
|
public final float volume;
|
|
|
|
public final float pitch;
|
|
|
|
|
|
|
|
public PlaySoundAtEntityEvent(Entity entity, String name, float volume, float pitch)
|
|
|
|
{
|
2012-08-10 01:37:52 +00:00
|
|
|
super(entity);
|
2012-08-09 23:47:35 +00:00
|
|
|
this.name = name;
|
|
|
|
this.volume = volume;
|
|
|
|
this.pitch = pitch;
|
|
|
|
}
|
|
|
|
}
|