Package net.minecraft.client.sound
Class SoundLoader
java.lang.Object
net.minecraft.client.sound.SoundLoader
@Environment(CLIENT) public class SoundLoader extends Object
- Mappings:
Namespace Name official eviintermediary net/minecraft/class_4237named net/minecraft/client/sound/SoundLoader
-
Field Summary
Fields Modifier and Type Field Description private Map<Identifier,CompletableFuture<StaticSound>>loadedSoundsprivate ResourceManagerresourceManager -
Constructor Summary
Constructors Constructor Description SoundLoader(ResourceManager resourceManager) -
Method Summary
Modifier and Type Method Description voidclose()CompletableFuture<?>loadStatic(Collection<Sound> sounds)CompletableFuture<StaticSound>loadStatic(Identifier id)CompletableFuture<AudioStream>loadStreamed(Identifier id, boolean repeatInstantly)
-
Field Details
-
resourceManager
- Mappings:
Namespace Name Mixin selector official aLevi;a:Lacx;intermediary field_18943Lnet/minecraft/class_4237;field_18943:Lnet/minecraft/class_3300;named resourceManagerLnet/minecraft/client/sound/SoundLoader;resourceManager:Lnet/minecraft/resource/ResourceManager;
-
loadedSounds
- Mappings:
Namespace Name Mixin selector official bLevi;b:Ljava/util/Map;intermediary field_18944Lnet/minecraft/class_4237;field_18944:Ljava/util/Map;named loadedSoundsLnet/minecraft/client/sound/SoundLoader;loadedSounds:Ljava/util/Map;
-
-
Constructor Details
-
SoundLoader
- Mappings:
Namespace Name Mixin selector official <init>Levi;<init>(Lacx;)Vintermediary <init>Lnet/minecraft/class_4237;<init>(Lnet/minecraft/class_3300;)Vnamed <init>Lnet/minecraft/client/sound/SoundLoader;<init>(Lnet/minecraft/resource/ResourceManager;)V
-
-
Method Details
-
loadStatic
- Mappings:
Namespace Name Mixin selector official aLevi;a(Lwb;)Ljava/util/concurrent/CompletableFuture;intermediary method_19743Lnet/minecraft/class_4237;method_19743(Lnet/minecraft/class_2960;)Ljava/util/concurrent/CompletableFuture;named loadStaticLnet/minecraft/client/sound/SoundLoader;loadStatic(Lnet/minecraft/util/Identifier;)Ljava/util/concurrent/CompletableFuture;
-
loadStreamed
- Mappings:
Namespace Name Mixin selector official aLevi;a(Lwb;Z)Ljava/util/concurrent/CompletableFuture;intermediary method_19744Lnet/minecraft/class_4237;method_19744(Lnet/minecraft/class_2960;Z)Ljava/util/concurrent/CompletableFuture;named loadStreamedLnet/minecraft/client/sound/SoundLoader;loadStreamed(Lnet/minecraft/util/Identifier;Z)Ljava/util/concurrent/CompletableFuture;
-
close
public void close()- Mappings:
Namespace Name Mixin selector official aLevi;a()Vintermediary method_19738Lnet/minecraft/class_4237;method_19738()Vnamed closeLnet/minecraft/client/sound/SoundLoader;close()V
-
loadStatic
- Mappings:
Namespace Name Mixin selector official aLevi;a(Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;intermediary method_19741Lnet/minecraft/class_4237;method_19741(Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;named loadStaticLnet/minecraft/client/sound/SoundLoader;loadStatic(Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;
-