Package net.minecraft.client.sound
Class SoundSystem
java.lang.Object
net.minecraft.client.sound.SoundSystem
- Mappings:
Namespace Name official fazintermediary net/minecraft/class_1140named net/minecraft/client/sound/SoundSystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Channelstatic Stringprivate static floatprivate static floatprivate static floatprivate static floatprivate static intprivate SoundListenerprivate List<SoundInstanceListener>private SoundManagerprivate static Loggerprivate static Markerprivate GameOptionsprivate Map<SoundInstance,Integer>private SoundEngineprivate SoundLoaderprivate Multimap<SoundCategory,SoundInstance>private List<TickableSoundInstance>private Map<SoundInstance,Channel.SourceManager>private booleanprivate Map<SoundInstance,Integer>private SoundExecutorprivate List<TickableSoundInstance>private intprivate static Set<Identifier> -
Constructor Summary
ConstructorsConstructorDescriptionSoundSystem(SoundManager loader, GameOptions settings, ResourceManager resourceManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPreloadedSound(Sound sound)private static booleancanRepeatInstantly(SoundInstance sound)private floatgetAdjustedPitch(SoundInstance sound)private floatgetAdjustedVolume(SoundInstance sound)private floatgetSoundVolume(@Nullable SoundCategory category)booleanisPlaying(SoundInstance sound)private static booleanisRepeatDelayed(SoundInstance sound)voidpauseAll()voidplay(SoundInstance sound)voidplay(SoundInstance sound, int delay)voidplayNextTick(TickableSoundInstance sound)voidregisterListener(SoundInstanceListener listener)voidvoidprivate static booleanshouldRepeatInstantly(SoundInstance sound)private voidstart()voidstop()voidstop(SoundInstance sound)voidstopAll()voidstopSounds(@Nullable Identifier id, @Nullable SoundCategory category)private voidtick()voidtick(boolean bool)voidunregisterListener(SoundInstanceListener listener)voidupdateListenerPosition(Camera camera)voidupdateSoundVolume(SoundCategory category, float volume)
-
Field Details
-
MARKER
- Mappings:
Namespace Name Mixin selector official bLfaz;b:Lorg/apache/logging/log4j/Marker;intermediary field_5553Lnet/minecraft/class_1140;field_5553:Lorg/apache/logging/log4j/Marker;named MARKERLnet/minecraft/client/sound/SoundSystem;MARKER:Lorg/apache/logging/log4j/Marker;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official cLfaz;c:Lorg/apache/logging/log4j/Logger;intermediary field_5559Lnet/minecraft/class_1140;field_5559:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/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 dLfaz;d:Fintermediary field_33021Lnet/minecraft/class_1140;field_33021:Fnamed field_33021Lnet/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 eLfaz;e:Fintermediary field_33022Lnet/minecraft/class_1140;field_33022:Fnamed field_33022Lnet/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 fLfaz;f:Fintermediary field_33023Lnet/minecraft/class_1140;field_33023:Fnamed field_33023Lnet/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 gLfaz;g:Fintermediary field_33024Lnet/minecraft/class_1140;field_33024:Fnamed field_33024Lnet/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 hLfaz;h:Iintermediary field_33025Lnet/minecraft/class_1140;field_33025:Inamed field_33025Lnet/minecraft/client/sound/SoundSystem;field_33025:I
-
unknownSounds
- Mappings:
Namespace Name Mixin selector official iLfaz;i:Ljava/util/Set;intermediary field_5561Lnet/minecraft/class_1140;field_5561:Ljava/util/Set;named unknownSoundsLnet/minecraft/client/sound/SoundSystem;unknownSounds:Ljava/util/Set;
-
field_33020
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLfaz;a:Ljava/lang/String;intermediary field_33020Lnet/minecraft/class_1140;field_33020:Ljava/lang/String;named field_33020Lnet/minecraft/client/sound/SoundSystem;field_33020:Ljava/lang/String;
-
loader
- Mappings:
Namespace Name Mixin selector official jLfaz;j:Lfbc;intermediary field_5552Lnet/minecraft/class_1140;field_5552:Lnet/minecraft/class_1144;named loaderLnet/minecraft/client/sound/SoundSystem;loader:Lnet/minecraft/client/sound/SoundManager;
-
settings
- Mappings:
Namespace Name Mixin selector official kLfaz;k:Ldvs;intermediary field_5555Lnet/minecraft/class_1140;field_5555:Lnet/minecraft/class_315;named settingsLnet/minecraft/client/sound/SoundSystem;settings:Lnet/minecraft/client/option/GameOptions;
-
started
private boolean started- Mappings:
Namespace Name Mixin selector official lLfaz;l:Zintermediary field_5563Lnet/minecraft/class_1140;field_5563:Znamed startedLnet/minecraft/client/sound/SoundSystem;started:Z
-
soundEngine
- Mappings:
Namespace Name Mixin selector official mLfaz;m:Ldoj;intermediary field_18945Lnet/minecraft/class_1140;field_18945:Lnet/minecraft/class_4225;named soundEngineLnet/minecraft/client/sound/SoundSystem;soundEngine:Lnet/minecraft/client/sound/SoundEngine;
-
listener
- Mappings:
Namespace Name Mixin selector official nLfaz;n:Ldok;intermediary field_18946Lnet/minecraft/class_1140;field_18946:Lnet/minecraft/class_4227;named listenerLnet/minecraft/client/sound/SoundSystem;listener:Lnet/minecraft/client/sound/SoundListener;
-
soundLoader
- Mappings:
Namespace Name Mixin selector official oLfaz;o:Lfay;intermediary field_18947Lnet/minecraft/class_1140;field_18947:Lnet/minecraft/class_4237;named soundLoaderLnet/minecraft/client/sound/SoundSystem;soundLoader:Lnet/minecraft/client/sound/SoundLoader;
-
taskQueue
- Mappings:
Namespace Name Mixin selector official pLfaz;p:Lfba;intermediary field_18948Lnet/minecraft/class_1140;field_18948:Lnet/minecraft/class_4238;named taskQueueLnet/minecraft/client/sound/SoundSystem;taskQueue:Lnet/minecraft/client/sound/SoundExecutor;
-
channel
- Mappings:
Namespace Name Mixin selector official qLfaz;q:Lfav;intermediary field_18949Lnet/minecraft/class_1140;field_18949:Lnet/minecraft/class_4235;named channelLnet/minecraft/client/sound/SoundSystem;channel:Lnet/minecraft/client/sound/Channel;
-
ticks
private int ticks- Mappings:
Namespace Name Mixin selector official rLfaz;r:Iintermediary field_5550Lnet/minecraft/class_1140;field_5550:Inamed ticksLnet/minecraft/client/sound/SoundSystem;ticks:I
-
sources
- Mappings:
Namespace Name Mixin selector official sLfaz;s:Ljava/util/Map;intermediary field_18950Lnet/minecraft/class_1140;field_18950:Ljava/util/Map;named sourcesLnet/minecraft/client/sound/SoundSystem;sources:Ljava/util/Map;
-
sounds
- Mappings:
Namespace Name Mixin selector official tLfaz;t:Lcom/google/common/collect/Multimap;intermediary field_18951Lnet/minecraft/class_1140;field_18951:Lcom/google/common/collect/Multimap;named soundsLnet/minecraft/client/sound/SoundSystem;sounds:Lcom/google/common/collect/Multimap;
-
tickingSounds
- Mappings:
Namespace Name Mixin selector official uLfaz;u:Ljava/util/List;intermediary field_5557Lnet/minecraft/class_1140;field_5557:Ljava/util/List;named tickingSoundsLnet/minecraft/client/sound/SoundSystem;tickingSounds:Ljava/util/List;
-
startTicks
- Mappings:
Namespace Name Mixin selector official vLfaz;v:Ljava/util/Map;intermediary field_5566Lnet/minecraft/class_1140;field_5566:Ljava/util/Map;named startTicksLnet/minecraft/client/sound/SoundSystem;startTicks:Ljava/util/Map;
-
soundEndTicks
- Mappings:
Namespace Name Mixin selector official wLfaz;w:Ljava/util/Map;intermediary field_18952Lnet/minecraft/class_1140;field_18952:Ljava/util/Map;named soundEndTicksLnet/minecraft/client/sound/SoundSystem;soundEndTicks:Ljava/util/Map;
-
listeners
- Mappings:
Namespace Name Mixin selector official xLfaz;x:Ljava/util/List;intermediary field_5558Lnet/minecraft/class_1140;field_5558:Ljava/util/List;named listenersLnet/minecraft/client/sound/SoundSystem;listeners:Ljava/util/List;
-
soundsToPlayNextTick
- Mappings:
Namespace Name Mixin selector official yLfaz;y:Ljava/util/List;intermediary field_20532Lnet/minecraft/class_1140;field_20532:Ljava/util/List;named soundsToPlayNextTickLnet/minecraft/client/sound/SoundSystem;soundsToPlayNextTick:Ljava/util/List;
-
preloadedSounds
- Mappings:
Namespace Name Mixin selector official zLfaz;z:Ljava/util/List;intermediary field_5551Lnet/minecraft/class_1140;field_5551:Ljava/util/List;named preloadedSoundsLnet/minecraft/client/sound/SoundSystem;preloadedSounds:Ljava/util/List;
-
-
Constructor Details
-
SoundSystem
- Mappings:
Namespace Name Mixin selector official <init>Lfaz;<init>(Lfbc;Ldvs;Ladt;)Vintermediary <init>Lnet/minecraft/class_1140;<init>(Lnet/minecraft/class_1144;Lnet/minecraft/class_315;Lnet/minecraft/class_3300;)Vnamed <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 aLfaz;a()Vintermediary method_4837Lnet/minecraft/class_1140;method_4837()Vnamed reloadSoundsLnet/minecraft/client/sound/SoundSystem;reloadSounds()V
-
start
private void start()- Mappings:
Namespace Name Mixin selector official gLfaz;g()Vintermediary method_4846Lnet/minecraft/class_1140;method_4846()Vnamed startLnet/minecraft/client/sound/SoundSystem;start()V
-
getSoundVolume
- Mappings:
Namespace Name Mixin selector official aLfaz;a(Laff;)Fintermediary method_4850Lnet/minecraft/class_1140;method_4850(Lnet/minecraft/class_3419;)Fnamed getSoundVolumeLnet/minecraft/client/sound/SoundSystem;getSoundVolume(Lnet/minecraft/sound/SoundCategory;)F
-
updateSoundVolume
- Mappings:
Namespace Name Mixin selector official aLfaz;a(Laff;F)Vintermediary method_4844Lnet/minecraft/class_1140;method_4844(Lnet/minecraft/class_3419;F)Vnamed updateSoundVolumeLnet/minecraft/client/sound/SoundSystem;updateSoundVolume(Lnet/minecraft/sound/SoundCategory;F)V
-
stop
public void stop()- Mappings:
Namespace Name Mixin selector official bLfaz;b()Vintermediary method_4856Lnet/minecraft/class_1140;method_4856()Vnamed stopLnet/minecraft/client/sound/SoundSystem;stop()V
-
stop
- Mappings:
Namespace Name Mixin selector official aLfaz;a(Lfac;)Vintermediary method_19753Lnet/minecraft/class_1140;method_19753(Lnet/minecraft/class_1113;)Vnamed stopLnet/minecraft/client/sound/SoundSystem;stop(Lnet/minecraft/client/sound/SoundInstance;)V
-
stopAll
public void stopAll()- Mappings:
Namespace Name Mixin selector official cLfaz;c()Vintermediary method_4843Lnet/minecraft/class_1140;method_4843()Vnamed stopAllLnet/minecraft/client/sound/SoundSystem;stopAll()V
-
registerListener
- Mappings:
Namespace Name Mixin selector official aLfaz;a(Lfbb;)Vintermediary method_4855Lnet/minecraft/class_1140;method_4855(Lnet/minecraft/class_1145;)Vnamed registerListenerLnet/minecraft/client/sound/SoundSystem;registerListener(Lnet/minecraft/client/sound/SoundInstanceListener;)V
-
unregisterListener
- Mappings:
Namespace Name Mixin selector official bLfaz;b(Lfbb;)Vintermediary method_4847Lnet/minecraft/class_1140;method_4847(Lnet/minecraft/class_1145;)Vnamed unregisterListenerLnet/minecraft/client/sound/SoundSystem;unregisterListener(Lnet/minecraft/client/sound/SoundInstanceListener;)V
-
tick
public void tick(boolean bool)- Mappings:
Namespace Name Mixin selector official aLfaz;a(Z)Vintermediary method_20185Lnet/minecraft/class_1140;method_20185(Z)Vnamed tickLnet/minecraft/client/sound/SoundSystem;tick(Z)V
-
tick
private void tick()- Mappings:
Namespace Name Mixin selector official hLfaz;h()Vintermediary method_4857Lnet/minecraft/class_1140;method_4857()Vnamed tickLnet/minecraft/client/sound/SoundSystem;tick()V
-
canRepeatInstantly
- Mappings:
Namespace Name Mixin selector official dLfaz;d(Lfac;)Zintermediary method_24878Lnet/minecraft/class_1140;method_24878(Lnet/minecraft/class_1113;)Znamed canRepeatInstantlyLnet/minecraft/client/sound/SoundSystem;canRepeatInstantly(Lnet/minecraft/client/sound/SoundInstance;)Z
-
isRepeatDelayed
- Mappings:
Namespace Name Mixin selector official eLfaz;e(Lfac;)Zintermediary method_24879Lnet/minecraft/class_1140;method_24879(Lnet/minecraft/class_1113;)Znamed isRepeatDelayedLnet/minecraft/client/sound/SoundSystem;isRepeatDelayed(Lnet/minecraft/client/sound/SoundInstance;)Z
-
shouldRepeatInstantly
- Mappings:
Namespace Name Mixin selector official fLfaz;f(Lfac;)Zintermediary method_24880Lnet/minecraft/class_1140;method_24880(Lnet/minecraft/class_1113;)Znamed shouldRepeatInstantlyLnet/minecraft/client/sound/SoundSystem;shouldRepeatInstantly(Lnet/minecraft/client/sound/SoundInstance;)Z
-
isPlaying
- Mappings:
Namespace Name Mixin selector official bLfaz;b(Lfac;)Zintermediary method_4835Lnet/minecraft/class_1140;method_4835(Lnet/minecraft/class_1113;)Znamed isPlayingLnet/minecraft/client/sound/SoundSystem;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Z
-
play
- Mappings:
Namespace Name Mixin selector official cLfaz;c(Lfac;)Vintermediary method_4854Lnet/minecraft/class_1140;method_4854(Lnet/minecraft/class_1113;)Vnamed playLnet/minecraft/client/sound/SoundSystem;play(Lnet/minecraft/client/sound/SoundInstance;)V
-
playNextTick
- Mappings:
Namespace Name Mixin selector official aLfaz;a(Lfad;)Vintermediary method_22139Lnet/minecraft/class_1140;method_22139(Lnet/minecraft/class_1117;)Vnamed playNextTickLnet/minecraft/client/sound/SoundSystem;playNextTick(Lnet/minecraft/client/sound/TickableSoundInstance;)V
-
addPreloadedSound
- Mappings:
Namespace Name Mixin selector official aLfaz;a(Lezz;)Vintermediary method_4851Lnet/minecraft/class_1140;method_4851(Lnet/minecraft/class_1111;)Vnamed addPreloadedSoundLnet/minecraft/client/sound/SoundSystem;addPreloadedSound(Lnet/minecraft/client/sound/Sound;)V
-
getAdjustedPitch
- Mappings:
Namespace Name Mixin selector official gLfaz;g(Lfac;)Fintermediary method_4849Lnet/minecraft/class_1140;method_4849(Lnet/minecraft/class_1113;)Fnamed getAdjustedPitchLnet/minecraft/client/sound/SoundSystem;getAdjustedPitch(Lnet/minecraft/client/sound/SoundInstance;)F
-
getAdjustedVolume
- Mappings:
Namespace Name Mixin selector official hLfaz;h(Lfac;)Fintermediary method_4853Lnet/minecraft/class_1140;method_4853(Lnet/minecraft/class_1113;)Fnamed getAdjustedVolumeLnet/minecraft/client/sound/SoundSystem;getAdjustedVolume(Lnet/minecraft/client/sound/SoundInstance;)F
-
pauseAll
public void pauseAll()- Mappings:
Namespace Name Mixin selector official dLfaz;d()Vintermediary method_19761Lnet/minecraft/class_1140;method_19761()Vnamed pauseAllLnet/minecraft/client/sound/SoundSystem;pauseAll()V
-
resumeAll
public void resumeAll()- Mappings:
Namespace Name Mixin selector official eLfaz;e()Vintermediary method_19762Lnet/minecraft/class_1140;method_19762()Vnamed resumeAllLnet/minecraft/client/sound/SoundSystem;resumeAll()V
-
play
- Mappings:
Namespace Name Mixin selector official aLfaz;a(Lfac;I)Vintermediary method_4852Lnet/minecraft/class_1140;method_4852(Lnet/minecraft/class_1113;I)Vnamed playLnet/minecraft/client/sound/SoundSystem;play(Lnet/minecraft/client/sound/SoundInstance;I)V
-
updateListenerPosition
- Mappings:
Namespace Name Mixin selector official aLfaz;a(Lduz;)Vintermediary method_4840Lnet/minecraft/class_1140;method_4840(Lnet/minecraft/class_4184;)Vnamed updateListenerPositionLnet/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 aLfaz;a(Lww;Laff;)Vintermediary method_4838Lnet/minecraft/class_1140;method_4838(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;)Vnamed stopSoundsLnet/minecraft/client/sound/SoundSystem;stopSounds(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;)V
-
getDebugString
- Mappings:
Namespace Name Mixin selector official fLfaz;f()Ljava/lang/String;intermediary method_20304Lnet/minecraft/class_1140;method_20304()Ljava/lang/String;named getDebugStringLnet/minecraft/client/sound/SoundSystem;getDebugString()Ljava/lang/String;
-