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 official fzc
intermediary net/minecraft/class_1144
named net/minecraft/client/sound/SoundManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Gson
static final Identifier
static final Sound
static final WeightedSoundSet
(package private) static final Logger
static final Sound
private final Map<Identifier,
Resource> private final Map<Identifier,
WeightedSoundSet> private static final String
private final SoundSystem
private static final TypeToken<Map<String,
SoundEntry>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(SoundManager.SoundList soundList, ResourceManager resourceManager, Profiler profiler) Handles the prepared intermediate object.void
close()
get
(Identifier id) getKeys()
boolean
isPlaying
(SoundInstance sound) (package private) static boolean
isSoundResourcePresent
(Sound sound, Identifier id, ResourceFactory resourceFactory) void
pauseAll()
void
play
(SoundInstance sound) void
play
(SoundInstance sound, int delay) void
protected SoundManager.SoundList
prepare
(ResourceManager resourceManager, Profiler profiler) Prepares the intermediate object.void
registerListener
(SoundInstanceListener listener) void
void
void
stop
(SoundInstance sound) void
stopAll()
void
stopSounds
(@Nullable Identifier id, @Nullable SoundCategory soundCategory) void
tick
(boolean paused) void
unregisterListener
(SoundInstanceListener listener) void
updateListenerPosition
(Camera camera) void
updateSoundVolume
(SoundCategory category, float volume) Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
MISSING_SOUND
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a:Lfxv;
intermediary field_5592
Lnet/minecraft/class_1144;field_5592:Lnet/minecraft/class_1111;
named MISSING_SOUND
Lnet/minecraft/client/sound/SoundManager;MISSING_SOUND:Lnet/minecraft/client/sound/Sound;
-
INTENTIONALLY_EMPTY_ID
- Mappings:
Namespace Name Mixin selector official b
Lfzc;b:Lacq;
intermediary field_42934
Lnet/minecraft/class_1144;field_42934:Lnet/minecraft/class_2960;
named INTENTIONALLY_EMPTY_ID
Lnet/minecraft/client/sound/SoundManager;INTENTIONALLY_EMPTY_ID:Lnet/minecraft/util/Identifier;
-
INTENTIONALLY_EMPTY_SOUND_SET
- Mappings:
Namespace Name Mixin selector official c
Lfzc;c:Lfzd;
intermediary field_42935
Lnet/minecraft/class_1144;field_42935:Lnet/minecraft/class_1146;
named INTENTIONALLY_EMPTY_SOUND_SET
Lnet/minecraft/client/sound/SoundManager;INTENTIONALLY_EMPTY_SOUND_SET:Lnet/minecraft/client/sound/WeightedSoundSet;
-
INTENTIONALLY_EMPTY_SOUND
- Mappings:
Namespace Name Mixin selector official d
Lfzc;d:Lfxv;
intermediary field_42936
Lnet/minecraft/class_1144;field_42936:Lnet/minecraft/class_1111;
named INTENTIONALLY_EMPTY_SOUND
Lnet/minecraft/client/sound/SoundManager;INTENTIONALLY_EMPTY_SOUND:Lnet/minecraft/client/sound/Sound;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official e
Lfzc;e:Lorg/slf4j/Logger;
intermediary field_5593
Lnet/minecraft/class_1144;field_5593:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/sound/SoundManager;LOGGER:Lorg/slf4j/Logger;
-
SOUNDS_JSON
- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lfzc;f:Ljava/lang/String;
intermediary field_33026
Lnet/minecraft/class_1144;field_33026:Ljava/lang/String;
named SOUNDS_JSON
Lnet/minecraft/client/sound/SoundManager;SOUNDS_JSON:Ljava/lang/String;
-
GSON
- Mappings:
Namespace Name Mixin selector official g
Lfzc;g:Lcom/google/gson/Gson;
intermediary field_5594
Lnet/minecraft/class_1144;field_5594:Lcom/google/gson/Gson;
named GSON
Lnet/minecraft/client/sound/SoundManager;GSON:Lcom/google/gson/Gson;
-
TYPE
- Mappings:
Namespace Name Mixin selector official h
Lfzc;h:Lcom/google/gson/reflect/TypeToken;
intermediary field_5591
Lnet/minecraft/class_1144;field_5591:Lcom/google/gson/reflect/TypeToken;
named TYPE
Lnet/minecraft/client/sound/SoundManager;TYPE:Lcom/google/gson/reflect/TypeToken;
-
sounds
- Mappings:
Namespace Name Mixin selector official i
Lfzc;i:Ljava/util/Map;
intermediary field_5588
Lnet/minecraft/class_1144;field_5588:Ljava/util/Map;
named sounds
Lnet/minecraft/client/sound/SoundManager;sounds:Ljava/util/Map;
-
soundSystem
- Mappings:
Namespace Name Mixin selector official j
Lfzc;j:Lfyz;
intermediary field_5590
Lnet/minecraft/class_1144;field_5590:Lnet/minecraft/class_1140;
named soundSystem
Lnet/minecraft/client/sound/SoundManager;soundSystem:Lnet/minecraft/client/sound/SoundSystem;
-
soundResources
- Mappings:
Namespace Name Mixin selector official k
Lfzc;k:Ljava/util/Map;
intermediary field_40576
Lnet/minecraft/class_1144;field_40576:Ljava/util/Map;
named soundResources
Lnet/minecraft/client/sound/SoundManager;soundResources:Ljava/util/Map;
-
-
Constructor Details
-
SoundManager
- Mappings:
Namespace Name Mixin selector official <init>
Lfzc;<init>(Lenr;)V
intermediary <init>
Lnet/minecraft/class_1144;<init>(Lnet/minecraft/class_315;)V
named <init>
Lnet/minecraft/client/sound/SoundManager;<init>(Lnet/minecraft/client/option/GameOptions;)V
-
-
Method Details
-
prepare
Description copied from class:SinglePreparationResourceReloader
Prepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
prepare
in classSinglePreparationResourceReloader<SoundManager.SoundList>
- Parameters:
resourceManager
- the resource managerprofiler
- the prepare profiler- Returns:
- the prepared object
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lakx;Lban;)Lfzc$a;
intermediary method_18180
Lnet/minecraft/class_1144;method_18180(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Lnet/minecraft/class_1144$class_4009;
named prepare
Lnet/minecraft/client/sound/SoundManager;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Lnet/minecraft/client/sound/SoundManager$SoundList;
-
apply
protected void apply(SoundManager.SoundList soundList, ResourceManager resourceManager, Profiler profiler) Description copied from class:SinglePreparationResourceReloader
Handles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
apply
in classSinglePreparationResourceReloader<SoundManager.SoundList>
- Parameters:
soundList
- the prepared objectresourceManager
- the resource managerprofiler
- the apply profiler- Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lfzc$a;Lakx;Lban;)V
intermediary method_18182
Lnet/minecraft/class_1144;method_18182(Lnet/minecraft/class_1144$class_4009;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V
named apply
Lnet/minecraft/client/sound/SoundManager;apply(Lnet/minecraft/client/sound/SoundManager$SoundList;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
-
getSoundDevices
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a()Ljava/util/List;
intermediary method_38565
Lnet/minecraft/class_1144;method_38565()Ljava/util/List;
named getSoundDevices
Lnet/minecraft/client/sound/SoundManager;getSoundDevices()Ljava/util/List;
-
isSoundResourcePresent
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lfxv;Lacq;Lala;)Z
intermediary method_4868
Lnet/minecraft/class_1144;method_4868(Lnet/minecraft/class_1111;Lnet/minecraft/class_2960;Lnet/minecraft/class_5912;)Z
named isSoundResourcePresent
Lnet/minecraft/client/sound/SoundManager;isSoundResourcePresent(Lnet/minecraft/client/sound/Sound;Lnet/minecraft/util/Identifier;Lnet/minecraft/resource/ResourceFactory;)Z
-
get
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lacq;)Lfzd;
intermediary method_4869
Lnet/minecraft/class_1144;method_4869(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1146;
named get
Lnet/minecraft/client/sound/SoundManager;get(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/sound/WeightedSoundSet;
-
getKeys
- Mappings:
Namespace Name Mixin selector official b
Lfzc;b()Ljava/util/Collection;
intermediary method_4864
Lnet/minecraft/class_1144;method_4864()Ljava/util/Collection;
named getKeys
Lnet/minecraft/client/sound/SoundManager;getKeys()Ljava/util/Collection;
-
playNextTick
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lfxz;)V
intermediary method_22140
Lnet/minecraft/class_1144;method_22140(Lnet/minecraft/class_1117;)V
named playNextTick
Lnet/minecraft/client/sound/SoundManager;playNextTick(Lnet/minecraft/client/sound/TickableSoundInstance;)V
-
play
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lfxy;)V
intermediary method_4873
Lnet/minecraft/class_1144;method_4873(Lnet/minecraft/class_1113;)V
named play
Lnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;)V
-
play
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lfxy;I)V
intermediary method_4872
Lnet/minecraft/class_1144;method_4872(Lnet/minecraft/class_1113;I)V
named play
Lnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;I)V
-
updateListenerPosition
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lemz;)V
intermediary method_4876
Lnet/minecraft/class_1144;method_4876(Lnet/minecraft/class_4184;)V
named updateListenerPosition
Lnet/minecraft/client/sound/SoundManager;updateListenerPosition(Lnet/minecraft/client/render/Camera;)V
-
pauseAll
public void pauseAll()- Mappings:
Namespace Name Mixin selector official d
Lfzc;d()V
intermediary method_4879
Lnet/minecraft/class_1144;method_4879()V
named pauseAll
Lnet/minecraft/client/sound/SoundManager;pauseAll()V
-
stopAll
public void stopAll()- Mappings:
Namespace Name Mixin selector official e
Lfzc;e()V
intermediary method_4881
Lnet/minecraft/class_1144;method_4881()V
named stopAll
Lnet/minecraft/client/sound/SoundManager;stopAll()V
-
close
public void close()- Mappings:
Namespace Name Mixin selector official f
Lfzc;f()V
intermediary method_4882
Lnet/minecraft/class_1144;method_4882()V
named close
Lnet/minecraft/client/sound/SoundManager;close()V
-
tick
public void tick(boolean paused) - Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Z)V
intermediary method_18670
Lnet/minecraft/class_1144;method_18670(Z)V
named tick
Lnet/minecraft/client/sound/SoundManager;tick(Z)V
-
resumeAll
public void resumeAll()- Mappings:
Namespace Name Mixin selector official g
Lfzc;g()V
intermediary method_4880
Lnet/minecraft/class_1144;method_4880()V
named resumeAll
Lnet/minecraft/client/sound/SoundManager;resumeAll()V
-
updateSoundVolume
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lami;F)V
intermediary method_4865
Lnet/minecraft/class_1144;method_4865(Lnet/minecraft/class_3419;F)V
named updateSoundVolume
Lnet/minecraft/client/sound/SoundManager;updateSoundVolume(Lnet/minecraft/sound/SoundCategory;F)V
-
stop
- Mappings:
Namespace Name Mixin selector official b
Lfzc;b(Lfxy;)V
intermediary method_4870
Lnet/minecraft/class_1144;method_4870(Lnet/minecraft/class_1113;)V
named stop
Lnet/minecraft/client/sound/SoundManager;stop(Lnet/minecraft/client/sound/SoundInstance;)V
-
isPlaying
- Mappings:
Namespace Name Mixin selector official c
Lfzc;c(Lfxy;)Z
intermediary method_4877
Lnet/minecraft/class_1144;method_4877(Lnet/minecraft/class_1113;)Z
named isPlaying
Lnet/minecraft/client/sound/SoundManager;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Z
-
registerListener
- Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lfzb;)V
intermediary method_4878
Lnet/minecraft/class_1144;method_4878(Lnet/minecraft/class_1145;)V
named registerListener
Lnet/minecraft/client/sound/SoundManager;registerListener(Lnet/minecraft/client/sound/SoundInstanceListener;)V
-
unregisterListener
- Mappings:
Namespace Name Mixin selector official b
Lfzc;b(Lfzb;)V
intermediary method_4866
Lnet/minecraft/class_1144;method_4866(Lnet/minecraft/class_1145;)V
named unregisterListener
Lnet/minecraft/client/sound/SoundManager;unregisterListener(Lnet/minecraft/client/sound/SoundInstanceListener;)V
-
stopSounds
public void stopSounds(@Nullable @Nullable Identifier id, @Nullable @Nullable SoundCategory soundCategory) - Mappings:
Namespace Name Mixin selector official a
Lfzc;a(Lacq;Lami;)V
intermediary method_4875
Lnet/minecraft/class_1144;method_4875(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;)V
named stopSounds
Lnet/minecraft/client/sound/SoundManager;stopSounds(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;)V
-
getDebugString
- Mappings:
Namespace Name Mixin selector official h
Lfzc;h()Ljava/lang/String;
intermediary method_20305
Lnet/minecraft/class_1144;method_20305()Ljava/lang/String;
named getDebugString
Lnet/minecraft/client/sound/SoundManager;getDebugString()Ljava/lang/String;
-
reloadSounds
public void reloadSounds()- Mappings:
Namespace Name Mixin selector official i
Lfzc;i()V
intermediary method_38566
Lnet/minecraft/class_1144;method_38566()V
named reloadSounds
Lnet/minecraft/client/sound/SoundManager;reloadSounds()V
-