001package net.minecraftforge.client.event.sound; 002 003import net.minecraft.client.audio.SoundManager; 004import net.minecraft.client.audio.SoundPoolEntry; 005 006/** 007 * Raised when the SoundManager tries to play a Background Music file, 008 * If you return null from this function it will prevent the sound from being played, 009 * you can return a different entry if you want to change the sound being played. 010 */ 011public class PlayBackgroundMusicEvent extends SoundResultEvent 012{ 013 public PlayBackgroundMusicEvent(SoundManager manager, SoundPoolEntry entry) 014 { super(manager, entry, null, 0.0f, 0.0f); } 015}