diff --git a/src/main/java/com/seibel/lod/objects/quadTree/LodQuadTreeDimension.java b/src/main/java/com/seibel/lod/objects/quadTree/LodQuadTreeDimension.java index 33e4a5bc4..ce828a802 100644 --- a/src/main/java/com/seibel/lod/objects/quadTree/LodQuadTreeDimension.java +++ b/src/main/java/com/seibel/lod/objects/quadTree/LodQuadTreeDimension.java @@ -11,7 +11,8 @@ import net.minecraft.world.server.ServerWorld; import java.io.File; import java.io.IOException; -import java.util.List; +import java.util.*; +import java.util.stream.Collectors; public class LodQuadTreeDimension { public final DimensionType dimension; @@ -227,7 +228,28 @@ public class LodQuadTreeDimension { } - + /** + *this method create all the regions that are null + */ + public void initializeNullRegions(LodNodeData lodNodeData){ + int n = regions.length; + int xIndex; + int zIndex; + LodQuadTree region; + for(int xRegion=0; xRegion getNodeToRender(int x, int z, byte level, int maxDistance, int minDistance){ + int n = regions.length; + List listOfData = new ArrayList<>(); + for(int i=0; i getNodeToGenerate(int x, int z, byte level, int maxDistance, int minDistance){ + int n = regions.length; + List> listOfQuadTree = new ArrayList<>(); + for(int i=0; i entry.getKey()).collect(Collectors.toList()); } /** @@ -343,12 +372,6 @@ public class LodQuadTreeDimension { return xIndex >= 0 && xIndex < width && zIndex >= 0 && zIndex < width; } - - - - - - public int getCenterX() { return centerX; @@ -361,6 +384,7 @@ public class LodQuadTreeDimension { /** + * TODO THIS METHOD HAVE TO BE CHANGES. IS NOT THE SAME AS NUMER OF CHUNK * Returns how many non-null LodChunks * are stored in this LodDimension. */