@Environment(value=CLIENT) public abstract class AbstractBeeSoundInstance extends MovingSoundInstance
SoundInstance.AttenuationType| Modifier and Type | Field and Description |
|---|---|
protected BeeEntity |
bee |
private boolean |
replaced |
attenuationType, category, field_18935, id, looping, pitch, repeat, repeatDelay, sound, volume, x, y, z| Constructor and Description |
|---|
AbstractBeeSoundInstance(BeeEntity beeEntity,
SoundEvent soundEvent,
SoundCategory soundCategory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlay() |
private float |
getMaxPitch() |
private float |
getMinPitch() |
protected abstract MovingSoundInstance |
getReplacement() |
boolean |
shouldAlwaysPlay() |
protected abstract boolean |
shouldReplace() |
void |
tick() |
isDone, setDonegetAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatableprotected final BeeEntity bee
private boolean replaced
public AbstractBeeSoundInstance(BeeEntity beeEntity, SoundEvent soundEvent, SoundCategory soundCategory)
public void tick()
private float getMinPitch()
private float getMaxPitch()
public boolean shouldAlwaysPlay()
public boolean canPlay()
protected abstract MovingSoundInstance getReplacement()
protected abstract boolean shouldReplace()