Package net.citizensnpcs.api.ai.tree
Class Selector.Builder
java.lang.Object
net.citizensnpcs.api.ai.tree.Selector.Builder
- Enclosing class:
- Selector
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Sets whether to retry childBehaviors when they returnBehaviorStatus.FAILURE.retryChildren(boolean b) Sets whether to retry childBehaviors when they returnBehaviorStatus.FAILURE.selectionFunction(Function<List<Behavior>, Behavior> function) 
- 
Method Details- 
build
- 
retryChildrenSets whether to retry childBehaviors when they returnBehaviorStatus.FAILURE.
- 
retryChildrenSets whether to retry childBehaviors when they returnBehaviorStatus.FAILURE.- Parameters:
- b- Whether to retry children
 
- 
selectionFunctionSets theFunctionthat selects aBehaviorto execute from a list of behaviors, such as a random selection or a priority selection. SeeSelectorsfor some helper methods.- Parameters:
- function- The selection function
 
 
-