Spaces:
Build error
Build error
File size: 779 Bytes
d46f4a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
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 BeeAggressiveSoundInstance extends BeeSoundInstance {
public BeeAggressiveSoundInstance(Bee p_119611_) {
super(p_119611_, SoundEvents.BEE_LOOP_AGGRESSIVE, SoundSource.NEUTRAL);
this.delay = 0;
}
@Override
protected AbstractTickableSoundInstance getAlternativeSoundInstance() {
return new BeeFlyingSoundInstance(this.bee);
}
@Override
protected boolean shouldSwitchSounds() {
return !this.bee.isAngry();
}
} |