Package net.blueva.arcade.api.setup
Class TabCompleteResult
java.lang.Object
net.blueva.arcade.api.setup.TabCompleteResult
Result of tab completion with suggestions.
Allows handlers to specify whether results should be auto-filtered.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TabCompleteResultcombine(TabCompleteResult... results) Combine multiple results.static TabCompleteResultempty()Create empty result.getFiltered(String currentArg) Get filtered suggestions if auto-filter is enabled.Get the list of suggestions.static TabCompleteResultCreate result with auto-filtering enabled.static TabCompleteResultCreate result with auto-filtering enabled.static TabCompleteResultCreate result without auto-filtering.static TabCompleteResultCreate result without auto-filtering.booleanWhether Bukkit should auto-filter results based on current input.
-
Method Details
-
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
Get filtered suggestions if auto-filter is enabled. -
of
Create result with auto-filtering enabled. Bukkit will automatically filter suggestions based on typed text. -
of
Create result with auto-filtering enabled. -
raw
Create result without auto-filtering. All suggestions are returned as-is. -
raw
Create result without auto-filtering. -
empty
Create empty result. -
combine
Combine multiple results. Auto-filter is enabled only if ALL results have it enabled.
-