Class ChargeAttack

java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Animal>
net.minecraft.world.entity.ai.behavior.ChargeAttack
All Implemented Interfaces:
BehaviorControl<Animal>

public class ChargeAttack extends Behavior<Animal>
  • Field Details

    • timeBetweenAttacks

      private final int timeBetweenAttacks
    • chargeTargeting

      private final TargetingConditions chargeTargeting
    • speed

      private final float speed
    • knockbackForce

      private final float knockbackForce
    • maxTargetDetectionDistance

      private final double maxTargetDetectionDistance
    • maxChargeDistance

      private final double maxChargeDistance
    • chargeSound

      private final SoundEvent chargeSound
    • chargeVelocityVector

      private Vec3 chargeVelocityVector
    • startPosition

      private Vec3 startPosition
  • Constructor Details

    • ChargeAttack

      public ChargeAttack(int pTimeBetweenAttacks, TargetingConditions pChargeTargeting, float pSpped, float pKnockbackForce, double pMaxChargeDistance, double pMaxTargetDetectionDistance, SoundEvent pChargeSound)
  • Method Details