Uses of Class
dev.ua.theroer.magicutils.commands.MagicCommand
Packages that use MagicCommand
Package
Description
-
Uses of MagicCommand in dev.ua.theroer.magicutils.commands
Subclasses of MagicCommand in dev.ua.theroer.magicutils.commandsModifier and TypeClassDescriptionfinal classConcreteMagicCommandimplementation backed by aCommandSpec.classShared help command implementation for all platforms.Methods in dev.ua.theroer.magicutils.commands that return MagicCommandModifier and TypeMethodDescriptionAdd an alias at runtime.MagicCommand.addSubCommand(SubCommandSpec<?> subCommand) Add a dynamic subcommand (builder API).MagicCommand.addSubCommand(SubCommandSpec<?> subCommand, boolean replaceExisting) Add a dynamic subcommand with explicit replace flag.MagicCommand.Builder.build()Builds the MagicCommand instance.CommandExecution.command()Returns the command instance.MagicCommand.copy()Creates an unfrozen duplicate of this command's declarative state so it can be modified and re-registered after the original was frozen by registration.static MagicCommandMagicCommand.fromSpec(CommandSpec<?> spec) Wraps a compatibility command spec into a runtimeMagicCommand.CommandManager.getCommand(String name) Gets a command by name or alias.MagicCommand.mergeSubCommands(MagicCommand command, Consumer<String> warn) Mergescommand's sub-commands into this one so several plugins can contribute to a shared tree (e.g.MagicCommand.mount(MagicCommand command) Mounts another command tree under this command using the child's own root label.MagicCommand.mount(String route, MagicCommand command) Mounts another command tree under this command using a parent-local route label.MagicCommand.mountSubCommands(MagicCommand command) Adds another command's sub-commands directly into this command tree, at the same level — without nesting them under the source command's name the wayMagicCommand.mount(MagicCommand)does.MagicCommand.removeAlias(String alias) Remove an alias (by exact match, case-insensitive) at runtime.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.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).MagicCommand.withInfo(CommandInfo info) Override full command info at runtime (builder API).Override command name at runtime.Methods in dev.ua.theroer.magicutils.commands that return types with arguments of type MagicCommandMethods in dev.ua.theroer.magicutils.commands with parameters of type MagicCommandModifier and TypeMethodDescription@Nullable ResolvedCommandSchemaCommandManager.describe(MagicCommand command, CommandInfo info) Returns the resolved command schema for a registered command instance.CommandManager.generateSubCommandUsages(MagicCommand command, CommandInfo info) Generates detailed usage strings for all subcommands.CommandManager.generateUsage(MagicCommand command, CommandInfo info) Generates a usage string for a command based on its structure.CommandManager.getCommandInfo(MagicCommand command) Gets stored command info for a registered command instance.MagicCommand.mergeSubCommands(MagicCommand command, Consumer<String> warn) Mergescommand's sub-commands into this one so several plugins can contribute to a shared tree (e.g.MagicCommand.Builder.mount(MagicCommand command) Mounts another MagicCommand to this command.MagicCommand.Builder.mount(String route, MagicCommand command) Mounts another MagicCommand to a specific sub-path.MagicCommand.mount(MagicCommand command) Mounts another command tree under this command using the child's own root label.MagicCommand.mount(String route, MagicCommand command) Mounts another command tree under this command using a parent-local route label.MagicCommand.mountSubCommands(MagicCommand command) Adds another command's sub-commands directly into this command tree, at the same level — without nesting them under the source command's name the wayMagicCommand.mount(MagicCommand)does.voidCommandManager.register(MagicCommand command, CommandInfo info) Registers a command and its info. -
Uses of MagicCommand in dev.ua.theroer.magicutils.commands.brigadier
Methods in dev.ua.theroer.magicutils.commands.brigadier with parameters of type MagicCommandModifier and TypeMethodDescriptionvoidBrigadierCommandRegistry.registerAllCommands(com.mojang.brigadier.CommandDispatcher<S> dispatcher, MagicCommand... commands) Registers all provided commands.voidBrigadierCommandRegistry.registerCommand(com.mojang.brigadier.CommandDispatcher<S> dispatcher, MagicCommand command) Registers a single MagicUtils command. -
Uses of MagicCommand in dev.ua.theroer.magicutils.diagnostics
Subclasses of MagicCommand in dev.ua.theroer.magicutils.diagnosticsModifier and TypeClassDescriptionfinal classLoader-agnostic/magicutilsbundle command shared by every platform bundle (Bukkit, Fabric, NeoForge, …).