Uses of Interface
dev.jorel.commandapi.arguments.ArgumentSuggestions
Packages that use ArgumentSuggestions
-
Uses of ArgumentSuggestions in dev.jorel.commandapi.arguments
Methods in dev.jorel.commandapi.arguments that return ArgumentSuggestionsModifier and TypeMethodDescriptionstatic ArgumentSuggestionsArgumentSuggestions.empty()Suggest nothingstatic ArgumentSuggestionsSuggest hardcoded stringsstatic ArgumentSuggestionsArgumentSuggestions.strings(Function<SuggestionInfo, String[]> suggestions) Suggest strings as the result of a functionstatic ArgumentSuggestionsArgumentSuggestions.stringsAsync(Function<SuggestionInfo, CompletableFuture<String[]>> suggestions) Suggest strings asynchronouslystatic ArgumentSuggestionsArgumentSuggestions.stringsWithTooltips(IStringTooltip... suggestions) Suggest hardcoded strings with tooltipsstatic ArgumentSuggestionsArgumentSuggestions.stringsWithTooltips(Function<SuggestionInfo, IStringTooltip[]> suggestions) Suggest strings with tooltips as the result of a functionstatic ArgumentSuggestionsArgumentSuggestions.stringsWithTooltipsAsync(Function<SuggestionInfo, CompletableFuture<IStringTooltip[]>> suggestions) Suggest strings with tooltips asynchronouslySafeSuggestions.toSuggestions(Function<S, String> mapper) Convert thisSafeSuggestionsobject into anArgumentSuggestionsby mapping the values with a string mapping function.Methods in dev.jorel.commandapi.arguments that return types with arguments of type ArgumentSuggestionsModifier and TypeMethodDescriptionArgument.getIncludedSuggestions()Returns an optional function which produces an array of suggestions which should be added to existing suggestions.final Optional<ArgumentSuggestions>Argument.getOverriddenSuggestions()Returns an optional function that maps the command sender to an IStringTooltip array of suggestions for the current commandMethods in dev.jorel.commandapi.arguments with parameters of type ArgumentSuggestionsModifier and TypeMethodDescriptionArgument.includeSuggestions(ArgumentSuggestions suggestions) Include suggestions to add to the list of default suggestions represented by this argument.Argument.replaceSuggestions(ArgumentSuggestions suggestions) Replace the suggestions of this argument.