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
Modifier and TypeFieldDescriptionprivate final String
private final SoundInstance
private SoundInstance
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.client.event.sound.SoundEvent
getEngine
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
name
-
originalSound
-
sound
-
-
Constructor Details
-
PlaySoundEvent
-
-
Method Details
-
getName
-
getOriginalSound
-
getSound
-
setSound
-