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, 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 booleancanPlay()private floatgetMaxPitch()private floatgetMinPitch()protected abstract MovingSoundInstancegetReplacement()booleanshouldAlwaysPlay()protected abstract booleanshouldReplace()voidtick()Methods inherited from class net.minecraft.client.sound.MovingSoundInstance
isDone, setDoneMethods inherited from class net.minecraft.client.sound.AbstractSoundInstance
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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()
-