Class GoalExecutorTypes
- java.lang.Object
-
- org.spongepowered.api.entity.ai.goal.GoalExecutorTypes
-
public final class GoalExecutorTypes extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<GoalExecutorType>NORMALGoalExecutorthat is the default set of goals for mostAgents.static DefaultedRegistryReference<GoalExecutorType>TARGETGoalExecutorthat is the "target" set of goals.
-
-
-
Field Detail
-
NORMAL
public static final DefaultedRegistryReference<GoalExecutorType> NORMAL
GoalExecutorthat is the default set of goals for mostAgents.
-
TARGET
public static final DefaultedRegistryReference<GoalExecutorType> TARGET
GoalExecutorthat is the "target" set of goals.The objective is to formulate the target so that the
Agentcan act on it. The best example is how monsters like zombie and skeleton attack enemies: they seek out a target and if any of their non-target goals see that they have a target, they act accordingly.
-
-
Method Detail
-
registry
public static Registry<GoalExecutorType> registry()
-
-