Class Source

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

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

    • LOGGER

      private static final Logger LOGGER
    • pointer

      private final int pointer
    • playing

      private final AtomicBoolean playing
    • bufferSize

      private int bufferSize
    • stream

      @Nullable private AudioStream stream
  • Constructor Details

    • Source

      private Source​(int pointer)
  • Method Details

    • create

      @Nullable static Source create()
    • close

      public void close()
    • play

      public void play()
    • getSourceState

      private int getSourceState()
    • pause

      public void pause()
    • resume

      public void resume()
    • stop

      public void stop()
    • isStopped

      public boolean isStopped()
    • setPosition

      public void setPosition​(Vec3d vec3d)
    • setPitch

      public void setPitch​(float float2)
    • setLooping

      public void setLooping​(boolean bool)
    • setVolume

      public void setVolume​(float float2)
    • disableAttenuation

      public void disableAttenuation()
    • setAttenuation

      public void setAttenuation​(float float2)
    • setRelative

      public void setRelative​(boolean bool)
    • setBuffer

      public void setBuffer​(StaticSound staticSound)
    • setStream

      public void setStream​(AudioStream stream)
    • getBufferSize

      private static int getBufferSize​(AudioFormat format, int time)
    • method_19640

      private void method_19640​(int int2)
    • tick

      public void tick()
    • removeProcessedBuffers

      private int removeProcessedBuffers()