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_1909named net/minecraft/client/sound/SoundManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Gsonprivate final SoundRegistryprivate static final Loggerstatic final Soundprivate final ResourceManagerprivate final SoundSystemprivate static final ParameterizedType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()get(Identifier id) booleanisPlaying(SoundInstance instance) voidmethod_7125(PlayerEntity playerEntity, float float2) method_7126(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) voidvoidstop(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_8213Lnet/minecraft/class_1909;field_8213: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_8214Lnet/minecraft/class_1909;field_8214: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_8215Lnet/minecraft/class_1909;field_8215: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_8212Lnet/minecraft/class_1909;field_8212:Lnet/minecraft/class_621;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_8216Lnet/minecraft/class_1909;field_8216:Lnet/minecraft/class_1913;named loadedSoundsLnet/minecraft/client/sound/SoundManager;loadedSounds:Lnet/minecraft/client/sound/SoundRegistry;
-
soundSystem
- Mappings:
Namespace Name Mixin selector official fLbpz;f:Lbpx;intermediary field_8217Lnet/minecraft/class_1909;field_8217:Lnet/minecraft/class_622;named soundSystemLnet/minecraft/client/sound/SoundManager;soundSystem:Lnet/minecraft/client/sound/SoundSystem;
-
resourceManager
- Mappings:
Namespace Name Mixin selector official gLbpz;g:Lbni;intermediary field_8218Lnet/minecraft/class_1909;field_8218:Lnet/minecraft/class_1654;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_1909;<init>(Lnet/minecraft/class_1654;Lnet/minecraft/class_347;)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_5895Lnet/minecraft/class_286;method_5895(Lnet/minecraft/class_1654;)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_10434Lnet/minecraft/class_1909;method_10434(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_7120Lnet/minecraft/class_1909;method_7120(Lnet/minecraft/class_1653;Lnet/minecraft/class_1896;)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_7119Lnet/minecraft/class_1909;method_7119(Lnet/minecraft/class_1653;)Lnet/minecraft/class_1908;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_7121Lnet/minecraft/class_1909;method_7121(Lnet/minecraft/class_1900;)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_7122Lnet/minecraft/class_1909;method_7122(Lnet/minecraft/class_1900;I)Vnamed playLnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;I)V
-
method_7125
- Mappings:
Namespace Name Mixin selector official aLbpz;a(Lwn;F)Vintermediary method_7125Lnet/minecraft/class_1909;method_7125(Lnet/minecraft/class_988;F)Vnamed method_7125Lnet/minecraft/client/sound/SoundManager;method_7125(Lnet/minecraft/entity/player/PlayerEntity;F)V
-
pauseAll
public void pauseAll()- Mappings:
Namespace Name Mixin selector official aLbpz;a()Vintermediary method_7127Lnet/minecraft/class_1909;method_7127()Vnamed pauseAllLnet/minecraft/client/sound/SoundManager;pauseAll()V
-
stopAll
public void stopAll()- Mappings:
Namespace Name Mixin selector official bLbpz;b()Vintermediary method_7129Lnet/minecraft/class_1909;method_7129()Vnamed stopAllLnet/minecraft/client/sound/SoundManager;stopAll()V
-
close
public void close()- Mappings:
Namespace Name Mixin selector official dLbpz;d()Vintermediary method_7131Lnet/minecraft/class_1909;method_7131()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_7132Lnet/minecraft/class_1909;method_7132()Vnamed resumeAllLnet/minecraft/client/sound/SoundManager;resumeAll()V
-
updateSoundVolume
- Mappings:
Namespace Name Mixin selector official aLbpz;a(Lbpg;F)Vintermediary method_7124Lnet/minecraft/class_1909;method_7124(Lnet/minecraft/class_2153;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_7128Lnet/minecraft/class_1909;method_7128(Lnet/minecraft/class_1900;)Vnamed stopLnet/minecraft/client/sound/SoundManager;stop(Lnet/minecraft/client/sound/SoundInstance;)V
-
method_7126
- Mappings:
Namespace Name Mixin selector official aLbpz;a([Lbpg;)Lbpy;intermediary method_7126Lnet/minecraft/class_1909;method_7126([Lnet/minecraft/class_2153;)Lnet/minecraft/class_1908;named method_7126Lnet/minecraft/client/sound/SoundManager;method_7126([Lnet/minecraft/client/sound/SoundCategory;)Lnet/minecraft/client/sound/WeightedSoundSet;
-
isPlaying
- Mappings:
Namespace Name Mixin selector official cLbpz;c(Lbpj;)Zintermediary method_7130Lnet/minecraft/class_1909;method_7130(Lnet/minecraft/class_1900;)Znamed isPlayingLnet/minecraft/client/sound/SoundManager;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Z
-