Class SoundSystem

java.lang.Object
net.minecraft.client.sound.SoundSystem

@Environment(CLIENT) public class SoundSystem extends Object
Mappings:
Namespace Name
official fso
intermediary net/minecraft/class_1140
named net/minecraft/client/sound/SoundSystem
  • Field Details

    • MARKER

      private static final Marker MARKER
      Mappings:
      Namespace Name Mixin selector
      official d Lfso;d:Lorg/slf4j/Marker;
      intermediary field_5553 Lnet/minecraft/class_1140;field_5553:Lorg/slf4j/Marker;
      named MARKER Lnet/minecraft/client/sound/SoundSystem;MARKER:Lorg/slf4j/Marker;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official e Lfso;e:Lorg/slf4j/Logger;
      intermediary field_5559 Lnet/minecraft/class_1140;field_5559:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/sound/SoundSystem;LOGGER:Lorg/slf4j/Logger;
    • MIN_PITCH

      private static final float MIN_PITCH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lfso;f:F
      intermediary field_33021 Lnet/minecraft/class_1140;field_33021:F
      named MIN_PITCH Lnet/minecraft/client/sound/SoundSystem;MIN_PITCH:F
    • MAX_PITCH

      private static final float MAX_PITCH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lfso;g:F
      intermediary field_33022 Lnet/minecraft/class_1140;field_33022:F
      named MAX_PITCH Lnet/minecraft/client/sound/SoundSystem;MAX_PITCH:F
    • MIN_VOLUME

      private static final float MIN_VOLUME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lfso;h:F
      intermediary field_33023 Lnet/minecraft/class_1140;field_33023:F
      named MIN_VOLUME Lnet/minecraft/client/sound/SoundSystem;MIN_VOLUME:F
    • MAX_VOLUME

      private static final float MAX_VOLUME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lfso;i:F
      intermediary field_33024 Lnet/minecraft/class_1140;field_33024:F
      named MAX_VOLUME Lnet/minecraft/client/sound/SoundSystem;MAX_VOLUME:F
    • field_33025

      private static final int field_33025
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lfso;j:I
      intermediary field_33025 Lnet/minecraft/class_1140;field_33025:I
      named field_33025 Lnet/minecraft/client/sound/SoundSystem;field_33025:I
    • UNKNOWN_SOUNDS

      private static final Set<Identifier> UNKNOWN_SOUNDS
      Mappings:
      Namespace Name Mixin selector
      official k Lfso;k:Ljava/util/Set;
      intermediary field_5561 Lnet/minecraft/class_1140;field_5561:Ljava/util/Set;
      named UNKNOWN_SOUNDS Lnet/minecraft/client/sound/SoundSystem;UNKNOWN_SOUNDS:Ljava/util/Set;
    • MIN_TIME_INTERVAL_TO_RELOAD_SOUNDS

      private static final long MIN_TIME_INTERVAL_TO_RELOAD_SOUNDS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lfso;l:J
      intermediary field_34966 Lnet/minecraft/class_1140;field_34966:J
      named MIN_TIME_INTERVAL_TO_RELOAD_SOUNDS Lnet/minecraft/client/sound/SoundSystem;MIN_TIME_INTERVAL_TO_RELOAD_SOUNDS:J
    • FOR_THE_DEBUG

      public static final String FOR_THE_DEBUG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a:Ljava/lang/String;
      intermediary field_33020 Lnet/minecraft/class_1140;field_33020:Ljava/lang/String;
      named FOR_THE_DEBUG Lnet/minecraft/client/sound/SoundSystem;FOR_THE_DEBUG:Ljava/lang/String;
    • OPENAL_SOFT_ON

      public static final String OPENAL_SOFT_ON
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lfso;b:Ljava/lang/String;
      intermediary field_34827 Lnet/minecraft/class_1140;field_34827:Ljava/lang/String;
      named OPENAL_SOFT_ON Lnet/minecraft/client/sound/SoundSystem;OPENAL_SOFT_ON:Ljava/lang/String;
    • OPENAL_SOFT_ON_LENGTH

      public static final int OPENAL_SOFT_ON_LENGTH
      Mappings:
      Namespace Name Mixin selector
      official c Lfso;c:I
      intermediary field_34828 Lnet/minecraft/class_1140;field_34828:I
      named OPENAL_SOFT_ON_LENGTH Lnet/minecraft/client/sound/SoundSystem;OPENAL_SOFT_ON_LENGTH:I
    • loader

      private final SoundManager loader
      Mappings:
      Namespace Name Mixin selector
      official m Lfso;m:Lfsr;
      intermediary field_5552 Lnet/minecraft/class_1140;field_5552:Lnet/minecraft/class_1144;
      named loader Lnet/minecraft/client/sound/SoundSystem;loader:Lnet/minecraft/client/sound/SoundManager;
    • settings

      private final GameOptions settings
      Mappings:
      Namespace Name Mixin selector
      official n Lfso;n:Lejj;
      intermediary field_5555 Lnet/minecraft/class_1140;field_5555:Lnet/minecraft/class_315;
      named settings Lnet/minecraft/client/sound/SoundSystem;settings:Lnet/minecraft/client/option/GameOptions;
    • started

      private boolean started
      Mappings:
      Namespace Name Mixin selector
      official o Lfso;o:Z
      intermediary field_5563 Lnet/minecraft/class_1140;field_5563:Z
      named started Lnet/minecraft/client/sound/SoundSystem;started:Z
    • soundEngine

      private final SoundEngine soundEngine
      Mappings:
      Namespace Name Mixin selector
      official p Lfso;p:Leca;
      intermediary field_18945 Lnet/minecraft/class_1140;field_18945:Lnet/minecraft/class_4225;
      named soundEngine Lnet/minecraft/client/sound/SoundSystem;soundEngine:Lnet/minecraft/client/sound/SoundEngine;
    • listener

      private final SoundListener listener
      Mappings:
      Namespace Name Mixin selector
      official q Lfso;q:Lecb;
      intermediary field_18946 Lnet/minecraft/class_1140;field_18946:Lnet/minecraft/class_4227;
      named listener Lnet/minecraft/client/sound/SoundSystem;listener:Lnet/minecraft/client/sound/SoundListener;
    • soundLoader

      private final SoundLoader soundLoader
      Mappings:
      Namespace Name Mixin selector
      official r Lfso;r:Lfsn;
      intermediary field_18947 Lnet/minecraft/class_1140;field_18947:Lnet/minecraft/class_4237;
      named soundLoader Lnet/minecraft/client/sound/SoundSystem;soundLoader:Lnet/minecraft/client/sound/SoundLoader;
    • taskQueue

      private final SoundExecutor taskQueue
      Mappings:
      Namespace Name Mixin selector
      official s Lfso;s:Lfsp;
      intermediary field_18948 Lnet/minecraft/class_1140;field_18948:Lnet/minecraft/class_4238;
      named taskQueue Lnet/minecraft/client/sound/SoundSystem;taskQueue:Lnet/minecraft/client/sound/SoundExecutor;
    • channel

      private final Channel channel
      Mappings:
      Namespace Name Mixin selector
      official t Lfso;t:Lfsk;
      intermediary field_18949 Lnet/minecraft/class_1140;field_18949:Lnet/minecraft/class_4235;
      named channel Lnet/minecraft/client/sound/SoundSystem;channel:Lnet/minecraft/client/sound/Channel;
    • ticks

      private int ticks
      Mappings:
      Namespace Name Mixin selector
      official u Lfso;u:I
      intermediary field_5550 Lnet/minecraft/class_1140;field_5550:I
      named ticks Lnet/minecraft/client/sound/SoundSystem;ticks:I
    • lastSoundDeviceCheckTime

      private long lastSoundDeviceCheckTime
      Mappings:
      Namespace Name Mixin selector
      official v Lfso;v:J
      intermediary field_34967 Lnet/minecraft/class_1140;field_34967:J
      named lastSoundDeviceCheckTime Lnet/minecraft/client/sound/SoundSystem;lastSoundDeviceCheckTime:J
    • deviceChangeStatus

      private final AtomicReference<SoundSystem.DeviceChangeStatus> deviceChangeStatus
      Mappings:
      Namespace Name Mixin selector
      official w Lfso;w:Ljava/util/concurrent/atomic/AtomicReference;
      intermediary field_35083 Lnet/minecraft/class_1140;field_35083:Ljava/util/concurrent/atomic/AtomicReference;
      named deviceChangeStatus Lnet/minecraft/client/sound/SoundSystem;deviceChangeStatus:Ljava/util/concurrent/atomic/AtomicReference;
    • sources

      private final Map<SoundInstance,Channel.SourceManager> sources
      Mappings:
      Namespace Name Mixin selector
      official x Lfso;x:Ljava/util/Map;
      intermediary field_18950 Lnet/minecraft/class_1140;field_18950:Ljava/util/Map;
      named sources Lnet/minecraft/client/sound/SoundSystem;sources:Ljava/util/Map;
    • sounds

      private final Multimap<SoundCategory,SoundInstance> sounds
      Mappings:
      Namespace Name Mixin selector
      official y Lfso;y:Lcom/google/common/collect/Multimap;
      intermediary field_18951 Lnet/minecraft/class_1140;field_18951:Lcom/google/common/collect/Multimap;
      named sounds Lnet/minecraft/client/sound/SoundSystem;sounds:Lcom/google/common/collect/Multimap;
    • tickingSounds

      private final List<TickableSoundInstance> tickingSounds
      Mappings:
      Namespace Name Mixin selector
      official z Lfso;z:Ljava/util/List;
      intermediary field_5557 Lnet/minecraft/class_1140;field_5557:Ljava/util/List;
      named tickingSounds Lnet/minecraft/client/sound/SoundSystem;tickingSounds:Ljava/util/List;
    • startTicks

      private final Map<SoundInstance,Integer> startTicks
      Mappings:
      Namespace Name Mixin selector
      official A Lfso;A:Ljava/util/Map;
      intermediary field_5566 Lnet/minecraft/class_1140;field_5566:Ljava/util/Map;
      named startTicks Lnet/minecraft/client/sound/SoundSystem;startTicks:Ljava/util/Map;
    • soundEndTicks

      private final Map<SoundInstance,Integer> soundEndTicks
      Mappings:
      Namespace Name Mixin selector
      official B Lfso;B:Ljava/util/Map;
      intermediary field_18952 Lnet/minecraft/class_1140;field_18952:Ljava/util/Map;
      named soundEndTicks Lnet/minecraft/client/sound/SoundSystem;soundEndTicks:Ljava/util/Map;
    • listeners

      private final List<SoundInstanceListener> listeners
      Mappings:
      Namespace Name Mixin selector
      official C Lfso;C:Ljava/util/List;
      intermediary field_5558 Lnet/minecraft/class_1140;field_5558:Ljava/util/List;
      named listeners Lnet/minecraft/client/sound/SoundSystem;listeners:Ljava/util/List;
    • soundsToPlayNextTick

      private final List<TickableSoundInstance> soundsToPlayNextTick
      Mappings:
      Namespace Name Mixin selector
      official D Lfso;D:Ljava/util/List;
      intermediary field_20532 Lnet/minecraft/class_1140;field_20532:Ljava/util/List;
      named soundsToPlayNextTick Lnet/minecraft/client/sound/SoundSystem;soundsToPlayNextTick:Ljava/util/List;
    • preloadedSounds

      private final List<Sound> preloadedSounds
      Mappings:
      Namespace Name Mixin selector
      official E Lfso;E:Ljava/util/List;
      intermediary field_5551 Lnet/minecraft/class_1140;field_5551:Ljava/util/List;
      named preloadedSounds Lnet/minecraft/client/sound/SoundSystem;preloadedSounds:Ljava/util/List;
  • Constructor Details

    • SoundSystem

      public SoundSystem(SoundManager loader, GameOptions settings, ResourceFactory resourceFactory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfso;<init>(Lfsr;Lejj;Lakh;)V
      intermediary <init> Lnet/minecraft/class_1140;<init>(Lnet/minecraft/class_1144;Lnet/minecraft/class_315;Lnet/minecraft/class_5912;)V
      named <init> Lnet/minecraft/client/sound/SoundSystem;<init>(Lnet/minecraft/client/sound/SoundManager;Lnet/minecraft/client/option/GameOptions;Lnet/minecraft/resource/ResourceFactory;)V
  • Method Details

    • reloadSounds

      public void reloadSounds()
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a()V
      intermediary method_4837 Lnet/minecraft/class_1140;method_4837()V
      named reloadSounds Lnet/minecraft/client/sound/SoundSystem;reloadSounds()V
    • start

      private void start()
      Mappings:
      Namespace Name Mixin selector
      official h Lfso;h()V
      intermediary method_4846 Lnet/minecraft/class_1140;method_4846()V
      named start Lnet/minecraft/client/sound/SoundSystem;start()V
    • getSoundVolume

      private float getSoundVolume(@Nullable @Nullable SoundCategory category)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(Lalp;)F
      intermediary method_4850 Lnet/minecraft/class_1140;method_4850(Lnet/minecraft/class_3419;)F
      named getSoundVolume Lnet/minecraft/client/sound/SoundSystem;getSoundVolume(Lnet/minecraft/sound/SoundCategory;)F
    • updateSoundVolume

      public void updateSoundVolume(SoundCategory category, float volume)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(Lalp;F)V
      intermediary method_4844 Lnet/minecraft/class_1140;method_4844(Lnet/minecraft/class_3419;F)V
      named updateSoundVolume Lnet/minecraft/client/sound/SoundSystem;updateSoundVolume(Lnet/minecraft/sound/SoundCategory;F)V
    • stop

      public void stop()
      Mappings:
      Namespace Name Mixin selector
      official b Lfso;b()V
      intermediary method_4856 Lnet/minecraft/class_1140;method_4856()V
      named stop Lnet/minecraft/client/sound/SoundSystem;stop()V
    • stop

      public void stop(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(Lfrn;)V
      intermediary method_19753 Lnet/minecraft/class_1140;method_19753(Lnet/minecraft/class_1113;)V
      named stop Lnet/minecraft/client/sound/SoundSystem;stop(Lnet/minecraft/client/sound/SoundInstance;)V
    • stopAll

      public void stopAll()
      Mappings:
      Namespace Name Mixin selector
      official c Lfso;c()V
      intermediary method_4843 Lnet/minecraft/class_1140;method_4843()V
      named stopAll Lnet/minecraft/client/sound/SoundSystem;stopAll()V
    • registerListener

      public void registerListener(SoundInstanceListener listener)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(Lfsq;)V
      intermediary method_4855 Lnet/minecraft/class_1140;method_4855(Lnet/minecraft/class_1145;)V
      named registerListener Lnet/minecraft/client/sound/SoundSystem;registerListener(Lnet/minecraft/client/sound/SoundInstanceListener;)V
    • unregisterListener

      public void unregisterListener(SoundInstanceListener listener)
      Mappings:
      Namespace Name Mixin selector
      official b Lfso;b(Lfsq;)V
      intermediary method_4847 Lnet/minecraft/class_1140;method_4847(Lnet/minecraft/class_1145;)V
      named unregisterListener Lnet/minecraft/client/sound/SoundSystem;unregisterListener(Lnet/minecraft/client/sound/SoundInstanceListener;)V
    • shouldReloadSounds

      private boolean shouldReloadSounds()
      Mappings:
      Namespace Name Mixin selector
      official i Lfso;i()Z
      intermediary method_38744 Lnet/minecraft/class_1140;method_38744()Z
      named shouldReloadSounds Lnet/minecraft/client/sound/SoundSystem;shouldReloadSounds()Z
    • tick

      public void tick(boolean paused)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(Z)V
      intermediary method_20185 Lnet/minecraft/class_1140;method_20185(Z)V
      named tick Lnet/minecraft/client/sound/SoundSystem;tick(Z)V
    • tick

      private void tick()
      Mappings:
      Namespace Name Mixin selector
      official j Lfso;j()V
      intermediary method_4857 Lnet/minecraft/class_1140;method_4857()V
      named tick Lnet/minecraft/client/sound/SoundSystem;tick()V
    • canRepeatInstantly

      private static boolean canRepeatInstantly(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      official d Lfso;d(Lfrn;)Z
      intermediary method_24878 Lnet/minecraft/class_1140;method_24878(Lnet/minecraft/class_1113;)Z
      named canRepeatInstantly Lnet/minecraft/client/sound/SoundSystem;canRepeatInstantly(Lnet/minecraft/client/sound/SoundInstance;)Z
    • isRepeatDelayed

      private static boolean isRepeatDelayed(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      official e Lfso;e(Lfrn;)Z
      intermediary method_24879 Lnet/minecraft/class_1140;method_24879(Lnet/minecraft/class_1113;)Z
      named isRepeatDelayed Lnet/minecraft/client/sound/SoundSystem;isRepeatDelayed(Lnet/minecraft/client/sound/SoundInstance;)Z
    • shouldRepeatInstantly

      private static boolean shouldRepeatInstantly(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      official f Lfso;f(Lfrn;)Z
      intermediary method_24880 Lnet/minecraft/class_1140;method_24880(Lnet/minecraft/class_1113;)Z
      named shouldRepeatInstantly Lnet/minecraft/client/sound/SoundSystem;shouldRepeatInstantly(Lnet/minecraft/client/sound/SoundInstance;)Z
    • isPlaying

      public boolean isPlaying(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      official b Lfso;b(Lfrn;)Z
      intermediary method_4835 Lnet/minecraft/class_1140;method_4835(Lnet/minecraft/class_1113;)Z
      named isPlaying Lnet/minecraft/client/sound/SoundSystem;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Z
    • play

      public void play(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      official c Lfso;c(Lfrn;)V
      intermediary method_4854 Lnet/minecraft/class_1140;method_4854(Lnet/minecraft/class_1113;)V
      named play Lnet/minecraft/client/sound/SoundSystem;play(Lnet/minecraft/client/sound/SoundInstance;)V
    • playNextTick

      public void playNextTick(TickableSoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(Lfro;)V
      intermediary method_22139 Lnet/minecraft/class_1140;method_22139(Lnet/minecraft/class_1117;)V
      named playNextTick Lnet/minecraft/client/sound/SoundSystem;playNextTick(Lnet/minecraft/client/sound/TickableSoundInstance;)V
    • addPreloadedSound

      public void addPreloadedSound(Sound sound)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(Lfrk;)V
      intermediary method_4851 Lnet/minecraft/class_1140;method_4851(Lnet/minecraft/class_1111;)V
      named addPreloadedSound Lnet/minecraft/client/sound/SoundSystem;addPreloadedSound(Lnet/minecraft/client/sound/Sound;)V
    • getAdjustedPitch

      private float getAdjustedPitch(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      official g Lfso;g(Lfrn;)F
      intermediary method_4849 Lnet/minecraft/class_1140;method_4849(Lnet/minecraft/class_1113;)F
      named getAdjustedPitch Lnet/minecraft/client/sound/SoundSystem;getAdjustedPitch(Lnet/minecraft/client/sound/SoundInstance;)F
    • getAdjustedVolume

      private float getAdjustedVolume(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      official h Lfso;h(Lfrn;)F
      intermediary method_4853 Lnet/minecraft/class_1140;method_4853(Lnet/minecraft/class_1113;)F
      named getAdjustedVolume Lnet/minecraft/client/sound/SoundSystem;getAdjustedVolume(Lnet/minecraft/client/sound/SoundInstance;)F
    • getAdjustedVolume

      private float getAdjustedVolume(float volume, SoundCategory category)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(FLalp;)F
      intermediary method_43222 Lnet/minecraft/class_1140;method_43222(FLnet/minecraft/class_3419;)F
      named getAdjustedVolume Lnet/minecraft/client/sound/SoundSystem;getAdjustedVolume(FLnet/minecraft/sound/SoundCategory;)F
    • pauseAll

      public void pauseAll()
      Mappings:
      Namespace Name Mixin selector
      official d Lfso;d()V
      intermediary method_19761 Lnet/minecraft/class_1140;method_19761()V
      named pauseAll Lnet/minecraft/client/sound/SoundSystem;pauseAll()V
    • resumeAll

      public void resumeAll()
      Mappings:
      Namespace Name Mixin selector
      official e Lfso;e()V
      intermediary method_19762 Lnet/minecraft/class_1140;method_19762()V
      named resumeAll Lnet/minecraft/client/sound/SoundSystem;resumeAll()V
    • play

      public void play(SoundInstance sound, int delay)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(Lfrn;I)V
      intermediary method_4852 Lnet/minecraft/class_1140;method_4852(Lnet/minecraft/class_1113;I)V
      named play Lnet/minecraft/client/sound/SoundSystem;play(Lnet/minecraft/client/sound/SoundInstance;I)V
    • updateListenerPosition

      public void updateListenerPosition(Camera camera)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(Leir;)V
      intermediary method_4840 Lnet/minecraft/class_1140;method_4840(Lnet/minecraft/class_4184;)V
      named updateListenerPosition Lnet/minecraft/client/sound/SoundSystem;updateListenerPosition(Lnet/minecraft/client/render/Camera;)V
    • stopSounds

      public void stopSounds(@Nullable @Nullable Identifier id, @Nullable @Nullable SoundCategory category)
      Mappings:
      Namespace Name Mixin selector
      official a Lfso;a(Lacf;Lalp;)V
      intermediary method_4838 Lnet/minecraft/class_1140;method_4838(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;)V
      named stopSounds Lnet/minecraft/client/sound/SoundSystem;stopSounds(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;)V
    • getDebugString

      public String getDebugString()
      Mappings:
      Namespace Name Mixin selector
      official f Lfso;f()Ljava/lang/String;
      intermediary method_20304 Lnet/minecraft/class_1140;method_20304()Ljava/lang/String;
      named getDebugString Lnet/minecraft/client/sound/SoundSystem;getDebugString()Ljava/lang/String;
    • getSoundDevices

      public List<String> getSoundDevices()
      Mappings:
      Namespace Name Mixin selector
      official g Lfso;g()Ljava/util/List;
      intermediary method_38564 Lnet/minecraft/class_1140;method_38564()Ljava/util/List;
      named getSoundDevices Lnet/minecraft/client/sound/SoundSystem;getSoundDevices()Ljava/util/List;