Class RegionOptimizedVectorSorter

java.lang.Object
com.sk89q.worldedit.internal.util.RegionOptimizedVectorSorter

public class RegionOptimizedVectorSorter extends Object
Uses a radix sort to order vectors by region, then chunk, then Y value (max -> min).
  • Method Details

    • sort

      public static void sort(List<BlockVector3> vectors)
    • sort

      public static void sort(boolean parallel, List<BlockVector3> vectors)
      For test purposes, or if you want to finely control when parallelism occurs.

      vectors must be mutable, and will be sorted after this method returns.

      Parameters:
      parallel - true to sort in parallel
      vectors - the vectors to sort