Class ForgetAttackTargetTask<E extends MobEntity>


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

      • canAttackPredicate

        private final java.util.function.Predicate<E extends MobEntity> canAttackPredicate
      • targetFinderFunction

        private final java.util.function.Function<E extends MobEntity,​java.util.Optional<? extends LivingEntity>> targetFinderFunction
    • Constructor Detail

      • ForgetAttackTargetTask

        public ForgetAttackTargetTask​(java.util.function.Predicate<E> p_i231537_1_,
                                      java.util.function.Function<E,​java.util.Optional<? extends LivingEntity>> p_i231537_2_)
      • ForgetAttackTargetTask

        public ForgetAttackTargetTask​(java.util.function.Function<E,​java.util.Optional<? extends LivingEntity>> p_i231536_1_)