Uses of Class
dev.ua.theroer.magicutils.commands.CommandArgument
Packages that use CommandArgument
Package
Description
-
Uses of CommandArgument in dev.ua.theroer.magicutils.commands
Methods in dev.ua.theroer.magicutils.commands that return CommandArgumentModifier and TypeMethodDescriptionCommandArgument.Builder.build()Builds the CommandArgument instance.Methods in dev.ua.theroer.magicutils.commands that return types with arguments of type CommandArgumentModifier and TypeMethodDescriptionCommandExecution.arguments()Returns argument descriptors as an immutable list.CommandSpec.arguments()Returns the argument definitions.ResolvedCommandAction.arguments()Returns the list of arguments for this action.SubCommandSpec.arguments()static List<CommandArgument> MagicCommand.getArguments(Method method) Gets all arguments for a subcommand method.Methods in dev.ua.theroer.magicutils.commands with parameters of type CommandArgumentModifier and TypeMethodDescriptionCommandSpec.Builder.argument(CommandArgument argument) Adds a single argument.MagicCommand.Builder.argument(CommandArgument argument) Adds a command argument.SubCommandSpec.Builder.argument(CommandArgument argument) TypeParser.getSuggestions(S sender, @Nullable CommandArgument argument) Gets suggestions for this type with access to the argument metadata.TypeParser.getSuggestions(S sender, @Nullable CommandArgument argument, @NotNull Map<String, Object> previousParsedArguments, @Nullable String currentInput) Gets suggestions for this type with access to the argument metadata and previously parsed arguments.TypeParser.getSuggestionsFiltered(@Nullable String currentInput, S sender, @Nullable CommandArgument argument) Gets filtered suggestions based on current input.TypeParserRegistry.getSuggestionsForArgument(@NotNull CommandArgument argument, S sender) Gets suggestions for the provided argument.TypeParserRegistry.getSuggestionsForArgumentFiltered(@NotNull CommandArgument argument, @NotNull String currentInput, S sender, @NotNull Map<String, Object> previousParsedArguments) Gets filtered suggestions for the provided argument.booleanCommandManager.isSenderArgument(CommandArgument argument) Returns true when the argument represents the sender parameter.CommandPlatform.resolveSenderArgument(S sender, CommandArgument argument) Resolve sender argument for @Sender parameters.MagicCommand.setExecute(CommandExecutor<?> executor, CommandArgument... arguments) Define a dynamic execute handler (builder API).MagicCommand.setExecute(CommandExecutor<?> executor, CommandThreading threading, CommandArgument... arguments) Define a dynamic execute handler (builder API) with explicit threading policy.Method parameters in dev.ua.theroer.magicutils.commands with type arguments of type CommandArgumentModifier and TypeMethodDescriptionCommandSpec.Builder.arguments(List<CommandArgument> arguments) Adds multiple arguments.MagicCommand.Builder.arguments(List<CommandArgument> arguments) Sets the list of command arguments.SubCommandSpec.Builder.arguments(List<CommandArgument> arguments) CommandManager.formatArguments(List<CommandArgument> arguments) Formats argument list for usage display, skipping sender parameters.CommandManager.formatArguments(List<CommandArgument> arguments, boolean forceOptional) Formats argument list for usage display, skipping sender parameters.MagicCommand.setExecute(CommandExecutor<?> executor, List<CommandArgument> arguments) Define a dynamic execute handler (builder API).MagicCommand.setExecute(CommandExecutor<?> executor, List<CommandArgument> arguments, boolean replaceExisting) Define a dynamic execute handler (builder API).MagicCommand.setExecute(CommandExecutor<?> executor, List<CommandArgument> arguments, CommandThreading threading) Define a dynamic execute handler (builder API) with explicit threading policy.MagicCommand.setExecute(CommandExecutor<?> executor, List<CommandArgument> arguments, CommandThreading threading, boolean replaceExisting) Define a dynamic execute handler (builder API). -
Uses of CommandArgument in dev.ua.theroer.magicutils.commands.brigadier
Methods in dev.ua.theroer.magicutils.commands.brigadier with parameters of type CommandArgumentModifier and TypeMethodDescriptionBrigadierCommandRegistry.BrigadierArgumentRegistry.resolve(CommandArgument argument) Resolves a Brigadier shape for a command argument.BrigadierCommandRegistry.BrigadierArgumentResolver.resolve(@NotNull CommandArgument argument) Returns a Brigadier shape for the argument or null when unsupported. -
Uses of CommandArgument in dev.ua.theroer.magicutils.commands.parsers
Methods in dev.ua.theroer.magicutils.commands.parsers with parameters of type CommandArgumentModifier and TypeMethodDescriptionEnumTypeParser.getSuggestions(S sender, @Nullable CommandArgument argument)