Package net.minecraft.client.sound
Class RepeatingAudioStream
java.lang.Object
net.minecraft.client.sound.RepeatingAudioStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AudioStream
@Environment(CLIENT) public class RepeatingAudioStream extends Object implements AudioStream
- Mappings:
Namespace Name official evg
intermediary net/minecraft/class_4856
named net/minecraft/client/sound/RepeatingAudioStream
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RepeatingAudioStream.DelegateFactory
(package private) static class
RepeatingAudioStream.ReusableInputStream
-
Field Summary
Fields Modifier and Type Field Description private AudioStream
delegate
private RepeatingAudioStream.DelegateFactory
delegateFactory
private BufferedInputStream
inputStream
-
Constructor Summary
Constructors Constructor Description RepeatingAudioStream(RepeatingAudioStream.DelegateFactory delegateFactory, InputStream inputStream)
-
Method Summary
Modifier and Type Method Description void
close()
ByteBuffer
getBuffer(int size)
AudioFormat
getFormat()
-
Field Details
-
delegateFactory
- Mappings:
Namespace Name Mixin selector official a
Levg;a:Levg$a;
intermediary field_22443
Lnet/minecraft/class_4856;field_22443:Lnet/minecraft/class_4856$class_4857;
named delegateFactory
Lnet/minecraft/client/sound/RepeatingAudioStream;delegateFactory:Lnet/minecraft/client/sound/RepeatingAudioStream$DelegateFactory;
-
delegate
- Mappings:
Namespace Name Mixin selector official b
Levg;b:Leve;
intermediary field_22444
Lnet/minecraft/class_4856;field_22444:Lnet/minecraft/class_4234;
named delegate
Lnet/minecraft/client/sound/RepeatingAudioStream;delegate:Lnet/minecraft/client/sound/AudioStream;
-
inputStream
- Mappings:
Namespace Name Mixin selector official c
Levg;c:Ljava/io/BufferedInputStream;
intermediary field_22445
Lnet/minecraft/class_4856;field_22445:Ljava/io/BufferedInputStream;
named inputStream
Lnet/minecraft/client/sound/RepeatingAudioStream;inputStream:Ljava/io/BufferedInputStream;
-
-
Constructor Details
-
RepeatingAudioStream
public RepeatingAudioStream(RepeatingAudioStream.DelegateFactory delegateFactory, InputStream inputStream) throws IOException- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official <init>
Levg;<init>(Levg$a;Ljava/io/InputStream;)V
intermediary <init>
Lnet/minecraft/class_4856;<init>(Lnet/minecraft/class_4856$class_4857;Ljava/io/InputStream;)V
named <init>
Lnet/minecraft/client/sound/RepeatingAudioStream;<init>(Lnet/minecraft/client/sound/RepeatingAudioStream$DelegateFactory;Ljava/io/InputStream;)V
-
-
Method Details
-
getFormat
- Specified by:
getFormat
in interfaceAudioStream
- Mappings:
Namespace Name Mixin selector official a
Leve;a()Ljavax/sound/sampled/AudioFormat;
intermediary method_19719
Lnet/minecraft/class_4234;method_19719()Ljavax/sound/sampled/AudioFormat;
named getFormat
Lnet/minecraft/client/sound/AudioStream;getFormat()Ljavax/sound/sampled/AudioFormat;
-
getBuffer
- Specified by:
getBuffer
in interfaceAudioStream
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Leve;a(I)Ljava/nio/ByteBuffer;
intermediary method_19720
Lnet/minecraft/class_4234;method_19720(I)Ljava/nio/ByteBuffer;
named getBuffer
Lnet/minecraft/client/sound/AudioStream;getBuffer(I)Ljava/nio/ByteBuffer;
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official close
Levg;close()V
intermediary close
Lnet/minecraft/class_4856;close()V
named close
Lnet/minecraft/client/sound/RepeatingAudioStream;close()V
-