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 nothingSuggestionsBranch.getNextSuggestion(org.bukkit.command.CommandSender sender, String... previousArguments) Gets the nextArgumentSuggestionsbased on the previous arguments.static ArgumentSuggestionsArgumentSuggestions.merge(ArgumentSuggestions... suggestions) Merge suggestions from multipleArgumentSuggestionstogetherstatic ArgumentSuggestionsArgumentSuggestions.stringCollection(Function<SuggestionInfo, Collection<String>> suggestions) Suggest a collection of strings as the result of a functionstatic ArgumentSuggestionsArgumentSuggestions.stringCollectionAsync(Function<SuggestionInfo, CompletableFuture<Collection<String>>> suggestions) Suggest a collection of strings asynchronouslystatic ArgumentSuggestionsSuggest hardcoded stringsstatic ArgumentSuggestionsArgumentSuggestions.strings(Collection<String> suggestions) Suggest hardcoded stringsstatic ArgumentSuggestionsArgumentSuggestions.strings(Function<SuggestionInfo, String[]> suggestions) Suggest an array of strings as the result of a functionstatic ArgumentSuggestionsArgumentSuggestions.stringsAsync(Function<SuggestionInfo, CompletableFuture<String[]>> suggestions) Suggest an array of strings asynchronouslystatic ArgumentSuggestionsArgumentSuggestions.stringsWithTooltips(IStringTooltip... suggestions) Suggest hardcoded strings with tooltipsstatic ArgumentSuggestionsArgumentSuggestions.stringsWithTooltips(Collection<IStringTooltip> suggestions) Suggest hardcoded strings with tooltipsstatic ArgumentSuggestionsArgumentSuggestions.stringsWithTooltips(Function<SuggestionInfo, IStringTooltip[]> suggestions) Suggest an array of strings with tooltips as the result of a functionstatic ArgumentSuggestionsArgumentSuggestions.stringsWithTooltipsAsync(Function<SuggestionInfo, CompletableFuture<IStringTooltip[]>> suggestions) Suggest an array of strings with tooltips asynchronouslystatic ArgumentSuggestionsArgumentSuggestions.stringsWithTooltipsCollection(Function<SuggestionInfo, Collection<IStringTooltip>> suggestions) Suggest a collection of strings with tooltips as the result of a functionstatic ArgumentSuggestionsArgumentSuggestions.stringsWithTooltipsCollectionAsync(Function<SuggestionInfo, CompletableFuture<Collection<IStringTooltip>>> suggestions) Suggest a collection of 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.static ArgumentSuggestionsArgumentSuggestions.merge(ArgumentSuggestions... suggestions) Merge suggestions from multipleArgumentSuggestionstogetherArgument.replaceSuggestions(ArgumentSuggestions suggestions) Replace the suggestions of this argument.CommandArgument.replaceSuggestions(ArgumentSuggestions suggestions) Replaces the default command suggestions provided by the server with custom suggestions for each argument in the command, starting with the command's name.CommandArgument.replaceSuggestions(ArgumentSuggestions... suggestions) Replaces the default command suggestions provided by the server with custom suggestions for each argument in the command, starting with the command's name.static SuggestionsBranchSuggestionsBranch.suggest(ArgumentSuggestions... suggestions) Creates aSuggestionsBranchstarting with the given suggestions.