net.minecraft.client.sound

public class SoundLoader

net.minecraft.client.sounds.SoundBufferLibrary
net.minecraft.class_4237
net.minecraft.client.sound.SoundLoader

Field summary

Modifier and TypeField
private final ResourceFactory
resourceManager
field_18943
resourceFactory
private final Map<Identifier, CompletableFuture<StaticSound>>
cache
field_18944
loadedSounds

Constructor summary

ModifierConstructor
public (ResourceFactory resourceFactory)

Method summary

Modifier and TypeMethod
public CompletableFuture<StaticSound>
getCompleteBuffer(Identifier location)
method_19743(class_2960 arg0)
loadStatic(Identifier id)
public CompletableFuture<AudioStream>
getStream(Identifier location, boolean looping)
method_19744(class_2960 arg0, boolean arg1)
loadStreamed(Identifier id, boolean repeatInstantly)
public void
clear()
method_19738()
close()
public CompletableFuture<?>
preload(Collection<Sound> sounds)
method_19741(Collection<class_1111> arg0)
loadStatic(Collection<Sound> sounds)
public void
enumerate(SoundBufferLibrary$DebugOutput debugOutput)
method_1_2602(class_4237$class_1_387 arg0)
forLoadedSounds(SoundLoader$StatisticsConsumer callback)
private static void
lambda$enumerate$0(SoundBufferLibrary$DebugOutput arg0, Identifier arg1, CompletableFuture arg2)
method_1_2603(class_4237$class_1_387 arg0, class_2960 arg1, CompletableFuture arg2)
method_1_2603(SoundLoader$StatisticsConsumer arg0, Identifier id, CompletableFuture future)
private static CompletableFuture[]
lambda$preload$1(int arg0)
method_19739(int arg0)
method_19739(int arg0)
private CompletableFuture
lambda$preload$0(Sound arg0)
method_19740(class_1111 arg0)
method_19740(Sound sound)
private static void
lambda$clear$0(CompletableFuture arg0)
method_19742(CompletableFuture arg0)
method_19742(CompletableFuture soundFuture)
private AudioStream
lambda$getStream$0(Identifier arg0, boolean arg1)
method_19745(class_2960 arg0, boolean arg1)
method_19745(Identifier arg0, boolean arg1)
private CompletableFuture
lambda$getCompleteBuffer$0(Identifier arg0)
method_19746(class_2960 arg0)
method_19746(Identifier id2)
private StaticSound
lambda$getCompleteBuffer$1(Identifier arg0)
method_19747(class_2960 arg0)
method_19747(Identifier arg0)