minecraft-src/net/minecraft/client/resources/sounds/BeeFlyingSoundInstance.java
2025-07-04 01:41:11 +03:00

24 lines
668 B
Java

package net.minecraft.client.resources.sounds;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.sounds.SoundSource;
import net.minecraft.world.entity.animal.Bee;
@Environment(EnvType.CLIENT)
public class BeeFlyingSoundInstance extends BeeSoundInstance {
public BeeFlyingSoundInstance(Bee bee) {
super(bee, SoundEvents.BEE_LOOP, SoundSource.NEUTRAL);
}
@Override
protected AbstractTickableSoundInstance getAlternativeSoundInstance() {
return new BeeAggressiveSoundInstance(this.bee);
}
@Override
protected boolean shouldSwitchSounds() {
return this.bee.isAngry();
}
}