类 StaticSound


  • @Environment(CLIENT)
    public class StaticSound
    extends Object
    Mappings:
    Namespace Name
    official dnn
    intermediary net/minecraft/class_4231
    named net/minecraft/client/sound/StaticSound
    • 字段详细资料

      • sample

        @Nullable
        private @Nullable ByteBuffer sample
        Mappings:
        Namespace Name Mixin selector
        official a Ldnn;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 Ldnn;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 Ldnn;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 Ldnn;d:I
        intermediary field_18919 Lnet/minecraft/class_4231;field_18919:I
        named streamBufferPointer Lnet/minecraft/client/sound/StaticSound;streamBufferPointer:I
    • 构造器详细资料

      • StaticSound

        public StaticSound​(ByteBuffer sample,
                           AudioFormat format)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldnn;<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
    • 方法详细资料

      • getStreamBufferPointer

        OptionalInt getStreamBufferPointer()
        Mappings:
        Namespace Name Mixin selector
        official a Ldnn;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 Ldnn;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 Ldnn;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;