Uses of Interface
net.minecraft.client.resources.sounds.SoundInstance
Packages that use SoundInstance
Package
Description
-
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 p_94645_, WeighedSoundEvents p_94646_, float p_314721_) -
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 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 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 pSound) Calculates the pitch of the sound being played.private floatSoundEngine.calculateVolume(SoundInstance pSound) Calculates the volume for the sound being played.booleanMusicInfo.canReplace(SoundInstance pSoundInstance) booleanSoundEngine.isActive(SoundInstance pSound) booleanSoundManager.isActive(SoundInstance pSound) Checks if the specified sound is active (playing or scheduled to be played).voidSoundEventListener.onPlaySound(SoundInstance pSound, WeighedSoundEvents pAccessor, float pRange) voidSoundEngine.play(SoundInstance pSound) Plays a given sound instance.voidSoundManager.play(SoundInstance pSound) Play a soundvoidSoundEngine.playDelayed(SoundInstance pSound, int pDelay) Adds a sound to play in n ticksvoidSoundManager.playDelayed(SoundInstance pSound, int pDelay) Plays a sound with a delay in ticks.private static booleanSoundEngine.requiresManualLooping(SoundInstance pSound) Returns invalid input: 'Returns {@code true} if the SoundInstance requires manual looping, {@code false} otherwise @param pSound the SoundInstance to check'.voidSoundEngine.setVolume(SoundInstance pSoundInstance, float pVolume) voidSoundManager.setVolume(SoundInstance pSound, float pVolume) private static booleanSoundEngine.shouldLoopAutomatically(SoundInstance pSound) private static booleanSoundEngine.shouldLoopManually(SoundInstance pSound) voidSoundEngine.stop(SoundInstance pSound) Stops the providedfrom continuing to play.invalid reference
SoundInstace
voidSoundManager.stop(SoundInstance pSound) -
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 MusicInfoClientHooks.selectMusic(MusicInfo 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(MusicInfo 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)