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_1328
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_5516 Lnet/minecraft/class_1328;field_5516: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_5517 Lnet/minecraft/class_1328;field_5517: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_5518 Lnet/minecraft/class_1328;field_5518: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_5515 Lnet/minecraft/class_1328;field_5515:Lnet/minecraft/class_1324;
      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_5519 Lnet/minecraft/class_1328;field_5519:Lnet/minecraft/class_1330;
      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_5520 Lnet/minecraft/class_1328;field_5520:Lnet/minecraft/class_1325;
      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_5521 Lnet/minecraft/class_1328;field_5521:Lnet/minecraft/class_1258;
      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_1328;<init>(Lnet/minecraft/class_1258;Lnet/minecraft/class_671;)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_4366 Lnet/minecraft/class_1259;method_4366(Lnet/minecraft/class_1258;)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_4608 Lnet/minecraft/class_1328;method_4608(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_4610 Lnet/minecraft/class_1328;method_4610(Lnet/minecraft/class_1605;Lnet/minecraft/class_1307;)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_4609 Lnet/minecraft/class_1328;method_4609(Lnet/minecraft/class_1605;)Lnet/minecraft/class_1327;
      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_4605 Lnet/minecraft/class_1328;method_4605(Lnet/minecraft/class_1311;)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_4606 Lnet/minecraft/class_1328;method_4606(Lnet/minecraft/class_1311;I)V
      named play Lnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;I)V
    • method_4611

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

      public void pauseAll()
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a()V
      intermediary method_4603 Lnet/minecraft/class_1328;method_4603()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_4613 Lnet/minecraft/class_1328;method_4613()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_4616 Lnet/minecraft/class_1328;method_4616()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_5945 Lnet/minecraft/class_1618;method_5945()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_4617 Lnet/minecraft/class_1328;method_4617()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_4604 Lnet/minecraft/class_1328;method_4604(Lnet/minecraft/class_1306;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_4614 Lnet/minecraft/class_1328;method_4614(Lnet/minecraft/class_1311;)V
      named stop Lnet/minecraft/client/sound/SoundManager;stop(Lnet/minecraft/client/sound/SoundInstance;)V
    • method_4612

      public WeightedSoundSet method_4612​(SoundCategory[] soundCategory)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpz;a([Lbpg;)Lbpy;
      intermediary method_4612 Lnet/minecraft/class_1328;method_4612([Lnet/minecraft/class_1306;)Lnet/minecraft/class_1327;
      named method_4612 Lnet/minecraft/client/sound/SoundManager;method_4612([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_4615 Lnet/minecraft/class_1328;method_4615(Lnet/minecraft/class_1311;)Z
      named isPlaying Lnet/minecraft/client/sound/SoundManager;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Z