Class LookAtFeedingPlayerExecutor

java.lang.Object
cn.nukkit.entity.ai.executor.LookAtFeedingPlayerExecutor
All Implemented Interfaces:
EntityControl, IBehaviorExecutor

@PowerNukkitXOnly @Since("1.19.30-r1") public class LookAtFeedingPlayerExecutor extends Object implements EntityControl, IBehaviorExecutor
实体看向最近携带食物的玩家
此执行器与 LookAtTargetExecutor 最大的一点不同是,它会设置实体的DATA_FLAG_INTERESTED为true

Entity looks at the nearest player carrying the food
The biggest difference between this executor and LookAtTargetExecutor is that it will set the entity's DATA_FLAG_INTERESTED to true

  • Constructor Details

    • LookAtFeedingPlayerExecutor

      public LookAtFeedingPlayerExecutor()
  • Method Details