public final class CommandSuggestionProvider
extends java.lang.Object
| Constructor and Description |
|---|
CommandSuggestionProvider(Blade blade) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.List<java.lang.String> |
suggest(@NotNull Context context,
@NotNull CommandInput input,
@NotNull java.util.EnumSet<SuggestionType> types)
Generates suggestions for command input.
|
void |
suggest(@NotNull Context context,
@NotNull CommandInput input,
@NotNull java.util.EnumSet<SuggestionType> types,
@NotNull RichSuggestionsBuilder builder)
Generates suggestions for command input and writes them to a rich builder.
|
@NotNull java.util.List<java.lang.String> |
suggest(@NotNull Context context,
@NotNull CommandInput input,
SuggestionType... types)
Generates suggestions for command input.
|
public CommandSuggestionProvider(Blade blade)
@NotNull
public @NotNull java.util.List<java.lang.String> suggest(@NotNull
@NotNull Context context,
@NotNull
@NotNull CommandInput input,
@NotNull
SuggestionType... types)
context - the command contextinput - the command inputtypes - the suggestion types@NotNull
public @NotNull java.util.List<java.lang.String> suggest(@NotNull
@NotNull Context context,
@NotNull
@NotNull CommandInput input,
@NotNull
@NotNull java.util.EnumSet<SuggestionType> types)
context - the command contextinput - the command inputtypes - the suggestion typespublic void suggest(@NotNull
@NotNull Context context,
@NotNull
@NotNull CommandInput input,
@NotNull
@NotNull java.util.EnumSet<SuggestionType> types,
@NotNull
@NotNull RichSuggestionsBuilder builder)
context - the command contextinput - the command inputtypes - the suggestion typesbuilder - the target suggestions builder