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 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 interface CommandSuggestionEngine<C>
      Parameters:
      context - Request context
      input - Input provided by the sender
      Returns:
      List of suggestions