Uses of Interface
net.minecraft.client.resources.sounds.SoundInstance
Packages that use SoundInstance
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Client-only events relating to sounds.
-
Uses of SoundInstance in net.minecraft.client.gui.components
Methods in net.minecraft.client.gui.components with parameters of type SoundInstanceModifier and TypeMethodDescriptionvoid
SubtitleOverlay.onPlaySound
(SoundInstance pSound, WeighedSoundEvents pAccessor, float pRange) -
Uses of SoundInstance in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer with type parameters of type SoundInstanceModifier and TypeFieldDescriptionprivate final Map
<BlockPos, SoundInstance> LevelRenderer.playingJukeboxSongs
-
Uses of SoundInstance in net.minecraft.client.resources.sounds
Subinterfaces of SoundInstance in net.minecraft.client.resources.soundsClasses in net.minecraft.client.resources.sounds that implement SoundInstanceModifier and TypeClassDescriptionclass
class
class
class
class
static class
class
class
class
class
class
class
class
static class
static class
-
Uses of SoundInstance in net.minecraft.client.sounds
Fields in net.minecraft.client.sounds declared as SoundInstanceFields in net.minecraft.client.sounds with type parameters of type SoundInstanceModifier and TypeFieldDescriptionprivate final com.google.common.collect.Multimap
<SoundSource, SoundInstance> SoundEngine.instanceBySource
private final Map
<SoundInstance, ChannelAccess.ChannelHandle> SoundEngine.instanceToChannel
private final Map
<SoundInstance, Integer> SoundEngine.queuedSounds
Contains sounds to play in n ticks.private final Map
<SoundInstance, Integer> SoundEngine.soundDeleteTime
The future time in which to stop this sound.Methods in net.minecraft.client.sounds with parameters of type SoundInstanceModifier and TypeMethodDescriptionprivate float
SoundEngine.calculatePitch
(SoundInstance pSound) Calculates the pitch of the sound being played.private float
SoundEngine.calculateVolume
(SoundInstance pSound) Calculates the volume for the sound being played.boolean
SoundEngine.isActive
(SoundInstance pSound) boolean
SoundManager.isActive
(SoundInstance pSound) Checks if the specified sound is active (playing or scheduled to be played).void
SoundEventListener.onPlaySound
(SoundInstance pSound, WeighedSoundEvents pAccessor, float pRange) void
SoundEngine.play
(SoundInstance p_120313_) Plays a given sound instance.void
SoundManager.play
(SoundInstance pSound) Play a soundvoid
SoundEngine.playDelayed
(SoundInstance pSound, int pDelay) Adds a sound to play in n ticksvoid
SoundManager.playDelayed
(SoundInstance pSound, int pDelay) Plays a sound with a delay in ticks.private static boolean
SoundEngine.requiresManualLooping
(SoundInstance pSound) Returns invalid input: 'Returns {@code true} if the SoundInstance requires manual looping, {@code false} otherwise @param pSound the SoundInstance to check'.private static boolean
SoundEngine.shouldLoopAutomatically
(SoundInstance pSound) private static boolean
SoundEngine.shouldLoopManually
(SoundInstance pSound) void
SoundEngine.stop
(SoundInstance pSound) Stops the providedinvalid reference
SoundInstace
void
SoundManager.stop
(SoundInstance pSound) -
Uses of SoundInstance in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client that return SoundInstanceModifier and TypeMethodDescriptionstatic @Nullable SoundInstance
ClientHooks.playSound
(SoundEngine manager, SoundInstance sound) Methods in net.neoforged.neoforge.client with parameters of type SoundInstanceModifier and TypeMethodDescriptionstatic @Nullable SoundInstance
ClientHooks.playSound
(SoundEngine manager, SoundInstance sound) static @Nullable Music
ClientHooks.selectMusic
(Music situational, @Nullable SoundInstance playing) -
Uses of SoundInstance in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as SoundInstanceModifier and TypeFieldDescriptionprivate final @Nullable SoundInstance
SelectMusicEvent.playingMusic
Methods in net.neoforged.neoforge.client.event that return SoundInstanceModifier and TypeMethodDescription@Nullable SoundInstance
SelectMusicEvent.getPlayingMusic()
Returns the current track that theMusicManager
is playing, ornull
if there is none.Constructors in net.neoforged.neoforge.client.event with parameters of type SoundInstanceModifierConstructorDescriptionSelectMusicEvent
(Music music, @Nullable SoundInstance playingMusic) -
Uses of SoundInstance in net.neoforged.neoforge.client.event.sound
Fields in net.neoforged.neoforge.client.event.sound declared as SoundInstanceModifier and TypeFieldDescriptionprivate final SoundInstance
PlaySoundEvent.originalSound
private @Nullable SoundInstance
PlaySoundEvent.sound
private final SoundInstance
SoundEvent.SoundSourceEvent.sound
Methods in net.neoforged.neoforge.client.event.sound that return SoundInstanceModifier and TypeMethodDescriptionPlaySoundEvent.getOriginalSound()
Returns the original sound that was to be played.@Nullable SoundInstance
PlaySoundEvent.getSound()
Returns the sound to be played, ornull
if no sound will be played.SoundEvent.SoundSourceEvent.getSound()
Returns the sound being played.Methods in net.neoforged.neoforge.client.event.sound with parameters of type SoundInstanceModifier and TypeMethodDescriptionvoid
PlaySoundEvent.setSound
(@Nullable SoundInstance newSound) Sets the sound to be played, which may benull
to prevent any sound from being played.Constructors in net.neoforged.neoforge.client.event.sound with parameters of type SoundInstanceModifierConstructorDescriptionPlaySoundEvent
(SoundEngine manager, SoundInstance sound) PlaySoundSourceEvent
(SoundEngine engine, SoundInstance sound, Channel channel) PlayStreamingSourceEvent
(SoundEngine engine, SoundInstance sound, Channel channel) protected
SoundSourceEvent
(SoundEngine engine, SoundInstance sound, Channel channel) -
Uses of SoundInstance in net.neoforged.neoforge.debug.client
Classes in net.neoforged.neoforge.debug.client that implement SoundInstance