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)
private static CompletableFuture[]
lambda$preload$5(int arg0)
method_19739(int arg0)
method_19739(int arg0)
private CompletableFuture
lambda$preload$4(Sound arg0)
method_19740(class_1111 arg0)
method_19740(Sound sound)
private static void
lambda$clear$3(CompletableFuture arg0)
method_19742(CompletableFuture arg0)
method_19742(CompletableFuture soundFuture)
private AudioStream
lambda$getStream$2(Identifier arg0, boolean arg1)
method_19745(class_2960 arg0, boolean arg1)
method_19745(Identifier arg0, boolean arg1)
private CompletableFuture
lambda$getCompleteBuffer$1(Identifier arg0)
method_19746(class_2960 arg0)
method_19746(Identifier id2)
private StaticSound
lambda$getCompleteBuffer$0(Identifier arg0)
method_19747(class_2960 arg0)
method_19747(Identifier arg0)