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.
  • Field Details

    • name

      private final String name
    • sound

      private final ISound sound
    • result

      private ISound result
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getSound

      public ISound getSound()
    • getResultSound

      public ISound getResultSound()
    • setResultSound

      public void setResultSound(ISound result)