Package net.citizensnpcs.api.ai.tree
Class Selector.Builder
java.lang.Object
net.citizensnpcs.api.ai.tree.Selector.Builder
- Enclosing class:
Selector
-
Method Summary
Modifier 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
-
retryChildren
Sets whether to retry childBehaviors when they returnBehaviorStatus.FAILURE. -
retryChildren
Sets whether to retry childBehaviors when they returnBehaviorStatus.FAILURE.- Parameters:
b- Whether to retry children
-
selectionFunction
Sets 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
-