@Environment(value=CLIENT) public abstract class AbstractSoundInstance extends Object implements SoundInstance
SoundInstance.AttenuationType
Modifier and Type | Field and Description |
---|---|
protected SoundInstance.AttenuationType |
attenuationType |
protected SoundCategory |
category |
protected boolean |
field_18935 |
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 |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSoundInstance(Identifier soundId,
SoundCategory category) |
protected |
AbstractSoundInstance(SoundEvent sound,
SoundCategory category) |
Modifier and Type | Method and 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canPlay, shouldAlwaysPlay
protected Sound sound
protected final SoundCategory category
protected final Identifier id
protected float volume
protected float pitch
protected double x
protected double y
protected double z
protected boolean repeat
protected int repeatDelay
protected SoundInstance.AttenuationType attenuationType
protected boolean field_18935
protected boolean looping
protected AbstractSoundInstance(SoundEvent sound, SoundCategory category)
protected AbstractSoundInstance(Identifier soundId, SoundCategory category)
public Identifier getId()
getId
in interface SoundInstance
public WeightedSoundSet getSoundSet(SoundManager soundManager)
getSoundSet
in interface SoundInstance
public Sound getSound()
getSound
in interface SoundInstance
public SoundCategory getCategory()
getCategory
in interface SoundInstance
public boolean isRepeatable()
isRepeatable
in interface SoundInstance
public int getRepeatDelay()
getRepeatDelay
in interface SoundInstance
public float getVolume()
getVolume
in interface SoundInstance
public float getPitch()
getPitch
in interface SoundInstance
public double getX()
getX
in interface SoundInstance
public double getY()
getY
in interface SoundInstance
public double getZ()
getZ
in interface SoundInstance
public SoundInstance.AttenuationType getAttenuationType()
getAttenuationType
in interface SoundInstance
public boolean isLooping()
isLooping
in interface SoundInstance