2012-08-09 23:47:35 +00:00
|
|
|
package net.minecraftforge.client.event.sound;
|
|
|
|
|
2012-12-13 05:58:35 +00:00
|
|
|
import net.minecraft.client.audio.SoundManager;
|
|
|
|
import net.minecraft.client.audio.SoundPoolEntry;
|
2012-08-09 23:47:35 +00:00
|
|
|
|
|
|
|
/***
|
|
|
|
* Raised when the SoundManager tries to play a normal sound,
|
|
|
|
* dogs barking, footsteps, etc. THe majority of all sounds during normal game play.
|
|
|
|
*
|
|
|
|
* If you return null from this function it will prevent the sound from being played,
|
|
|
|
* you can return a different entry if you want to change the sound being played.
|
|
|
|
*/
|
|
|
|
public class PlaySoundEvent extends SoundResultEvent
|
|
|
|
{
|
|
|
|
public final float x;
|
|
|
|
public final float y;
|
|
|
|
public final float z;
|
|
|
|
public PlaySoundEvent(SoundManager manager, SoundPoolEntry source, String name, float x, float y, float z, float volume, float pitch)
|
|
|
|
{
|
|
|
|
super(manager, source, name, volume, pitch);
|
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
|
|
|
this.z = z;
|
|
|
|
}
|
|
|
|
}
|