Package cloud.commandframework.internal
Class CommandRegistrationHandler.NullCommandRegistrationHandler
java.lang.Object
cloud.commandframework.internal.CommandRegistrationHandler.NullCommandRegistrationHandler
- All Implemented Interfaces:
CommandRegistrationHandler
- Enclosing interface:
- CommandRegistrationHandler
@API(status=INTERNAL,
consumers="cloud.commandframework.*")
public static final class CommandRegistrationHandler.NullCommandRegistrationHandler
extends Object
implements CommandRegistrationHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface cloud.commandframework.internal.CommandRegistrationHandler
CommandRegistrationHandler.NullCommandRegistrationHandler
-
Method Summary
Modifier and TypeMethodDescriptionboolean
registerCommand
(@NonNull Command<?> command) Attempt to register the commandvoid
unregisterRootCommand
(@NonNull StaticArgument<?> rootCommand) Requests that the givenrootCommand
should be unregistered.
-
Method Details
-
registerCommand
Description copied from interface:CommandRegistrationHandler
Attempt to register the command- Specified by:
registerCommand
in interfaceCommandRegistrationHandler
- Parameters:
command
- Command to register- Returns:
true
if the command was registered successfully, elsefalse
-
unregisterRootCommand
Description copied from interface:CommandRegistrationHandler
Requests that the givenrootCommand
should be unregistered.- Specified by:
unregisterRootCommand
in interfaceCommandRegistrationHandler
- Parameters:
rootCommand
- The command to delete
-