Class PlayStreamingSourceEvent
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.PlayStreamingSourceEvent
Fired when a streaming sound is being played. A streaming sound is streamed directly from its source
(such as a file), and used for sounds of long length which are unsuitable to keep fully loaded in-memory in a buffer
(as is done for regular non-streaming sounds), such as background music or music discs.
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
ConstructorDescriptionPlayStreamingSourceEvent
(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
-
PlayStreamingSourceEvent
-