Package net.minecraft.client.sound
Class StaticSound
java.lang.Object
net.minecraft.client.sound.StaticSound
@Environment(CLIENT) public class StaticSound extends Object
- Mappings:
Namespace Name official dkeintermediary net/minecraft/class_4231named net/minecraft/client/sound/StaticSound
-
Field Summary
Fields Modifier and Type Field Description private AudioFormatformatprivate booleanhasBufferprivate ByteBuffersampleprivate intstreamBufferPointer -
Constructor Summary
Constructors Constructor Description StaticSound(ByteBuffer sample, AudioFormat format) -
Method Summary
Modifier and Type Method Description voidclose()(package private) OptionalIntgetStreamBufferPointer()OptionalInttakeStreamBufferPointer()
-
Field Details
-
sample
- Mappings:
Namespace Name Mixin selector official aLdke;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
- Mappings:
Namespace Name Mixin selector official bLdke;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 cLdke;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 dLdke;d:Iintermediary field_18919Lnet/minecraft/class_4231;field_18919:Inamed streamBufferPointerLnet/minecraft/client/sound/StaticSound;streamBufferPointer:I
-
-
Constructor Details
-
StaticSound
- Mappings:
Namespace Name Mixin selector official <init>Ldke;<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
-
-
Method Details
-
getStreamBufferPointer
OptionalInt getStreamBufferPointer()- Mappings:
Namespace Name Mixin selector official aLdke;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 bLdke;b()Vintermediary method_19687Lnet/minecraft/class_4231;method_19687()Vnamed closeLnet/minecraft/client/sound/StaticSound;close()V
-
takeStreamBufferPointer
- Mappings:
Namespace Name Mixin selector official cLdke;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;
-