Class SoundLoader

java.lang.Object
net.minecraft.client.sound.SoundLoader

@Environment(CLIENT) public class SoundLoader extends Object
Mappings:
Namespace Name
named net/minecraft/client/sound/SoundLoader
intermediary net/minecraft/class_4237
official hgi
  • Field Details

    • resourceFactory

      private final ResourceFactory resourceFactory
      Mappings:
      Namespace Name Mixin selector
      named resourceFactory Lnet/minecraft/client/sound/SoundLoader;resourceFactory:Lnet/minecraft/resource/ResourceFactory;
      intermediary field_18943 Lnet/minecraft/class_4237;field_18943:Lnet/minecraft/class_5912;
      official a Lhgi;a:Lavy;
    • loadedSounds

      private final Map<Identifier,CompletableFuture<StaticSound>> loadedSounds
      Mappings:
      Namespace Name Mixin selector
      named loadedSounds Lnet/minecraft/client/sound/SoundLoader;loadedSounds:Ljava/util/Map;
      intermediary field_18944 Lnet/minecraft/class_4237;field_18944:Ljava/util/Map;
      official b Lhgi;b:Ljava/util/Map;
  • Constructor Details

    • SoundLoader

      public SoundLoader(ResourceFactory resourceFactory)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/sound/SoundLoader;<init>(Lnet/minecraft/resource/ResourceFactory;)V
      intermediary <init> Lnet/minecraft/class_4237;<init>(Lnet/minecraft/class_5912;)V
      official <init> Lhgi;<init>(Lavy;)V
  • Method Details

    • loadStatic

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

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

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

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