Package net.minecraft.client.sound
Class SoundManager
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<SoundManager.SoundList>
net.minecraft.client.sound.SoundManager
- All Implemented Interfaces:
ResourceReloader
@Environment(CLIENT)
public class SoundManager
extends SinglePreparationResourceReloader<SoundManager.SoundList>
- Mappings:
Namespace Name named net/minecraft/client/sound/SoundManagerintermediary net/minecraft/class_1144official ihq
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Key<T>, ResourceReloader.Store, ResourceReloader.Synchronizer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Identifierprivate static final Gsonstatic final Identifierstatic final Soundstatic final WeightedSoundSet(package private) static final Loggerstatic final Soundprivate final Map<Identifier, Resource> private final Map<Identifier, WeightedSoundSet> private static final Stringprivate final SoundSystemprivate static final TypeToken<Map<String, SoundEntry>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(SoundManager.SoundList soundList, ResourceManager resourceManager, Profiler profiler) Handles the prepared intermediate object.voidclose()get(Identifier id) getKeys()booleanisPlaying(SoundInstance sound) (package private) static booleanisSoundResourcePresent(Sound sound, Identifier id, ResourceFactory resourceFactory) voidpauseAllExcept(SoundCategory[] categories) play(SoundInstance sound) voidplay(SoundInstance sound, int delay) voidprotected SoundManager.SoundListprepare(ResourceManager resourceManager, Profiler profiler) Prepares the intermediate object.voidregisterListener(SoundInstanceListener listener) voidvoidvoidsetVolume(SoundInstance sound, float volume) voidstop(SoundInstance sound) voidvoidstopAll()voidstopSounds(@Nullable Identifier id, @Nullable SoundCategory soundCategory) voidtick(boolean paused) voidunregisterListener(SoundInstanceListener listener) voidupdateListenerPosition(Camera camera) voidupdateSoundVolume(SoundCategory soundCategory) Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloader
getName, prepareSharedState
-
Field Details
-
EMPTY_ID
- Mappings:
Namespace Name Mixin selector named EMPTY_IDLnet/minecraft/client/sound/SoundManager;EMPTY_ID:Lnet/minecraft/util/Identifier;intermediary field_52173Lnet/minecraft/class_1144;field_52173:Lnet/minecraft/class_2960;official aLihq;a:Lamj;
-
MISSING_SOUND
- Mappings:
Namespace Name Mixin selector named MISSING_SOUNDLnet/minecraft/client/sound/SoundManager;MISSING_SOUND:Lnet/minecraft/client/sound/Sound;intermediary field_5592Lnet/minecraft/class_1144;field_5592:Lnet/minecraft/class_1111;official bLihq;b:Ligh;
-
INTENTIONALLY_EMPTY_ID
- Mappings:
Namespace Name Mixin selector named INTENTIONALLY_EMPTY_IDLnet/minecraft/client/sound/SoundManager;INTENTIONALLY_EMPTY_ID:Lnet/minecraft/util/Identifier;intermediary field_42934Lnet/minecraft/class_1144;field_42934:Lnet/minecraft/class_2960;official cLihq;c:Lamj;
-
INTENTIONALLY_EMPTY_SOUND_SET
- Mappings:
Namespace Name Mixin selector named INTENTIONALLY_EMPTY_SOUND_SETLnet/minecraft/client/sound/SoundManager;INTENTIONALLY_EMPTY_SOUND_SET:Lnet/minecraft/client/sound/WeightedSoundSet;intermediary field_42935Lnet/minecraft/class_1144;field_42935:Lnet/minecraft/class_1146;official dLihq;d:Lihs;
-
INTENTIONALLY_EMPTY_SOUND
- Mappings:
Namespace Name Mixin selector named INTENTIONALLY_EMPTY_SOUNDLnet/minecraft/client/sound/SoundManager;INTENTIONALLY_EMPTY_SOUND:Lnet/minecraft/client/sound/Sound;intermediary field_42936Lnet/minecraft/class_1144;field_42936:Lnet/minecraft/class_1111;official eLihq;e:Ligh;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/sound/SoundManager;LOGGER:Lorg/slf4j/Logger;intermediary field_5593Lnet/minecraft/class_1144;field_5593:Lorg/slf4j/Logger;official fLihq;f:Lorg/slf4j/Logger;
-
SOUNDS_JSON
- See Also:
- Mappings:
Namespace Name Mixin selector named SOUNDS_JSONLnet/minecraft/client/sound/SoundManager;SOUNDS_JSON:Ljava/lang/String;intermediary field_33026Lnet/minecraft/class_1144;field_33026:Ljava/lang/String;official gLihq;g:Ljava/lang/String;
-
GSON
- Mappings:
Namespace Name Mixin selector named GSONLnet/minecraft/client/sound/SoundManager;GSON:Lcom/google/gson/Gson;intermediary field_5594Lnet/minecraft/class_1144;field_5594:Lcom/google/gson/Gson;official hLihq;h:Lcom/google/gson/Gson;
-
TYPE
- Mappings:
Namespace Name Mixin selector named TYPELnet/minecraft/client/sound/SoundManager;TYPE:Lcom/google/gson/reflect/TypeToken;intermediary field_5591Lnet/minecraft/class_1144;field_5591:Lcom/google/gson/reflect/TypeToken;official iLihq;i:Lcom/google/gson/reflect/TypeToken;
-
sounds
- Mappings:
Namespace Name Mixin selector named soundsLnet/minecraft/client/sound/SoundManager;sounds:Ljava/util/Map;intermediary field_5588Lnet/minecraft/class_1144;field_5588:Ljava/util/Map;official jLihq;j:Ljava/util/Map;
-
soundSystem
- Mappings:
Namespace Name Mixin selector named soundSystemLnet/minecraft/client/sound/SoundManager;soundSystem:Lnet/minecraft/client/sound/SoundSystem;intermediary field_5590Lnet/minecraft/class_1144;field_5590:Lnet/minecraft/class_1140;official kLihq;k:Lihn;
-
soundResources
- Mappings:
Namespace Name Mixin selector named soundResourcesLnet/minecraft/client/sound/SoundManager;soundResources:Ljava/util/Map;intermediary field_40576Lnet/minecraft/class_1144;field_40576:Ljava/util/Map;official lLihq;l:Ljava/util/Map;
-
-
Constructor Details
-
SoundManager
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/sound/SoundManager;<init>(Lnet/minecraft/client/option/GameOptions;Lnet/minecraft/client/sound/MusicTracker;)Vintermediary <init>Lnet/minecraft/class_1144;<init>(Lnet/minecraft/class_315;Lnet/minecraft/class_1142;)Vofficial <init>Lihq;<init>(Lgad;Lihl;)V
-
-
Method Details
-
prepare
Description copied from class:SinglePreparationResourceReloaderPrepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
preparein classSinglePreparationResourceReloader<SoundManager.SoundList>- Parameters:
resourceManager- the resource managerprofiler- the prepare profiler- Returns:
- the prepared object
- Mappings:
Namespace Name Mixin selector named prepareLnet/minecraft/client/sound/SoundManager;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Lnet/minecraft/client/sound/SoundManager$SoundList;intermediary method_18180Lnet/minecraft/class_1144;method_18180(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Lnet/minecraft/class_1144$class_4009;official aLihq;a(Lbap;Lbya;)Lihq$a;
-
apply
protected void apply(SoundManager.SoundList soundList, ResourceManager resourceManager, Profiler profiler) Description copied from class:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
applyin classSinglePreparationResourceReloader<SoundManager.SoundList>- Parameters:
soundList- the prepared objectresourceManager- the resource managerprofiler- the apply profiler- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/sound/SoundManager;apply(Lnet/minecraft/client/sound/SoundManager$SoundList;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Vintermediary method_18182Lnet/minecraft/class_1144;method_18182(Lnet/minecraft/class_1144$class_4009;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Vofficial aLihq;a(Lihq$a;Lbap;Lbya;)V
-
getSoundDevices
- Mappings:
Namespace Name Mixin selector named getSoundDevicesLnet/minecraft/client/sound/SoundManager;getSoundDevices()Ljava/util/List;intermediary method_38565Lnet/minecraft/class_1144;method_38565()Ljava/util/List;official aLihq;a()Ljava/util/List;
-
getListenerTransform
- Mappings:
Namespace Name Mixin selector named getListenerTransformLnet/minecraft/client/sound/SoundManager;getListenerTransform()Lnet/minecraft/client/sound/SoundListenerTransform;intermediary method_55593Lnet/minecraft/class_1144;method_55593()Lnet/minecraft/class_9054;official bLihq;b()Lfrc;
-
isSoundResourcePresent
- Mappings:
Namespace Name Mixin selector named isSoundResourcePresentLnet/minecraft/client/sound/SoundManager;isSoundResourcePresent(Lnet/minecraft/client/sound/Sound;Lnet/minecraft/util/Identifier;Lnet/minecraft/resource/ResourceFactory;)Zintermediary method_4868Lnet/minecraft/class_1144;method_4868(Lnet/minecraft/class_1111;Lnet/minecraft/class_2960;Lnet/minecraft/class_5912;)Zofficial aLihq;a(Ligh;Lamj;Lbas;)Z
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/client/sound/SoundManager;get(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/sound/WeightedSoundSet;intermediary method_4869Lnet/minecraft/class_1144;method_4869(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1146;official aLihq;a(Lamj;)Lihs;
-
getKeys
- Mappings:
Namespace Name Mixin selector named getKeysLnet/minecraft/client/sound/SoundManager;getKeys()Ljava/util/Collection;intermediary method_4864Lnet/minecraft/class_1144;method_4864()Ljava/util/Collection;official cLihq;c()Ljava/util/Collection;
-
playNextTick
- Mappings:
Namespace Name Mixin selector named playNextTickLnet/minecraft/client/sound/SoundManager;playNextTick(Lnet/minecraft/client/sound/TickableSoundInstance;)Vintermediary method_22140Lnet/minecraft/class_1144;method_22140(Lnet/minecraft/class_1117;)Vofficial aLihq;a(Ligl;)V
-
play
- Mappings:
Namespace Name Mixin selector named playLnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;)Lnet/minecraft/client/sound/SoundSystem$PlayResult;intermediary method_4873Lnet/minecraft/class_1144;method_4873(Lnet/minecraft/class_1113;)Lnet/minecraft/class_1140$class_11518;official aLihq;a(Ligk;)Lihn$b;
-
play
- Mappings:
Namespace Name Mixin selector named playLnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;I)Vintermediary method_4872Lnet/minecraft/class_1144;method_4872(Lnet/minecraft/class_1113;I)Vofficial aLihq;a(Ligk;I)V
-
updateListenerPosition
- Mappings:
Namespace Name Mixin selector named updateListenerPositionLnet/minecraft/client/sound/SoundManager;updateListenerPosition(Lnet/minecraft/client/render/Camera;)Vintermediary method_4876Lnet/minecraft/class_1144;method_4876(Lnet/minecraft/class_4184;)Vofficial aLihq;a(Lfzh;)V
-
pauseAllExcept
- Mappings:
Namespace Name Mixin selector named pauseAllExceptLnet/minecraft/client/sound/SoundManager;pauseAllExcept([Lnet/minecraft/sound/SoundCategory;)Vintermediary method_71939Lnet/minecraft/class_1144;method_71939([Lnet/minecraft/class_3419;)Vofficial aLihq;a([Lbcf;)V
-
stopAll
public void stopAll()- Mappings:
Namespace Name Mixin selector named stopAllLnet/minecraft/client/sound/SoundManager;stopAll()Vintermediary method_4881Lnet/minecraft/class_1144;method_4881()Vofficial dLihq;d()V
-
close
public void close()- Mappings:
Namespace Name Mixin selector named closeLnet/minecraft/client/sound/SoundManager;close()Vintermediary method_4882Lnet/minecraft/class_1144;method_4882()Vofficial eLihq;e()V
-
stopAbruptly
public void stopAbruptly()- Mappings:
Namespace Name Mixin selector named stopAbruptlyLnet/minecraft/client/sound/SoundManager;stopAbruptly()Vintermediary method_54649Lnet/minecraft/class_1144;method_54649()Vofficial fLihq;f()V
-
tick
public void tick(boolean paused) - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/client/sound/SoundManager;tick(Z)Vintermediary method_18670Lnet/minecraft/class_1144;method_18670(Z)Vofficial aLihq;a(Z)V
-
resumeAll
public void resumeAll()- Mappings:
Namespace Name Mixin selector named resumeAllLnet/minecraft/client/sound/SoundManager;resumeAll()Vintermediary method_4880Lnet/minecraft/class_1144;method_4880()Vofficial gLihq;g()V
-
updateSoundVolume
- Mappings:
Namespace Name Mixin selector named updateSoundVolumeLnet/minecraft/client/sound/SoundManager;updateSoundVolume(Lnet/minecraft/sound/SoundCategory;)Vintermediary method_4865Lnet/minecraft/class_1144;method_4865(Lnet/minecraft/class_3419;)Vofficial aLihq;a(Lbcf;)V
-
stop
- Mappings:
Namespace Name Mixin selector named stopLnet/minecraft/client/sound/SoundManager;stop(Lnet/minecraft/client/sound/SoundInstance;)Vintermediary method_4870Lnet/minecraft/class_1144;method_4870(Lnet/minecraft/class_1113;)Vofficial bLihq;b(Ligk;)V
-
setVolume
- Mappings:
Namespace Name Mixin selector named setVolumeLnet/minecraft/client/sound/SoundManager;setVolume(Lnet/minecraft/client/sound/SoundInstance;F)Vintermediary method_65258Lnet/minecraft/class_1144;method_65258(Lnet/minecraft/class_1113;F)Vofficial aLihq;a(Ligk;F)V
-
isPlaying
- Mappings:
Namespace Name Mixin selector named isPlayingLnet/minecraft/client/sound/SoundManager;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Zintermediary method_4877Lnet/minecraft/class_1144;method_4877(Lnet/minecraft/class_1113;)Zofficial cLihq;c(Ligk;)Z
-
registerListener
- Mappings:
Namespace Name Mixin selector named registerListenerLnet/minecraft/client/sound/SoundManager;registerListener(Lnet/minecraft/client/sound/SoundInstanceListener;)Vintermediary method_4878Lnet/minecraft/class_1144;method_4878(Lnet/minecraft/class_1145;)Vofficial aLihq;a(Lihp;)V
-
unregisterListener
- Mappings:
Namespace Name Mixin selector named unregisterListenerLnet/minecraft/client/sound/SoundManager;unregisterListener(Lnet/minecraft/client/sound/SoundInstanceListener;)Vintermediary method_4866Lnet/minecraft/class_1144;method_4866(Lnet/minecraft/class_1145;)Vofficial bLihq;b(Lihp;)V
-
stopSounds
public void stopSounds(@Nullable @Nullable Identifier id, @Nullable @Nullable SoundCategory soundCategory) - Mappings:
Namespace Name Mixin selector named stopSoundsLnet/minecraft/client/sound/SoundManager;stopSounds(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;)Vintermediary method_4875Lnet/minecraft/class_1144;method_4875(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;)Vofficial aLihq;a(Lamj;Lbcf;)V
-
getDebugString
- Mappings:
Namespace Name Mixin selector named getDebugStringLnet/minecraft/client/sound/SoundManager;getDebugString()Ljava/lang/String;intermediary method_20305Lnet/minecraft/class_1144;method_20305()Ljava/lang/String;official hLihq;h()Ljava/lang/String;
-
reloadSounds
public void reloadSounds()- Mappings:
Namespace Name Mixin selector named reloadSoundsLnet/minecraft/client/sound/SoundManager;reloadSounds()Vintermediary method_38566Lnet/minecraft/class_1144;method_38566()Vofficial iLihq;i()V
-