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 'Streaming' file,
008     * in vanilla it is only the Jukebox that uses this function.
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     */
014    public class PlayStreamingEvent extends SoundResultEvent
015    {
016        public final float x;
017        public final float y;
018        public final float z;
019        public PlayStreamingEvent(SoundManager manager, SoundPoolEntry source, String name, float x, float y, float z)
020        { 
021            super(manager, source, name, 0.0f, 0.0f);
022            this.x = x;
023            this.y = y;
024            this.z = z;
025        }
026    }