类 SoundManager

    • 字段详细资料

      • MISSING_SOUND

        public static final Sound MISSING_SOUND
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;a:Leyr;
        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;
      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official b Lezu;b:Lorg/apache/logging/log4j/Logger;
        intermediary field_5593 Lnet/minecraft/class_1144;field_5593:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/client/sound/SoundManager;LOGGER:Lorg/apache/logging/log4j/Logger;
      • field_33026

        private static final String field_33026
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lezu;c:Ljava/lang/String;
        intermediary field_33026 Lnet/minecraft/class_1144;field_33026:Ljava/lang/String;
        named field_33026 Lnet/minecraft/client/sound/SoundManager;field_33026:Ljava/lang/String;
      • GSON

        private static final Gson GSON
        Mappings:
        Namespace Name Mixin selector
        official d Lezu;d: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

        private static final TypeToken<Map<String,​SoundEntry>> TYPE
        Mappings:
        Namespace Name Mixin selector
        official e Lezu;e: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

        private final Map<Identifier,​WeightedSoundSet> sounds
        Mappings:
        Namespace Name Mixin selector
        official f Lezu;f: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

        private final SoundSystem soundSystem
        Mappings:
        Namespace Name Mixin selector
        official g Lezu;g:Lezr;
        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;
    • 方法详细资料

      • prepare

        protected SoundManager.SoundList prepare​(ResourceManager resourceManager,
                                                 Profiler profiler)
        从类复制的说明: SinglePreparationResourceReloader
        Prepares the intermediate object.

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

        指定者:
        prepare 在类中 SinglePreparationResourceReloader<SoundManager.SoundList>
        参数:
        resourceManager - the resource manager
        profiler - the prepare profiler
        返回:
        the prepared object
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;a(Ladl;Lapl;)Lezu$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)
        从类复制的说明: SinglePreparationResourceReloader
        Handles the prepared intermediate object.

        This method is called in the apply executor, or the game engine, in a reload.

        指定者:
        apply 在类中 SinglePreparationResourceReloader<SoundManager.SoundList>
        参数:
        soundList - the prepared object
        resourceManager - the resource manager
        profiler - the apply profiler
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;a(Lezu$a;Ladl;Lapl;)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
      • isSoundResourcePresent

        private static boolean isSoundResourcePresent​(Sound sound,
                                                      Identifier id,
                                                      ResourceManager resourceManager)
        Mappings:
        Namespace Name Mixin selector
        official b Lezu;b(Leyr;Lwp;Ladl;)Z
        intermediary method_4868 Lnet/minecraft/class_1144;method_4868(Lnet/minecraft/class_1111;Lnet/minecraft/class_2960;Lnet/minecraft/class_3300;)Z
        named isSoundResourcePresent Lnet/minecraft/client/sound/SoundManager;isSoundResourcePresent(Lnet/minecraft/client/sound/Sound;Lnet/minecraft/util/Identifier;Lnet/minecraft/resource/ResourceManager;)Z
      • get

        @Nullable
        public @Nullable WeightedSoundSet get​(Identifier id)
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;a(Lwp;)Lezv;
        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

        public Collection<Identifier> getKeys()
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;a()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

        public void playNextTick​(TickableSoundInstance sound)
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;a(Leyv;)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

        public void play​(SoundInstance sound)
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;a(Leyu;)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

        public void play​(SoundInstance sound,
                         int delay)
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;a(Leyu;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

        public void updateListenerPosition​(Camera camera)
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;a(Ldtx;)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 b Lezu;b()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 d Lezu;d()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 e Lezu;e()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 bool)
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;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 f Lezu;f()V
        intermediary method_4880 Lnet/minecraft/class_1144;method_4880()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 Lezu;a(Laex;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

        public void stop​(SoundInstance soundInstance)
        Mappings:
        Namespace Name Mixin selector
        official b Lezu;b(Leyu;)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

        public boolean isPlaying​(SoundInstance soundInstance)
        Mappings:
        Namespace Name Mixin selector
        official c Lezu;c(Leyu;)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

        public void registerListener​(SoundInstanceListener soundInstanceListener)
        Mappings:
        Namespace Name Mixin selector
        official a Lezu;a(Lezt;)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

        public void unregisterListener​(SoundInstanceListener soundInstanceListener)
        Mappings:
        Namespace Name Mixin selector
        official b Lezu;b(Lezt;)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 Lezu;a(Lwp;Laex;)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

        public String getDebugString()
        Mappings:
        Namespace Name Mixin selector
        official g Lezu;g()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;