Package org.incendo.cloud.suggestion
Interface Suggestions<C,S extends Suggestion>
-
Method Summary
Modifier and TypeMethodDescriptionReturns thecommand context.Returns theCommandInputas seen by the last suggestion provider.static <C,S extends Suggestion>
Suggestions<C, S> create(@NonNull CommandContext<C> ctx, @NonNull List<S> list, @NonNull CommandInput commandInput) Create aSuggestionsinstance.list()Returns the list ofsuggestions.
-
Method Details
-
commandContext
@NonNull CommandContext<C> commandContext()Returns thecommand context.- Returns:
- the command context
-
list
Returns the list ofsuggestions.- Returns:
- suggestion list
-
commandInput
@NonNull CommandInput commandInput()Returns theCommandInputas seen by the last suggestion provider.- Returns:
- command input
-
create
@API(status=INTERNAL) static <C,S extends Suggestion> Suggestions<C,S> create(@NonNull CommandContext<C> ctx, @NonNull List<S> list, @NonNull CommandInput commandInput) Create aSuggestionsinstance.- Type Parameters:
C- command sender typeS- suggestion type- Parameters:
ctx- command contextlist- suggestion listcommandInput- command input- Returns:
- suggestions instance
-