Class AllMatchEvaluator

java.lang.Object
cn.nukkit.entity.ai.evaluator.MultiBehaviorEvaluator
cn.nukkit.entity.ai.evaluator.AllMatchEvaluator
All Implemented Interfaces:
IBehaviorEvaluator

@PowerNukkitXOnly @Since("1.6.0.0-PNX") public class AllMatchEvaluator extends MultiBehaviorEvaluator
全部行为评估通过才执行的一个评估器.

An evaluator that is executed only after all behaviors have been evaluated.

  • Constructor Details

  • Method Details

    • evaluate

      public boolean evaluate(EntityIntelligent entity)
      Description copied from interface: IBehaviorEvaluator
      是否需要激活与其绑定的执行器
      Parameters:
      entity - 评估目标实体
      Returns:
      是否需要激活