Class PlaySoundEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.client.event.sound.SoundEvent
-
- net.minecraftforge.client.event.sound.PlaySoundEvent
-
public class PlaySoundEvent extends SoundEvent
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
-
-
Constructor Summary
Constructors Constructor Description PlaySoundEvent(SoundEngine manager, ISound sound)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
ISound
getResultSound()
ISound
getSound()
void
setResultSound(ISound result)
-
Methods inherited from class net.minecraftforge.client.event.sound.SoundEvent
getManager
-
-
-
-
Constructor Detail
-
PlaySoundEvent
public PlaySoundEvent(SoundEngine manager, ISound sound)
-
-