Package net.minecraft.client.sound
Class SoundManager
java.lang.Object
net.minecraft.client.sound.SoundManager
- All Implemented Interfaces:
ResourceReloadListener,Tickable
@Environment(CLIENT) public class SoundManager extends Object implements ResourceReloadListener, Tickable
- Mappings:
Namespace Name official bpzintermediary net/minecraft/class_1328named net/minecraft/client/sound/SoundManager
-
Field Summary
Fields Modifier and Type Field Description private static GsonGSONprivate SoundRegistryloadedSoundsprivate static LoggerLOGGERstatic SoundMISSING_SOUNDprivate ResourceManagerresourceManagerprivate SoundSystemsoundSystemprivate static ParameterizedTypeTYPE -
Constructor Summary
Constructors Constructor Description SoundManager(ResourceManager resourceManager, GameOptions options) -
Method Summary
Modifier and Type Method Description voidclose()WeightedSoundSetget(Identifier id)booleanisPlaying(SoundInstance instance)voidmethod_4611(PlayerEntity playerEntity, float float2)WeightedSoundSetmethod_4612(SoundCategory[] soundCategory)voidpauseAll()voidplay(SoundInstance sound)voidplay(SoundInstance sound, int delay)protected Map<String,SoundEntry>readSounds(InputStream inputStream)private voidregister(Identifier id, SoundEntry entry)voidreload(ResourceManager resourceManager)voidresumeAll()voidstop(SoundInstance instance)voidstopAll()voidtick()voidupdateSoundVolume(SoundCategory category, float volume)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLbpz;b:Lorg/apache/logging/log4j/Logger;intermediary field_5516Lnet/minecraft/class_1328;field_5516:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/sound/SoundManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
GSON
- Mappings:
Namespace Name Mixin selector official cLbpz;c:Lcom/google/gson/Gson;intermediary field_5517Lnet/minecraft/class_1328;field_5517:Lcom/google/gson/Gson;named GSONLnet/minecraft/client/sound/SoundManager;GSON:Lcom/google/gson/Gson;
-
TYPE
- Mappings:
Namespace Name Mixin selector official dLbpz;d:Ljava/lang/reflect/ParameterizedType;intermediary field_5518Lnet/minecraft/class_1328;field_5518:Ljava/lang/reflect/ParameterizedType;named TYPELnet/minecraft/client/sound/SoundManager;TYPE:Ljava/lang/reflect/ParameterizedType;
-
MISSING_SOUND
- Mappings:
Namespace Name Mixin selector official aLbpz;a:Lbpw;intermediary field_5515Lnet/minecraft/class_1328;field_5515:Lnet/minecraft/class_1324;named MISSING_SOUNDLnet/minecraft/client/sound/SoundManager;MISSING_SOUND:Lnet/minecraft/client/sound/Sound;
-
loadedSounds
- Mappings:
Namespace Name Mixin selector official eLbpz;e:Lbqa;intermediary field_5519Lnet/minecraft/class_1328;field_5519:Lnet/minecraft/class_1330;named loadedSoundsLnet/minecraft/client/sound/SoundManager;loadedSounds:Lnet/minecraft/client/sound/SoundRegistry;
-
soundSystem
- Mappings:
Namespace Name Mixin selector official fLbpz;f:Lbpx;intermediary field_5520Lnet/minecraft/class_1328;field_5520:Lnet/minecraft/class_1325;named soundSystemLnet/minecraft/client/sound/SoundManager;soundSystem:Lnet/minecraft/client/sound/SoundSystem;
-
resourceManager
- Mappings:
Namespace Name Mixin selector official gLbpz;g:Lbni;intermediary field_5521Lnet/minecraft/class_1328;field_5521:Lnet/minecraft/class_1258;named resourceManagerLnet/minecraft/client/sound/SoundManager;resourceManager:Lnet/minecraft/resource/ResourceManager;
-
-
Constructor Details
-
SoundManager
- Mappings:
Namespace Name Mixin selector official <init>Lbpz;<init>(Lbni;Lavh;)Vintermediary <init>Lnet/minecraft/class_1328;<init>(Lnet/minecraft/class_1258;Lnet/minecraft/class_671;)Vnamed <init>Lnet/minecraft/client/sound/SoundManager;<init>(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/options/GameOptions;)V
-
-
Method Details
-
reload
- Specified by:
reloadin interfaceResourceReloadListener- Mappings:
Namespace Name Mixin selector official aLbnj;a(Lbni;)Vintermediary method_4366Lnet/minecraft/class_1259;method_4366(Lnet/minecraft/class_1258;)Vnamed reloadLnet/minecraft/resource/ResourceReloadListener;reload(Lnet/minecraft/resource/ResourceManager;)V
-
readSounds
- Mappings:
Namespace Name Mixin selector official aLbpz;a(Ljava/io/InputStream;)Ljava/util/Map;intermediary method_4608Lnet/minecraft/class_1328;method_4608(Ljava/io/InputStream;)Ljava/util/Map;named readSoundsLnet/minecraft/client/sound/SoundManager;readSounds(Ljava/io/InputStream;)Ljava/util/Map;
-
register
- Mappings:
Namespace Name Mixin selector official aLbpz;a(Ljy;Lbph;)Vintermediary method_4610Lnet/minecraft/class_1328;method_4610(Lnet/minecraft/class_1605;Lnet/minecraft/class_1307;)Vnamed registerLnet/minecraft/client/sound/SoundManager;register(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/sound/SoundEntry;)V
-
get
- Mappings:
Namespace Name Mixin selector official aLbpz;a(Ljy;)Lbpy;intermediary method_4609Lnet/minecraft/class_1328;method_4609(Lnet/minecraft/class_1605;)Lnet/minecraft/class_1327;named getLnet/minecraft/client/sound/SoundManager;get(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/sound/WeightedSoundSet;
-
play
- Mappings:
Namespace Name Mixin selector official aLbpz;a(Lbpj;)Vintermediary method_4605Lnet/minecraft/class_1328;method_4605(Lnet/minecraft/class_1311;)Vnamed playLnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;)V
-
play
- Mappings:
Namespace Name Mixin selector official aLbpz;a(Lbpj;I)Vintermediary method_4606Lnet/minecraft/class_1328;method_4606(Lnet/minecraft/class_1311;I)Vnamed playLnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;I)V
-
method_4611
- Mappings:
Namespace Name Mixin selector official aLbpz;a(Lwn;F)Vintermediary method_4611Lnet/minecraft/class_1328;method_4611(Lnet/minecraft/class_1963;F)Vnamed method_4611Lnet/minecraft/client/sound/SoundManager;method_4611(Lnet/minecraft/entity/player/PlayerEntity;F)V
-
pauseAll
public void pauseAll()- Mappings:
Namespace Name Mixin selector official aLbpz;a()Vintermediary method_4603Lnet/minecraft/class_1328;method_4603()Vnamed pauseAllLnet/minecraft/client/sound/SoundManager;pauseAll()V
-
stopAll
public void stopAll()- Mappings:
Namespace Name Mixin selector official bLbpz;b()Vintermediary method_4613Lnet/minecraft/class_1328;method_4613()Vnamed stopAllLnet/minecraft/client/sound/SoundManager;stopAll()V
-
close
public void close()- Mappings:
Namespace Name Mixin selector official dLbpz;d()Vintermediary method_4616Lnet/minecraft/class_1328;method_4616()Vnamed closeLnet/minecraft/client/sound/SoundManager;close()V
-
tick
public void tick() -
resumeAll
public void resumeAll()- Mappings:
Namespace Name Mixin selector official eLbpz;e()Vintermediary method_4617Lnet/minecraft/class_1328;method_4617()Vnamed resumeAllLnet/minecraft/client/sound/SoundManager;resumeAll()V
-
updateSoundVolume
- Mappings:
Namespace Name Mixin selector official aLbpz;a(Lbpg;F)Vintermediary method_4604Lnet/minecraft/class_1328;method_4604(Lnet/minecraft/class_1306;F)Vnamed updateSoundVolumeLnet/minecraft/client/sound/SoundManager;updateSoundVolume(Lnet/minecraft/client/sound/SoundCategory;F)V
-
stop
- Mappings:
Namespace Name Mixin selector official bLbpz;b(Lbpj;)Vintermediary method_4614Lnet/minecraft/class_1328;method_4614(Lnet/minecraft/class_1311;)Vnamed stopLnet/minecraft/client/sound/SoundManager;stop(Lnet/minecraft/client/sound/SoundInstance;)V
-
method_4612
- Mappings:
Namespace Name Mixin selector official aLbpz;a([Lbpg;)Lbpy;intermediary method_4612Lnet/minecraft/class_1328;method_4612([Lnet/minecraft/class_1306;)Lnet/minecraft/class_1327;named method_4612Lnet/minecraft/client/sound/SoundManager;method_4612([Lnet/minecraft/client/sound/SoundCategory;)Lnet/minecraft/client/sound/WeightedSoundSet;
-
isPlaying
- Mappings:
Namespace Name Mixin selector official cLbpz;c(Lbpj;)Zintermediary method_4615Lnet/minecraft/class_1328;method_4615(Lnet/minecraft/class_1311;)Znamed isPlayingLnet/minecraft/client/sound/SoundManager;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Z
-