Package net.minecraft.client.sound
Class AbstractBeeSoundInstance
java.lang.Object
net.minecraft.client.sound.AbstractSoundInstance
net.minecraft.client.sound.MovingSoundInstance
net.minecraft.client.sound.AbstractBeeSoundInstance
- All Implemented Interfaces:
SoundInstance
,TickableSoundInstance
- Direct Known Subclasses:
AggressiveBeeSoundInstance
,PassiveBeeSoundInstance
@Environment(CLIENT) public abstract class AbstractBeeSoundInstance extends MovingSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.sound.SoundInstance
SoundInstance.AttenuationType
-
Field Summary
Fields inherited from class net.minecraft.client.sound.AbstractSoundInstance
attenuationType, category, field_18935, id, looping, pitch, repeat, repeatDelay, sound, volume, x, y, z
-
Constructor Summary
Constructors Constructor Description AbstractBeeSoundInstance(BeeEntity beeEntity, SoundEvent soundEvent, SoundCategory soundCategory)
-
Method Summary
Modifier and Type Method Description boolean
canPlay()
private float
getMaxPitch()
private float
getMinPitch()
protected abstract MovingSoundInstance
getReplacement()
boolean
shouldAlwaysPlay()
protected abstract boolean
shouldReplace()
void
tick()
Methods inherited from class net.minecraft.client.sound.MovingSoundInstance
isDone, setDone
Methods inherited from class net.minecraft.client.sound.AbstractSoundInstance
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.sound.SoundInstance
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable
-
Field Details
-
bee
-
replaced
private boolean replaced
-
-
Constructor Details
-
AbstractBeeSoundInstance
public AbstractBeeSoundInstance(BeeEntity beeEntity, SoundEvent soundEvent, SoundCategory soundCategory)
-
-
Method Details
-
tick
public void tick() -
getMinPitch
private float getMinPitch() -
getMaxPitch
private float getMaxPitch() -
shouldAlwaysPlay
public boolean shouldAlwaysPlay() -
canPlay
public boolean canPlay() -
getReplacement
-
shouldReplace
protected abstract boolean shouldReplace()
-