public abstract class LocatableSound extends java.lang.Object implements ISound
ISound.AttenuationType| Modifier and Type | Field and Description |
|---|---|
protected ISound.AttenuationType |
attenuationType |
protected SoundCategory |
category |
protected boolean |
global |
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 |
LocatableSound(ResourceLocation soundId,
SoundCategory categoryIn) |
protected |
LocatableSound(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 |
isGlobal() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanBeSilentprotected Sound sound
protected final SoundCategory category
protected final 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 boolean global
protected LocatableSound(SoundEvent soundIn, SoundCategory categoryIn)
protected LocatableSound(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 ISound