Class SelectorSortAlgorithms
- java.lang.Object
-
- org.spongepowered.api.command.selector.SelectorSortAlgorithms
-
public final class SelectorSortAlgorithms extends java.lang.Object
Sort algorithms for selectors
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<SelectorSortAlgorithm>
ORDER_ARBITRARY
An undefined sorting algorithmstatic DefaultedRegistryReference<SelectorSortAlgorithm>
ORDER_FURTHEST
Selects theentities
furthest away from the target location first.static DefaultedRegistryReference<SelectorSortAlgorithm>
ORDER_NEAREST
Selects theentities
nearest to the target location first.static DefaultedRegistryReference<SelectorSortAlgorithm>
ORDER_RANDOM
Returnsentities
in a random order
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Registry<SelectorSortAlgorithm>
registry()
-
-
-
Field Detail
-
ORDER_ARBITRARY
public static final DefaultedRegistryReference<SelectorSortAlgorithm> ORDER_ARBITRARY
An undefined sorting algorithm
-
ORDER_FURTHEST
public static final DefaultedRegistryReference<SelectorSortAlgorithm> ORDER_FURTHEST
Selects theentities
furthest away from the target location first.
-
ORDER_NEAREST
public static final DefaultedRegistryReference<SelectorSortAlgorithm> ORDER_NEAREST
Selects theentities
nearest to the target location first.
-
ORDER_RANDOM
public static final DefaultedRegistryReference<SelectorSortAlgorithm> ORDER_RANDOM
Returnsentities
in a random order
-
-
Method Detail
-
registry
public static Registry<SelectorSortAlgorithm> registry()
-
-