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 TypeMethodDescriptionvoidSubtitleOverlay.onPlaySound(SoundInstance sound, WeighedSoundEvents accessor, float range) -
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 TypeClassDescriptionclassclassclassclassclassstatic classclassclassclassclassclassclassclassstatic classstatic 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.instanceBySourceprivate final Map<SoundInstance, ChannelAccess.ChannelHandle> SoundEngine.instanceToChannelprivate final Map<SoundInstance, Integer> SoundEngine.queuedSoundsContains sounds to play in n ticks.private final Map<SoundInstance, Integer> SoundEngine.soundDeleteTimeThe future time in which to stop this sound.Methods in net.minecraft.client.sounds with parameters of type SoundInstanceModifier and TypeMethodDescriptionprivate floatSoundEngine.calculatePitch(SoundInstance sound) Calculates the pitch of the sound being played.private floatSoundEngine.calculateVolume(SoundInstance sound) Calculates the volume for the sound being played.booleanSoundEngine.isActive(SoundInstance sound) booleanSoundManager.isActive(SoundInstance sound) Checks if the specified sound is active (playing or scheduled to be played).voidSoundEventListener.onPlaySound(SoundInstance sound, WeighedSoundEvents accessor, float range) voidSoundEngine.play(SoundInstance p_sound) Plays a given sound instance.voidSoundManager.play(SoundInstance sound) Play a soundvoidSoundEngine.playDelayed(SoundInstance sound, int delay) Adds a sound to play in n ticksvoidSoundManager.playDelayed(SoundInstance sound, int delay) Plays a sound with a delay in ticks.private static booleanSoundEngine.requiresManualLooping(SoundInstance sound) Returns invalid input: 'Returns {@code true} if the SoundInstance requires manual looping, {@code false} otherwise @param sound the SoundInstance to check'.private static booleanSoundEngine.shouldLoopAutomatically(SoundInstance sound) private static booleanSoundEngine.shouldLoopManually(SoundInstance sound) voidSoundEngine.stop(SoundInstance sound) Stops the providedfrom continuing to play.invalid reference
SoundInstace
voidSoundManager.stop(SoundInstance sound) -
Uses of SoundInstance in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client that return SoundInstanceModifier and TypeMethodDescriptionstatic @Nullable SoundInstanceClientHooks.playSound(SoundEngine manager, SoundInstance sound) Methods in net.neoforged.neoforge.client with parameters of type SoundInstanceModifier and TypeMethodDescriptionstatic @Nullable SoundInstanceClientHooks.playSound(SoundEngine manager, SoundInstance sound) static @Nullable MusicClientHooks.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 SoundInstanceSelectMusicEvent.playingMusicMethods in net.neoforged.neoforge.client.event that return SoundInstanceModifier and TypeMethodDescription@Nullable SoundInstanceSelectMusicEvent.getPlayingMusic()Returns the current track that theMusicManageris playing, ornullif 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 SoundInstancePlaySoundEvent.originalSoundprivate @Nullable SoundInstancePlaySoundEvent.soundprivate final SoundInstanceSoundEvent.SoundSourceEvent.soundMethods in net.neoforged.neoforge.client.event.sound that return SoundInstanceModifier and TypeMethodDescriptionPlaySoundEvent.getOriginalSound()Returns the original sound that was to be played.@Nullable SoundInstancePlaySoundEvent.getSound()Returns the sound to be played, ornullif 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 TypeMethodDescriptionvoidPlaySoundEvent.setSound(@Nullable SoundInstance newSound) Sets the sound to be played, which may benullto 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) protectedSoundSourceEvent(SoundEngine engine, SoundInstance sound, Channel channel)