Package cloud.commandframework.bukkit
Class BukkitPluginRegistrationHandler<C>
java.lang.Object
cloud.commandframework.bukkit.BukkitPluginRegistrationHandler<C>
- All Implemented Interfaces:
cloud.commandframework.internal.CommandRegistrationHandler
public class BukkitPluginRegistrationHandler<C>
extends Object
implements cloud.commandframework.internal.CommandRegistrationHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface cloud.commandframework.internal.CommandRegistrationHandler
cloud.commandframework.internal.CommandRegistrationHandler.NullCommandRegistrationHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisRecognized(@NonNull String alias) Check if the given alias is recognizable by this registration handlerfinal booleanregisterCommand(@NonNull cloud.commandframework.Command<?> command) protected voidregisterExternal(@NonNull String label, @NonNull cloud.commandframework.Command<?> command, @NonNull cloud.commandframework.bukkit.BukkitCommand<C> bukkitCommand) protected voidunregisterExternal(@NonNull String label) final voidunregisterRootCommand(@NonNull cloud.commandframework.arguments.StaticArgument<?> rootCommand)
-
Constructor Details
-
BukkitPluginRegistrationHandler
protected BukkitPluginRegistrationHandler()
-
-
Method Details
-
registerCommand
public final boolean registerCommand(@NonNull cloud.commandframework.Command<?> command) - Specified by:
registerCommandin interfacecloud.commandframework.internal.CommandRegistrationHandler
-
unregisterRootCommand
public final void unregisterRootCommand(@NonNull cloud.commandframework.arguments.StaticArgument<?> rootCommand) - Specified by:
unregisterRootCommandin interfacecloud.commandframework.internal.CommandRegistrationHandler
-
isRecognized
Check if the given alias is recognizable by this registration handler- Parameters:
alias- Alias- Returns:
trueif the alias is recognized, elsefalse
-
registerExternal
-
unregisterExternal
-