Package net.minecraft.client.sound
Class SoundSystem
java.lang.Object
net.minecraft.client.sound.SoundSystem
- Mappings:
Namespace Name named net/minecraft/client/sound/SoundSystem
intermediary net/minecraft/class_1140
official hgj
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Channel
private final AtomicReference
<SoundSystem.DeviceChangeStatus> private static final int
static final String
private long
private final SoundListener
private final List
<SoundInstanceListener> private final SoundManager
private static final Logger
private static final Marker
private static final float
private static final float
private static final float
private static final long
private static final float
static final String
static final int
private final GameOptions
private final Map
<SoundInstance, Integer> private final SoundEngine
private final SoundLoader
private final Multimap
<SoundCategory, SoundInstance> private final Map
<SoundInstance, Integer> private final List
<TickableSoundInstance> private final Map
<SoundInstance, Channel.SourceManager> private boolean
private final SoundExecutor
private final List
<TickableSoundInstance> private int
private static final Set
<Identifier> -
Constructor Summary
ConstructorDescriptionSoundSystem
(SoundManager loader, GameOptions settings, ResourceFactory resourceFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPreloadedSound
(Sound sound) private float
getAdjustedPitch
(SoundInstance sound) private float
getAdjustedVolume
(float volume, SoundCategory category) private float
getAdjustedVolume
(SoundInstance sound) private float
getSoundVolume
(@Nullable SoundCategory category) private static boolean
hasRepeatDelay
(SoundInstance sound) boolean
isPlaying
(SoundInstance sound) void
pauseAll()
void
play
(SoundInstance sound) void
play
(SoundInstance sound, int delay) void
void
registerListener
(SoundInstanceListener listener) void
void
private static boolean
shouldDelayRepeat
(SoundInstance sound) private boolean
private static boolean
private void
start()
void
stop()
void
stop
(SoundInstance sound) void
void
stopAll()
void
stopSounds
(@Nullable Identifier id, @Nullable SoundCategory category) private void
tick()
void
tick
(boolean paused) void
unregisterListener
(SoundInstanceListener listener) void
updateListenerPosition
(Camera camera) void
updateSoundVolume
(SoundCategory category, float volume)
-
Field Details
-
MARKER
- Mappings:
Namespace Name Mixin selector named MARKER
Lnet/minecraft/client/sound/SoundSystem;MARKER:Lorg/slf4j/Marker;
intermediary field_5553
Lnet/minecraft/class_1140;field_5553:Lorg/slf4j/Marker;
official d
Lhgj;d:Lorg/slf4j/Marker;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/sound/SoundSystem;LOGGER:Lorg/slf4j/Logger;
intermediary field_5559
Lnet/minecraft/class_1140;field_5559:Lorg/slf4j/Logger;
official e
Lhgj;e:Lorg/slf4j/Logger;
-
MIN_PITCH
private static final float MIN_PITCH- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_PITCH
Lnet/minecraft/client/sound/SoundSystem;MIN_PITCH:F
intermediary field_33021
Lnet/minecraft/class_1140;field_33021:F
official f
Lhgj;f:F
-
MAX_PITCH
private static final float MAX_PITCH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_PITCH
Lnet/minecraft/client/sound/SoundSystem;MAX_PITCH:F
intermediary field_33022
Lnet/minecraft/class_1140;field_33022:F
official g
Lhgj;g:F
-
MIN_VOLUME
private static final float MIN_VOLUME- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_VOLUME
Lnet/minecraft/client/sound/SoundSystem;MIN_VOLUME:F
intermediary field_33023
Lnet/minecraft/class_1140;field_33023:F
official h
Lhgj;h:F
-
MAX_VOLUME
private static final float MAX_VOLUME- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_VOLUME
Lnet/minecraft/client/sound/SoundSystem;MAX_VOLUME:F
intermediary field_33024
Lnet/minecraft/class_1140;field_33024:F
official i
Lhgj;i:F
-
field_33025
private static final int field_33025- See Also:
- Mappings:
Namespace Name Mixin selector named field_33025
Lnet/minecraft/client/sound/SoundSystem;field_33025:I
intermediary field_33025
Lnet/minecraft/class_1140;field_33025:I
official j
Lhgj;j:I
-
UNKNOWN_SOUNDS
- Mappings:
Namespace Name Mixin selector named UNKNOWN_SOUNDS
Lnet/minecraft/client/sound/SoundSystem;UNKNOWN_SOUNDS:Ljava/util/Set;
intermediary field_5561
Lnet/minecraft/class_1140;field_5561:Ljava/util/Set;
official k
Lhgj;k: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 named MIN_TIME_INTERVAL_TO_RELOAD_SOUNDS
Lnet/minecraft/client/sound/SoundSystem;MIN_TIME_INTERVAL_TO_RELOAD_SOUNDS:J
intermediary field_34966
Lnet/minecraft/class_1140;field_34966:J
official l
Lhgj;l:J
-
FOR_THE_DEBUG
- See Also:
- Mappings:
Namespace Name Mixin selector named FOR_THE_DEBUG
Lnet/minecraft/client/sound/SoundSystem;FOR_THE_DEBUG:Ljava/lang/String;
intermediary field_33020
Lnet/minecraft/class_1140;field_33020:Ljava/lang/String;
official a
Lhgj;a:Ljava/lang/String;
-
OPENAL_SOFT_ON
- See Also:
- Mappings:
Namespace Name Mixin selector named OPENAL_SOFT_ON
Lnet/minecraft/client/sound/SoundSystem;OPENAL_SOFT_ON:Ljava/lang/String;
intermediary field_34827
Lnet/minecraft/class_1140;field_34827:Ljava/lang/String;
official b
Lhgj;b:Ljava/lang/String;
-
OPENAL_SOFT_ON_LENGTH
public static final int OPENAL_SOFT_ON_LENGTH- Mappings:
Namespace Name Mixin selector named OPENAL_SOFT_ON_LENGTH
Lnet/minecraft/client/sound/SoundSystem;OPENAL_SOFT_ON_LENGTH:I
intermediary field_34828
Lnet/minecraft/class_1140;field_34828:I
official c
Lhgj;c:I
-
loader
- Mappings:
Namespace Name Mixin selector named loader
Lnet/minecraft/client/sound/SoundSystem;loader:Lnet/minecraft/client/sound/SoundManager;
intermediary field_5552
Lnet/minecraft/class_1140;field_5552:Lnet/minecraft/class_1144;
official m
Lhgj;m:Lhgm;
-
settings
- Mappings:
Namespace Name Mixin selector named settings
Lnet/minecraft/client/sound/SoundSystem;settings:Lnet/minecraft/client/option/GameOptions;
intermediary field_5555
Lnet/minecraft/class_1140;field_5555:Lnet/minecraft/class_315;
official n
Lhgj;n:Lfmj;
-
started
private boolean started- Mappings:
Namespace Name Mixin selector named started
Lnet/minecraft/client/sound/SoundSystem;started:Z
intermediary field_5563
Lnet/minecraft/class_1140;field_5563:Z
official o
Lhgj;o:Z
-
soundEngine
- Mappings:
Namespace Name Mixin selector named soundEngine
Lnet/minecraft/client/sound/SoundSystem;soundEngine:Lnet/minecraft/client/sound/SoundEngine;
intermediary field_18945
Lnet/minecraft/class_1140;field_18945:Lnet/minecraft/class_4225;
official p
Lhgj;p:Lfee;
-
listener
- Mappings:
Namespace Name Mixin selector named listener
Lnet/minecraft/client/sound/SoundSystem;listener:Lnet/minecraft/client/sound/SoundListener;
intermediary field_18946
Lnet/minecraft/class_1140;field_18946:Lnet/minecraft/class_4227;
official q
Lhgj;q:Lfef;
-
soundLoader
- Mappings:
Namespace Name Mixin selector named soundLoader
Lnet/minecraft/client/sound/SoundSystem;soundLoader:Lnet/minecraft/client/sound/SoundLoader;
intermediary field_18947
Lnet/minecraft/class_1140;field_18947:Lnet/minecraft/class_4237;
official r
Lhgj;r:Lhgi;
-
taskQueue
- Mappings:
Namespace Name Mixin selector named taskQueue
Lnet/minecraft/client/sound/SoundSystem;taskQueue:Lnet/minecraft/client/sound/SoundExecutor;
intermediary field_18948
Lnet/minecraft/class_1140;field_18948:Lnet/minecraft/class_4238;
official s
Lhgj;s:Lhgk;
-
channel
- Mappings:
Namespace Name Mixin selector named channel
Lnet/minecraft/client/sound/SoundSystem;channel:Lnet/minecraft/client/sound/Channel;
intermediary field_18949
Lnet/minecraft/class_1140;field_18949:Lnet/minecraft/class_4235;
official t
Lhgj;t:Lhgb;
-
ticks
private int ticks- Mappings:
Namespace Name Mixin selector named ticks
Lnet/minecraft/client/sound/SoundSystem;ticks:I
intermediary field_5550
Lnet/minecraft/class_1140;field_5550:I
official u
Lhgj;u:I
-
lastSoundDeviceCheckTime
private long lastSoundDeviceCheckTime- Mappings:
Namespace Name Mixin selector named lastSoundDeviceCheckTime
Lnet/minecraft/client/sound/SoundSystem;lastSoundDeviceCheckTime:J
intermediary field_34967
Lnet/minecraft/class_1140;field_34967:J
official v
Lhgj;v:J
-
deviceChangeStatus
- Mappings:
Namespace Name Mixin selector named deviceChangeStatus
Lnet/minecraft/client/sound/SoundSystem;deviceChangeStatus:Ljava/util/concurrent/atomic/AtomicReference;
intermediary field_35083
Lnet/minecraft/class_1140;field_35083:Ljava/util/concurrent/atomic/AtomicReference;
official w
Lhgj;w:Ljava/util/concurrent/atomic/AtomicReference;
-
sources
- Mappings:
Namespace Name Mixin selector named sources
Lnet/minecraft/client/sound/SoundSystem;sources:Ljava/util/Map;
intermediary field_18950
Lnet/minecraft/class_1140;field_18950:Ljava/util/Map;
official x
Lhgj;x:Ljava/util/Map;
-
sounds
- Mappings:
Namespace Name Mixin selector named sounds
Lnet/minecraft/client/sound/SoundSystem;sounds:Lcom/google/common/collect/Multimap;
intermediary field_18951
Lnet/minecraft/class_1140;field_18951:Lcom/google/common/collect/Multimap;
official y
Lhgj;y:Lcom/google/common/collect/Multimap;
-
tickingSounds
- Mappings:
Namespace Name Mixin selector named tickingSounds
Lnet/minecraft/client/sound/SoundSystem;tickingSounds:Ljava/util/List;
intermediary field_5557
Lnet/minecraft/class_1140;field_5557:Ljava/util/List;
official z
Lhgj;z:Ljava/util/List;
-
soundStartTicks
- Mappings:
Namespace Name Mixin selector named soundStartTicks
Lnet/minecraft/client/sound/SoundSystem;soundStartTicks:Ljava/util/Map;
intermediary field_5566
Lnet/minecraft/class_1140;field_5566:Ljava/util/Map;
official A
Lhgj;A:Ljava/util/Map;
-
soundEndTicks
- Mappings:
Namespace Name Mixin selector named soundEndTicks
Lnet/minecraft/client/sound/SoundSystem;soundEndTicks:Ljava/util/Map;
intermediary field_18952
Lnet/minecraft/class_1140;field_18952:Ljava/util/Map;
official B
Lhgj;B:Ljava/util/Map;
-
listeners
- Mappings:
Namespace Name Mixin selector named listeners
Lnet/minecraft/client/sound/SoundSystem;listeners:Ljava/util/List;
intermediary field_5558
Lnet/minecraft/class_1140;field_5558:Ljava/util/List;
official C
Lhgj;C:Ljava/util/List;
-
soundsToPlayNextTick
- Mappings:
Namespace Name Mixin selector named soundsToPlayNextTick
Lnet/minecraft/client/sound/SoundSystem;soundsToPlayNextTick:Ljava/util/List;
intermediary field_20532
Lnet/minecraft/class_1140;field_20532:Ljava/util/List;
official D
Lhgj;D:Ljava/util/List;
-
preloadedSounds
- Mappings:
Namespace Name Mixin selector named preloadedSounds
Lnet/minecraft/client/sound/SoundSystem;preloadedSounds:Ljava/util/List;
intermediary field_5551
Lnet/minecraft/class_1140;field_5551:Ljava/util/List;
official E
Lhgj;E:Ljava/util/List;
-
-
Constructor Details
-
SoundSystem
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/sound/SoundSystem;<init>(Lnet/minecraft/client/sound/SoundManager;Lnet/minecraft/client/option/GameOptions;Lnet/minecraft/resource/ResourceFactory;)V
intermediary <init>
Lnet/minecraft/class_1140;<init>(Lnet/minecraft/class_1144;Lnet/minecraft/class_315;Lnet/minecraft/class_5912;)V
official <init>
Lhgj;<init>(Lhgm;Lfmj;Lavy;)V
-
-
Method Details
-
reloadSounds
public void reloadSounds()- Mappings:
Namespace Name Mixin selector named reloadSounds
Lnet/minecraft/client/sound/SoundSystem;reloadSounds()V
intermediary method_4837
Lnet/minecraft/class_1140;method_4837()V
official a
Lhgj;a()V
-
start
private void start()- Mappings:
Namespace Name Mixin selector named start
Lnet/minecraft/client/sound/SoundSystem;start()V
intermediary method_4846
Lnet/minecraft/class_1140;method_4846()V
official j
Lhgj;j()V
-
getSoundVolume
- Mappings:
Namespace Name Mixin selector named getSoundVolume
Lnet/minecraft/client/sound/SoundSystem;getSoundVolume(Lnet/minecraft/sound/SoundCategory;)F
intermediary method_4850
Lnet/minecraft/class_1140;method_4850(Lnet/minecraft/class_3419;)F
official a
Lhgj;a(Laxg;)F
-
updateSoundVolume
- Mappings:
Namespace Name Mixin selector named updateSoundVolume
Lnet/minecraft/client/sound/SoundSystem;updateSoundVolume(Lnet/minecraft/sound/SoundCategory;F)V
intermediary method_4844
Lnet/minecraft/class_1140;method_4844(Lnet/minecraft/class_3419;F)V
official a
Lhgj;a(Laxg;F)V
-
stop
public void stop()- Mappings:
Namespace Name Mixin selector named stop
Lnet/minecraft/client/sound/SoundSystem;stop()V
intermediary method_4856
Lnet/minecraft/class_1140;method_4856()V
official b
Lhgj;b()V
-
stopAbruptly
public void stopAbruptly()- Mappings:
Namespace Name Mixin selector named stopAbruptly
Lnet/minecraft/client/sound/SoundSystem;stopAbruptly()V
intermediary method_54648
Lnet/minecraft/class_1140;method_54648()V
official c
Lhgj;c()V
-
stop
- Mappings:
Namespace Name Mixin selector named stop
Lnet/minecraft/client/sound/SoundSystem;stop(Lnet/minecraft/client/sound/SoundInstance;)V
intermediary method_19753
Lnet/minecraft/class_1140;method_19753(Lnet/minecraft/class_1113;)V
official a
Lhgj;a(Lhfh;)V
-
stopAll
public void stopAll()- Mappings:
Namespace Name Mixin selector named stopAll
Lnet/minecraft/client/sound/SoundSystem;stopAll()V
intermediary method_4843
Lnet/minecraft/class_1140;method_4843()V
official d
Lhgj;d()V
-
registerListener
- Mappings:
Namespace Name Mixin selector named registerListener
Lnet/minecraft/client/sound/SoundSystem;registerListener(Lnet/minecraft/client/sound/SoundInstanceListener;)V
intermediary method_4855
Lnet/minecraft/class_1140;method_4855(Lnet/minecraft/class_1145;)V
official a
Lhgj;a(Lhgl;)V
-
unregisterListener
- Mappings:
Namespace Name Mixin selector named unregisterListener
Lnet/minecraft/client/sound/SoundSystem;unregisterListener(Lnet/minecraft/client/sound/SoundInstanceListener;)V
intermediary method_4847
Lnet/minecraft/class_1140;method_4847(Lnet/minecraft/class_1145;)V
official b
Lhgj;b(Lhgl;)V
-
shouldReloadSounds
private boolean shouldReloadSounds()- Mappings:
Namespace Name Mixin selector named shouldReloadSounds
Lnet/minecraft/client/sound/SoundSystem;shouldReloadSounds()Z
intermediary method_38744
Lnet/minecraft/class_1140;method_38744()Z
official k
Lhgj;k()Z
-
tick
public void tick(boolean paused) - Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/client/sound/SoundSystem;tick(Z)V
intermediary method_20185
Lnet/minecraft/class_1140;method_20185(Z)V
official a
Lhgj;a(Z)V
-
tick
private void tick()- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/client/sound/SoundSystem;tick()V
intermediary method_4857
Lnet/minecraft/class_1140;method_4857()V
official l
Lhgj;l()V
-
hasRepeatDelay
- Mappings:
Namespace Name Mixin selector named hasRepeatDelay
Lnet/minecraft/client/sound/SoundSystem;hasRepeatDelay(Lnet/minecraft/client/sound/SoundInstance;)Z
intermediary method_24878
Lnet/minecraft/class_1140;method_24878(Lnet/minecraft/class_1113;)Z
official d
Lhgj;d(Lhfh;)Z
-
shouldDelayRepeat
- Mappings:
Namespace Name Mixin selector named shouldDelayRepeat
Lnet/minecraft/client/sound/SoundSystem;shouldDelayRepeat(Lnet/minecraft/client/sound/SoundInstance;)Z
intermediary method_24879
Lnet/minecraft/class_1140;method_24879(Lnet/minecraft/class_1113;)Z
official e
Lhgj;e(Lhfh;)Z
-
shouldRepeatInstantly
- Mappings:
Namespace Name Mixin selector named shouldRepeatInstantly
Lnet/minecraft/client/sound/SoundSystem;shouldRepeatInstantly(Lnet/minecraft/client/sound/SoundInstance;)Z
intermediary method_24880
Lnet/minecraft/class_1140;method_24880(Lnet/minecraft/class_1113;)Z
official f
Lhgj;f(Lhfh;)Z
-
isPlaying
- Mappings:
Namespace Name Mixin selector named isPlaying
Lnet/minecraft/client/sound/SoundSystem;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Z
intermediary method_4835
Lnet/minecraft/class_1140;method_4835(Lnet/minecraft/class_1113;)Z
official b
Lhgj;b(Lhfh;)Z
-
play
- Mappings:
Namespace Name Mixin selector named play
Lnet/minecraft/client/sound/SoundSystem;play(Lnet/minecraft/client/sound/SoundInstance;)V
intermediary method_4854
Lnet/minecraft/class_1140;method_4854(Lnet/minecraft/class_1113;)V
official c
Lhgj;c(Lhfh;)V
-
playNextTick
- Mappings:
Namespace Name Mixin selector named playNextTick
Lnet/minecraft/client/sound/SoundSystem;playNextTick(Lnet/minecraft/client/sound/TickableSoundInstance;)V
intermediary method_22139
Lnet/minecraft/class_1140;method_22139(Lnet/minecraft/class_1117;)V
official a
Lhgj;a(Lhfi;)V
-
addPreloadedSound
- Mappings:
Namespace Name Mixin selector named addPreloadedSound
Lnet/minecraft/client/sound/SoundSystem;addPreloadedSound(Lnet/minecraft/client/sound/Sound;)V
intermediary method_4851
Lnet/minecraft/class_1140;method_4851(Lnet/minecraft/class_1111;)V
official a
Lhgj;a(Lhfe;)V
-
getAdjustedPitch
- Mappings:
Namespace Name Mixin selector named getAdjustedPitch
Lnet/minecraft/client/sound/SoundSystem;getAdjustedPitch(Lnet/minecraft/client/sound/SoundInstance;)F
intermediary method_4849
Lnet/minecraft/class_1140;method_4849(Lnet/minecraft/class_1113;)F
official g
Lhgj;g(Lhfh;)F
-
getAdjustedVolume
- Mappings:
Namespace Name Mixin selector named getAdjustedVolume
Lnet/minecraft/client/sound/SoundSystem;getAdjustedVolume(Lnet/minecraft/client/sound/SoundInstance;)F
intermediary method_4853
Lnet/minecraft/class_1140;method_4853(Lnet/minecraft/class_1113;)F
official h
Lhgj;h(Lhfh;)F
-
getAdjustedVolume
- Mappings:
Namespace Name Mixin selector named getAdjustedVolume
Lnet/minecraft/client/sound/SoundSystem;getAdjustedVolume(FLnet/minecraft/sound/SoundCategory;)F
intermediary method_43222
Lnet/minecraft/class_1140;method_43222(FLnet/minecraft/class_3419;)F
official a
Lhgj;a(FLaxg;)F
-
pauseAll
public void pauseAll()- Mappings:
Namespace Name Mixin selector named pauseAll
Lnet/minecraft/client/sound/SoundSystem;pauseAll()V
intermediary method_19761
Lnet/minecraft/class_1140;method_19761()V
official e
Lhgj;e()V
-
resumeAll
public void resumeAll()- Mappings:
Namespace Name Mixin selector named resumeAll
Lnet/minecraft/client/sound/SoundSystem;resumeAll()V
intermediary method_19762
Lnet/minecraft/class_1140;method_19762()V
official f
Lhgj;f()V
-
play
- Mappings:
Namespace Name Mixin selector named play
Lnet/minecraft/client/sound/SoundSystem;play(Lnet/minecraft/client/sound/SoundInstance;I)V
intermediary method_4852
Lnet/minecraft/class_1140;method_4852(Lnet/minecraft/class_1113;I)V
official a
Lhgj;a(Lhfh;I)V
-
updateListenerPosition
- Mappings:
Namespace Name Mixin selector named updateListenerPosition
Lnet/minecraft/client/sound/SoundSystem;updateListenerPosition(Lnet/minecraft/client/render/Camera;)V
intermediary method_4840
Lnet/minecraft/class_1140;method_4840(Lnet/minecraft/class_4184;)V
official a
Lhgj;a(Lflo;)V
-
stopSounds
public void stopSounds(@Nullable @Nullable Identifier id, @Nullable @Nullable SoundCategory category) - Mappings:
Namespace Name Mixin selector named stopSounds
Lnet/minecraft/client/sound/SoundSystem;stopSounds(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;)V
intermediary method_4838
Lnet/minecraft/class_1140;method_4838(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;)V
official a
Lhgj;a(Lalz;Laxg;)V
-
getDebugString
- Mappings:
Namespace Name Mixin selector named getDebugString
Lnet/minecraft/client/sound/SoundSystem;getDebugString()Ljava/lang/String;
intermediary method_20304
Lnet/minecraft/class_1140;method_20304()Ljava/lang/String;
official g
Lhgj;g()Ljava/lang/String;
-
getSoundDevices
- Mappings:
Namespace Name Mixin selector named getSoundDevices
Lnet/minecraft/client/sound/SoundSystem;getSoundDevices()Ljava/util/List;
intermediary method_38564
Lnet/minecraft/class_1140;method_38564()Ljava/util/List;
official h
Lhgj;h()Ljava/util/List;
-
getListenerTransform
- Mappings:
Namespace Name Mixin selector named getListenerTransform
Lnet/minecraft/client/sound/SoundSystem;getListenerTransform()Lnet/minecraft/client/sound/SoundListenerTransform;
intermediary method_55592
Lnet/minecraft/class_1140;method_55592()Lnet/minecraft/class_9054;
official i
Lhgj;i()Lfeg;
-