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 bpz
intermediary net/minecraft/class_1909
named net/minecraft/client/sound/SoundManager
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lbpz;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_8213 Lnet/minecraft/class_1909;field_8213:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/sound/SoundManager;LOGGER:Lorg/apache/logging/log4j/Logger;
    • GSON

      private static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      official c Lbpz;c:Lcom/google/gson/Gson;
      intermediary field_8214 Lnet/minecraft/class_1909;field_8214:Lcom/google/gson/Gson;
      named GSON Lnet/minecraft/client/sound/SoundManager;GSON:Lcom/google/gson/Gson;
    • TYPE

      private static final ParameterizedType TYPE
      Mappings:
      Namespace Name Mixin selector
      official d Lbpz;d:Ljava/lang/reflect/ParameterizedType;
      intermediary field_8215 Lnet/minecraft/class_1909;field_8215:Ljava/lang/reflect/ParameterizedType;
      named TYPE Lnet/minecraft/client/sound/SoundManager;TYPE:Ljava/lang/reflect/ParameterizedType;
    • MISSING_SOUND

      public static final Sound MISSING_SOUND
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a:Lbpw;
      intermediary field_8212 Lnet/minecraft/class_1909;field_8212:Lnet/minecraft/class_621;
      named MISSING_SOUND Lnet/minecraft/client/sound/SoundManager;MISSING_SOUND:Lnet/minecraft/client/sound/Sound;
    • loadedSounds

      private final SoundRegistry loadedSounds
      Mappings:
      Namespace Name Mixin selector
      official e Lbpz;e:Lbqa;
      intermediary field_8216 Lnet/minecraft/class_1909;field_8216:Lnet/minecraft/class_1913;
      named loadedSounds Lnet/minecraft/client/sound/SoundManager;loadedSounds:Lnet/minecraft/client/sound/SoundRegistry;
    • soundSystem

      private final SoundSystem soundSystem
      Mappings:
      Namespace Name Mixin selector
      official f Lbpz;f:Lbpx;
      intermediary field_8217 Lnet/minecraft/class_1909;field_8217:Lnet/minecraft/class_622;
      named soundSystem Lnet/minecraft/client/sound/SoundManager;soundSystem:Lnet/minecraft/client/sound/SoundSystem;
    • resourceManager

      private final ResourceManager resourceManager
      Mappings:
      Namespace Name Mixin selector
      official g Lbpz;g:Lbni;
      intermediary field_8218 Lnet/minecraft/class_1909;field_8218:Lnet/minecraft/class_1654;
      named resourceManager Lnet/minecraft/client/sound/SoundManager;resourceManager:Lnet/minecraft/resource/ResourceManager;
  • Constructor Details

    • SoundManager

      public SoundManager(ResourceManager resourceManager, GameOptions options)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbpz;<init>(Lbni;Lavh;)V
      intermediary <init> Lnet/minecraft/class_1909;<init>(Lnet/minecraft/class_1654;Lnet/minecraft/class_347;)V
      named <init> Lnet/minecraft/client/sound/SoundManager;<init>(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/options/GameOptions;)V
  • Method Details

    • reload

      public void reload(ResourceManager resourceManager)
      Specified by:
      reload in interface ResourceReloadListener
      Mappings:
      Namespace Name Mixin selector
      official a Lbnj;a(Lbni;)V
      intermediary method_5895 Lnet/minecraft/class_286;method_5895(Lnet/minecraft/class_1654;)V
      named reload Lnet/minecraft/resource/ResourceReloadListener;reload(Lnet/minecraft/resource/ResourceManager;)V
    • readSounds

      protected Map<String,SoundEntry> readSounds(InputStream inputStream)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a(Ljava/io/InputStream;)Ljava/util/Map;
      intermediary method_10434 Lnet/minecraft/class_1909;method_10434(Ljava/io/InputStream;)Ljava/util/Map;
      named readSounds Lnet/minecraft/client/sound/SoundManager;readSounds(Ljava/io/InputStream;)Ljava/util/Map;
    • register

      private void register(Identifier id, SoundEntry entry)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a(Ljy;Lbph;)V
      intermediary method_7120 Lnet/minecraft/class_1909;method_7120(Lnet/minecraft/class_1653;Lnet/minecraft/class_1896;)V
      named register Lnet/minecraft/client/sound/SoundManager;register(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/sound/SoundEntry;)V
    • get

      public WeightedSoundSet get(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a(Ljy;)Lbpy;
      intermediary method_7119 Lnet/minecraft/class_1909;method_7119(Lnet/minecraft/class_1653;)Lnet/minecraft/class_1908;
      named get Lnet/minecraft/client/sound/SoundManager;get(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/sound/WeightedSoundSet;
    • play

      public void play(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a(Lbpj;)V
      intermediary method_7121 Lnet/minecraft/class_1909;method_7121(Lnet/minecraft/class_1900;)V
      named play Lnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;)V
    • play

      public void play(SoundInstance sound, int delay)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a(Lbpj;I)V
      intermediary method_7122 Lnet/minecraft/class_1909;method_7122(Lnet/minecraft/class_1900;I)V
      named play Lnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;I)V
    • method_7125

      public void method_7125(PlayerEntity playerEntity, float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a(Lwn;F)V
      intermediary method_7125 Lnet/minecraft/class_1909;method_7125(Lnet/minecraft/class_988;F)V
      named method_7125 Lnet/minecraft/client/sound/SoundManager;method_7125(Lnet/minecraft/entity/player/PlayerEntity;F)V
    • pauseAll

      public void pauseAll()
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a()V
      intermediary method_7127 Lnet/minecraft/class_1909;method_7127()V
      named pauseAll Lnet/minecraft/client/sound/SoundManager;pauseAll()V
    • stopAll

      public void stopAll()
      Mappings:
      Namespace Name Mixin selector
      official b Lbpz;b()V
      intermediary method_7129 Lnet/minecraft/class_1909;method_7129()V
      named stopAll Lnet/minecraft/client/sound/SoundManager;stopAll()V
    • close

      public void close()
      Mappings:
      Namespace Name Mixin selector
      official d Lbpz;d()V
      intermediary method_7131 Lnet/minecraft/class_1909;method_7131()V
      named close Lnet/minecraft/client/sound/SoundManager;close()V
    • tick

      public void tick()
      Specified by:
      tick in interface Tickable
      Mappings:
      Namespace Name Mixin selector
      official c Lkm;c()V
      intermediary method_2053 Lnet/minecraft/class_746;method_2053()V
      named tick Lnet/minecraft/util/Tickable;tick()V
    • resumeAll

      public void resumeAll()
      Mappings:
      Namespace Name Mixin selector
      official e Lbpz;e()V
      intermediary method_7132 Lnet/minecraft/class_1909;method_7132()V
      named resumeAll Lnet/minecraft/client/sound/SoundManager;resumeAll()V
    • updateSoundVolume

      public void updateSoundVolume(SoundCategory category, float volume)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a(Lbpg;F)V
      intermediary method_7124 Lnet/minecraft/class_1909;method_7124(Lnet/minecraft/class_2153;F)V
      named updateSoundVolume Lnet/minecraft/client/sound/SoundManager;updateSoundVolume(Lnet/minecraft/client/sound/SoundCategory;F)V
    • stop

      public void stop(SoundInstance instance)
      Mappings:
      Namespace Name Mixin selector
      official b Lbpz;b(Lbpj;)V
      intermediary method_7128 Lnet/minecraft/class_1909;method_7128(Lnet/minecraft/class_1900;)V
      named stop Lnet/minecraft/client/sound/SoundManager;stop(Lnet/minecraft/client/sound/SoundInstance;)V
    • method_7126

      public WeightedSoundSet method_7126(SoundCategory[] soundCategory)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a([Lbpg;)Lbpy;
      intermediary method_7126 Lnet/minecraft/class_1909;method_7126([Lnet/minecraft/class_2153;)Lnet/minecraft/class_1908;
      named method_7126 Lnet/minecraft/client/sound/SoundManager;method_7126([Lnet/minecraft/client/sound/SoundCategory;)Lnet/minecraft/client/sound/WeightedSoundSet;
    • isPlaying

      public boolean isPlaying(SoundInstance instance)
      Mappings:
      Namespace Name Mixin selector
      official c Lbpz;c(Lbpj;)Z
      intermediary method_7130 Lnet/minecraft/class_1909;method_7130(Lnet/minecraft/class_1900;)Z
      named isPlaying Lnet/minecraft/client/sound/SoundManager;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Z