Class SoundEvent.SoundSourceEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.sound.SoundEvent
net.neoforged.neoforge.client.event.sound.SoundEvent.SoundSourceEvent
- Direct Known Subclasses:
- PlaySoundSourceEvent,- PlayStreamingSourceEvent
- Enclosing class:
- SoundEvent
Superclass for when a sound has started to play on an audio channel.
 
These events are fired on the main Forge event bus, only on the logical client.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class net.neoforged.neoforge.client.event.sound.SoundEventSoundEvent.SoundSourceEvent
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSoundSourceEvent(SoundEngine engine, SoundInstance sound, Channel channel) 
- 
Method SummaryMethods inherited from class net.neoforged.neoforge.client.event.sound.SoundEventgetEngine
- 
Field Details- 
sound
- 
channel
- 
name
 
- 
- 
Constructor Details- 
SoundSourceEvent
 
- 
- 
Method Details- 
getSoundReturns the sound being played.- Returns:
- the sound being played
 
- 
getChannelReturns the audio channel on which the sound is playing on.- Returns:
- the audio channel on which the sound is playing on
 
- 
getNameReturns the name of the sound being played. This is equivalent to the path of the location of the original sound.- Returns:
- the name of the sound being played
 
 
-