Skip to content

FocessEntity

MidCoard edited this page Mar 21, 2020 · 3 revisions

实体处理

开始

使用FocessEntity来操作你的实体。

你可以通过一个BukkitAPI的Entity实例来获取一个FocessEntity实例。

Entity entity = ...;
FocessEntity focessEntity = EntityManager.getFocessEntity(entity);

GoalSelector

FocessEntity提供了#getGoalSelector()方法用以获得GoalSelector实例。

GoalSelector goalSelector = focessEntity.getGoalSelector();

通过GoalSelector你可以获取并修改关于实体PathfinderGoal(又称AI)的相关信息。 有关PathfinderGoal和GoalSelector的更多详细信息,请前往Goal操作

开始(Getting Started)

实体处理(Deal with Entity)

Goal操作(Modify Goal)

使用Navigation(Use Navigation)

其他(Other Things)

Clone this wiki locally