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.Registry for behavior factories that can be instantiated fromDataKeyconfigurations.Context passed to behavior factories during creation.Manages signals for behavior trees.Listener interface for signal notifications.Wraps anBehaviorand runs callbacks when the underlying Behavior is finished.A behavior that executes multiple behaviors in a single tick.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.Forwards all calls to a secondaryBehavior.Marker interface for behaviors that execute instantly (in one tick).Decorator that inverts SUCCESS to FAILURE and vice versa.A decoratorBehaviorthat continues to execute its child behavior as long as a condition returnstrueand 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.Wraps a behavior to run in parallel with other behaviors.A composite that runs all parallel children.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.Decorator that forces FAILURE if child doesn't complete within a timeout.Wraps aBehaviorand enforces a tick limit, after which it will returnBehaviorStatus.FAILUREand reset the childBehavior.