Package cloud.commandframework.arguments
Class DelegatingCommandSuggestionEngine<C>
java.lang.Object
cloud.commandframework.arguments.DelegatingCommandSuggestionEngine<C>
- Type Parameters:
C
- Command sender type
- All Implemented Interfaces:
CommandSuggestionEngine<C>
public final class DelegatingCommandSuggestionEngine<C>
extends Object
implements CommandSuggestionEngine<C>
Command suggestion engine that delegates to a
CommandTree
-
Method Summary
Modifier and TypeMethodDescriptiongetSuggestions
(@NonNull CommandContext<C> context, @NonNull String input) Get command suggestions for the "next" argument that would yield a correctly parsing command input
-
Method Details
-
getSuggestions
public @NonNull List<@NonNull String> getSuggestions(@NonNull CommandContext<C> context, @NonNull String input) Description copied from interface:CommandSuggestionEngine
Get command suggestions for the "next" argument that would yield a correctly parsing command input- Specified by:
getSuggestions
in interfaceCommandSuggestionEngine<C>
- Parameters:
context
- Request contextinput
- Input provided by the sender- Returns:
- List of suggestions
-