Uses of Interface
net.citizensnpcs.api.ai.tree.Behavior
Package
Description
-
Uses of Behavior in net.citizensnpcs.api.ai
Modifier and TypeMethodDescriptionGoalController.GoalEntry.getBehavior()
SimpleGoalEntry.getBehavior()
Modifier 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
Modifier 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
Modifier 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
.Modifier and TypeMethodDescriptionSelector.getNextBehavior()
ForwardingBehaviorGoalAdapter.getWrapped()
static Behavior
Modifier 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
.Modifier 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) Modifier 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) -
Uses of Behavior in net.citizensnpcs.api.npc
Modifier and TypeClassDescriptionclass
-
Uses of Behavior in net.citizensnpcs.util