类 SoundLoader


  • @Environment(CLIENT)
    public class SoundLoader
    extends Object
    Mappings:
    Namespace Name
    official ezq
    intermediary net/minecraft/class_4237
    named net/minecraft/client/sound/SoundLoader
    • 字段详细资料

      • resourceManager

        private final ResourceManager resourceManager
        Mappings:
        Namespace Name Mixin selector
        official a Lezq;a:Ladl;
        intermediary field_18943 Lnet/minecraft/class_4237;field_18943:Lnet/minecraft/class_3300;
        named resourceManager Lnet/minecraft/client/sound/SoundLoader;resourceManager:Lnet/minecraft/resource/ResourceManager;
      • loadedSounds

        private final Map<Identifier,​CompletableFuture<StaticSound>> loadedSounds
        Mappings:
        Namespace Name Mixin selector
        official b Lezq;b:Ljava/util/Map;
        intermediary field_18944 Lnet/minecraft/class_4237;field_18944:Ljava/util/Map;
        named loadedSounds Lnet/minecraft/client/sound/SoundLoader;loadedSounds:Ljava/util/Map;
    • 构造器详细资料

      • SoundLoader

        public SoundLoader​(ResourceManager resourceManager)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lezq;<init>(Ladl;)V
        intermediary <init> Lnet/minecraft/class_4237;<init>(Lnet/minecraft/class_3300;)V
        named <init> Lnet/minecraft/client/sound/SoundLoader;<init>(Lnet/minecraft/resource/ResourceManager;)V
    • 方法详细资料

      • loadStatic

        public CompletableFuture<StaticSound> loadStatic​(Identifier id)
        Mappings:
        Namespace Name Mixin selector
        official a Lezq;a(Lwp;)Ljava/util/concurrent/CompletableFuture;
        intermediary method_19743 Lnet/minecraft/class_4237;method_19743(Lnet/minecraft/class_2960;)Ljava/util/concurrent/CompletableFuture;
        named loadStatic Lnet/minecraft/client/sound/SoundLoader;loadStatic(Lnet/minecraft/util/Identifier;)Ljava/util/concurrent/CompletableFuture;
      • loadStreamed

        public CompletableFuture<AudioStream> loadStreamed​(Identifier id,
                                                           boolean repeatInstantly)
        Mappings:
        Namespace Name Mixin selector
        official a Lezq;a(Lwp;Z)Ljava/util/concurrent/CompletableFuture;
        intermediary method_19744 Lnet/minecraft/class_4237;method_19744(Lnet/minecraft/class_2960;Z)Ljava/util/concurrent/CompletableFuture;
        named loadStreamed Lnet/minecraft/client/sound/SoundLoader;loadStreamed(Lnet/minecraft/util/Identifier;Z)Ljava/util/concurrent/CompletableFuture;
      • close

        public void close()
        Mappings:
        Namespace Name Mixin selector
        official a Lezq;a()V
        intermediary method_19738 Lnet/minecraft/class_4237;method_19738()V
        named close Lnet/minecraft/client/sound/SoundLoader;close()V
      • loadStatic

        public CompletableFuture<?> loadStatic​(Collection<Sound> sounds)
        Mappings:
        Namespace Name Mixin selector
        official a Lezq;a(Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;
        intermediary method_19741 Lnet/minecraft/class_4237;method_19741(Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;
        named loadStatic Lnet/minecraft/client/sound/SoundLoader;loadStatic(Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;