chore(core): deprecate prefixed accessors/mutators in CommandManager (#377)
chore(core): deprecate prefixed accessors/mutators in CommandManager.java All prefixed (actual) getters/setters in CommandManager have been deprecated, and non-prefixed alternatives have been introduced. I've also put some effort into improving the JavaDocs of these methods.
This commit is contained in:
parent
687cd4c536
commit
296539d56c
48 changed files with 400 additions and 157 deletions
|
|
@ -52,7 +52,7 @@ final class AsyncCommandSuggestionsListener<C> implements Listener {
|
|||
|
||||
@SuppressWarnings("unchecked")
|
||||
final BukkitPluginRegistrationHandler<C> bukkitPluginRegistrationHandler =
|
||||
(BukkitPluginRegistrationHandler<C>) this.paperCommandManager.getCommandRegistrationHandler();
|
||||
(BukkitPluginRegistrationHandler<C>) this.paperCommandManager.commandRegistrationHandler();
|
||||
|
||||
/* Turn 'plugin:command arg1 arg2 ...' into 'plugin:command' */
|
||||
final String commandLabel = strippedBuffer.split(" ")[0];
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class PaperBrigadierListener<C> implements Listener {
|
|||
return;
|
||||
}
|
||||
|
||||
final CommandTree<C> commandTree = this.paperCommandManager.getCommandTree();
|
||||
final CommandTree<C> commandTree = this.paperCommandManager.commandTree();
|
||||
|
||||
final String label;
|
||||
if (event.getCommandLabel().contains(":")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue