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
|
|
@ -210,9 +210,9 @@ final class CloudCommandCallable<C> implements CommandCallable {
|
|||
|
||||
@Override
|
||||
public Text getUsage(final @NonNull CommandSource source) {
|
||||
return Text.of(this.manager.getCommandSyntaxFormatter().apply(
|
||||
return Text.of(this.manager.commandSyntaxFormatter().apply(
|
||||
Collections.emptyList(),
|
||||
this.manager.getCommandTree().getNamedNode(this.command.getName())
|
||||
this.manager.commandTree().getNamedNode(this.command.getName())
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public class SpongeCommandManager<C> extends CommandManager<C> {
|
|||
this.owningPlugin = requireNonNull(container, "container");
|
||||
this.forwardMapper = requireNonNull(forwardMapper, "forwardMapper");
|
||||
this.reverseMapper = requireNonNull(reverseMapper, "reverseMapper");
|
||||
((SpongePluginRegistrationHandler<C>) this.getCommandRegistrationHandler()).initialize(this);
|
||||
((SpongePluginRegistrationHandler<C>) this.commandRegistrationHandler()).initialize(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue