Package net.minecraft.client.sound
Class Source
java.lang.Object
net.minecraft.client.sound.Source
@Environment(CLIENT) public class Source extends Object
- Mappings:
Namespace Name official djzintermediary net/minecraft/class_4224named net/minecraft/client/sound/Source
-
Field Summary
Fields Modifier and Type Field Description private intbufferSizeprivate static LoggerLOGGERprivate AtomicBooleanplayingprivate intpointerprivate AudioStreamstream -
Constructor Summary
Constructors Modifier Constructor Description privateSource(int pointer) -
Method Summary
Modifier and Type Method Description voidclose()(package private) static Sourcecreate()voiddisableAttenuation()private static intgetBufferSize(AudioFormat format, int time)private intgetSourceState()booleanisStopped()private voidmethod_19640(int int2)voidpause()voidplay()private intremoveProcessedBuffers()voidresume()voidsetAttenuation(float float2)voidsetBuffer(StaticSound staticSound)voidsetLooping(boolean bool)voidsetPitch(float float2)voidsetPosition(Vec3d vec3d)voidsetRelative(boolean bool)voidsetStream(AudioStream stream)voidsetVolume(float float2)voidstop()voidtick()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdjz;a:Lorg/apache/logging/log4j/Logger;intermediary field_18892Lnet/minecraft/class_4224;field_18892:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/sound/Source;LOGGER:Lorg/apache/logging/log4j/Logger;
-
pointer
private final int pointer- Mappings:
Namespace Name Mixin selector official bLdjz;b:Iintermediary field_18893Lnet/minecraft/class_4224;field_18893:Inamed pointerLnet/minecraft/client/sound/Source;pointer:I
-
playing
- Mappings:
Namespace Name Mixin selector official cLdjz;c:Ljava/util/concurrent/atomic/AtomicBoolean;intermediary field_18894Lnet/minecraft/class_4224;field_18894:Ljava/util/concurrent/atomic/AtomicBoolean;named playingLnet/minecraft/client/sound/Source;playing:Ljava/util/concurrent/atomic/AtomicBoolean;
-
bufferSize
private int bufferSize- Mappings:
Namespace Name Mixin selector official dLdjz;d:Iintermediary field_18895Lnet/minecraft/class_4224;field_18895:Inamed bufferSizeLnet/minecraft/client/sound/Source;bufferSize:I
-
stream
- Mappings:
Namespace Name Mixin selector official eLdjz;e:Leve;intermediary field_18896Lnet/minecraft/class_4224;field_18896:Lnet/minecraft/class_4234;named streamLnet/minecraft/client/sound/Source;stream:Lnet/minecraft/client/sound/AudioStream;
-
-
Constructor Details
-
Source
private Source(int pointer)- Mappings:
Namespace Name Mixin selector official <init>Ldjz;<init>(I)Vintermediary <init>Lnet/minecraft/class_4224;<init>(I)Vnamed <init>Lnet/minecraft/client/sound/Source;<init>(I)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official aLdjz;a()Ldjz;intermediary method_19638Lnet/minecraft/class_4224;method_19638()Lnet/minecraft/class_4224;named createLnet/minecraft/client/sound/Source;create()Lnet/minecraft/client/sound/Source;
-
close
public void close()- Mappings:
Namespace Name Mixin selector official bLdjz;b()Vintermediary method_19646Lnet/minecraft/class_4224;method_19646()Vnamed closeLnet/minecraft/client/sound/Source;close()V
-
play
public void play()- Mappings:
Namespace Name Mixin selector official cLdjz;c()Vintermediary method_19650Lnet/minecraft/class_4224;method_19650()Vnamed playLnet/minecraft/client/sound/Source;play()V
-
getSourceState
private int getSourceState()- Mappings:
Namespace Name Mixin selector official jLdjz;j()Iintermediary method_19659Lnet/minecraft/class_4224;method_19659()Inamed getSourceStateLnet/minecraft/client/sound/Source;getSourceState()I
-
pause
public void pause()- Mappings:
Namespace Name Mixin selector official dLdjz;d()Vintermediary method_19653Lnet/minecraft/class_4224;method_19653()Vnamed pauseLnet/minecraft/client/sound/Source;pause()V
-
resume
public void resume()- Mappings:
Namespace Name Mixin selector official eLdjz;e()Vintermediary method_19654Lnet/minecraft/class_4224;method_19654()Vnamed resumeLnet/minecraft/client/sound/Source;resume()V
-
stop
public void stop()- Mappings:
Namespace Name Mixin selector official fLdjz;f()Vintermediary method_19655Lnet/minecraft/class_4224;method_19655()Vnamed stopLnet/minecraft/client/sound/Source;stop()V
-
isStopped
public boolean isStopped()- Mappings:
Namespace Name Mixin selector official gLdjz;g()Zintermediary method_19656Lnet/minecraft/class_4224;method_19656()Znamed isStoppedLnet/minecraft/client/sound/Source;isStopped()Z
-
setPosition
- Mappings:
Namespace Name Mixin selector official aLdjz;a(Ldiu;)Vintermediary method_19641Lnet/minecraft/class_4224;method_19641(Lnet/minecraft/class_243;)Vnamed setPositionLnet/minecraft/client/sound/Source;setPosition(Lnet/minecraft/util/math/Vec3d;)V
-
setPitch
public void setPitch(float float2)- Mappings:
Namespace Name Mixin selector official aLdjz;a(F)Vintermediary method_19639Lnet/minecraft/class_4224;method_19639(F)Vnamed setPitchLnet/minecraft/client/sound/Source;setPitch(F)V
-
setLooping
public void setLooping(boolean bool)- Mappings:
Namespace Name Mixin selector official aLdjz;a(Z)Vintermediary method_19645Lnet/minecraft/class_4224;method_19645(Z)Vnamed setLoopingLnet/minecraft/client/sound/Source;setLooping(Z)V
-
setVolume
public void setVolume(float float2)- Mappings:
Namespace Name Mixin selector official bLdjz;b(F)Vintermediary method_19647Lnet/minecraft/class_4224;method_19647(F)Vnamed setVolumeLnet/minecraft/client/sound/Source;setVolume(F)V
-
disableAttenuation
public void disableAttenuation()- Mappings:
Namespace Name Mixin selector official hLdjz;h()Vintermediary method_19657Lnet/minecraft/class_4224;method_19657()Vnamed disableAttenuationLnet/minecraft/client/sound/Source;disableAttenuation()V
-
setAttenuation
public void setAttenuation(float float2)- Mappings:
Namespace Name Mixin selector official cLdjz;c(F)Vintermediary method_19651Lnet/minecraft/class_4224;method_19651(F)Vnamed setAttenuationLnet/minecraft/client/sound/Source;setAttenuation(F)V
-
setRelative
public void setRelative(boolean bool)- Mappings:
Namespace Name Mixin selector official bLdjz;b(Z)Vintermediary method_19649Lnet/minecraft/class_4224;method_19649(Z)Vnamed setRelativeLnet/minecraft/client/sound/Source;setRelative(Z)V
-
setBuffer
- Mappings:
Namespace Name Mixin selector official aLdjz;a(Ldke;)Vintermediary method_19642Lnet/minecraft/class_4224;method_19642(Lnet/minecraft/class_4231;)Vnamed setBufferLnet/minecraft/client/sound/Source;setBuffer(Lnet/minecraft/client/sound/StaticSound;)V
-
setStream
- Mappings:
Namespace Name Mixin selector official aLdjz;a(Leve;)Vintermediary method_19643Lnet/minecraft/class_4224;method_19643(Lnet/minecraft/class_4234;)Vnamed setStreamLnet/minecraft/client/sound/Source;setStream(Lnet/minecraft/client/sound/AudioStream;)V
-
getBufferSize
- Mappings:
Namespace Name Mixin selector official aLdjz;a(Ljavax/sound/sampled/AudioFormat;I)Iintermediary method_19644Lnet/minecraft/class_4224;method_19644(Ljavax/sound/sampled/AudioFormat;I)Inamed getBufferSizeLnet/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 aLdjz;a(I)Vintermediary method_19640Lnet/minecraft/class_4224;method_19640(I)Vnamed method_19640Lnet/minecraft/client/sound/Source;method_19640(I)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official iLdjz;i()Vintermediary method_19658Lnet/minecraft/class_4224;method_19658()Vnamed tickLnet/minecraft/client/sound/Source;tick()V
-
removeProcessedBuffers
private int removeProcessedBuffers()- Mappings:
Namespace Name Mixin selector official kLdjz;k()Iintermediary method_19660Lnet/minecraft/class_4224;method_19660()Inamed removeProcessedBuffersLnet/minecraft/client/sound/Source;removeProcessedBuffers()I
-