24 lines
739 B
Java
24 lines
739 B
Java
package net.minecraft.client.resources.sounds;
|
|
|
|
import net.minecraft.sounds.SoundEvents;
|
|
import net.minecraft.sounds.SoundSource;
|
|
import net.minecraft.world.entity.animal.Bee;
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
public class BeeFlyingSoundInstance extends BeeSoundInstance {
|
|
public BeeFlyingSoundInstance(Bee p_119615_) {
|
|
super(p_119615_, SoundEvents.BEE_LOOP, SoundSource.NEUTRAL);
|
|
}
|
|
|
|
@Override
|
|
protected AbstractTickableSoundInstance getAlternativeSoundInstance() {
|
|
return new BeeAggressiveSoundInstance(this.bee);
|
|
}
|
|
|
|
@Override
|
|
protected boolean shouldSwitchSounds() {
|
|
return this.bee.isAngry();
|
|
}
|
|
} |