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

    • delegateFactory

      private final RepeatingAudioStream.DelegateFactory delegateFactory
      Mappings:
      Namespace Name Mixin selector
      named delegateFactory Lnet/minecraft/client/sound/RepeatingAudioStream;delegateFactory:Lnet/minecraft/client/sound/RepeatingAudioStream$DelegateFactory;
      intermediary field_22443 Lnet/minecraft/class_4856;field_22443:Lnet/minecraft/class_4856$class_4857;
      official a Lhgg;a:Lhgg$a;
    • delegate

      private AudioStream delegate
      Mappings:
      Namespace Name Mixin selector
      named delegate Lnet/minecraft/client/sound/RepeatingAudioStream;delegate:Lnet/minecraft/client/sound/AudioStream;
      intermediary field_22444 Lnet/minecraft/class_4856;field_22444:Lnet/minecraft/class_4234;
      official b Lhgg;b:Lhga;
    • inputStream

      private final BufferedInputStream inputStream
      Mappings:
      Namespace Name Mixin selector
      named inputStream Lnet/minecraft/client/sound/RepeatingAudioStream;inputStream:Ljava/io/BufferedInputStream;
      intermediary field_22445 Lnet/minecraft/class_4856;field_22445:Ljava/io/BufferedInputStream;
      official c Lhgg;c:Ljava/io/BufferedInputStream;
  • Constructor Details

    • RepeatingAudioStream

      public RepeatingAudioStream(RepeatingAudioStream.DelegateFactory delegateFactory, InputStream inputStream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/sound/RepeatingAudioStream;<init>(Lnet/minecraft/client/sound/RepeatingAudioStream$DelegateFactory;Ljava/io/InputStream;)V
      intermediary <init> Lnet/minecraft/class_4856;<init>(Lnet/minecraft/class_4856$class_4857;Ljava/io/InputStream;)V
      official <init> Lhgg;<init>(Lhgg$a;Ljava/io/InputStream;)V
  • Method Details

    • getFormat

      public AudioFormat getFormat()
      Specified by:
      getFormat in interface AudioStream
      Mappings:
      Namespace Name Mixin selector
      named getFormat Lnet/minecraft/client/sound/AudioStream;getFormat()Ljavax/sound/sampled/AudioFormat;
      intermediary method_19719 Lnet/minecraft/class_4234;method_19719()Ljavax/sound/sampled/AudioFormat;
      official a Lhga;a()Ljavax/sound/sampled/AudioFormat;
    • read

      public ByteBuffer read(int size) throws IOException
      Specified by:
      read in interface AudioStream
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named read Lnet/minecraft/client/sound/AudioStream;read(I)Ljava/nio/ByteBuffer;
      intermediary method_19720 Lnet/minecraft/class_4234;method_19720(I)Ljava/nio/ByteBuffer;
      official a Lhga;a(I)Ljava/nio/ByteBuffer;
    • close

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