Class TabCompleteResult

java.lang.Object
net.blueva.arcade.api.setup.TabCompleteResult

public class TabCompleteResult extends Object
Result of tab completion with suggestions. Allows handlers to specify whether results should be auto-filtered.
  • Method Details

    • getSuggestions

      public List<String> getSuggestions()
      Get the list of suggestions.
    • shouldAutoFilter

      public boolean shouldAutoFilter()
      Whether Bukkit should auto-filter results based on current input. If true, Bukkit will filter suggestions starting with the typed text. If false, all suggestions are returned as-is.
    • getFiltered

      public List<String> getFiltered(String currentArg)
      Get filtered suggestions if auto-filter is enabled.
    • of

      public static TabCompleteResult of(List<String> suggestions)
      Create result with auto-filtering enabled. Bukkit will automatically filter suggestions based on typed text.
    • of

      public static TabCompleteResult of(String... suggestions)
      Create result with auto-filtering enabled.
    • raw

      public static TabCompleteResult raw(List<String> suggestions)
      Create result without auto-filtering. All suggestions are returned as-is.
    • raw

      public static TabCompleteResult raw(String... suggestions)
      Create result without auto-filtering.
    • empty

      public static TabCompleteResult empty()
      Create empty result.
    • combine

      public static TabCompleteResult combine(TabCompleteResult... results)
      Combine multiple results. Auto-filter is enabled only if ALL results have it enabled.