CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
Handles logic for registering commands after Paper build 65, where https://github.com/PaperMC/Paper/pull/8235 changed a bunch of the behind-the-scenes logic. More...
Public Member Functions | |
PaperCommandRegistration (Supplier< CommandDispatcher< Source > > getBrigadierDispatcher, Predicate< CommandNode< Source > > isBukkitCommand) | |
boolean | isBukkitCommand (CommandNode< Source > node) |
Checks if a Brigadier command node came from wrapping a Bukkit command. 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 after Paper build 65, where https://github.com/PaperMC/Paper/pull/8235 changed a bunch of the behind-the-scenes logic.
CommandDispatcher< Source > dev.jorel.commandapi.PaperCommandRegistration< Source >.getBrigadierDispatcher | ( | ) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
boolean dev.jorel.commandapi.PaperCommandRegistration< Source >.isBukkitCommand | ( | CommandNode< Source > | node | ) |
Checks if a Brigadier command node came from wrapping a Bukkit command.
node | The CommandNode to check |
void dev.jorel.commandapi.PaperCommandRegistration< Source >.postCommandRegistration | ( | RegisteredCommand | registeredCommand, |
LiteralCommandNode< Source > | resultantNode, | ||
List< LiteralCommandNode< Source > > | aliasNodes | ||
) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
void dev.jorel.commandapi.PaperCommandRegistration< Source >.preReloadDataPacks | ( | ) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
LiteralCommandNode< Source > dev.jorel.commandapi.PaperCommandRegistration< Source >.registerCommandNode | ( | LiteralArgumentBuilder< Source > | node, |
String | namespace | ||
) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
void dev.jorel.commandapi.PaperCommandRegistration< Source >.runTasksAfterServerStart | ( | ) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.
void dev.jorel.commandapi.PaperCommandRegistration< Source >.unregister | ( | String | commandName, |
boolean | unregisterNamespaces, | ||
boolean | unregisterBukkit | ||
) |
Reimplemented from dev.jorel.commandapi.CommandRegistrationStrategy< Source >.