Class SoundEvent.SoundSourceEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.sound.SoundEvent
net.minecraftforge.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 Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.sound.SoundEvent
SoundEvent.SoundSourceEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SoundSourceEvent
(SoundEngine engine, SoundInstance sound, Channel channel) -
Method Summary
Methods inherited from class net.minecraftforge.client.event.sound.SoundEvent
getEngine
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
sound
-
channel
-
name
-
-
Constructor Details
-
SoundSourceEvent
-
-
Method Details
-
getSound
Returns the sound being played.- Returns:
- the sound being played
-
getChannel
Returns the audio channel on which the sound is playing on.- Returns:
- the audio channel on which the sound is playing on
-
getName
Returns 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
-