Class BeeSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.BeeSoundInstance
- All Implemented Interfaces:
SoundInstance,TickableSoundInstance
- Direct Known Subclasses:
BeeAggressiveSoundInstance,BeeFlyingSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstance
SoundInstance.Attenuation -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Beeprivate booleanprivate static floatprivate static floatprivate static float -
Constructor Summary
ConstructorsConstructorDescriptionBeeSoundInstance(Bee p_119621_, SoundEvent p_119622_, SoundSource p_119623_) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanprotected abstract AbstractTickableSoundInstanceprivate floatprivate floatprotected abstract booleanvoidtick()Methods inherited from class net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
isStopped, stopMethods inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.resources.sounds.SoundInstance
getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve
-
Field Details
-
VOLUME_MIN
private static final float VOLUME_MIN- See Also:
- Constant Field Values
-
VOLUME_MAX
private static final float VOLUME_MAX- See Also:
- Constant Field Values
-
PITCH_MIN
private static final float PITCH_MIN- See Also:
- Constant Field Values
-
bee
-
hasSwitched
private boolean hasSwitched
-
-
Constructor Details
-
BeeSoundInstance
-
-
Method Details
-
tick
public void tick() -
getMinPitch
private float getMinPitch() -
getMaxPitch
private float getMaxPitch() -
canStartSilent
public boolean canStartSilent() -
canPlaySound
public boolean canPlaySound() -
getAlternativeSoundInstance
-
shouldSwitchSounds
protected abstract boolean shouldSwitchSounds()
-