@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, waitcanPlay, shouldAlwaysPlayprotected 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 SoundInstancepublic WeightedSoundSet getSoundSet(SoundManager soundManager)
getSoundSet in interface SoundInstancepublic Sound getSound()
getSound in interface SoundInstancepublic SoundCategory getCategory()
getCategory in interface SoundInstancepublic boolean isRepeatable()
isRepeatable in interface SoundInstancepublic int getRepeatDelay()
getRepeatDelay in interface SoundInstancepublic float getVolume()
getVolume in interface SoundInstancepublic float getPitch()
getPitch in interface SoundInstancepublic double getX()
getX in interface SoundInstancepublic double getY()
getY in interface SoundInstancepublic double getZ()
getZ in interface SoundInstancepublic SoundInstance.AttenuationType getAttenuationType()
getAttenuationType in interface SoundInstancepublic boolean isLooping()
isLooping in interface SoundInstance