Class AutoCompleter<S extends Source>
java.lang.Object
studio.mevera.imperat.command.suggestions.AutoCompleter<S>
Represents a class that's responsible for
Handling all auto-completion processes during
tab-completion per one command, regardless of the sender valueType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CompletableFuture<List<String>>autoComplete(SuggestionContext<S> context) Autocompletes an argument from the whole position of the argument-raw inputfinal CompletableFuture<List<String>>Autocompletes an argument from the whole position of the argument-raw inputstatic <S extends Source>
AutoCompleter<S>createNative(Command<S> command) static @NotNull CompletionArggetLastArg(ArgumentInput argumentInput)
-
Field Details
-
command
-
-
Constructor Details
-
AutoCompleter
-
-
Method Details
-
createNative
-
getLastArg
-
autoComplete
public final CompletableFuture<List<String>> autoComplete(Imperat<S> dispatcher, S sender, String label, String[] args) Autocompletes an argument from the whole position of the argument-raw input- Parameters:
dispatcher- the command dispatchersender- the sender writing the commandargs- the args for raw input- Returns:
- the auto-completed results
-
autoComplete
Autocompletes an argument from the whole position of the argument-raw input- Parameters:
context- the context for suggestions- Returns:
- the auto-completed results
-