Package net.minecraft.client.sound
Class SoundSystem
java.lang.Object
net.minecraft.client.sound.SoundSystem
- Mappings:
Namespace Name named net/minecraft/client/sound/SoundSystemintermediary net/minecraft/class_1140official hpq
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Channelprivate final AtomicReference<SoundSystem.DeviceChangeStatus> private static final intstatic final Stringprivate longprivate final SoundListenerprivate final List<SoundInstanceListener> private final SoundManagerprivate static final Loggerprivate static final Markerprivate static final floatprivate static final floatprivate static final floatprivate static final longprivate static final floatstatic final Stringstatic final intprivate final GameOptionsprivate final Map<SoundInstance, Integer> private final SoundEngineprivate final SoundLoaderprivate final Multimap<SoundCategory, SoundInstance> private final Map<SoundInstance, Integer> private final List<TickableSoundInstance> private final Map<SoundInstance, Channel.SourceManager> private booleanprivate final SoundExecutorprivate final List<TickableSoundInstance> private intprivate static final Set<Identifier> -
Constructor Summary
ConstructorsConstructorDescriptionSoundSystem(SoundManager loader, GameOptions settings, ResourceFactory resourceFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPreloadedSound(Sound sound) private floatgetAdjustedPitch(SoundInstance sound) private floatgetAdjustedVolume(float volume, SoundCategory category) private floatgetAdjustedVolume(SoundInstance sound) private floatgetSoundVolume(@Nullable SoundCategory category) private static booleanhasRepeatDelay(SoundInstance sound) booleanisPlaying(SoundInstance sound) voidpauseAll()voidplay(SoundInstance sound) voidplay(SoundInstance sound, int delay) voidvoidregisterListener(SoundInstanceListener listener) voidvoidvoidsetVolume(SoundInstance sound, float volume) private static booleanshouldDelayRepeat(SoundInstance sound) private booleanprivate static booleanprivate voidstart()voidstop()voidstop(SoundInstance sound) voidvoidstopAll()voidstopSounds(@Nullable Identifier id, @Nullable SoundCategory category) private voidtick()voidtick(boolean paused) voidunregisterListener(SoundInstanceListener listener) voidupdateListenerPosition(Camera camera) voidupdateSoundVolume(SoundCategory category, float volume)
-
Field Details
-
MARKER
- Mappings:
Namespace Name Mixin selector named MARKERLnet/minecraft/client/sound/SoundSystem;MARKER:Lorg/slf4j/Marker;intermediary field_5553Lnet/minecraft/class_1140;field_5553:Lorg/slf4j/Marker;official dLhpq;d:Lorg/slf4j/Marker;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/sound/SoundSystem;LOGGER:Lorg/slf4j/Logger;intermediary field_5559Lnet/minecraft/class_1140;field_5559:Lorg/slf4j/Logger;official eLhpq;e:Lorg/slf4j/Logger;
-
MIN_PITCH
private static final float MIN_PITCH- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_PITCHLnet/minecraft/client/sound/SoundSystem;MIN_PITCH:Fintermediary field_33021Lnet/minecraft/class_1140;field_33021:Fofficial fLhpq;f:F
-
MAX_PITCH
private static final float MAX_PITCH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_PITCHLnet/minecraft/client/sound/SoundSystem;MAX_PITCH:Fintermediary field_33022Lnet/minecraft/class_1140;field_33022:Fofficial gLhpq;g:F
-
MIN_VOLUME
private static final float MIN_VOLUME- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_VOLUMELnet/minecraft/client/sound/SoundSystem;MIN_VOLUME:Fintermediary field_33023Lnet/minecraft/class_1140;field_33023:Fofficial hLhpq;h:F
-
MAX_VOLUME
private static final float MAX_VOLUME- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_VOLUMELnet/minecraft/client/sound/SoundSystem;MAX_VOLUME:Fintermediary field_33024Lnet/minecraft/class_1140;field_33024:Fofficial iLhpq;i:F
-
field_33025
private static final int field_33025- See Also:
- Mappings:
Namespace Name Mixin selector named field_33025Lnet/minecraft/client/sound/SoundSystem;field_33025:Iintermediary field_33025Lnet/minecraft/class_1140;field_33025:Iofficial jLhpq;j:I
-
UNKNOWN_SOUNDS
- Mappings:
Namespace Name Mixin selector named UNKNOWN_SOUNDSLnet/minecraft/client/sound/SoundSystem;UNKNOWN_SOUNDS:Ljava/util/Set;intermediary field_5561Lnet/minecraft/class_1140;field_5561:Ljava/util/Set;official kLhpq;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_SOUNDSLnet/minecraft/client/sound/SoundSystem;MIN_TIME_INTERVAL_TO_RELOAD_SOUNDS:Jintermediary field_34966Lnet/minecraft/class_1140;field_34966:Jofficial lLhpq;l:J
-
FOR_THE_DEBUG
- See Also:
- Mappings:
Namespace Name Mixin selector named FOR_THE_DEBUGLnet/minecraft/client/sound/SoundSystem;FOR_THE_DEBUG:Ljava/lang/String;intermediary field_33020Lnet/minecraft/class_1140;field_33020:Ljava/lang/String;official aLhpq;a:Ljava/lang/String;
-
OPENAL_SOFT_ON
- See Also:
- Mappings:
Namespace Name Mixin selector named OPENAL_SOFT_ONLnet/minecraft/client/sound/SoundSystem;OPENAL_SOFT_ON:Ljava/lang/String;intermediary field_34827Lnet/minecraft/class_1140;field_34827:Ljava/lang/String;official bLhpq;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_LENGTHLnet/minecraft/client/sound/SoundSystem;OPENAL_SOFT_ON_LENGTH:Iintermediary field_34828Lnet/minecraft/class_1140;field_34828:Iofficial cLhpq;c:I
-
loader
- Mappings:
Namespace Name Mixin selector named loaderLnet/minecraft/client/sound/SoundSystem;loader:Lnet/minecraft/client/sound/SoundManager;intermediary field_5552Lnet/minecraft/class_1140;field_5552:Lnet/minecraft/class_1144;official mLhpq;m:Lhpt;
-
settings
- Mappings:
Namespace Name Mixin selector named settingsLnet/minecraft/client/sound/SoundSystem;settings:Lnet/minecraft/client/option/GameOptions;intermediary field_5555Lnet/minecraft/class_1140;field_5555:Lnet/minecraft/class_315;official nLhpq;n:Lfqu;
-
started
private boolean started- Mappings:
Namespace Name Mixin selector named startedLnet/minecraft/client/sound/SoundSystem;started:Zintermediary field_5563Lnet/minecraft/class_1140;field_5563:Zofficial oLhpq;o:Z
-
soundEngine
- Mappings:
Namespace Name Mixin selector named soundEngineLnet/minecraft/client/sound/SoundSystem;soundEngine:Lnet/minecraft/client/sound/SoundEngine;intermediary field_18945Lnet/minecraft/class_1140;field_18945:Lnet/minecraft/class_4225;official pLhpq;p:Lfik;
-
listener
- Mappings:
Namespace Name Mixin selector named listenerLnet/minecraft/client/sound/SoundSystem;listener:Lnet/minecraft/client/sound/SoundListener;intermediary field_18946Lnet/minecraft/class_1140;field_18946:Lnet/minecraft/class_4227;official qLhpq;q:Lfil;
-
soundLoader
- Mappings:
Namespace Name Mixin selector named soundLoaderLnet/minecraft/client/sound/SoundSystem;soundLoader:Lnet/minecraft/client/sound/SoundLoader;intermediary field_18947Lnet/minecraft/class_1140;field_18947:Lnet/minecraft/class_4237;official rLhpq;r:Lhpp;
-
taskQueue
- Mappings:
Namespace Name Mixin selector named taskQueueLnet/minecraft/client/sound/SoundSystem;taskQueue:Lnet/minecraft/client/sound/SoundExecutor;intermediary field_18948Lnet/minecraft/class_1140;field_18948:Lnet/minecraft/class_4238;official sLhpq;s:Lhpr;
-
channel
- Mappings:
Namespace Name Mixin selector named channelLnet/minecraft/client/sound/SoundSystem;channel:Lnet/minecraft/client/sound/Channel;intermediary field_18949Lnet/minecraft/class_1140;field_18949:Lnet/minecraft/class_4235;official tLhpq;t:Lhph;
-
ticks
private int ticks- Mappings:
Namespace Name Mixin selector named ticksLnet/minecraft/client/sound/SoundSystem;ticks:Iintermediary field_5550Lnet/minecraft/class_1140;field_5550:Iofficial uLhpq;u:I
-
lastSoundDeviceCheckTime
private long lastSoundDeviceCheckTime- Mappings:
Namespace Name Mixin selector named lastSoundDeviceCheckTimeLnet/minecraft/client/sound/SoundSystem;lastSoundDeviceCheckTime:Jintermediary field_34967Lnet/minecraft/class_1140;field_34967:Jofficial vLhpq;v:J
-
deviceChangeStatus
- Mappings:
Namespace Name Mixin selector named deviceChangeStatusLnet/minecraft/client/sound/SoundSystem;deviceChangeStatus:Ljava/util/concurrent/atomic/AtomicReference;intermediary field_35083Lnet/minecraft/class_1140;field_35083:Ljava/util/concurrent/atomic/AtomicReference;official wLhpq;w:Ljava/util/concurrent/atomic/AtomicReference;
-
sources
- Mappings:
Namespace Name Mixin selector named sourcesLnet/minecraft/client/sound/SoundSystem;sources:Ljava/util/Map;intermediary field_18950Lnet/minecraft/class_1140;field_18950:Ljava/util/Map;official xLhpq;x:Ljava/util/Map;
-
sounds
- Mappings:
Namespace Name Mixin selector named soundsLnet/minecraft/client/sound/SoundSystem;sounds:Lcom/google/common/collect/Multimap;intermediary field_18951Lnet/minecraft/class_1140;field_18951:Lcom/google/common/collect/Multimap;official yLhpq;y:Lcom/google/common/collect/Multimap;
-
tickingSounds
- Mappings:
Namespace Name Mixin selector named tickingSoundsLnet/minecraft/client/sound/SoundSystem;tickingSounds:Ljava/util/List;intermediary field_5557Lnet/minecraft/class_1140;field_5557:Ljava/util/List;official zLhpq;z:Ljava/util/List;
-
soundStartTicks
- Mappings:
Namespace Name Mixin selector named soundStartTicksLnet/minecraft/client/sound/SoundSystem;soundStartTicks:Ljava/util/Map;intermediary field_5566Lnet/minecraft/class_1140;field_5566:Ljava/util/Map;official ALhpq;A:Ljava/util/Map;
-
soundEndTicks
- Mappings:
Namespace Name Mixin selector named soundEndTicksLnet/minecraft/client/sound/SoundSystem;soundEndTicks:Ljava/util/Map;intermediary field_18952Lnet/minecraft/class_1140;field_18952:Ljava/util/Map;official BLhpq;B:Ljava/util/Map;
-
listeners
- Mappings:
Namespace Name Mixin selector named listenersLnet/minecraft/client/sound/SoundSystem;listeners:Ljava/util/List;intermediary field_5558Lnet/minecraft/class_1140;field_5558:Ljava/util/List;official CLhpq;C:Ljava/util/List;
-
soundsToPlayNextTick
- Mappings:
Namespace Name Mixin selector named soundsToPlayNextTickLnet/minecraft/client/sound/SoundSystem;soundsToPlayNextTick:Ljava/util/List;intermediary field_20532Lnet/minecraft/class_1140;field_20532:Ljava/util/List;official DLhpq;D:Ljava/util/List;
-
preloadedSounds
- Mappings:
Namespace Name Mixin selector named preloadedSoundsLnet/minecraft/client/sound/SoundSystem;preloadedSounds:Ljava/util/List;intermediary field_5551Lnet/minecraft/class_1140;field_5551:Ljava/util/List;official ELhpq;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;)Vintermediary <init>Lnet/minecraft/class_1140;<init>(Lnet/minecraft/class_1144;Lnet/minecraft/class_315;Lnet/minecraft/class_5912;)Vofficial <init>Lhpq;<init>(Lhpt;Lfqu;Lavr;)V
-
-
Method Details
-
reloadSounds
public void reloadSounds()- Mappings:
Namespace Name Mixin selector named reloadSoundsLnet/minecraft/client/sound/SoundSystem;reloadSounds()Vintermediary method_4837Lnet/minecraft/class_1140;method_4837()Vofficial aLhpq;a()V
-
start
private void start()- Mappings:
Namespace Name Mixin selector named startLnet/minecraft/client/sound/SoundSystem;start()Vintermediary method_4846Lnet/minecraft/class_1140;method_4846()Vofficial jLhpq;j()V
-
getSoundVolume
- Mappings:
Namespace Name Mixin selector named getSoundVolumeLnet/minecraft/client/sound/SoundSystem;getSoundVolume(Lnet/minecraft/sound/SoundCategory;)Fintermediary method_4850Lnet/minecraft/class_1140;method_4850(Lnet/minecraft/class_3419;)Fofficial aLhpq;a(Lawz;)F
-
updateSoundVolume
- Mappings:
Namespace Name Mixin selector named updateSoundVolumeLnet/minecraft/client/sound/SoundSystem;updateSoundVolume(Lnet/minecraft/sound/SoundCategory;F)Vintermediary method_4844Lnet/minecraft/class_1140;method_4844(Lnet/minecraft/class_3419;F)Vofficial aLhpq;a(Lawz;F)V
-
stop
public void stop()- Mappings:
Namespace Name Mixin selector named stopLnet/minecraft/client/sound/SoundSystem;stop()Vintermediary method_4856Lnet/minecraft/class_1140;method_4856()Vofficial bLhpq;b()V
-
stopAbruptly
public void stopAbruptly()- Mappings:
Namespace Name Mixin selector named stopAbruptlyLnet/minecraft/client/sound/SoundSystem;stopAbruptly()Vintermediary method_54648Lnet/minecraft/class_1140;method_54648()Vofficial cLhpq;c()V
-
stop
- Mappings:
Namespace Name Mixin selector named stopLnet/minecraft/client/sound/SoundSystem;stop(Lnet/minecraft/client/sound/SoundInstance;)Vintermediary method_19753Lnet/minecraft/class_1140;method_19753(Lnet/minecraft/class_1113;)Vofficial aLhpq;a(Lhon;)V
-
setVolume
- Mappings:
Namespace Name Mixin selector named setVolumeLnet/minecraft/client/sound/SoundSystem;setVolume(Lnet/minecraft/client/sound/SoundInstance;F)Vintermediary method_65257Lnet/minecraft/class_1140;method_65257(Lnet/minecraft/class_1113;F)Vofficial aLhpq;a(Lhon;F)V
-
stopAll
public void stopAll()- Mappings:
Namespace Name Mixin selector named stopAllLnet/minecraft/client/sound/SoundSystem;stopAll()Vintermediary method_4843Lnet/minecraft/class_1140;method_4843()Vofficial dLhpq;d()V
-
registerListener
- Mappings:
Namespace Name Mixin selector named registerListenerLnet/minecraft/client/sound/SoundSystem;registerListener(Lnet/minecraft/client/sound/SoundInstanceListener;)Vintermediary method_4855Lnet/minecraft/class_1140;method_4855(Lnet/minecraft/class_1145;)Vofficial aLhpq;a(Lhps;)V
-
unregisterListener
- Mappings:
Namespace Name Mixin selector named unregisterListenerLnet/minecraft/client/sound/SoundSystem;unregisterListener(Lnet/minecraft/client/sound/SoundInstanceListener;)Vintermediary method_4847Lnet/minecraft/class_1140;method_4847(Lnet/minecraft/class_1145;)Vofficial bLhpq;b(Lhps;)V
-
shouldReloadSounds
private boolean shouldReloadSounds()- Mappings:
Namespace Name Mixin selector named shouldReloadSoundsLnet/minecraft/client/sound/SoundSystem;shouldReloadSounds()Zintermediary method_38744Lnet/minecraft/class_1140;method_38744()Zofficial kLhpq;k()Z
-
tick
public void tick(boolean paused) - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/client/sound/SoundSystem;tick(Z)Vintermediary method_20185Lnet/minecraft/class_1140;method_20185(Z)Vofficial aLhpq;a(Z)V
-
tick
private void tick()- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/client/sound/SoundSystem;tick()Vintermediary method_4857Lnet/minecraft/class_1140;method_4857()Vofficial lLhpq;l()V
-
hasRepeatDelay
- Mappings:
Namespace Name Mixin selector named hasRepeatDelayLnet/minecraft/client/sound/SoundSystem;hasRepeatDelay(Lnet/minecraft/client/sound/SoundInstance;)Zintermediary method_24878Lnet/minecraft/class_1140;method_24878(Lnet/minecraft/class_1113;)Zofficial dLhpq;d(Lhon;)Z
-
shouldDelayRepeat
- Mappings:
Namespace Name Mixin selector named shouldDelayRepeatLnet/minecraft/client/sound/SoundSystem;shouldDelayRepeat(Lnet/minecraft/client/sound/SoundInstance;)Zintermediary method_24879Lnet/minecraft/class_1140;method_24879(Lnet/minecraft/class_1113;)Zofficial eLhpq;e(Lhon;)Z
-
shouldRepeatInstantly
- Mappings:
Namespace Name Mixin selector named shouldRepeatInstantlyLnet/minecraft/client/sound/SoundSystem;shouldRepeatInstantly(Lnet/minecraft/client/sound/SoundInstance;)Zintermediary method_24880Lnet/minecraft/class_1140;method_24880(Lnet/minecraft/class_1113;)Zofficial fLhpq;f(Lhon;)Z
-
isPlaying
- Mappings:
Namespace Name Mixin selector named isPlayingLnet/minecraft/client/sound/SoundSystem;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Zintermediary method_4835Lnet/minecraft/class_1140;method_4835(Lnet/minecraft/class_1113;)Zofficial bLhpq;b(Lhon;)Z
-
play
- Mappings:
Namespace Name Mixin selector named playLnet/minecraft/client/sound/SoundSystem;play(Lnet/minecraft/client/sound/SoundInstance;)Vintermediary method_4854Lnet/minecraft/class_1140;method_4854(Lnet/minecraft/class_1113;)Vofficial cLhpq;c(Lhon;)V
-
playNextTick
- Mappings:
Namespace Name Mixin selector named playNextTickLnet/minecraft/client/sound/SoundSystem;playNextTick(Lnet/minecraft/client/sound/TickableSoundInstance;)Vintermediary method_22139Lnet/minecraft/class_1140;method_22139(Lnet/minecraft/class_1117;)Vofficial aLhpq;a(Lhoo;)V
-
addPreloadedSound
- Mappings:
Namespace Name Mixin selector named addPreloadedSoundLnet/minecraft/client/sound/SoundSystem;addPreloadedSound(Lnet/minecraft/client/sound/Sound;)Vintermediary method_4851Lnet/minecraft/class_1140;method_4851(Lnet/minecraft/class_1111;)Vofficial aLhpq;a(Lhok;)V
-
getAdjustedPitch
- Mappings:
Namespace Name Mixin selector named getAdjustedPitchLnet/minecraft/client/sound/SoundSystem;getAdjustedPitch(Lnet/minecraft/client/sound/SoundInstance;)Fintermediary method_4849Lnet/minecraft/class_1140;method_4849(Lnet/minecraft/class_1113;)Fofficial gLhpq;g(Lhon;)F
-
getAdjustedVolume
- Mappings:
Namespace Name Mixin selector named getAdjustedVolumeLnet/minecraft/client/sound/SoundSystem;getAdjustedVolume(Lnet/minecraft/client/sound/SoundInstance;)Fintermediary method_4853Lnet/minecraft/class_1140;method_4853(Lnet/minecraft/class_1113;)Fofficial hLhpq;h(Lhon;)F
-
getAdjustedVolume
- Mappings:
Namespace Name Mixin selector named getAdjustedVolumeLnet/minecraft/client/sound/SoundSystem;getAdjustedVolume(FLnet/minecraft/sound/SoundCategory;)Fintermediary method_43222Lnet/minecraft/class_1140;method_43222(FLnet/minecraft/class_3419;)Fofficial aLhpq;a(FLawz;)F
-
pauseAll
public void pauseAll()- Mappings:
Namespace Name Mixin selector named pauseAllLnet/minecraft/client/sound/SoundSystem;pauseAll()Vintermediary method_19761Lnet/minecraft/class_1140;method_19761()Vofficial eLhpq;e()V
-
resumeAll
public void resumeAll()- Mappings:
Namespace Name Mixin selector named resumeAllLnet/minecraft/client/sound/SoundSystem;resumeAll()Vintermediary method_19762Lnet/minecraft/class_1140;method_19762()Vofficial fLhpq;f()V
-
play
- Mappings:
Namespace Name Mixin selector named playLnet/minecraft/client/sound/SoundSystem;play(Lnet/minecraft/client/sound/SoundInstance;I)Vintermediary method_4852Lnet/minecraft/class_1140;method_4852(Lnet/minecraft/class_1113;I)Vofficial aLhpq;a(Lhon;I)V
-
updateListenerPosition
- Mappings:
Namespace Name Mixin selector named updateListenerPositionLnet/minecraft/client/sound/SoundSystem;updateListenerPosition(Lnet/minecraft/client/render/Camera;)Vintermediary method_4840Lnet/minecraft/class_1140;method_4840(Lnet/minecraft/class_4184;)Vofficial aLhpq;a(Lfpy;)V
-
stopSounds
public void stopSounds(@Nullable @Nullable Identifier id, @Nullable @Nullable SoundCategory category) - Mappings:
Namespace Name Mixin selector named stopSoundsLnet/minecraft/client/sound/SoundSystem;stopSounds(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;)Vintermediary method_4838Lnet/minecraft/class_1140;method_4838(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;)Vofficial aLhpq;a(Lalr;Lawz;)V
-
getDebugString
- Mappings:
Namespace Name Mixin selector named getDebugStringLnet/minecraft/client/sound/SoundSystem;getDebugString()Ljava/lang/String;intermediary method_20304Lnet/minecraft/class_1140;method_20304()Ljava/lang/String;official gLhpq;g()Ljava/lang/String;
-
getSoundDevices
- Mappings:
Namespace Name Mixin selector named getSoundDevicesLnet/minecraft/client/sound/SoundSystem;getSoundDevices()Ljava/util/List;intermediary method_38564Lnet/minecraft/class_1140;method_38564()Ljava/util/List;official hLhpq;h()Ljava/util/List;
-
getListenerTransform
- Mappings:
Namespace Name Mixin selector named getListenerTransformLnet/minecraft/client/sound/SoundSystem;getListenerTransform()Lnet/minecraft/client/sound/SoundListenerTransform;intermediary method_55592Lnet/minecraft/class_1140;method_55592()Lnet/minecraft/class_9054;official iLhpq;i()Lfim;
-