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, waitcanBeSilentprotected 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 ISoundpublic SoundEventAccessor createAccessor(SoundHandler handler)
createAccessor in interface ISoundpublic SoundCategory getCategory()
getCategory in interface ISoundpublic int getRepeatDelay()
getRepeatDelay in interface ISoundpublic ISound.AttenuationType getAttenuationType()
getAttenuationType in interface ISoundpublic boolean isPriority()
isPriority in interface ISound