Class Selector
java.lang.Object
net.citizensnpcs.api.ai.tree.Composite
net.citizensnpcs.api.ai.tree.Selector
- All Implemented Interfaces:
Behavior
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class Composite
parallelExecuting -
Method Summary
Modifier and TypeMethodDescriptionvoidreset()Resets the behavior and any state it is holding.run()Runs the behavior for one 'tick', optionally changing the state that it is in.static Selector.Builderselecting(Collection<Behavior> behaviors) static Selector.BuildertoString()Methods inherited from class Composite
addBehavior, getBehaviors, removeBehavior, shouldExecute, stopExecution, tickParallel
-
Method Details
-
getNextBehavior
-
getSelectionFunction
-
reset
-
run
Description copied from interface:BehaviorRuns the behavior for one 'tick', optionally changing the state that it is in.- Returns:
- The new state
-
toString
-
selecting
-
selecting
-