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
|
|
@ -65,7 +65,7 @@ public class CloudburstCommandManager<C> extends CommandManager<C> {
|
|||
final @NonNull Function<@NonNull C, @NonNull CommandSender> backwardsCommandSenderMapper
|
||||
) {
|
||||
super(commandExecutionCoordinator, new CloudburstPluginRegistrationHandler<>());
|
||||
((CloudburstPluginRegistrationHandler<C>) this.getCommandRegistrationHandler()).initialize(this);
|
||||
((CloudburstPluginRegistrationHandler<C>) this.commandRegistrationHandler()).initialize(this);
|
||||
this.commandSenderMapper = commandSenderMapper;
|
||||
this.backwardsCommandSenderMapper = backwardsCommandSenderMapper;
|
||||
this.owningPlugin = owningPlugin;
|
||||
|
|
@ -95,7 +95,7 @@ public class CloudburstCommandManager<C> extends CommandManager<C> {
|
|||
|
||||
@Override
|
||||
public final boolean isCommandRegistrationAllowed() {
|
||||
return this.getRegistrationState() != RegistrationState.AFTER_REGISTRATION;
|
||||
return this.registrationState() != RegistrationState.AFTER_REGISTRATION;
|
||||
}
|
||||
|
||||
final @NonNull Function<@NonNull CommandSender, @NonNull C> getCommandSenderMapper() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue