Uses of Interface
net.citizensnpcs.api.ai.tree.Behavior
Packages that use Behavior
Package
Description
-
Uses of Behavior in net.citizensnpcs.api.ai
Methods in net.citizensnpcs.api.ai that return BehaviorModifier and TypeMethodDescriptionGoalController.GoalEntry.getBehavior()
SimpleGoalEntry.getBehavior()
Methods in net.citizensnpcs.api.ai with parameters of type BehaviorModifier and TypeMethodDescriptionvoid
GoalController.addBehavior
(Behavior behavior, int priority) Registers aBehavior
with a given priority.void
SimpleGoalController.addBehavior
(Behavior behavior, int priority) void
GoalController.removeBehavior
(Behavior behavior) Removes the givenBehavior
from rotation.void
SimpleGoalController.removeBehavior
(Behavior behavior) -
Uses of Behavior in net.citizensnpcs.api.ai.goals
Classes in net.citizensnpcs.api.ai.goals that implement BehaviorModifier and TypeClassDescriptionclass
class
class
A sampleGoal
/Behavior
that will target specificEntityType
s within a certain radius and start following them usingNavigator.setTarget(Entity, boolean)
.class
-
Uses of Behavior in net.citizensnpcs.api.ai.tree
Classes in net.citizensnpcs.api.ai.tree that implement BehaviorModifier and TypeClassDescriptionclass
class
Wraps anBehavior
and runs callbacks when the underlying Behavior is finished.class
The base class for compositeBehavior
s, which handle the transition between multiple sub-behaviors.class
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.class
An empty leafBehavior
.class
Forwards all calls to a secondaryBehavior
.class
class
A decoratorBehavior
that continues to execute its child behavior as long as aCondition
returnstrue
and the behavior returnsBehaviorStatus.SUCCESS
.class
class
Decorates aBehavior
and retries failures a certain number of times.class
A selector of sub-goals, that chooses a singleBehavior
to execute from a list.class
Runs eachBehavior
in sequence.class
Wraps anBehavior
and returns a suppliedBehaviorStatus
instead of the underlying status.class
Wraps aBehavior
and enforces a tick limit, after which it will returnBehaviorStatus.FAILURE
and reset the childBehavior
.Methods in net.citizensnpcs.api.ai.tree that return BehaviorModifier and TypeMethodDescriptionSelector.getNextBehavior()
ForwardingBehaviorGoalAdapter.getWrapped()
static Behavior
Methods in net.citizensnpcs.api.ai.tree that return types with arguments of type BehaviorModifier and TypeMethodDescriptionComposite.getBehaviors()
Selector.getSelectionFunction()
Selector.getSelectionFunction()
Selectors.prioritySelectionFunction()
Returns a default priority selection function that assumes the inputBehavior
s implementComparable
.Selectors.prioritySelectionFunction()
Returns a default priority selection function that assumes the inputBehavior
s implementComparable
.Methods in net.citizensnpcs.api.ai.tree with parameters of type BehaviorModifier and TypeMethodDescriptionvoid
Composite.addBehavior
(Behavior behavior) static Callback
Callback.callback
(Behavior wrapping, Consumer<BehaviorStatus> cb) static Goal
static IfElse
static Sequence
Sequence.createRetryingSequence
(Behavior... behaviors) static Sequence
Sequence.createSequence
(Behavior... behaviors) static Loop
Loop.createWithCondition
(Behavior wrapping, Condition condition) static Decorator
static StatusMapper
StatusMapper.mapping
(Behavior wrapping, Supplier<BehaviorStatus> to) static Selector.Builder
Selectors.prioritySelector
(Comparator<Behavior> comparator, Behavior... behaviors) void
Composite.removeBehavior
(Behavior behavior) static RetryDecorator
static Selector.Builder
static Behavior
protected void
Composite.stopExecution
(Behavior behavior) static TimerDecorator
TimerDecorator.tickLimiter
(Behavior wrapping, int tickLimit) static RetryDecorator
static Decorator.Builder
static Precondition
Precondition.wrappingPrecondition
(Behavior wrapping, Condition condition) Method parameters in net.citizensnpcs.api.ai.tree with type arguments of type BehaviorModifier and TypeMethodDescriptionstatic Sequence
Sequence.createRetryingSequence
(Collection<Behavior> behaviors) Creates aretrying
sequence that will continue from the currentBehavior
if it returnsBehaviorStatus.FAILURE
instead of propagating the failure up to its parent.static Sequence
Sequence.createSequence
(Collection<Behavior> behaviors) Creates sequence that will stop executing if the currentBehavior
returnsBehaviorStatus.FAILURE
.static Selector.Builder
Selectors.prioritySelector
(Comparator<Behavior> comparator, Collection<Behavior> behaviors) static Selector.Builder
Selectors.prioritySelector
(Comparator<Behavior> comparator, Collection<Behavior> behaviors) static Selector.Builder
Selectors.prioritySelector
(Comparator<Behavior> comparator, Behavior... behaviors) static Selector.Builder
Selector.selecting
(Collection<Behavior> behaviors) Selector.Builder.selectionFunction
(Function<List<Behavior>, Behavior> function) Selector.Builder.selectionFunction
(Function<List<Behavior>, Behavior> function) Constructors in net.citizensnpcs.api.ai.tree with parameters of type BehaviorConstructor parameters in net.citizensnpcs.api.ai.tree with type arguments of type Behavior -
Uses of Behavior in net.citizensnpcs.api.npc
Classes in net.citizensnpcs.api.npc that implement BehaviorModifier and TypeClassDescriptionclass
-
Uses of Behavior in net.citizensnpcs.util
Classes in net.citizensnpcs.util that implement Behavior