|
|
void | onLoad () |
|
CommandMap | getCommandMap () |
|
BukkitCommandSender<? extends CommandSender > | wrapCommandSender (CommandSender sender) |
|
Platform | activePlatform () |
|
BukkitCommandAPIMessenger | getMessenger () |
|
CommandRegistrationStrategy< Source > | createCommandRegistrationStrategy () |
|
void | onEnable () |
| | Platform-specific stuff that should happen when the CommandAPI is enabled.
|
|
void | onDisable () |
| | Platform-specific stuff that should happen when the CommandAPI is disabled.
|
| AbstractCommandSender<? extends CommandSender > | getSenderForCommand (CommandContext< Source > cmdCtx, boolean forceNative) |
| | Converts a Brigadier CommandContext into an AbstractCommandSender wrapping the platform's CommandSender.
|
| AbstractCommandSender<? extends CommandSender > | getCommandSenderFromCommandSource (Source source) |
| | Converts the class used by Brigadier when running commands into an AbstractCommandSender wrapping the platform's CommandSender.
|
| Source | getBrigadierSourceFromCommandSender (AbstractCommandSender<? extends CommandSender > sender) |
| | Converts a CommandSender wrapped in an AbstractCommandSender to an object Brigadier can use when running its commands.
|
|
void | registerPermission (String string) |
|
SuggestionProvider< Source > | getSuggestionProvider (SuggestionProviders suggestionProvider) |
| < Impl extends AbstractCommandAPICommand< Impl, Argument, CommandSender > boolean | checkRegistrationStatus (AbstractCommandAPICommand< Impl, Argument, CommandSender > command) |
| | A pre-registration hook to prevent registration if not possible, for example on Paper before the bootstrapper runs but the CommandAPI already expects commands to be registered.
|
| void | preCommandRegistration (String commandName) |
| | Stuff to run before a command is generated.
|
| void | postCommandRegistration (RegisteredCommand registeredCommand, LiteralCommandNode< Source > resultantNode, List< LiteralCommandNode< Source > > aliasNodes) |
| | Stuff to run after a command has been generated.
|
|
LiteralCommandNode< Source > | registerCommandNode (LiteralArgumentBuilder< Source > node, String namespace) |
| | Registers a Brigadier command node and returns the built node.
|
| void | unregister (String commandName, boolean unregisterNamespaces) |
| | Unregisters a command from the CommandGraph so it can't be run anymore.
|
| CommandAPIMessenger<?, ?> | setupMessenger () |
| | Creates a new CommandAPIMessenger for this platform.
|
| CommandDispatcher< Source > | getBrigadierDispatcher () |
| void | createDispatcherFile (File file, CommandDispatcher< Source > dispatcher) throws IOException |
| | Creates a JSON file that describes the hierarchical structure of the commands that have been registered by the server.
|
| default CommandAPILogger | getLogger () |
| void | updateRequirements (AbstractPlayer<?> player) |
| | Updates the requirements required for a given player to execute a command.
|
|
AbstractCommandAPICommand<?, Argument, CommandSender > | newConcreteCommandAPICommand (CommandMetaData< CommandSender > meta) |
|
Argument | newConcreteMultiLiteralArgument (String nodeName, String[] literals) |
|
Argument | newConcreteLiteralArgument (String nodeName, String literal) |