Class PlaySoundEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.sound.SoundEvent
net.minecraftforge.client.event.sound.PlaySoundEvent
Raised when the SoundManager tries to play a normal sound.
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.client.event.sound.SoundEvent
SoundEvent.SoundSourceEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
getSound()
void
setResultSound(SoundInstance result)
Methods inherited from class net.minecraftforge.client.event.sound.SoundEvent
getManager
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
name
-
sound
-
result
-
-
Constructor Details
-
PlaySoundEvent
-
-
Method Details
-
getName
-
getSound
-
getResultSound
-
setResultSound
-