Class FindNewAttackTargetTask<E extends MobEntity>

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

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

  • Constructor Details

    • FindNewAttackTargetTask

      public FindNewAttackTargetTask(Predicate<LivingEntity> p_i231539_1_)
    • FindNewAttackTargetTask

      public FindNewAttackTargetTask()
  • Method Details

    • start

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

      private boolean isCurrentTargetInDifferentLevel(E p_233983_1_)
    • getAttackTarget

      private LivingEntity getAttackTarget(E p_233985_1_)
    • isTiredOfTryingToReachTarget

      private static <E extends LivingEntity> boolean isTiredOfTryingToReachTarget(E p_233982_0_)
    • isCurrentTargetDeadOrRemoved

      private boolean isCurrentTargetDeadOrRemoved(E p_233986_1_)
    • clearAttackTarget

      private void clearAttackTarget(E p_233987_1_)