Package net.citizensnpcs.api.ai.tree
package net.citizensnpcs.api.ai.tree
-
ClassDescriptionThe base class for the second iteration of the
GoalAPI, which can be made backwards compatible by extendingBehaviorGoalAdapter.Wraps anBehaviorand runs callbacks when the underlying Behavior is finished.The base class for compositeBehaviors, which handle the transition between multiple sub-behaviors.A decorator is a wrapper over aBehavior, which can add functionality such as filteringBehaviorStatuses, conditions, timer loops and more without knowing the internals of the behavior it wraps.An empty leafBehavior.Forwards all calls to a secondaryBehavior.A decoratorBehaviorthat continues to execute its child behavior as long as aConditionreturnstrueand the behavior returnsBehaviorStatus.SUCCESS.A marker interface forBehaviors that indicates to any parent nodes that the behavior can be run in parallel along with other behaviors.Decorates aBehaviorand retries failures a certain number of times.A selector of sub-goals, that chooses a singleBehaviorto execute from a list.Static helper class for creating commonSelectors.Runs eachBehaviorin sequence.Wraps anBehaviorand returns a suppliedBehaviorStatusinstead of the underlying status.Wraps aBehaviorand enforces a tick limit, after which it will returnBehaviorStatus.FAILUREand reset the childBehavior.