net.minecraft.client.sound

public class SoundLoader

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

Field summary

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

Constructor summary

ModifierConstructor
public (ResourceFactory resourceFactory)

Method summary

Modifier and TypeMethod
public CompletableFuture<StaticSound>
getCompleteBuffer(Identifier location)
getCompleteBuffer(Identifier location)
method_19743(class_2960 arg0)
loadStatic(Identifier id)
public CompletableFuture<AudioStream>
getStream(Identifier location, boolean looping)
getStream(Identifier location, boolean looping)
method_19744(class_2960 arg0, boolean arg1)
loadStreamed(Identifier id, boolean repeatInstantly)
public void
clear()
clear()
method_19738()
close()
public CompletableFuture<?>
preload(Collection<Sound> sounds)
preload(Collection<Sound> sounds)
method_19741(Collection<class_1111> arg0)
loadStatic(Collection<Sound> sounds)
public void
enumerate(SoundBufferLibrary$DebugOutput debugOutput)
enumerate(SoundBufferLibrary$DebugOutput debugOutput)
method_1_2602(class_4237$class_1_387 arg0)
forLoadedSounds(SoundLoader$StatisticsConsumer callback)