Package net.citizensnpcs.api.ai.tree
Class Selectors
java.lang.Object
net.citizensnpcs.api.ai.tree.Selectors
Static helper class for creating common
Selector
s.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a default priority selection function that assumes the inputBehavior
s implementComparable
.static Selector.Builder
prioritySelector
(Comparator<Behavior> comparator, Collection<Behavior> behaviors) static Selector.Builder
prioritySelector
(Comparator<Behavior> comparator, Behavior... behaviors)
-
Method Details
-
prioritySelectionFunction
Returns a default priority selection function that assumes the inputBehavior
s implementComparable
. -
prioritySelector
public static Selector.Builder prioritySelector(Comparator<Behavior> comparator, Behavior... behaviors) - See Also:
-
prioritySelector
public static Selector.Builder prioritySelector(Comparator<Behavior> comparator, Collection<Behavior> behaviors) - Parameters:
comparator
- The comparison functionbehaviors
- The behaviors to select from
-