Class StaticSound

java.lang.Object
net.minecraft.client.sound.StaticSound

@Environment(CLIENT) public class StaticSound extends Object
Mappings:
Namespace Name
named net/minecraft/client/sound/StaticSound
intermediary net/minecraft/class_4231
official ezd
  • Field Details

    • sample

      @Nullable private @Nullable ByteBuffer sample
      Mappings:
      Namespace Name Mixin selector
      named sample Lnet/minecraft/client/sound/StaticSound;sample:Ljava/nio/ByteBuffer;
      intermediary field_18916 Lnet/minecraft/class_4231;field_18916:Ljava/nio/ByteBuffer;
      official a Lezd;a:Ljava/nio/ByteBuffer;
    • format

      private final AudioFormat format
      Mappings:
      Namespace Name Mixin selector
      named format Lnet/minecraft/client/sound/StaticSound;format:Ljavax/sound/sampled/AudioFormat;
      intermediary field_18917 Lnet/minecraft/class_4231;field_18917:Ljavax/sound/sampled/AudioFormat;
      official b Lezd;b:Ljavax/sound/sampled/AudioFormat;
    • hasBuffer

      private boolean hasBuffer
      Mappings:
      Namespace Name Mixin selector
      named hasBuffer Lnet/minecraft/client/sound/StaticSound;hasBuffer:Z
      intermediary field_18918 Lnet/minecraft/class_4231;field_18918:Z
      official c Lezd;c:Z
    • streamBufferPointer

      private int streamBufferPointer
      Mappings:
      Namespace Name Mixin selector
      named streamBufferPointer Lnet/minecraft/client/sound/StaticSound;streamBufferPointer:I
      intermediary field_18919 Lnet/minecraft/class_4231;field_18919:I
      official d Lezd;d:I
  • Constructor Details

    • StaticSound

      public StaticSound(ByteBuffer sample, AudioFormat format)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/sound/StaticSound;<init>(Ljava/nio/ByteBuffer;Ljavax/sound/sampled/AudioFormat;)V
      intermediary <init> Lnet/minecraft/class_4231;<init>(Ljava/nio/ByteBuffer;Ljavax/sound/sampled/AudioFormat;)V
      official <init> Lezd;<init>(Ljava/nio/ByteBuffer;Ljavax/sound/sampled/AudioFormat;)V
  • Method Details

    • getStreamBufferPointer

      OptionalInt getStreamBufferPointer()
      Mappings:
      Namespace Name Mixin selector
      named getStreamBufferPointer Lnet/minecraft/client/sound/StaticSound;getStreamBufferPointer()Ljava/util/OptionalInt;
      intermediary method_19686 Lnet/minecraft/class_4231;method_19686()Ljava/util/OptionalInt;
      official a Lezd;a()Ljava/util/OptionalInt;
    • close

      public void close()
      Mappings:
      Namespace Name Mixin selector
      named close Lnet/minecraft/client/sound/StaticSound;close()V
      intermediary method_19687 Lnet/minecraft/class_4231;method_19687()V
      official b Lezd;b()V
    • takeStreamBufferPointer

      public OptionalInt takeStreamBufferPointer()
      Mappings:
      Namespace Name Mixin selector
      named takeStreamBufferPointer Lnet/minecraft/client/sound/StaticSound;takeStreamBufferPointer()Ljava/util/OptionalInt;
      intermediary method_19688 Lnet/minecraft/class_4231;method_19688()Ljava/util/OptionalInt;
      official c Lezd;c()Ljava/util/OptionalInt;