类 StaticSound
- java.lang.Object
-
- net.minecraft.client.sound.StaticSound
-
@Environment(CLIENT) public class StaticSound extends Object
- Mappings:
Namespace Name official dnnintermediary net/minecraft/class_4231named net/minecraft/client/sound/StaticSound
-
-
字段概要
字段 修饰符和类型 字段 说明 private AudioFormatformatprivate booleanhasBufferprivate @Nullable ByteBuffersampleprivate intstreamBufferPointer
-
构造器概要
构造器 构造器 说明 StaticSound(ByteBuffer sample, AudioFormat format)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()(专用程序包) OptionalIntgetStreamBufferPointer()OptionalInttakeStreamBufferPointer()
-
-
-
字段详细资料
-
sample
@Nullable private @Nullable ByteBuffer sample
- Mappings:
Namespace Name Mixin selector official aLdnn;a:Ljava/nio/ByteBuffer;intermediary field_18916Lnet/minecraft/class_4231;field_18916:Ljava/nio/ByteBuffer;named sampleLnet/minecraft/client/sound/StaticSound;sample:Ljava/nio/ByteBuffer;
-
format
private final AudioFormat format
- Mappings:
Namespace Name Mixin selector official bLdnn;b:Ljavax/sound/sampled/AudioFormat;intermediary field_18917Lnet/minecraft/class_4231;field_18917:Ljavax/sound/sampled/AudioFormat;named formatLnet/minecraft/client/sound/StaticSound;format:Ljavax/sound/sampled/AudioFormat;
-
hasBuffer
private boolean hasBuffer
- Mappings:
Namespace Name Mixin selector official cLdnn;c:Zintermediary field_18918Lnet/minecraft/class_4231;field_18918:Znamed hasBufferLnet/minecraft/client/sound/StaticSound;hasBuffer:Z
-
streamBufferPointer
private int streamBufferPointer
- Mappings:
Namespace Name Mixin selector official dLdnn;d:Iintermediary field_18919Lnet/minecraft/class_4231;field_18919:Inamed streamBufferPointerLnet/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;)Vintermediary <init>Lnet/minecraft/class_4231;<init>(Ljava/nio/ByteBuffer;Ljavax/sound/sampled/AudioFormat;)Vnamed <init>Lnet/minecraft/client/sound/StaticSound;<init>(Ljava/nio/ByteBuffer;Ljavax/sound/sampled/AudioFormat;)V
-
-
方法详细资料
-
getStreamBufferPointer
OptionalInt getStreamBufferPointer()
- Mappings:
Namespace Name Mixin selector official aLdnn;a()Ljava/util/OptionalInt;intermediary method_19686Lnet/minecraft/class_4231;method_19686()Ljava/util/OptionalInt;named getStreamBufferPointerLnet/minecraft/client/sound/StaticSound;getStreamBufferPointer()Ljava/util/OptionalInt;
-
close
public void close()
- Mappings:
Namespace Name Mixin selector official bLdnn;b()Vintermediary method_19687Lnet/minecraft/class_4231;method_19687()Vnamed closeLnet/minecraft/client/sound/StaticSound;close()V
-
takeStreamBufferPointer
public OptionalInt takeStreamBufferPointer()
- Mappings:
Namespace Name Mixin selector official cLdnn;c()Ljava/util/OptionalInt;intermediary method_19688Lnet/minecraft/class_4231;method_19688()Ljava/util/OptionalInt;named takeStreamBufferPointerLnet/minecraft/client/sound/StaticSound;takeStreamBufferPointer()Ljava/util/OptionalInt;
-
-