Package org.kingdoms.utils
Class LandUtil
java.lang.Object
org.kingdoms.utils.LandUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Set<SimpleChunkLocation>>getConnectedClusters(int radius, Set<SimpleChunkLocation> chunks) Groups all the lands that are next to each other.
-
Constructor Details
-
LandUtil
public LandUtil()
-
-
Method Details
-
getConnectedClusters
public static Collection<Set<SimpleChunkLocation>> getConnectedClusters(int radius, Set<SimpleChunkLocation> chunks) Groups all the lands that are next to each other.- Parameters:
radius- the amount of chunks that a chunk can be far away from the cluster to be considered to be in the same group. Starts from 1chunks- the chunks to check. They all must be in the same world.- Returns:
- a list of groups of chunks.
-