Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.minecraftforge.client.event.sound
Class PlayBackgroundMusicEvent

    java.lang.Object
      net.minecraftforge.event.Event
          net.minecraftforge.client.event.sound.SoundEvent
              net.minecraftforge.client.event.sound.SoundResultEvent
                  net.minecraftforge.client.event.sound.PlayBackgroundMusicEvent

    public class PlayBackgroundMusicEvent

extends SoundResultEvent

Raised when the SoundManager tries to play a Background Music file, 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.

Nested Class Summary

Nested classes/interfaces inherited from class net.minecraftforge.event.Event
`Event.Result`

Field Summary

Fields inherited from class net.minecraftforge.client.event.sound.SoundResultEvent
`manager, name, pitch, result, source, volume`

Constructor Summary
`PlayBackgroundMusicEvent(SoundManager manager, SoundPoolEntry entry)`

Method Summary

Methods inherited from class net.minecraftforge.client.event.sound.SoundEvent
`getResult`

Methods inherited from class net.minecraftforge.event.Event
`getListenerList, isCancelable, isCanceled, setCanceled`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PlayBackgroundMusicEvent

    public PlayBackgroundMusicEvent(SoundManager manager,
                                    SoundPoolEntry entry)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD