Class AttackStrafingTask<E extends MobEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.AttackStrafingTask<E>

public class AttackStrafingTask<E extends MobEntity> extends Task<E>
  • Field Details

    • tooCloseDistance

      private final int tooCloseDistance
    • strafeSpeed

      private final float strafeSpeed
  • Constructor Details

    • AttackStrafingTask

      public AttackStrafingTask(int p_i231509_1_, float p_i231509_2_)
  • Method Details

    • checkExtraStartConditions

      protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, E p_212832_2_)
      Overrides:
      checkExtraStartConditions in class Task<E extends MobEntity>
    • start

      protected void start(ServerWorld p_212831_1_, E p_212831_2_, long p_212831_3_)
      Overrides:
      start in class Task<E extends MobEntity>
    • isTargetVisible

      private boolean isTargetVisible(E p_233855_1_)
    • isTargetTooClose

      private boolean isTargetTooClose(E p_233856_1_)
    • getTarget

      private LivingEntity getTarget(E p_233857_1_)