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 <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.empty()Suggest nothingSuggestionsBranch.getNextSuggestion(CommandSender sender, String... previousArguments) Gets the nextArgumentSuggestionsbased on the previous arguments.static <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.merge(ArgumentSuggestions<CommandSender>... suggestions) Merge suggestions from multipleArgumentSuggestionstogetherstatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.stringCollection(Function<SuggestionInfo<CommandSender>, Collection<String>> suggestions) Suggest a collection of strings as the result of a functionstatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.stringCollectionAsync(Function<SuggestionInfo<CommandSender>, CompletableFuture<Collection<String>>> suggestions) Suggest a collection of strings asynchronouslystatic <CommandSender>
ArgumentSuggestions<CommandSender> Suggest hardcoded stringsstatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.strings(Collection<String> suggestions) Suggest hardcoded stringsstatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.strings(Function<SuggestionInfo<CommandSender>, String[]> suggestions) Suggest an array of strings as the result of a functionstatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.stringsAsync(Function<SuggestionInfo<CommandSender>, CompletableFuture<String[]>> suggestions) Suggest an array of strings asynchronouslystatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.stringsWithTooltips(IStringTooltip... suggestions) Suggest hardcoded strings with tooltipsstatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.stringsWithTooltips(Collection<IStringTooltip> suggestions) Suggest hardcoded strings with tooltipsstatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.stringsWithTooltips(Function<SuggestionInfo<CommandSender>, IStringTooltip[]> suggestions) Suggest an array of strings with tooltips as the result of a functionstatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.stringsWithTooltipsAsync(Function<SuggestionInfo<CommandSender>, CompletableFuture<IStringTooltip[]>> suggestions) Suggest an array of strings with tooltips asynchronouslystatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.stringsWithTooltipsCollection(Function<SuggestionInfo<CommandSender>, Collection<IStringTooltip>> suggestions) Suggest a collection of strings with tooltips as the result of a functionstatic <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.stringsWithTooltipsCollectionAsync(Function<SuggestionInfo<CommandSender>, 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 TypeMethodDescriptionAbstractArgument.getIncludedSuggestions()Returns an optional function which produces an array of suggestions which should be added to existing suggestions.final Optional<ArgumentSuggestions<CommandSender>> AbstractArgument.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 TypeMethodDescriptionAbstractArgument.includeSuggestions(ArgumentSuggestions<CommandSender> suggestions) Include suggestions to add to the list of default suggestions represented by this argument.SafeOverrideable.includeSuggestions(ArgumentSuggestions<CommandSender> suggestions) static <CommandSender>
ArgumentSuggestions<CommandSender> ArgumentSuggestions.merge(ArgumentSuggestions<CommandSender>... suggestions) Merge suggestions from multipleArgumentSuggestionstogetherAbstractArgument.replaceSuggestions(ArgumentSuggestions<CommandSender> suggestions) Replace the suggestions of this argument.SafeOverrideable.replaceSuggestions(ArgumentSuggestions<CommandSender> suggestions) static <CommandSender>
SuggestionsBranch<CommandSender> SuggestionsBranch.suggest(ArgumentSuggestions<CommandSender>... suggestions) Creates aSuggestionsBranchstarting with the given suggestions.