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>
NORMAL
GoalExecutor
that is the default set of goals for mostAgent
s.static DefaultedRegistryReference<GoalExecutorType>
TARGET
GoalExecutor
that is the "target" set of goals.
-
-
-
Field Detail
-
NORMAL
public static final DefaultedRegistryReference<GoalExecutorType> NORMAL
GoalExecutor
that is the default set of goals for mostAgent
s.
-
TARGET
public static final DefaultedRegistryReference<GoalExecutorType> TARGET
GoalExecutor
that is the "target" set of goals.The objective is to formulate the target so that the
Agent
can 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()
-
-