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 |
private SoundEventAccessor |
soundEvent |
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, wait
canBeSilent
protected Sound sound
@Nullable private SoundEventAccessor soundEvent
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 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