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 java.lang.Object implements CommandSuggestionEngine<C>
Command suggestion engine that delegates to aCommandTree
-
-
Method Summary
Modifier and Type Method Description @NonNull java.util.List<@NonNull java.lang.String>
getSuggestions(@NonNull CommandContext<C> context, @NonNull java.lang.String input)
Get command suggestions for the "next" argument that would yield a correctly parsing command input
-
-
-
Method Detail
-
getSuggestions
public @NonNull java.util.List<@NonNull java.lang.String> getSuggestions(@NonNull CommandContext<C> context, @NonNull java.lang.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
-
-