Package net.minecraft.client.audio
Class BeeSound
- java.lang.Object
-
- net.minecraft.client.audio.LocatableSound
-
- net.minecraft.client.audio.TickableSound
-
- net.minecraft.client.audio.BeeSound
-
- All Implemented Interfaces:
ISound
,ITickableSound
- Direct Known Subclasses:
BeeAngrySound
,BeeFlightSound
public abstract class BeeSound extends TickableSound
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.client.audio.ISound
ISound.AttenuationType
-
-
Constructor Summary
Constructors Constructor Description BeeSound(BeeEntity p_i226060_1_, SoundEvent p_i226060_2_, SoundCategory p_i226060_3_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canPlaySound()
boolean
canStartSilent()
protected abstract TickableSound
getAlternativeSoundInstance()
private float
getMaxPitch()
private float
getMinPitch()
protected abstract boolean
shouldSwitchSounds()
void
tick()
-
Methods inherited from class net.minecraft.client.audio.TickableSound
isStopped, stop
-
Methods inherited from class net.minecraft.client.audio.LocatableSound
getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, 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.audio.ISound
getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getStream, getVolume, getX, getY, getZ, isLooping, isRelative, resolve
-
-
-
-
Field Detail
-
bee
protected final BeeEntity bee
-
hasSwitched
private boolean hasSwitched
-
-
Constructor Detail
-
BeeSound
public BeeSound(BeeEntity p_i226060_1_, SoundEvent p_i226060_2_, SoundCategory p_i226060_3_)
-
-
Method Detail
-
tick
public void tick()
-
getMinPitch
private float getMinPitch()
-
getMaxPitch
private float getMaxPitch()
-
canStartSilent
public boolean canStartSilent()
-
canPlaySound
public boolean canPlaySound()
-
getAlternativeSoundInstance
protected abstract TickableSound getAlternativeSoundInstance()
-
shouldSwitchSounds
protected abstract boolean shouldSwitchSounds()
-
-