Package studio.mevera.imperat.providers
Interface SuggestionProvider<S extends CommandSource>
- Type Parameters:
S- the command-sender valueType
Represents a suggestion providing interface
for an argument/parameter
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends CommandSource>
SuggestionProvider<S>forCommand(Command<S> command) provide(SuggestionContext<S> context, Argument<S> argument) default CompletableFuture<List<String>>provideAsynchronously(SuggestionContext<S> context, Argument<S> parameter) static <S extends CommandSource>
SuggestionProvider<S>staticSuggestions(String... results) static <S extends CommandSource>
SuggestionProvider<S>staticSuggestions(List<String> results)
-
Method Details
-
staticSuggestions
-
staticSuggestions
-
forCommand
-
provide
- Parameters:
context- the context for suggestionsargument- the argument of the value to complete- Returns:
- the auto-completed suggestions of the current argument
-
provideAsynchronously
default CompletableFuture<List<String>> provideAsynchronously(SuggestionContext<S> context, Argument<S> parameter)
-