CommandAPI 9.5.2
An API for the command UI introduced in Minecraft 1.13
|
Handles logic for registering commands on Spigot and old versions of Paper. More...
Public Member Functions | |
SpigotCommandRegistration (CommandDispatcher< Source > brigadierDispatcher, SimpleCommandMap commandMap, Supplier< CommandDispatcher< Source > > getResourcesDispatcher, Predicate< Command > isVanillaCommandWrapper, Function< CommandNode< Source >, Command > wrapToVanillaCommandWrapper, Predicate< CommandNode< Source > > isBukkitCommandWrapper) | |
CommandDispatcher< Source > | getResourcesDispatcher () |
Returns the Brigadier CommandDispatcher used when commands are sent to Players. More... | |
boolean | isVanillaCommandWrapper (Command command) |
Checks if a Command is an instance of the OBC VanillaCommandWrapper. More... | |
Command | wrapToVanillaCommandWrapper (CommandNode< Source > node) |
Wraps a Brigadier command node as Bukkit's VanillaCommandWrapper. More... | |
boolean | isBukkitCommandWrapper (CommandNode< Source > node) |
Checks if a Brigadier command node is being handled by Bukkit's BukkitCommandWrapper. More... | |
CommandDispatcher< Source > | getBrigadierDispatcher () |
void | runTasksAfterServerStart () |
void | postCommandRegistration (RegisteredCommand registeredCommand, LiteralCommandNode< Source > resultantNode, List< LiteralCommandNode< Source > > aliasNodes) |
LiteralCommandNode< Source > | registerCommandNode (LiteralArgumentBuilder< Source > node, String namespace) |
void | unregister (String commandName, boolean unregisterNamespaces, boolean unregisterBukkit) |
void | preReloadDataPacks () |
Protected Member Functions | |
void | removeBrigadierCommands (RootCommandNode< Source > root, String commandName, boolean unregisterNamespaces, Predicate< CommandNode< Source > > extraCheck) |
Handles logic for registering commands on Spigot and old versions of Paper.
CommandDispatcher< Source > dev.jorel.commandapi.SpigotCommandRegistration< Source >.getBrigadierDispatcher | ( | ) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
CommandDispatcher< Source > dev.jorel.commandapi.SpigotCommandRegistration< Source >.getResourcesDispatcher | ( | ) |
boolean dev.jorel.commandapi.SpigotCommandRegistration< Source >.isBukkitCommandWrapper | ( | CommandNode< Source > | node | ) |
Checks if a Brigadier command node is being handled by Bukkit's BukkitCommandWrapper.
node | The CommandNode to check |
boolean dev.jorel.commandapi.SpigotCommandRegistration< Source >.isVanillaCommandWrapper | ( | Command | command | ) |
Checks if a Command is an instance of the OBC VanillaCommandWrapper.
command | The Command to check |
void dev.jorel.commandapi.SpigotCommandRegistration< Source >.postCommandRegistration | ( | RegisteredCommand | registeredCommand, |
LiteralCommandNode< Source > | resultantNode, | ||
List< LiteralCommandNode< Source > > | aliasNodes | ||
) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
void dev.jorel.commandapi.SpigotCommandRegistration< Source >.preReloadDataPacks | ( | ) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
LiteralCommandNode< Source > dev.jorel.commandapi.SpigotCommandRegistration< Source >.registerCommandNode | ( | LiteralArgumentBuilder< Source > | node, |
String | namespace | ||
) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
void dev.jorel.commandapi.SpigotCommandRegistration< Source >.runTasksAfterServerStart | ( | ) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
void dev.jorel.commandapi.SpigotCommandRegistration< Source >.unregister | ( | String | commandName, |
boolean | unregisterNamespaces, | ||
boolean | unregisterBukkit | ||
) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
Command dev.jorel.commandapi.SpigotCommandRegistration< Source >.wrapToVanillaCommandWrapper | ( | CommandNode< Source > | node | ) |
Wraps a Brigadier command node as Bukkit's VanillaCommandWrapper.
node | The LiteralCommandNode to wrap |