Class SoundEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.sound.SoundEvent
Direct Known Subclasses:
PlaySoundEvent, SoundEngineLoadEvent, SoundEvent.SoundSourceEvent

public abstract class SoundEvent extends net.neoforged.bus.api.Event
Superclass for sound related events.

These events are fired on the main Forge event bus, only on the logical client.

See Also:
  • Field Details

  • Constructor Details

    • SoundEvent

      @Internal protected SoundEvent(SoundEngine engine)
  • Method Details

    • getEngine

      public SoundEngine getEngine()
      Returns the sound engine.
      Returns:
      the sound engine