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 fxd
intermediary net/minecraft/class_4856
named net/minecraft/client/sound/RepeatingAudioStream
  • Field Details

    • delegateFactory

      private final RepeatingAudioStream.DelegateFactory delegateFactory
      Mappings:
      Namespace Name Mixin selector
      official a Lfxd;a:Lfxd$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

      private AudioStream delegate
      Mappings:
      Namespace Name Mixin selector
      official b Lfxd;b:Lfxb;
      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

      private final BufferedInputStream inputStream
      Mappings:
      Namespace Name Mixin selector
      official c Lfxd;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> Lfxd;<init>(Lfxd$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

      public AudioFormat getFormat()
      Specified by:
      getFormat in interface AudioStream
      Mappings:
      Namespace Name Mixin selector
      official a Lfxb;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

      public ByteBuffer getBuffer(int size) throws IOException
      Specified by:
      getBuffer in interface AudioStream
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lfxb;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

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException