Class StaticSound

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

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

    • sample

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

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

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

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

    • StaticSound

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

    • getStreamBufferPointer

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

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

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