Class LandUtil

java.lang.Object
org.kingdoms.utils.LandUtil

public final class LandUtil extends Object
  • 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 1
      chunks - the chunks to check. They all must be in the same world.
      Returns:
      a list of groups of chunks.