Package net.minecraft.client.sound
Class SoundSystem
java.lang.Object
net.minecraft.client.sound.SoundSystem
- Mappings:
Namespace Name official faz
intermediary net/minecraft/class_1140
named net/minecraft/client/sound/SoundSystem
-
Field Summary
Modifier and TypeFieldDescriptionprivate Channel
static String
private static float
private static float
private static float
private static float
private static int
private SoundListener
private List<SoundInstanceListener>
private SoundManager
private static Logger
private static Marker
private GameOptions
private Map<SoundInstance,Integer>
private SoundEngine
private SoundLoader
private Multimap<SoundCategory,SoundInstance>
private List<TickableSoundInstance>
private Map<SoundInstance,Channel.SourceManager>
private boolean
private Map<SoundInstance,Integer>
private SoundExecutor
private List<TickableSoundInstance>
private int
private static Set<Identifier>
-
Constructor Summary
ConstructorDescriptionSoundSystem(SoundManager loader, GameOptions settings, ResourceManager resourceManager)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPreloadedSound(Sound sound)
private static boolean
canRepeatInstantly(SoundInstance sound)
private float
getAdjustedPitch(SoundInstance sound)
private float
getAdjustedVolume(SoundInstance sound)
private float
getSoundVolume(@Nullable SoundCategory category)
boolean
isPlaying(SoundInstance sound)
private static boolean
isRepeatDelayed(SoundInstance sound)
void
pauseAll()
void
play(SoundInstance sound)
void
play(SoundInstance sound, int delay)
void
playNextTick(TickableSoundInstance sound)
void
registerListener(SoundInstanceListener listener)
void
void
private static boolean
shouldRepeatInstantly(SoundInstance sound)
private void
start()
void
stop()
void
stop(SoundInstance sound)
void
stopAll()
void
stopSounds(@Nullable Identifier id, @Nullable SoundCategory category)
private void
tick()
void
tick(boolean bool)
void
unregisterListener(SoundInstanceListener listener)
void
updateListenerPosition(Camera camera)
void
updateSoundVolume(SoundCategory category, float volume)
-
Field Details
-
MARKER
- Mappings:
Namespace Name Mixin selector official b
Lfaz;b:Lorg/apache/logging/log4j/Marker;
intermediary field_5553
Lnet/minecraft/class_1140;field_5553:Lorg/apache/logging/log4j/Marker;
named MARKER
Lnet/minecraft/client/sound/SoundSystem;MARKER:Lorg/apache/logging/log4j/Marker;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Lfaz;c:Lorg/apache/logging/log4j/Logger;
intermediary field_5559
Lnet/minecraft/class_1140;field_5559:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/sound/SoundSystem;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_33021
private static final float field_33021- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Lfaz;d:F
intermediary field_33021
Lnet/minecraft/class_1140;field_33021:F
named field_33021
Lnet/minecraft/client/sound/SoundSystem;field_33021:F
-
field_33022
private static final float field_33022- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official e
Lfaz;e:F
intermediary field_33022
Lnet/minecraft/class_1140;field_33022:F
named field_33022
Lnet/minecraft/client/sound/SoundSystem;field_33022:F
-
field_33023
private static final float field_33023- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official f
Lfaz;f:F
intermediary field_33023
Lnet/minecraft/class_1140;field_33023:F
named field_33023
Lnet/minecraft/client/sound/SoundSystem;field_33023:F
-
field_33024
private static final float field_33024- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official g
Lfaz;g:F
intermediary field_33024
Lnet/minecraft/class_1140;field_33024:F
named field_33024
Lnet/minecraft/client/sound/SoundSystem;field_33024:F
-
field_33025
private static final int field_33025- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official h
Lfaz;h:I
intermediary field_33025
Lnet/minecraft/class_1140;field_33025:I
named field_33025
Lnet/minecraft/client/sound/SoundSystem;field_33025:I
-
unknownSounds
- Mappings:
Namespace Name Mixin selector official i
Lfaz;i:Ljava/util/Set;
intermediary field_5561
Lnet/minecraft/class_1140;field_5561:Ljava/util/Set;
named unknownSounds
Lnet/minecraft/client/sound/SoundSystem;unknownSounds:Ljava/util/Set;
-
field_33020
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official a
Lfaz;a:Ljava/lang/String;
intermediary field_33020
Lnet/minecraft/class_1140;field_33020:Ljava/lang/String;
named field_33020
Lnet/minecraft/client/sound/SoundSystem;field_33020:Ljava/lang/String;
-
loader
- Mappings:
Namespace Name Mixin selector official j
Lfaz;j:Lfbc;
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
- Mappings:
Namespace Name Mixin selector official k
Lfaz;k:Ldvs;
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 l
Lfaz;l:Z
intermediary field_5563
Lnet/minecraft/class_1140;field_5563:Z
named started
Lnet/minecraft/client/sound/SoundSystem;started:Z
-
soundEngine
- Mappings:
Namespace Name Mixin selector official m
Lfaz;m:Ldoj;
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
- Mappings:
Namespace Name Mixin selector official n
Lfaz;n:Ldok;
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
- Mappings:
Namespace Name Mixin selector official o
Lfaz;o:Lfay;
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
- Mappings:
Namespace Name Mixin selector official p
Lfaz;p:Lfba;
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
- Mappings:
Namespace Name Mixin selector official q
Lfaz;q:Lfav;
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 r
Lfaz;r:I
intermediary field_5550
Lnet/minecraft/class_1140;field_5550:I
named ticks
Lnet/minecraft/client/sound/SoundSystem;ticks:I
-
sources
- Mappings:
Namespace Name Mixin selector official s
Lfaz;s: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
- Mappings:
Namespace Name Mixin selector official t
Lfaz;t: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
- Mappings:
Namespace Name Mixin selector official u
Lfaz;u: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
- Mappings:
Namespace Name Mixin selector official v
Lfaz;v: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
- Mappings:
Namespace Name Mixin selector official w
Lfaz;w: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
- Mappings:
Namespace Name Mixin selector official x
Lfaz;x: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
- Mappings:
Namespace Name Mixin selector official y
Lfaz;y: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
- Mappings:
Namespace Name Mixin selector official z
Lfaz;z: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
- Mappings:
Namespace Name Mixin selector official <init>
Lfaz;<init>(Lfbc;Ldvs;Ladt;)V
intermediary <init>
Lnet/minecraft/class_1140;<init>(Lnet/minecraft/class_1144;Lnet/minecraft/class_315;Lnet/minecraft/class_3300;)V
named <init>
Lnet/minecraft/client/sound/SoundSystem;<init>(Lnet/minecraft/client/sound/SoundManager;Lnet/minecraft/client/option/GameOptions;Lnet/minecraft/resource/ResourceManager;)V
-
-
Method Details
-
reloadSounds
public void reloadSounds()- Mappings:
Namespace Name Mixin selector official a
Lfaz;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 g
Lfaz;g()V
intermediary method_4846
Lnet/minecraft/class_1140;method_4846()V
named start
Lnet/minecraft/client/sound/SoundSystem;start()V
-
getSoundVolume
- Mappings:
Namespace Name Mixin selector official a
Lfaz;a(Laff;)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
- Mappings:
Namespace Name Mixin selector official a
Lfaz;a(Laff;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
Lfaz;b()V
intermediary method_4856
Lnet/minecraft/class_1140;method_4856()V
named stop
Lnet/minecraft/client/sound/SoundSystem;stop()V
-
stop
- Mappings:
Namespace Name Mixin selector official a
Lfaz;a(Lfac;)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
Lfaz;c()V
intermediary method_4843
Lnet/minecraft/class_1140;method_4843()V
named stopAll
Lnet/minecraft/client/sound/SoundSystem;stopAll()V
-
registerListener
- Mappings:
Namespace Name Mixin selector official a
Lfaz;a(Lfbb;)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
- Mappings:
Namespace Name Mixin selector official b
Lfaz;b(Lfbb;)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
-
tick
public void tick(boolean bool)- Mappings:
Namespace Name Mixin selector official a
Lfaz;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 h
Lfaz;h()V
intermediary method_4857
Lnet/minecraft/class_1140;method_4857()V
named tick
Lnet/minecraft/client/sound/SoundSystem;tick()V
-
canRepeatInstantly
- Mappings:
Namespace Name Mixin selector official d
Lfaz;d(Lfac;)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
- Mappings:
Namespace Name Mixin selector official e
Lfaz;e(Lfac;)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
- Mappings:
Namespace Name Mixin selector official f
Lfaz;f(Lfac;)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
- Mappings:
Namespace Name Mixin selector official b
Lfaz;b(Lfac;)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
- Mappings:
Namespace Name Mixin selector official c
Lfaz;c(Lfac;)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
- Mappings:
Namespace Name Mixin selector official a
Lfaz;a(Lfad;)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
- Mappings:
Namespace Name Mixin selector official a
Lfaz;a(Lezz;)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
- Mappings:
Namespace Name Mixin selector official g
Lfaz;g(Lfac;)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
- Mappings:
Namespace Name Mixin selector official h
Lfaz;h(Lfac;)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
-
pauseAll
public void pauseAll()- Mappings:
Namespace Name Mixin selector official d
Lfaz;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
Lfaz;e()V
intermediary method_19762
Lnet/minecraft/class_1140;method_19762()V
named resumeAll
Lnet/minecraft/client/sound/SoundSystem;resumeAll()V
-
play
- Mappings:
Namespace Name Mixin selector official a
Lfaz;a(Lfac;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
- Mappings:
Namespace Name Mixin selector official a
Lfaz;a(Lduz;)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
Lfaz;a(Lww;Laff;)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
- Mappings:
Namespace Name Mixin selector official f
Lfaz;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;
-