public abstract class PositionedSound extends java.lang.Object implements ISound
ISound.AttenuationType
Modifier and Type | Field and Description |
---|---|
protected ISound.AttenuationType |
attenuationType |
protected float |
pitch |
protected ResourceLocation |
positionedSoundLocation |
protected boolean |
repeat |
protected int |
repeatDelay
The number of ticks between repeating the sound
|
protected float |
volume |
protected float |
xPosF |
protected float |
yPosF |
protected float |
zPosF |
Modifier | Constructor and Description |
---|---|
protected |
PositionedSound(ResourceLocation soundResource) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRepeat() |
ISound.AttenuationType |
getAttenuationType() |
float |
getPitch() |
int |
getRepeatDelay() |
ResourceLocation |
getSoundLocation() |
float |
getVolume() |
float |
getXPosF() |
float |
getYPosF() |
float |
getZPosF() |
protected final ResourceLocation positionedSoundLocation
protected float volume
protected float pitch
protected float xPosF
protected float yPosF
protected float zPosF
protected boolean repeat
protected int repeatDelay
protected ISound.AttenuationType attenuationType
protected PositionedSound(ResourceLocation soundResource)
public ResourceLocation getSoundLocation()
getSoundLocation
in interface ISound
public int getRepeatDelay()
getRepeatDelay
in interface ISound
public ISound.AttenuationType getAttenuationType()
getAttenuationType
in interface ISound