001 package net.minecraftforge.client.event.sound;
002
003 import net.minecraft.client.audio.SoundManager;
004 import net.minecraft.client.audio.SoundPoolEntry;
005
006 /***
007 * Raised when the SoundManager tries to play a normal sound,
008 * dogs barking, footsteps, etc. THe majority of all sounds during normal game play.
009 *
010 * If you return null from this function it will prevent the sound from being played,
011 * you can return a different entry if you want to change the sound being played.
012 */
013 public class PlaySoundEvent extends SoundResultEvent
014 {
015 public final float x;
016 public final float y;
017 public final float z;
018 public PlaySoundEvent(SoundManager manager, SoundPoolEntry source, String name, float x, float y, float z, float volume, float pitch)
019 {
020 super(manager, source, name, volume, pitch);
021 this.x = x;
022 this.y = y;
023 this.z = z;
024 }
025 }