Package net.citizensnpcs.api.ai.tree
package net.citizensnpcs.api.ai.tree
-
ClassDescriptionThe base class for the second iteration of the
Goal
API, which can be made backwards compatible by extendingBehaviorGoalAdapter
.Wraps anBehavior
and runs callbacks when the underlying Behavior is finished.The base class for compositeBehavior
s, which handle the transition between multiple sub-behaviors.A decorator is a wrapper over aBehavior
, which can add functionality such as filteringBehaviorStatus
es, conditions, timer loops and more without knowing the internals of the behavior it wraps.An empty leafBehavior
.Forwards all calls to a secondaryBehavior
.A decoratorBehavior
that continues to execute its child behavior as long as aCondition
returnstrue
and the behavior returnsBehaviorStatus.SUCCESS
.A marker interface forBehavior
s that indicates to any parent nodes that the behavior can be run in parallel along with other behaviors.Decorates aBehavior
and retries failures a certain number of times.A selector of sub-goals, that chooses a singleBehavior
to execute from a list.Static helper class for creating commonSelector
s.Runs eachBehavior
in sequence.Wraps anBehavior
and returns a suppliedBehaviorStatus
instead of the underlying status.Wraps aBehavior
and enforces a tick limit, after which it will returnBehaviorStatus.FAILURE
and reset the childBehavior
.