AudioStream .java

net.minecraft.client.sounds.AudioStream (interface, 16 lines): extends Closeable. members: getFormat, read. imports: EnvType.

net.minecraft.client.soundsinterface16 linesclientextends Closeable399 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Full Source

AudioStream.java16 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.sounds;
2
3
import java.io.Closeable;
4
import java.io.IOException;
5
import java.nio.ByteBuffer;
6
import javax.sound.sampled.AudioFormat;
7
import net.fabricmc.api.EnvType;
8
import net.fabricmc.api.Environment;
9
10
@Environment(EnvType.CLIENT)
11
public interface AudioStream extends Closeable {
12
	AudioFormat getFormat();
13
14
	ByteBuffer read(final int expectedSize) throws IOException;
15
}
16

Decompiled Minecraft 26.3 source of AudioStream (net/minecraft/client/sounds/AudioStream.java) with Mojang official mappings, stored verbatim on the site.