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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Superclass for when a sound has started to play on an audio channel. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SoundEvent
(net.minecraft.client.sounds.SoundEngine engine) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.sounds.SoundEngine
Returns the sound engine.
-
Field Details
-
engine
private final net.minecraft.client.sounds.SoundEngine engine
-
-
Constructor Details
-
SoundEvent
@Internal protected SoundEvent(net.minecraft.client.sounds.SoundEngine engine)
-
-
Method Details
-
getEngine
public net.minecraft.client.sounds.SoundEngine getEngine()Returns the sound engine.- Returns:
- the sound engine
-