Package net.minecraft.client.sound
Class AbstractSoundInstance
java.lang.Object
net.minecraft.client.sound.AbstractSoundInstance
- All Implemented Interfaces:
SoundInstance
- Direct Known Subclasses:
MovingSoundInstance,PositionedSoundInstance
@Environment(CLIENT)
public abstract class AbstractSoundInstance
extends Object
implements SoundInstance
- Mappings:
Namespace Name named net/minecraft/client/sound/AbstractSoundInstanceintermediary net/minecraft/class_1102official gti
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.sound.SoundInstance
SoundInstance.AttenuationType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SoundInstance.AttenuationTypeprotected final SoundCategoryprotected final Identifierprotected floatprotected Randomprotected booleanprotected booleanprotected intprotected Soundprotected floatprotected doubleprotected doubleprotected double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSoundInstance(SoundEvent sound, SoundCategory category, Random random) protectedAbstractSoundInstance(Identifier soundId, SoundCategory category, Random random) -
Method Summary
Modifier and TypeMethodDescriptiongetId()floatgetPitch()intgetSound()getSoundSet(SoundManager soundManager) floatdoublegetX()doublegetY()doublegetZ()booleanbooleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.sound.SoundInstance
canPlay, shouldAlwaysPlay
-
Field Details
-
sound
- Mappings:
Namespace Name Mixin selector named soundLnet/minecraft/client/sound/AbstractSoundInstance;sound:Lnet/minecraft/client/sound/Sound;intermediary field_5444Lnet/minecraft/class_1102;field_5444:Lnet/minecraft/class_1111;official aLgti;a:Lgtx;
-
category
- Mappings:
Namespace Name Mixin selector named categoryLnet/minecraft/client/sound/AbstractSoundInstance;category:Lnet/minecraft/sound/SoundCategory;intermediary field_5447Lnet/minecraft/class_1102;field_5447:Lnet/minecraft/class_3419;official bLgti;b:Lavq;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/client/sound/AbstractSoundInstance;id:Lnet/minecraft/util/Identifier;intermediary field_5448Lnet/minecraft/class_1102;field_5448:Lnet/minecraft/class_2960;official cLgti;c:Lakr;
-
volume
protected float volume- Mappings:
Namespace Name Mixin selector named volumeLnet/minecraft/client/sound/AbstractSoundInstance;volume:Fintermediary field_5442Lnet/minecraft/class_1102;field_5442:Fofficial dLgti;d:F
-
pitch
protected float pitch- Mappings:
Namespace Name Mixin selector named pitchLnet/minecraft/client/sound/AbstractSoundInstance;pitch:Fintermediary field_5441Lnet/minecraft/class_1102;field_5441:Fofficial eLgti;e:F
-
x
protected double x- Mappings:
Namespace Name Mixin selector named xLnet/minecraft/client/sound/AbstractSoundInstance;x:Dintermediary field_5439Lnet/minecraft/class_1102;field_5439:Dofficial fLgti;f:D
-
y
protected double y- Mappings:
Namespace Name Mixin selector named yLnet/minecraft/client/sound/AbstractSoundInstance;y:Dintermediary field_5450Lnet/minecraft/class_1102;field_5450:Dofficial gLgti;g:D
-
z
protected double z- Mappings:
Namespace Name Mixin selector named zLnet/minecraft/client/sound/AbstractSoundInstance;z:Dintermediary field_5449Lnet/minecraft/class_1102;field_5449:Dofficial hLgti;h:D
-
repeat
protected boolean repeat- Mappings:
Namespace Name Mixin selector named repeatLnet/minecraft/client/sound/AbstractSoundInstance;repeat:Zintermediary field_5446Lnet/minecraft/class_1102;field_5446:Zofficial iLgti;i:Z
-
repeatDelay
protected int repeatDelay- Mappings:
Namespace Name Mixin selector named repeatDelayLnet/minecraft/client/sound/AbstractSoundInstance;repeatDelay:Iintermediary field_5451Lnet/minecraft/class_1102;field_5451:Iofficial jLgti;j:I
-
attenuationType
- Mappings:
Namespace Name Mixin selector named attenuationTypeLnet/minecraft/client/sound/AbstractSoundInstance;attenuationType:Lnet/minecraft/client/sound/SoundInstance$AttenuationType;intermediary field_5440Lnet/minecraft/class_1102;field_5440:Lnet/minecraft/class_1113$class_1114;official kLgti;k:Lgua$a;
-
relative
protected boolean relative- Mappings:
Namespace Name Mixin selector named relativeLnet/minecraft/client/sound/AbstractSoundInstance;relative:Zintermediary field_18936Lnet/minecraft/class_1102;field_18936:Zofficial lLgti;l:Z
-
random
- Mappings:
Namespace Name Mixin selector named randomLnet/minecraft/client/sound/AbstractSoundInstance;random:Lnet/minecraft/util/math/random/Random;intermediary field_38800Lnet/minecraft/class_1102;field_38800:Lnet/minecraft/class_5819;official mLgti;m:Layw;
-
-
Constructor Details
-
AbstractSoundInstance
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/sound/AbstractSoundInstance;<init>(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/random/Random;)Vintermediary <init>Lnet/minecraft/class_1102;<init>(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;Lnet/minecraft/class_5819;)Vofficial <init>Lgti;<init>(Lavo;Lavq;Layw;)V
-
AbstractSoundInstance
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/sound/AbstractSoundInstance;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/random/Random;)Vintermediary <init>Lnet/minecraft/class_1102;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;Lnet/minecraft/class_5819;)Vofficial <init>Lgti;<init>(Lakr;Lavq;Layw;)V
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getIdLnet/minecraft/client/sound/SoundInstance;getId()Lnet/minecraft/util/Identifier;intermediary method_4775Lnet/minecraft/class_1113;method_4775()Lnet/minecraft/class_2960;official aLgua;a()Lakr;
-
getSoundSet
- Specified by:
getSoundSetin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getSoundSetLnet/minecraft/client/sound/SoundInstance;getSoundSet(Lnet/minecraft/client/sound/SoundManager;)Lnet/minecraft/client/sound/WeightedSoundSet;intermediary method_4783Lnet/minecraft/class_1113;method_4783(Lnet/minecraft/class_1144;)Lnet/minecraft/class_1146;official aLgua;a(Lgvf;)Lgvg;
-
getSound
- Specified by:
getSoundin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getSoundLnet/minecraft/client/sound/SoundInstance;getSound()Lnet/minecraft/client/sound/Sound;intermediary method_4776Lnet/minecraft/class_1113;method_4776()Lnet/minecraft/class_1111;official bLgua;b()Lgtx;
-
getCategory
- Specified by:
getCategoryin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getCategoryLnet/minecraft/client/sound/SoundInstance;getCategory()Lnet/minecraft/sound/SoundCategory;intermediary method_4774Lnet/minecraft/class_1113;method_4774()Lnet/minecraft/class_3419;official cLgua;c()Lavq;
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named isRepeatableLnet/minecraft/client/sound/SoundInstance;isRepeatable()Zintermediary method_4786Lnet/minecraft/class_1113;method_4786()Zofficial dLgua;d()Z
-
getRepeatDelay
public int getRepeatDelay()- Specified by:
getRepeatDelayin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getRepeatDelayLnet/minecraft/client/sound/SoundInstance;getRepeatDelay()Iintermediary method_4780Lnet/minecraft/class_1113;method_4780()Iofficial eLgua;e()I
-
getVolume
public float getVolume()- Specified by:
getVolumein interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getVolumeLnet/minecraft/client/sound/SoundInstance;getVolume()Fintermediary method_4781Lnet/minecraft/class_1113;method_4781()Fofficial fLgua;f()F
-
getPitch
public float getPitch()- Specified by:
getPitchin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getPitchLnet/minecraft/client/sound/SoundInstance;getPitch()Fintermediary method_4782Lnet/minecraft/class_1113;method_4782()Fofficial gLgua;g()F
-
getX
public double getX()- Specified by:
getXin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getXLnet/minecraft/client/sound/SoundInstance;getX()Dintermediary method_4784Lnet/minecraft/class_1113;method_4784()Dofficial hLgua;h()D
-
getY
public double getY()- Specified by:
getYin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getYLnet/minecraft/client/sound/SoundInstance;getY()Dintermediary method_4779Lnet/minecraft/class_1113;method_4779()Dofficial iLgua;i()D
-
getZ
public double getZ()- Specified by:
getZin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getZLnet/minecraft/client/sound/SoundInstance;getZ()Dintermediary method_4778Lnet/minecraft/class_1113;method_4778()Dofficial jLgua;j()D
-
getAttenuationType
- Specified by:
getAttenuationTypein interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named getAttenuationTypeLnet/minecraft/client/sound/SoundInstance;getAttenuationType()Lnet/minecraft/client/sound/SoundInstance$AttenuationType;intermediary method_4777Lnet/minecraft/class_1113;method_4777()Lnet/minecraft/class_1113$class_1114;official kLgua;k()Lgua$a;
-
isRelative
public boolean isRelative()- Specified by:
isRelativein interfaceSoundInstance- Mappings:
Namespace Name Mixin selector named isRelativeLnet/minecraft/client/sound/SoundInstance;isRelative()Zintermediary method_4787Lnet/minecraft/class_1113;method_4787()Zofficial lLgua;l()Z
-
toString
-