Package net.minecraft.client.audio
Class AudioStreamManager
- java.lang.Object
-
- net.minecraft.client.audio.AudioStreamManager
-
public class AudioStreamManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<ResourceLocation,java.util.concurrent.CompletableFuture<AudioStreamBuffer>>
cache
private IResourceManager
resourceManager
-
Constructor Summary
Constructors Constructor Description AudioStreamManager(IResourceManager p_i50893_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
java.util.concurrent.CompletableFuture<AudioStreamBuffer>
getCompleteBuffer(ResourceLocation p_217909_1_)
java.util.concurrent.CompletableFuture<IAudioStream>
getStream(ResourceLocation p_217917_1_, boolean p_217917_2_)
java.util.concurrent.CompletableFuture<?>
preload(java.util.Collection<Sound> p_217908_1_)
-
-
-
Field Detail
-
resourceManager
private final IResourceManager resourceManager
-
cache
private final java.util.Map<ResourceLocation,java.util.concurrent.CompletableFuture<AudioStreamBuffer>> cache
-
-
Constructor Detail
-
AudioStreamManager
public AudioStreamManager(IResourceManager p_i50893_1_)
-
-
Method Detail
-
getCompleteBuffer
public java.util.concurrent.CompletableFuture<AudioStreamBuffer> getCompleteBuffer(ResourceLocation p_217909_1_)
-
getStream
public java.util.concurrent.CompletableFuture<IAudioStream> getStream(ResourceLocation p_217917_1_, boolean p_217917_2_)
-
clear
public void clear()
-
preload
public java.util.concurrent.CompletableFuture<?> preload(java.util.Collection<Sound> p_217908_1_)
-
-