Class Source

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

@Environment(CLIENT) public class Source extends Object
Mappings:
Namespace Name
official doi
intermediary net/minecraft/class_4224
named net/minecraft/client/sound/Source
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Ldoi;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_18892 Lnet/minecraft/class_4224;field_18892:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/sound/Source;LOGGER:Lorg/apache/logging/log4j/Logger;
    • field_31895

      private static final int field_31895
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Ldoi;c:I
      intermediary field_31895 Lnet/minecraft/class_4224;field_31895:I
      named field_31895 Lnet/minecraft/client/sound/Source;field_31895:I
    • field_31894

      public static final int field_31894
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Ldoi;a:I
      intermediary field_31894 Lnet/minecraft/class_4224;field_31894:I
      named field_31894 Lnet/minecraft/client/sound/Source;field_31894:I
    • pointer

      private final int pointer
      Mappings:
      Namespace Name Mixin selector
      official d Ldoi;d:I
      intermediary field_18893 Lnet/minecraft/class_4224;field_18893:I
      named pointer Lnet/minecraft/client/sound/Source;pointer:I
    • playing

      private final AtomicBoolean playing
      Mappings:
      Namespace Name Mixin selector
      official e Ldoi;e:Ljava/util/concurrent/atomic/AtomicBoolean;
      intermediary field_18894 Lnet/minecraft/class_4224;field_18894:Ljava/util/concurrent/atomic/AtomicBoolean;
      named playing Lnet/minecraft/client/sound/Source;playing:Ljava/util/concurrent/atomic/AtomicBoolean;
    • bufferSize

      private int bufferSize
      Mappings:
      Namespace Name Mixin selector
      official f Ldoi;f:I
      intermediary field_18895 Lnet/minecraft/class_4224;field_18895:I
      named bufferSize Lnet/minecraft/client/sound/Source;bufferSize:I
    • stream

      Mappings:
      Namespace Name Mixin selector
      official g Ldoi;g:Lfau;
      intermediary field_18896 Lnet/minecraft/class_4224;field_18896:Lnet/minecraft/class_4234;
      named stream Lnet/minecraft/client/sound/Source;stream:Lnet/minecraft/client/sound/AudioStream;
  • Constructor Details

    • Source

      private Source(int pointer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldoi;<init>(I)V
      intermediary <init> Lnet/minecraft/class_4224;<init>(I)V
      named <init> Lnet/minecraft/client/sound/Source;<init>(I)V
  • Method Details

    • create

      @Nullable static @Nullable Source create()
      Mappings:
      Namespace Name Mixin selector
      official a Ldoi;a()Ldoi;
      intermediary method_19638 Lnet/minecraft/class_4224;method_19638()Lnet/minecraft/class_4224;
      named create Lnet/minecraft/client/sound/Source;create()Lnet/minecraft/client/sound/Source;
    • close

      public void close()
      Mappings:
      Namespace Name Mixin selector
      official b Ldoi;b()V
      intermediary method_19646 Lnet/minecraft/class_4224;method_19646()V
      named close Lnet/minecraft/client/sound/Source;close()V
    • play

      public void play()
      Mappings:
      Namespace Name Mixin selector
      official c Ldoi;c()V
      intermediary method_19650 Lnet/minecraft/class_4224;method_19650()V
      named play Lnet/minecraft/client/sound/Source;play()V
    • getSourceState

      private int getSourceState()
      Mappings:
      Namespace Name Mixin selector
      official k Ldoi;k()I
      intermediary method_19659 Lnet/minecraft/class_4224;method_19659()I
      named getSourceState Lnet/minecraft/client/sound/Source;getSourceState()I
    • pause

      public void pause()
      Mappings:
      Namespace Name Mixin selector
      official d Ldoi;d()V
      intermediary method_19653 Lnet/minecraft/class_4224;method_19653()V
      named pause Lnet/minecraft/client/sound/Source;pause()V
    • resume

      public void resume()
      Mappings:
      Namespace Name Mixin selector
      official e Ldoi;e()V
      intermediary method_19654 Lnet/minecraft/class_4224;method_19654()V
      named resume Lnet/minecraft/client/sound/Source;resume()V
    • stop

      public void stop()
      Mappings:
      Namespace Name Mixin selector
      official f Ldoi;f()V
      intermediary method_19655 Lnet/minecraft/class_4224;method_19655()V
      named stop Lnet/minecraft/client/sound/Source;stop()V
    • method_35598

      public boolean method_35598()
      Mappings:
      Namespace Name Mixin selector
      official g Ldoi;g()Z
      intermediary method_35598 Lnet/minecraft/class_4224;method_35598()Z
      named method_35598 Lnet/minecraft/client/sound/Source;method_35598()Z
    • isStopped

      public boolean isStopped()
      Mappings:
      Namespace Name Mixin selector
      official h Ldoi;h()Z
      intermediary method_19656 Lnet/minecraft/class_4224;method_19656()Z
      named isStopped Lnet/minecraft/client/sound/Source;isStopped()Z
    • setPosition

      public void setPosition(Vec3d vec3d)
      Mappings:
      Namespace Name Mixin selector
      official a Ldoi;a(Ldna;)V
      intermediary method_19641 Lnet/minecraft/class_4224;method_19641(Lnet/minecraft/class_243;)V
      named setPosition Lnet/minecraft/client/sound/Source;setPosition(Lnet/minecraft/util/math/Vec3d;)V
    • setPitch

      public void setPitch(float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Ldoi;a(F)V
      intermediary method_19639 Lnet/minecraft/class_4224;method_19639(F)V
      named setPitch Lnet/minecraft/client/sound/Source;setPitch(F)V
    • setLooping

      public void setLooping(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Ldoi;a(Z)V
      intermediary method_19645 Lnet/minecraft/class_4224;method_19645(Z)V
      named setLooping Lnet/minecraft/client/sound/Source;setLooping(Z)V
    • setVolume

      public void setVolume(float float2)
      Mappings:
      Namespace Name Mixin selector
      official b Ldoi;b(F)V
      intermediary method_19647 Lnet/minecraft/class_4224;method_19647(F)V
      named setVolume Lnet/minecraft/client/sound/Source;setVolume(F)V
    • disableAttenuation

      public void disableAttenuation()
      Mappings:
      Namespace Name Mixin selector
      official i Ldoi;i()V
      intermediary method_19657 Lnet/minecraft/class_4224;method_19657()V
      named disableAttenuation Lnet/minecraft/client/sound/Source;disableAttenuation()V
    • setAttenuation

      public void setAttenuation(float float2)
      Mappings:
      Namespace Name Mixin selector
      official c Ldoi;c(F)V
      intermediary method_19651 Lnet/minecraft/class_4224;method_19651(F)V
      named setAttenuation Lnet/minecraft/client/sound/Source;setAttenuation(F)V
    • setRelative

      public void setRelative(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official b Ldoi;b(Z)V
      intermediary method_19649 Lnet/minecraft/class_4224;method_19649(Z)V
      named setRelative Lnet/minecraft/client/sound/Source;setRelative(Z)V
    • setBuffer

      public void setBuffer(StaticSound staticSound)
      Mappings:
      Namespace Name Mixin selector
      official a Ldoi;a(Ldon;)V
      intermediary method_19642 Lnet/minecraft/class_4224;method_19642(Lnet/minecraft/class_4231;)V
      named setBuffer Lnet/minecraft/client/sound/Source;setBuffer(Lnet/minecraft/client/sound/StaticSound;)V
    • setStream

      public void setStream(AudioStream stream)
      Mappings:
      Namespace Name Mixin selector
      official a Ldoi;a(Lfau;)V
      intermediary method_19643 Lnet/minecraft/class_4224;method_19643(Lnet/minecraft/class_4234;)V
      named setStream Lnet/minecraft/client/sound/Source;setStream(Lnet/minecraft/client/sound/AudioStream;)V
    • getBufferSize

      private static int getBufferSize(AudioFormat format, int time)
      Mappings:
      Namespace Name Mixin selector
      official a Ldoi;a(Ljavax/sound/sampled/AudioFormat;I)I
      intermediary method_19644 Lnet/minecraft/class_4224;method_19644(Ljavax/sound/sampled/AudioFormat;I)I
      named getBufferSize Lnet/minecraft/client/sound/Source;getBufferSize(Ljavax/sound/sampled/AudioFormat;I)I
    • method_19640

      private void method_19640(int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Ldoi;a(I)V
      intermediary method_19640 Lnet/minecraft/class_4224;method_19640(I)V
      named method_19640 Lnet/minecraft/client/sound/Source;method_19640(I)V
    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      official j Ldoi;j()V
      intermediary method_19658 Lnet/minecraft/class_4224;method_19658()V
      named tick Lnet/minecraft/client/sound/Source;tick()V
    • removeProcessedBuffers

      private int removeProcessedBuffers()
      Mappings:
      Namespace Name Mixin selector
      official l Ldoi;l()I
      intermediary method_19660 Lnet/minecraft/class_4224;method_19660()I
      named removeProcessedBuffers Lnet/minecraft/client/sound/Source;removeProcessedBuffers()I