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 etu
intermediary net/minecraft/class_1102
named net/minecraft/client/sound/AbstractSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.sound.SoundInstance
SoundInstance.AttenuationType
-
Field Summary
Fields Modifier and Type Field Description protected SoundInstance.AttenuationType
attenuationType
protected SoundCategory
category
protected Identifier
id
protected boolean
looping
protected float
pitch
protected boolean
repeat
protected int
repeatDelay
protected Sound
sound
protected float
volume
protected double
x
protected double
y
protected double
z
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSoundInstance(SoundEvent sound, SoundCategory category)
protected
AbstractSoundInstance(Identifier soundId, SoundCategory category)
-
Method Summary
Modifier and Type Method Description SoundInstance.AttenuationType
getAttenuationType()
SoundCategory
getCategory()
Identifier
getId()
float
getPitch()
int
getRepeatDelay()
Sound
getSound()
WeightedSoundSet
getSoundSet(SoundManager soundManager)
float
getVolume()
double
getX()
double
getY()
double
getZ()
boolean
isLooping()
boolean
isRepeatable()
String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.sound.SoundInstance
canPlay, shouldAlwaysPlay
-
Field Details
-
sound
- Mappings:
Namespace Name Mixin selector official a
Letu;a:Leui;
intermediary field_5444
Lnet/minecraft/class_1102;field_5444:Lnet/minecraft/class_1111;
named sound
Lnet/minecraft/client/sound/AbstractSoundInstance;sound:Lnet/minecraft/client/sound/Sound;
-
category
- Mappings:
Namespace Name Mixin selector official b
Letu;b:Laeh;
intermediary field_5447
Lnet/minecraft/class_1102;field_5447:Lnet/minecraft/class_3419;
named category
Lnet/minecraft/client/sound/AbstractSoundInstance;category:Lnet/minecraft/sound/SoundCategory;
-
id
- Mappings:
Namespace Name Mixin selector official c
Letu;c:Lwb;
intermediary field_5448
Lnet/minecraft/class_1102;field_5448:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/client/sound/AbstractSoundInstance;id:Lnet/minecraft/util/Identifier;
-
volume
protected float volume- Mappings:
Namespace Name Mixin selector official d
Letu;d:F
intermediary field_5442
Lnet/minecraft/class_1102;field_5442:F
named volume
Lnet/minecraft/client/sound/AbstractSoundInstance;volume:F
-
pitch
protected float pitch- Mappings:
Namespace Name Mixin selector official e
Letu;e:F
intermediary field_5441
Lnet/minecraft/class_1102;field_5441:F
named pitch
Lnet/minecraft/client/sound/AbstractSoundInstance;pitch:F
-
x
protected double x- Mappings:
Namespace Name Mixin selector official f
Letu;f:D
intermediary field_5439
Lnet/minecraft/class_1102;field_5439:D
named x
Lnet/minecraft/client/sound/AbstractSoundInstance;x:D
-
y
protected double y- Mappings:
Namespace Name Mixin selector official g
Letu;g:D
intermediary field_5450
Lnet/minecraft/class_1102;field_5450:D
named y
Lnet/minecraft/client/sound/AbstractSoundInstance;y:D
-
z
protected double z- Mappings:
Namespace Name Mixin selector official h
Letu;h:D
intermediary field_5449
Lnet/minecraft/class_1102;field_5449:D
named z
Lnet/minecraft/client/sound/AbstractSoundInstance;z:D
-
repeat
protected boolean repeat- Mappings:
Namespace Name Mixin selector official i
Letu;i:Z
intermediary field_5446
Lnet/minecraft/class_1102;field_5446:Z
named repeat
Lnet/minecraft/client/sound/AbstractSoundInstance;repeat:Z
-
repeatDelay
protected int repeatDelay- Mappings:
Namespace Name Mixin selector official j
Letu;j:I
intermediary field_5451
Lnet/minecraft/class_1102;field_5451:I
named repeatDelay
Lnet/minecraft/client/sound/AbstractSoundInstance;repeatDelay:I
-
attenuationType
- Mappings:
Namespace Name Mixin selector official k
Letu;k:Leul$a;
intermediary field_5440
Lnet/minecraft/class_1102;field_5440:Lnet/minecraft/class_1113$class_1114;
named attenuationType
Lnet/minecraft/client/sound/AbstractSoundInstance;attenuationType:Lnet/minecraft/client/sound/SoundInstance$AttenuationType;
-
looping
protected boolean looping- Mappings:
Namespace Name Mixin selector official l
Letu;l:Z
intermediary field_18936
Lnet/minecraft/class_1102;field_18936:Z
named looping
Lnet/minecraft/client/sound/AbstractSoundInstance;looping:Z
-
-
Constructor Details
-
AbstractSoundInstance
- Mappings:
Namespace Name Mixin selector official <init>
Letu;<init>(Laef;Laeh;)V
intermediary <init>
Lnet/minecraft/class_1102;<init>(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;)V
named <init>
Lnet/minecraft/client/sound/AbstractSoundInstance;<init>(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;)V
-
AbstractSoundInstance
- Mappings:
Namespace Name Mixin selector official <init>
Letu;<init>(Lwb;Laeh;)V
intermediary <init>
Lnet/minecraft/class_1102;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;)V
named <init>
Lnet/minecraft/client/sound/AbstractSoundInstance;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;)V
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official a
Leul;a()Lwb;
intermediary method_4775
Lnet/minecraft/class_1113;method_4775()Lnet/minecraft/class_2960;
named getId
Lnet/minecraft/client/sound/SoundInstance;getId()Lnet/minecraft/util/Identifier;
-
getSoundSet
- Specified by:
getSoundSet
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official a
Leul;a(Levm;)Levn;
intermediary method_4783
Lnet/minecraft/class_1113;method_4783(Lnet/minecraft/class_1144;)Lnet/minecraft/class_1146;
named getSoundSet
Lnet/minecraft/client/sound/SoundInstance;getSoundSet(Lnet/minecraft/client/sound/SoundManager;)Lnet/minecraft/client/sound/WeightedSoundSet;
-
getSound
- Specified by:
getSound
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official b
Leul;b()Leui;
intermediary method_4776
Lnet/minecraft/class_1113;method_4776()Lnet/minecraft/class_1111;
named getSound
Lnet/minecraft/client/sound/SoundInstance;getSound()Lnet/minecraft/client/sound/Sound;
-
getCategory
- Specified by:
getCategory
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official c
Leul;c()Laeh;
intermediary method_4774
Lnet/minecraft/class_1113;method_4774()Lnet/minecraft/class_3419;
named getCategory
Lnet/minecraft/client/sound/SoundInstance;getCategory()Lnet/minecraft/sound/SoundCategory;
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatable
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official d
Leul;d()Z
intermediary method_4786
Lnet/minecraft/class_1113;method_4786()Z
named isRepeatable
Lnet/minecraft/client/sound/SoundInstance;isRepeatable()Z
-
getRepeatDelay
public int getRepeatDelay()- Specified by:
getRepeatDelay
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official e
Leul;e()I
intermediary method_4780
Lnet/minecraft/class_1113;method_4780()I
named getRepeatDelay
Lnet/minecraft/client/sound/SoundInstance;getRepeatDelay()I
-
getVolume
public float getVolume()- Specified by:
getVolume
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official f
Leul;f()F
intermediary method_4781
Lnet/minecraft/class_1113;method_4781()F
named getVolume
Lnet/minecraft/client/sound/SoundInstance;getVolume()F
-
getPitch
public float getPitch()- Specified by:
getPitch
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official g
Leul;g()F
intermediary method_4782
Lnet/minecraft/class_1113;method_4782()F
named getPitch
Lnet/minecraft/client/sound/SoundInstance;getPitch()F
-
getX
public double getX()- Specified by:
getX
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official h
Leul;h()D
intermediary method_4784
Lnet/minecraft/class_1113;method_4784()D
named getX
Lnet/minecraft/client/sound/SoundInstance;getX()D
-
getY
public double getY()- Specified by:
getY
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official i
Leul;i()D
intermediary method_4779
Lnet/minecraft/class_1113;method_4779()D
named getY
Lnet/minecraft/client/sound/SoundInstance;getY()D
-
getZ
public double getZ()- Specified by:
getZ
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official j
Leul;j()D
intermediary method_4778
Lnet/minecraft/class_1113;method_4778()D
named getZ
Lnet/minecraft/client/sound/SoundInstance;getZ()D
-
getAttenuationType
- Specified by:
getAttenuationType
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official k
Leul;k()Leul$a;
intermediary method_4777
Lnet/minecraft/class_1113;method_4777()Lnet/minecraft/class_1113$class_1114;
named getAttenuationType
Lnet/minecraft/client/sound/SoundInstance;getAttenuationType()Lnet/minecraft/client/sound/SoundInstance$AttenuationType;
-
isLooping
public boolean isLooping()- Specified by:
isLooping
in interfaceSoundInstance
- Mappings:
Namespace Name Mixin selector official l
Leul;l()Z
intermediary method_4787
Lnet/minecraft/class_1113;method_4787()Z
named isLooping
Lnet/minecraft/client/sound/SoundInstance;isLooping()Z
-
toString
-