Class TabCompleter

java.lang.Object
me.lucko.luckperms.common.command.tabcomplete.TabCompleter

public class TabCompleter extends Object
Utility for computing tab completion results
  • Method Details

    • create

      public static TabCompleter create()
    • at

      public TabCompleter at(int position, CompletionSupplier supplier)
      Marks that the given completion supplier should be used to compute tab completions at the given index.
      Parameters:
      position - the position
      supplier - the supplier
      Returns:
      this
    • from

      public TabCompleter from(int position, CompletionSupplier supplier)
      Marks that the given completion supplier should be used to compute tab completions at the given index and at all subsequent indexes infinitely.
      Parameters:
      position - the position
      supplier - the supplier
      Returns:
      this
    • complete

      public List<String> complete(List<String> args)