Class FindNewAttackTargetTask<E extends MobEntity>


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

      • stopAttackingWhen

        private final java.util.function.Predicate<LivingEntity> stopAttackingWhen
    • Constructor Detail

      • FindNewAttackTargetTask

        public FindNewAttackTargetTask​(java.util.function.Predicate<LivingEntity> p_i231539_1_)
      • FindNewAttackTargetTask

        public FindNewAttackTargetTask()
    • Method Detail

      • 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_)