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
|
|
@ -326,7 +326,7 @@ public final class MinecraftHelp<C> {
|
|||
recipient,
|
||||
query,
|
||||
page,
|
||||
this.commandManager.getCommandHelpHandler(this.commandFilter).queryHelp(recipient, query)
|
||||
this.commandManager.createCommandHelpHandler(this.commandFilter).queryHelp(recipient, query)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -471,7 +471,7 @@ public final class MinecraftHelp<C> {
|
|||
final Audience audience = this.getAudience(sender);
|
||||
audience.sendMessage(this.basicHeader(sender));
|
||||
audience.sendMessage(this.showingResults(sender, query));
|
||||
final String command = this.commandManager.getCommandSyntaxFormatter()
|
||||
final String command = this.commandManager.commandSyntaxFormatter()
|
||||
.apply(helpTopic.getCommand().getArguments(), null);
|
||||
audience.sendMessage(text()
|
||||
.append(this.lastBranch())
|
||||
|
|
@ -521,7 +521,7 @@ public final class MinecraftHelp<C> {
|
|||
final CommandComponent<C> component = iterator.next();
|
||||
final CommandArgument<C, ?> argument = component.getArgument();
|
||||
|
||||
final String syntax = this.commandManager.getCommandSyntaxFormatter()
|
||||
final String syntax = this.commandManager.commandSyntaxFormatter()
|
||||
.apply(Collections.singletonList(argument), null);
|
||||
|
||||
final TextComponent.Builder textComponent = text()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue