Package net.minecraft.world.level.biome
Class Climate.RTree<T>
java.lang.Object
net.minecraft.world.level.biome.Climate.RTree<T>
- Enclosing class:
Climate
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final class
(package private) static class
(package private) static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final ThreadLocal
<Climate.RTree.Leaf<T>> private final Climate.RTree.Node
<T> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> List
<Climate.RTree.SubTree<T>> bucketize
(List<? extends Climate.RTree.Node<T>> p_186945_) private static <T> Climate.RTree.Node
<T> build
(int p_186921_, List<? extends Climate.RTree.Node<T>> p_186922_) (package private) static <T> List
<Climate.Parameter> buildParameterSpace
(List<? extends Climate.RTree.Node<T>> p_186947_) private static <T> Comparator
<Climate.RTree.Node<T>> comparator
(int p_186924_, boolean p_186925_) private static long
cost
(Climate.Parameter[] p_186943_) static <T> Climate.RTree
<T> create
(List<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, T>> p_186936_) search
(Climate.TargetPoint p_186931_, Climate.DistanceMetric<T> p_186932_) private static <T> void
sort
(List<? extends Climate.RTree.Node<T>> p_186938_, int p_186939_, int p_186940_, boolean p_186941_)
-
Field Details
-
CHILDREN_PER_NODE
private static final int CHILDREN_PER_NODE- See Also:
-
root
-
lastResult
-
-
Constructor Details
-
RTree
-
-
Method Details
-
create
public static <T> Climate.RTree<T> create(List<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, T>> p_186936_) -
build
private static <T> Climate.RTree.Node<T> build(int p_186921_, List<? extends Climate.RTree.Node<T>> p_186922_) -
sort
private static <T> void sort(List<? extends Climate.RTree.Node<T>> p_186938_, int p_186939_, int p_186940_, boolean p_186941_) -
comparator
-
bucketize
private static <T> List<Climate.RTree.SubTree<T>> bucketize(List<? extends Climate.RTree.Node<T>> p_186945_) -
cost
-
buildParameterSpace
static <T> List<Climate.Parameter> buildParameterSpace(List<? extends Climate.RTree.Node<T>> p_186947_) -
search
-