Class ResultSorter

java.lang.Object
com.github.mafelp.minecraft.tabCompleters.ResultSorter

public class ResultSorter extends Object
A class that sorts tab completion results.
  • Constructor Details

    • ResultSorter

      public ResultSorter()
  • Method Details

    • sortedResults

      public static List<String> sortedResults(String arg, List<String> results)
      A method that sorts the results provided in the second argument alphabetically and after what has already been typed (first argument).
      Parameters:
      arg - The string that has already been typed.
      results - The results to be sorted.
      Returns:
      The sorted results.