Class BlockCheckEvaluator

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

@PowerNukkitXOnly @Since("1.6.0.0-PNX") public class BlockCheckEvaluator extends Object implements IBehaviorEvaluator
  • Field Details

    • blockId

      protected int blockId
    • offsetVec

      protected Vector3 offsetVec
  • Constructor Details

    • BlockCheckEvaluator

      public BlockCheckEvaluator(int blockId, Vector3 offsetVec)
  • Method Details

    • evaluate

      public boolean evaluate(EntityIntelligent entity)
      Description copied from interface: IBehaviorEvaluator
      是否需要激活与其绑定的执行器

      Whether the executor bound to it needs to be activated

      Specified by:
      evaluate in interface IBehaviorEvaluator
      Parameters:
      entity - 评估目标实体
      Assess the targetEntity
      Returns:
      是否需要激活
      Do you need to activate