-
Notifications
You must be signed in to change notification settings - Fork 1
FocessEntity
MidCoard edited this page Mar 21, 2020
·
3 revisions
使用FocessEntity来操作你的实体。
你可以通过一个BukkitAPI的Entity实例来获取一个FocessEntity实例。
Entity entity = ...;
FocessEntity focessEntity = EntityManager.getFocessEntity(entity);
FocessEntity提供了#getGoalSelector()方法用以获得GoalSelector实例。
GoalSelector goalSelector = focessEntity.getGoalSelector();
通过GoalSelector你可以获取并修改关于实体PathfinderGoal(又称AI)的相关信息。
有关PathfinderGoal和GoalSelector的更多详细信息,请前往Goal操作。