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 official fwvintermediary net/minecraft/class_1102named net/minecraft/client/sound/AbstractSoundInstance
-
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 official aLfwv;a:Lfxk;intermediary field_5444Lnet/minecraft/class_1102;field_5444:Lnet/minecraft/class_1111;named soundLnet/minecraft/client/sound/AbstractSoundInstance;sound:Lnet/minecraft/client/sound/Sound;
-
category
- Mappings:
Namespace Name Mixin selector official bLfwv;b:Lami;intermediary field_5447Lnet/minecraft/class_1102;field_5447:Lnet/minecraft/class_3419;named categoryLnet/minecraft/client/sound/AbstractSoundInstance;category:Lnet/minecraft/sound/SoundCategory;
-
id
- Mappings:
Namespace Name Mixin selector official cLfwv;c:Lacq;intermediary field_5448Lnet/minecraft/class_1102;field_5448:Lnet/minecraft/class_2960;named idLnet/minecraft/client/sound/AbstractSoundInstance;id:Lnet/minecraft/util/Identifier;
-
volume
protected float volume- Mappings:
Namespace Name Mixin selector official dLfwv;d:Fintermediary field_5442Lnet/minecraft/class_1102;field_5442:Fnamed volumeLnet/minecraft/client/sound/AbstractSoundInstance;volume:F
-
pitch
protected float pitch- Mappings:
Namespace Name Mixin selector official eLfwv;e:Fintermediary field_5441Lnet/minecraft/class_1102;field_5441:Fnamed pitchLnet/minecraft/client/sound/AbstractSoundInstance;pitch:F
-
x
protected double x- Mappings:
Namespace Name Mixin selector official fLfwv;f:Dintermediary field_5439Lnet/minecraft/class_1102;field_5439:Dnamed xLnet/minecraft/client/sound/AbstractSoundInstance;x:D
-
y
protected double y- Mappings:
Namespace Name Mixin selector official gLfwv;g:Dintermediary field_5450Lnet/minecraft/class_1102;field_5450:Dnamed yLnet/minecraft/client/sound/AbstractSoundInstance;y:D
-
z
protected double z- Mappings:
Namespace Name Mixin selector official hLfwv;h:Dintermediary field_5449Lnet/minecraft/class_1102;field_5449:Dnamed zLnet/minecraft/client/sound/AbstractSoundInstance;z:D
-
repeat
protected boolean repeat- Mappings:
Namespace Name Mixin selector official iLfwv;i:Zintermediary field_5446Lnet/minecraft/class_1102;field_5446:Znamed repeatLnet/minecraft/client/sound/AbstractSoundInstance;repeat:Z
-
repeatDelay
protected int repeatDelay- Mappings:
Namespace Name Mixin selector official jLfwv;j:Iintermediary field_5451Lnet/minecraft/class_1102;field_5451:Inamed repeatDelayLnet/minecraft/client/sound/AbstractSoundInstance;repeatDelay:I
-
attenuationType
- Mappings:
Namespace Name Mixin selector official kLfwv;k:Lfxn$a;intermediary field_5440Lnet/minecraft/class_1102;field_5440:Lnet/minecraft/class_1113$class_1114;named attenuationTypeLnet/minecraft/client/sound/AbstractSoundInstance;attenuationType:Lnet/minecraft/client/sound/SoundInstance$AttenuationType;
-
relative
protected boolean relative- Mappings:
Namespace Name Mixin selector official lLfwv;l:Zintermediary field_18936Lnet/minecraft/class_1102;field_18936:Znamed relativeLnet/minecraft/client/sound/AbstractSoundInstance;relative:Z
-
random
- Mappings:
Namespace Name Mixin selector official mLfwv;m:Lapf;intermediary field_38800Lnet/minecraft/class_1102;field_38800:Lnet/minecraft/class_5819;named randomLnet/minecraft/client/sound/AbstractSoundInstance;random:Lnet/minecraft/util/math/random/Random;
-
-
Constructor Details
-
AbstractSoundInstance
- Mappings:
Namespace Name Mixin selector official <init>Lfwv;<init>(Lamg;Lami;Lapf;)Vintermediary <init>Lnet/minecraft/class_1102;<init>(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;Lnet/minecraft/class_5819;)Vnamed <init>Lnet/minecraft/client/sound/AbstractSoundInstance;<init>(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/random/Random;)V
-
AbstractSoundInstance
- Mappings:
Namespace Name Mixin selector official <init>Lfwv;<init>(Lacq;Lami;Lapf;)Vintermediary <init>Lnet/minecraft/class_1102;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;Lnet/minecraft/class_5819;)Vnamed <init>Lnet/minecraft/client/sound/AbstractSoundInstance;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/random/Random;)V
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official aLfxn;a()Lacq;intermediary method_4775Lnet/minecraft/class_1113;method_4775()Lnet/minecraft/class_2960;named getIdLnet/minecraft/client/sound/SoundInstance;getId()Lnet/minecraft/util/Identifier;
-
getSoundSet
- Specified by:
getSoundSetin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official aLfxn;a(Lfyr;)Lfys;intermediary method_4783Lnet/minecraft/class_1113;method_4783(Lnet/minecraft/class_1144;)Lnet/minecraft/class_1146;named getSoundSetLnet/minecraft/client/sound/SoundInstance;getSoundSet(Lnet/minecraft/client/sound/SoundManager;)Lnet/minecraft/client/sound/WeightedSoundSet;
-
getSound
- Specified by:
getSoundin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official bLfxn;b()Lfxk;intermediary method_4776Lnet/minecraft/class_1113;method_4776()Lnet/minecraft/class_1111;named getSoundLnet/minecraft/client/sound/SoundInstance;getSound()Lnet/minecraft/client/sound/Sound;
-
getCategory
- Specified by:
getCategoryin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official cLfxn;c()Lami;intermediary method_4774Lnet/minecraft/class_1113;method_4774()Lnet/minecraft/class_3419;named getCategoryLnet/minecraft/client/sound/SoundInstance;getCategory()Lnet/minecraft/sound/SoundCategory;
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official dLfxn;d()Zintermediary method_4786Lnet/minecraft/class_1113;method_4786()Znamed isRepeatableLnet/minecraft/client/sound/SoundInstance;isRepeatable()Z
-
getRepeatDelay
public int getRepeatDelay()- Specified by:
getRepeatDelayin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official eLfxn;e()Iintermediary method_4780Lnet/minecraft/class_1113;method_4780()Inamed getRepeatDelayLnet/minecraft/client/sound/SoundInstance;getRepeatDelay()I
-
getVolume
public float getVolume()- Specified by:
getVolumein interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official fLfxn;f()Fintermediary method_4781Lnet/minecraft/class_1113;method_4781()Fnamed getVolumeLnet/minecraft/client/sound/SoundInstance;getVolume()F
-
getPitch
public float getPitch()- Specified by:
getPitchin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official gLfxn;g()Fintermediary method_4782Lnet/minecraft/class_1113;method_4782()Fnamed getPitchLnet/minecraft/client/sound/SoundInstance;getPitch()F
-
getX
public double getX()- Specified by:
getXin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official hLfxn;h()Dintermediary method_4784Lnet/minecraft/class_1113;method_4784()Dnamed getXLnet/minecraft/client/sound/SoundInstance;getX()D
-
getY
public double getY()- Specified by:
getYin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official iLfxn;i()Dintermediary method_4779Lnet/minecraft/class_1113;method_4779()Dnamed getYLnet/minecraft/client/sound/SoundInstance;getY()D
-
getZ
public double getZ()- Specified by:
getZin interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official jLfxn;j()Dintermediary method_4778Lnet/minecraft/class_1113;method_4778()Dnamed getZLnet/minecraft/client/sound/SoundInstance;getZ()D
-
getAttenuationType
- Specified by:
getAttenuationTypein interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official kLfxn;k()Lfxn$a;intermediary method_4777Lnet/minecraft/class_1113;method_4777()Lnet/minecraft/class_1113$class_1114;named getAttenuationTypeLnet/minecraft/client/sound/SoundInstance;getAttenuationType()Lnet/minecraft/client/sound/SoundInstance$AttenuationType;
-
isRelative
public boolean isRelative()- Specified by:
isRelativein interfaceSoundInstance- Mappings:
Namespace Name Mixin selector official lLfxn;l()Zintermediary method_4787Lnet/minecraft/class_1113;method_4787()Znamed isRelativeLnet/minecraft/client/sound/SoundInstance;isRelative()Z
-
toString
-