Class StaticSound

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

@Environment(CLIENT)
public class StaticSound
extends Object
  • Field Details

    • sample

      @Nullable private ByteBuffer sample
    • format

      private final AudioFormat format
    • hasBuffer

      private boolean hasBuffer
    • streamBufferPointer

      private int streamBufferPointer
  • Constructor Details

  • Method Details

    • getStreamBufferPointer

      OptionalInt getStreamBufferPointer()
    • close

      public void close()
    • takeStreamBufferPointer

      public OptionalInt takeStreamBufferPointer()