public abstract class AbstractSound extends java.lang.Object implements ISound
ISound.AttenuationType
Modifier and Type | Field and Description |
---|---|
protected ISound.AttenuationType |
attenuationType |
protected SoundCategory |
category |
protected float |
pitch |
protected ResourceLocation |
positionedSoundLocation |
protected boolean |
priority |
protected boolean |
repeat |
protected int |
repeatDelay |
protected Sound |
sound |
protected float |
volume |
protected float |
x |
protected float |
y |
protected float |
z |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSound(ResourceLocation soundId,
SoundCategory categoryIn) |
protected |
AbstractSound(SoundEvent soundIn,
SoundCategory categoryIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRepeat() |
SoundEventAccessor |
createAccessor(SoundHandler handler) |
ISound.AttenuationType |
getAttenuationType() |
SoundCategory |
getCategory() |
float |
getPitch() |
int |
getRepeatDelay() |
Sound |
getSound() |
ResourceLocation |
getSoundLocation() |
float |
getVolume() |
float |
getX() |
float |
getY() |
float |
getZ() |
boolean |
isPriority() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canBeSilent
protected Sound sound
protected SoundCategory category
protected ResourceLocation positionedSoundLocation
protected float volume
protected float pitch
protected float x
protected float y
protected float z
protected boolean repeat
protected int repeatDelay
protected ISound.AttenuationType attenuationType
protected boolean priority
protected AbstractSound(SoundEvent soundIn, SoundCategory categoryIn)
protected AbstractSound(ResourceLocation soundId, SoundCategory categoryIn)
public ResourceLocation getSoundLocation()
getSoundLocation
in interface ISound
public SoundEventAccessor createAccessor(SoundHandler handler)
createAccessor
in interface ISound
public SoundCategory getCategory()
getCategory
in interface ISound
public int getRepeatDelay()
getRepeatDelay
in interface ISound
public ISound.AttenuationType getAttenuationType()
getAttenuationType
in interface ISound
public boolean isPriority()
isPriority
in interface ISound