Class 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.eventbus.api.Event

        net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private ISound result  
      private 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.eventbus.api.Event

        getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
      • sound

        private final ISound sound
      • result

        private ISound result
    • Constructor Detail

    • Method Detail

      • getName

        public java.lang.String getName()
      • getSound

        public ISound getSound()
      • getResultSound

        public ISound getResultSound()
      • setResultSound

        public void setResultSound​(ISound result)