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 TypeMethodDescriptionvoidGoalController.addBehavior(Behavior behavior, int priority) Registers aBehaviorwith a given priority.voidSimpleGoalController.addBehavior(Behavior behavior, int priority) voidGoalController.removeBehavior(Behavior behavior) Removes the givenBehaviorfrom rotation.voidSimpleGoalController.removeBehavior(Behavior behavior) -
Uses of Behavior in net.citizensnpcs.api.ai.goals
Classes in net.citizensnpcs.api.ai.goals that implement BehaviorModifier and TypeClassDescriptionclassclassclassA sampleGoal/Behaviorthat will target specificEntityTypes 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 TypeClassDescriptionclassclassWraps anBehaviorand runs callbacks when the underlying Behavior is finished.classThe base class for compositeBehaviors, which handle the transition between multiple sub-behaviors.classA 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.classAn empty leafBehavior.classForwards all calls to a secondaryBehavior.classclassA decoratorBehaviorthat continues to execute its child behavior as long as aConditionreturnstrueand the behavior returnsBehaviorStatus.SUCCESS.classclassDecorates aBehaviorand retries failures a certain number of times.classA selector of sub-goals, that chooses a singleBehaviorto execute from a list.classRuns eachBehaviorin sequence.classWraps anBehaviorand returns a suppliedBehaviorStatusinstead of the underlying status.classWraps aBehaviorand enforces a tick limit, after which it will returnBehaviorStatus.FAILUREand reset the childBehavior.Methods in net.citizensnpcs.api.ai.tree that return BehaviorModifier and TypeMethodDescriptionSelector.getNextBehavior()ForwardingBehaviorGoalAdapter.getWrapped()static BehaviorMethods 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 inputBehaviors implementComparable.Selectors.prioritySelectionFunction()Returns a default priority selection function that assumes the inputBehaviors implementComparable.Methods in net.citizensnpcs.api.ai.tree with parameters of type BehaviorModifier and TypeMethodDescriptionvoidComposite.addBehavior(Behavior behavior) static CallbackCallback.callback(Behavior wrapping, Consumer<BehaviorStatus> cb) static Goalstatic IfElsestatic SequenceSequence.createRetryingSequence(Behavior... behaviors) static SequenceSequence.createSequence(Behavior... behaviors) static LoopLoop.createWithCondition(Behavior wrapping, Condition condition) static Decoratorstatic StatusMapperStatusMapper.mapping(Behavior wrapping, Supplier<BehaviorStatus> to) static Selector.BuilderSelectors.prioritySelector(Comparator<Behavior> comparator, Behavior... behaviors) voidComposite.removeBehavior(Behavior behavior) static RetryDecoratorstatic Selector.Builderstatic Behaviorprotected voidComposite.stopExecution(Behavior behavior) static TimerDecoratorTimerDecorator.tickLimiter(Behavior wrapping, int tickLimit) static RetryDecoratorstatic Decorator.Builderstatic PreconditionPrecondition.wrappingPrecondition(Behavior wrapping, Condition condition) Method parameters in net.citizensnpcs.api.ai.tree with type arguments of type BehaviorModifier and TypeMethodDescriptionstatic SequenceSequence.createRetryingSequence(Collection<Behavior> behaviors) Creates aretryingsequence that will continue from the currentBehaviorif it returnsBehaviorStatus.FAILUREinstead of propagating the failure up to its parent.static SequenceSequence.createSequence(Collection<Behavior> behaviors) Creates sequence that will stop executing if the currentBehaviorreturnsBehaviorStatus.FAILURE.static Selector.BuilderSelectors.prioritySelector(Comparator<Behavior> comparator, Collection<Behavior> behaviors) static Selector.BuilderSelectors.prioritySelector(Comparator<Behavior> comparator, Collection<Behavior> behaviors) static Selector.BuilderSelectors.prioritySelector(Comparator<Behavior> comparator, Behavior... behaviors) static Selector.BuilderSelector.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