Class SoundManager

All Implemented Interfaces:
ResourceReloader

Mappings:
Namespace Name
named net/minecraft/client/sound/SoundManager
intermediary net/minecraft/class_1144
official hpt
  • Field Details Link icon

    • EMPTY_ID Link icon

      public static final Identifier EMPTY_ID
      Mappings:
      Namespace Name Mixin selector
      named EMPTY_ID Lnet/minecraft/client/sound/SoundManager;EMPTY_ID:Lnet/minecraft/util/Identifier;
      intermediary field_52173 Lnet/minecraft/class_1144;field_52173:Lnet/minecraft/class_2960;
      official a Lhpt;a:Lalr;
    • MISSING_SOUND Link icon

      public static final Sound MISSING_SOUND
      Mappings:
      Namespace Name Mixin selector
      named MISSING_SOUND Lnet/minecraft/client/sound/SoundManager;MISSING_SOUND:Lnet/minecraft/client/sound/Sound;
      intermediary field_5592 Lnet/minecraft/class_1144;field_5592:Lnet/minecraft/class_1111;
      official b Lhpt;b:Lhok;
    • INTENTIONALLY_EMPTY_ID Link icon

      public static final Identifier INTENTIONALLY_EMPTY_ID
      Mappings:
      Namespace Name Mixin selector
      named INTENTIONALLY_EMPTY_ID Lnet/minecraft/client/sound/SoundManager;INTENTIONALLY_EMPTY_ID:Lnet/minecraft/util/Identifier;
      intermediary field_42934 Lnet/minecraft/class_1144;field_42934:Lnet/minecraft/class_2960;
      official c Lhpt;c:Lalr;
    • INTENTIONALLY_EMPTY_SOUND_SET Link icon

      public static final WeightedSoundSet INTENTIONALLY_EMPTY_SOUND_SET
      Mappings:
      Namespace Name Mixin selector
      named INTENTIONALLY_EMPTY_SOUND_SET Lnet/minecraft/client/sound/SoundManager;INTENTIONALLY_EMPTY_SOUND_SET:Lnet/minecraft/client/sound/WeightedSoundSet;
      intermediary field_42935 Lnet/minecraft/class_1144;field_42935:Lnet/minecraft/class_1146;
      official d Lhpt;d:Lhpu;
    • INTENTIONALLY_EMPTY_SOUND Link icon

      public static final Sound INTENTIONALLY_EMPTY_SOUND
      Mappings:
      Namespace Name Mixin selector
      named INTENTIONALLY_EMPTY_SOUND Lnet/minecraft/client/sound/SoundManager;INTENTIONALLY_EMPTY_SOUND:Lnet/minecraft/client/sound/Sound;
      intermediary field_42936 Lnet/minecraft/class_1144;field_42936:Lnet/minecraft/class_1111;
      official e Lhpt;e:Lhok;
    • LOGGER Link icon

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/sound/SoundManager;LOGGER:Lorg/slf4j/Logger;
      intermediary field_5593 Lnet/minecraft/class_1144;field_5593:Lorg/slf4j/Logger;
      official f Lhpt;f:Lorg/slf4j/Logger;
    • SOUNDS_JSON Link icon

      private static final String SOUNDS_JSON
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SOUNDS_JSON Lnet/minecraft/client/sound/SoundManager;SOUNDS_JSON:Ljava/lang/String;
      intermediary field_33026 Lnet/minecraft/class_1144;field_33026:Ljava/lang/String;
      official g Lhpt;g:Ljava/lang/String;
    • GSON Link icon

      private static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      named GSON Lnet/minecraft/client/sound/SoundManager;GSON:Lcom/google/gson/Gson;
      intermediary field_5594 Lnet/minecraft/class_1144;field_5594:Lcom/google/gson/Gson;
      official h Lhpt;h:Lcom/google/gson/Gson;
    • TYPE Link icon

      private static final TypeToken<Map<String,SoundEntry>> TYPE
      Mappings:
      Namespace Name Mixin selector
      named TYPE Lnet/minecraft/client/sound/SoundManager;TYPE:Lcom/google/gson/reflect/TypeToken;
      intermediary field_5591 Lnet/minecraft/class_1144;field_5591:Lcom/google/gson/reflect/TypeToken;
      official i Lhpt;i:Lcom/google/gson/reflect/TypeToken;
    • sounds Link icon

      private final Map<Identifier,WeightedSoundSet> sounds
      Mappings:
      Namespace Name Mixin selector
      named sounds Lnet/minecraft/client/sound/SoundManager;sounds:Ljava/util/Map;
      intermediary field_5588 Lnet/minecraft/class_1144;field_5588:Ljava/util/Map;
      official j Lhpt;j:Ljava/util/Map;
    • soundSystem Link icon

      private final SoundSystem soundSystem
      Mappings:
      Namespace Name Mixin selector
      named soundSystem Lnet/minecraft/client/sound/SoundManager;soundSystem:Lnet/minecraft/client/sound/SoundSystem;
      intermediary field_5590 Lnet/minecraft/class_1144;field_5590:Lnet/minecraft/class_1140;
      official k Lhpt;k:Lhpq;
    • soundResources Link icon

      private final Map<Identifier,Resource> soundResources
      Mappings:
      Namespace Name Mixin selector
      named soundResources Lnet/minecraft/client/sound/SoundManager;soundResources:Ljava/util/Map;
      intermediary field_40576 Lnet/minecraft/class_1144;field_40576:Ljava/util/Map;
      official l Lhpt;l:Ljava/util/Map;
  • Constructor Details Link icon

    • SoundManager Link icon

      public SoundManager(GameOptions gameOptions)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/sound/SoundManager;<init>(Lnet/minecraft/client/option/GameOptions;)V
      intermediary <init> Lnet/minecraft/class_1144;<init>(Lnet/minecraft/class_315;)V
      official <init> Lhpt;<init>(Lfqu;)V
  • Method Details Link icon

    • prepare Link icon

      protected SoundManager.SoundList prepare(ResourceManager resourceManager, Profiler profiler)
      Description copied from class: SinglePreparationResourceReloader
      Prepares the intermediate object.

      This method is called in the prepare executor in a reload.

      Specified by:
      prepare in class SinglePreparationResourceReloader<SoundManager.SoundList>
      Parameters:
      resourceManager - the resource manager
      profiler - the prepare profiler
      Returns:
      the prepared object
      Mappings:
      Namespace Name Mixin selector
      named prepare Lnet/minecraft/client/sound/SoundManager;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Lnet/minecraft/client/sound/SoundManager$SoundList;
      intermediary method_18180 Lnet/minecraft/class_1144;method_18180(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Lnet/minecraft/class_1144$class_4009;
      official a Lhpt;a(Lavo;Lbrm;)Lhpt$a;
    • apply Link icon

      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 class SinglePreparationResourceReloader<SoundManager.SoundList>
      Parameters:
      soundList - the prepared object
      resourceManager - the resource manager
      profiler - the apply profiler
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/client/sound/SoundManager;apply(Lnet/minecraft/client/sound/SoundManager$SoundList;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)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
      official a Lhpt;a(Lhpt$a;Lavo;Lbrm;)V
    • getSoundDevices Link icon

      public List<String> getSoundDevices()
      Mappings:
      Namespace Name Mixin selector
      named getSoundDevices Lnet/minecraft/client/sound/SoundManager;getSoundDevices()Ljava/util/List;
      intermediary method_38565 Lnet/minecraft/class_1144;method_38565()Ljava/util/List;
      official a Lhpt;a()Ljava/util/List;
    • getListenerTransform Link icon

      public SoundListenerTransform getListenerTransform()
      Mappings:
      Namespace Name Mixin selector
      named getListenerTransform Lnet/minecraft/client/sound/SoundManager;getListenerTransform()Lnet/minecraft/client/sound/SoundListenerTransform;
      intermediary method_55593 Lnet/minecraft/class_1144;method_55593()Lnet/minecraft/class_9054;
      official b Lhpt;b()Lfim;
    • isSoundResourcePresent Link icon

      static boolean isSoundResourcePresent(Sound sound, Identifier id, ResourceFactory resourceFactory)
      Mappings:
      Namespace Name Mixin selector
      named isSoundResourcePresent Lnet/minecraft/client/sound/SoundManager;isSoundResourcePresent(Lnet/minecraft/client/sound/Sound;Lnet/minecraft/util/Identifier;Lnet/minecraft/resource/ResourceFactory;)Z
      intermediary method_4868 Lnet/minecraft/class_1144;method_4868(Lnet/minecraft/class_1111;Lnet/minecraft/class_2960;Lnet/minecraft/class_5912;)Z
      official a Lhpt;a(Lhok;Lalr;Lavr;)Z
    • get Link icon

      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/client/sound/SoundManager;get(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/sound/WeightedSoundSet;
      intermediary method_4869 Lnet/minecraft/class_1144;method_4869(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1146;
      official a Lhpt;a(Lalr;)Lhpu;
    • getKeys Link icon

      public Collection<Identifier> getKeys()
      Mappings:
      Namespace Name Mixin selector
      named getKeys Lnet/minecraft/client/sound/SoundManager;getKeys()Ljava/util/Collection;
      intermediary method_4864 Lnet/minecraft/class_1144;method_4864()Ljava/util/Collection;
      official c Lhpt;c()Ljava/util/Collection;
    • playNextTick Link icon

      public void playNextTick(TickableSoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      named playNextTick Lnet/minecraft/client/sound/SoundManager;playNextTick(Lnet/minecraft/client/sound/TickableSoundInstance;)V
      intermediary method_22140 Lnet/minecraft/class_1144;method_22140(Lnet/minecraft/class_1117;)V
      official a Lhpt;a(Lhoo;)V
    • play Link icon

      public void play(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      named play Lnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;)V
      intermediary method_4873 Lnet/minecraft/class_1144;method_4873(Lnet/minecraft/class_1113;)V
      official a Lhpt;a(Lhon;)V
    • play Link icon

      public void play(SoundInstance sound, int delay)
      Mappings:
      Namespace Name Mixin selector
      named play Lnet/minecraft/client/sound/SoundManager;play(Lnet/minecraft/client/sound/SoundInstance;I)V
      intermediary method_4872 Lnet/minecraft/class_1144;method_4872(Lnet/minecraft/class_1113;I)V
      official a Lhpt;a(Lhon;I)V
    • updateListenerPosition Link icon

      public void updateListenerPosition(Camera camera)
      Mappings:
      Namespace Name Mixin selector
      named updateListenerPosition Lnet/minecraft/client/sound/SoundManager;updateListenerPosition(Lnet/minecraft/client/render/Camera;)V
      intermediary method_4876 Lnet/minecraft/class_1144;method_4876(Lnet/minecraft/class_4184;)V
      official a Lhpt;a(Lfpy;)V
    • pauseAll Link icon

      public void pauseAll()
      Mappings:
      Namespace Name Mixin selector
      named pauseAll Lnet/minecraft/client/sound/SoundManager;pauseAll()V
      intermediary method_4879 Lnet/minecraft/class_1144;method_4879()V
      official d Lhpt;d()V
    • stopAll Link icon

      public void stopAll()
      Mappings:
      Namespace Name Mixin selector
      named stopAll Lnet/minecraft/client/sound/SoundManager;stopAll()V
      intermediary method_4881 Lnet/minecraft/class_1144;method_4881()V
      official e Lhpt;e()V
    • close Link icon

      public void close()
      Mappings:
      Namespace Name Mixin selector
      named close Lnet/minecraft/client/sound/SoundManager;close()V
      intermediary method_4882 Lnet/minecraft/class_1144;method_4882()V
      official f Lhpt;f()V
    • stopAbruptly Link icon

      public void stopAbruptly()
      Mappings:
      Namespace Name Mixin selector
      named stopAbruptly Lnet/minecraft/client/sound/SoundManager;stopAbruptly()V
      intermediary method_54649 Lnet/minecraft/class_1144;method_54649()V
      official g Lhpt;g()V
    • tick Link icon

      public void tick(boolean paused)
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/client/sound/SoundManager;tick(Z)V
      intermediary method_18670 Lnet/minecraft/class_1144;method_18670(Z)V
      official a Lhpt;a(Z)V
    • resumeAll Link icon

      public void resumeAll()
      Mappings:
      Namespace Name Mixin selector
      named resumeAll Lnet/minecraft/client/sound/SoundManager;resumeAll()V
      intermediary method_4880 Lnet/minecraft/class_1144;method_4880()V
      official h Lhpt;h()V
    • updateSoundVolume Link icon

      public void updateSoundVolume(SoundCategory category, float volume)
      Mappings:
      Namespace Name Mixin selector
      named updateSoundVolume Lnet/minecraft/client/sound/SoundManager;updateSoundVolume(Lnet/minecraft/sound/SoundCategory;F)V
      intermediary method_4865 Lnet/minecraft/class_1144;method_4865(Lnet/minecraft/class_3419;F)V
      official a Lhpt;a(Lawz;F)V
    • stop Link icon

      public void stop(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      named stop Lnet/minecraft/client/sound/SoundManager;stop(Lnet/minecraft/client/sound/SoundInstance;)V
      intermediary method_4870 Lnet/minecraft/class_1144;method_4870(Lnet/minecraft/class_1113;)V
      official b Lhpt;b(Lhon;)V
    • setVolume Link icon

      public void setVolume(SoundInstance sound, float volume)
      Mappings:
      Namespace Name Mixin selector
      named setVolume Lnet/minecraft/client/sound/SoundManager;setVolume(Lnet/minecraft/client/sound/SoundInstance;F)V
      intermediary method_65258 Lnet/minecraft/class_1144;method_65258(Lnet/minecraft/class_1113;F)V
      official a Lhpt;a(Lhon;F)V
    • isPlaying Link icon

      public boolean isPlaying(SoundInstance sound)
      Mappings:
      Namespace Name Mixin selector
      named isPlaying Lnet/minecraft/client/sound/SoundManager;isPlaying(Lnet/minecraft/client/sound/SoundInstance;)Z
      intermediary method_4877 Lnet/minecraft/class_1144;method_4877(Lnet/minecraft/class_1113;)Z
      official c Lhpt;c(Lhon;)Z
    • registerListener Link icon

      public void registerListener(SoundInstanceListener listener)
      Mappings:
      Namespace Name Mixin selector
      named registerListener Lnet/minecraft/client/sound/SoundManager;registerListener(Lnet/minecraft/client/sound/SoundInstanceListener;)V
      intermediary method_4878 Lnet/minecraft/class_1144;method_4878(Lnet/minecraft/class_1145;)V
      official a Lhpt;a(Lhps;)V
    • unregisterListener Link icon

      public void unregisterListener(SoundInstanceListener listener)
      Mappings:
      Namespace Name Mixin selector
      named unregisterListener Lnet/minecraft/client/sound/SoundManager;unregisterListener(Lnet/minecraft/client/sound/SoundInstanceListener;)V
      intermediary method_4866 Lnet/minecraft/class_1144;method_4866(Lnet/minecraft/class_1145;)V
      official b Lhpt;b(Lhps;)V
    • stopSounds Link icon

      public void stopSounds(@Nullable @Nullable Identifier id, @Nullable @Nullable SoundCategory soundCategory)
      Mappings:
      Namespace Name Mixin selector
      named stopSounds Lnet/minecraft/client/sound/SoundManager;stopSounds(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;)V
      intermediary method_4875 Lnet/minecraft/class_1144;method_4875(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;)V
      official a Lhpt;a(Lalr;Lawz;)V
    • getDebugString Link icon

      public String getDebugString()
      Mappings:
      Namespace Name Mixin selector
      named getDebugString Lnet/minecraft/client/sound/SoundManager;getDebugString()Ljava/lang/String;
      intermediary method_20305 Lnet/minecraft/class_1144;method_20305()Ljava/lang/String;
      official i Lhpt;i()Ljava/lang/String;
    • reloadSounds Link icon

      public void reloadSounds()
      Mappings:
      Namespace Name Mixin selector
      named reloadSounds Lnet/minecraft/client/sound/SoundManager;reloadSounds()V
      intermediary method_38566 Lnet/minecraft/class_1144;method_38566()V
      official j Lhpt;j()V