public abstract class PositionedSound 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 |
repeat |
protected int |
repeatDelay |
protected Sound |
sound |
private SoundEventAccessor |
soundEvent |
protected float |
volume |
protected float |
xPosF |
protected float |
yPosF |
protected float |
zPosF |
Modifier | Constructor and Description |
---|---|
protected |
PositionedSound(ResourceLocation soundId,
SoundCategory categoryIn) |
protected |
PositionedSound(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 |
getXPosF() |
float |
getYPosF() |
float |
getZPosF() |
protected Sound sound
@Nullable private SoundEventAccessor soundEvent
protected SoundCategory category
protected 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(SoundEvent soundIn, SoundCategory categoryIn)
protected PositionedSound(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