Class PlaySoundSourceEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.sound.SoundEvent
net.minecraftforge.client.event.sound.SoundEvent.SoundSourceEvent
net.minecraftforge.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 cancellable, and does not 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.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
-
Constructor Summary
ConstructorDescriptionPlaySoundSourceEvent
(SoundEngine engine, SoundInstance sound, Channel channel) -
Method Summary
Methods inherited from class net.minecraftforge.client.event.sound.SoundEvent.SoundSourceEvent
getChannel, getName, getSound
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
-
Constructor Details
-
PlaySoundSourceEvent
-