Class PlaySoundSourceEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.sound.SoundEvent
net.neoforged.neoforge.client.event.sound.SoundEvent.SoundSourceEvent
net.neoforged.neoforge.client.event.sound.PlaySoundSourceEvent
Fired when a non-streaming sound is being played. A non-streaming sound is loaded fully into memory
in a buffer before being played, and used for most sounds of short length such as sound effects for clicking
buttons.
This event is not
, and does not
invalid reference
cancellable
.invalid reference
have a result
This event is fired on the main Forge event bus, only on the logical client.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.sound.SoundEvent
SoundEvent.SoundSourceEvent
-
Constructor Summary
ConstructorDescriptionPlaySoundSourceEvent
(SoundEngine engine, SoundInstance sound, Channel channel) -
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.sound.SoundEvent.SoundSourceEvent
getChannel, getName, getSound
Methods inherited from class net.neoforged.neoforge.client.event.sound.SoundEvent
getEngine
-
Constructor Details
-
PlaySoundSourceEvent
-