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 soundEvent, 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> LevelEventHandler.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 classclassclassclassclassclassclassclassclassclassstatic classstatic class -
Uses of SoundInstance in net.minecraft.client.sounds
Fields in net.minecraft.client.sounds declared as SoundInstanceModifier and TypeFieldDescriptionprivate static @Nullable SoundInstanceSoundPreviewHandler.activePreviewprivate @Nullable SoundInstanceMusicManager.currentMusicFields 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.queuedSoundsprivate final Map<SoundInstance, Integer> SoundEngine.soundDeleteTimeMethods in net.minecraft.client.sounds with parameters of type SoundInstanceModifier and TypeMethodDescriptionprivate floatSoundEngine.calculatePitch(SoundInstance instance) private floatSoundEngine.calculateVolume(SoundInstance instance) private static booleanMusicManager.canReplace(Music music, SoundInstance currentMusic) booleanSoundEngine.isActive(SoundInstance instance) booleanSoundManager.isActive(SoundInstance instance) voidSoundEventListener.onPlaySound(SoundInstance sound, WeighedSoundEvents soundEvent, float range) SoundEngine.play(SoundInstance instance) SoundManager.play(SoundInstance instance) voidSoundEngine.playDelayed(SoundInstance instance, int delay) voidSoundManager.playDelayed(SoundInstance instance, int delay) private static booleanSoundEngine.requiresManualLooping(SoundInstance instance) private static booleanSoundEngine.shouldLoopAutomatically(SoundInstance instance) private static booleanSoundEngine.shouldLoopManually(SoundInstance instance) voidSoundEngine.stop(SoundInstance soundInstance) voidSoundManager.stop(SoundInstance soundInstance) -
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)