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 fdm
  • Field Details Link icon

    • sample Link icon

      @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 Lfdm;a:Ljava/nio/ByteBuffer;
    • format Link icon

      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 Lfdm;b:Ljavax/sound/sampled/AudioFormat;
    • hasBuffer Link icon

      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 Lfdm;c:Z
    • streamBufferPointer Link icon

      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 Lfdm;d:I
  • Constructor Details Link icon

    • StaticSound Link icon

      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> Lfdm;<init>(Ljava/nio/ByteBuffer;Ljavax/sound/sampled/AudioFormat;)V
  • Method Details Link icon

    • getStreamBufferPointer Link icon

      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 Lfdm;a()Ljava/util/OptionalInt;
    • close Link icon

      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 Lfdm;b()V
    • takeStreamBufferPointer Link icon

      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 Lfdm;c()Ljava/util/OptionalInt;