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 childBehavior
s when they returnBehaviorStatus.FAILURE
.retryChildren
(boolean b) Sets whether to retry childBehavior
s when they returnBehaviorStatus.FAILURE
.selectionFunction
(Function<List<Behavior>, Behavior> function)
-
Method Details
-
build
-
retryChildren
Sets whether to retry childBehavior
s when they returnBehaviorStatus.FAILURE
. -
retryChildren
Sets whether to retry childBehavior
s when they returnBehaviorStatus.FAILURE
.- Parameters:
b
- Whether to retry children
-
selectionFunction
Sets theFunction
that selects aBehavior
to execute from a list of behaviors, such as a random selection or a priority selection. SeeSelectors
for some helper methods.- Parameters:
function
- The selection function
-