Package net.minecraft.client.sounds
Class ChannelAccess
java.lang.Object
net.minecraft.client.sounds.ChannelAccess
The ChannelAccess class provides access to channels for playing audio data using a given library and executor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Represents a handle to a channel. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
createHandle
(Library.Pool pSystemMode) Creates a new channel handle for the specified system mode and returns a CompletableFuture that completes with the handle when it is created.void
executeOnChannels
(Consumer<Stream<Channel>> pSourceStreamConsumer) void
-
Field Details
-
channels
-
library
-
executor
-
-
Constructor Details
-
ChannelAccess
-
-
Method Details
-
createHandle
Creates a new channel handle for the specified system mode and returns a CompletableFuture that completes with the handle when it is created.- Parameters:
pSystemMode
- systemMode the system mode to create the channel handle for- Returns:
- a CompletableFuture that completes with the channel handle when it is created, or null if it cannot be created
-
executeOnChannels
- Parameters:
pSourceStreamConsumer
- the consumer to execute on the stream of channels
-
scheduleTick
public void scheduleTick() -
clear
public void clear()
-