20 lines
491 B
Java
20 lines
491 B
Java
package net.minecraftforge.event.entity;
|
|
|
|
import net.minecraft.src.Entity;
|
|
import net.minecraftforge.event.Cancelable;
|
|
|
|
@Cancelable
|
|
public class PlaySoundAtEntityEvent extends EntityEvent
|
|
{
|
|
public String name;
|
|
public final float volume;
|
|
public final float pitch;
|
|
|
|
public PlaySoundAtEntityEvent(Entity entity, String name, float volume, float pitch)
|
|
{
|
|
super(entity);
|
|
this.name = name;
|
|
this.volume = volume;
|
|
this.pitch = pitch;
|
|
}
|
|
}
|