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