Class MethodSuggestionsProvider<C>

java.lang.Object
cloud.commandframework.annotations.suggestions.MethodSuggestionsProvider<C>
Type Parameters:
C - Command sender type
All Implemented Interfaces:
BiFunction<cloud.commandframework.context.CommandContext<C>,String,List<String>>

public final class MethodSuggestionsProvider<C> extends Object implements BiFunction<cloud.commandframework.context.CommandContext<C>,String,List<String>>
Represents a method annotated with Suggestions
Since:
1.3.0
  • Constructor Details

    • MethodSuggestionsProvider

      public MethodSuggestionsProvider(@NonNull Object instance, @NonNull Method method) throws Exception
      Create a new provider
      Parameters:
      instance - Instance that owns the method
      method - The annotated method
      Throws:
      Exception - If the method lookup fails
  • Method Details