Class BukkitPluginRegistrationHandler<C>

  • All Implemented Interfaces:
    cloud.commandframework.internal.CommandRegistrationHandler

    public class BukkitPluginRegistrationHandler<C>
    extends java.lang.Object
    implements cloud.commandframework.internal.CommandRegistrationHandler
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface cloud.commandframework.internal.CommandRegistrationHandler

        cloud.commandframework.internal.CommandRegistrationHandler.NullCommandRegistrationHandler
    • Method Summary

      Modifier and Type Method Description
      boolean isRecognized​(@NonNull java.lang.String alias)
      Check if the given alias is recognizable by this registration handler
      boolean registerCommand​(@NonNull cloud.commandframework.Command<?> command)  
      protected void registerExternal​(@NonNull java.lang.String label, @NonNull cloud.commandframework.Command<?> command, @NonNull cloud.commandframework.bukkit.BukkitCommand<C> bukkitCommand)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • registerCommand

        public final boolean registerCommand​(@NonNull cloud.commandframework.Command<?> command)
        Specified by:
        registerCommand in interface cloud.commandframework.internal.CommandRegistrationHandler
      • isRecognized

        public boolean isRecognized​(@NonNull java.lang.String alias)
        Check if the given alias is recognizable by this registration handler
        Parameters:
        alias - Alias
        Returns:
        true if the alias is recognized, else false
      • registerExternal

        protected void registerExternal​(@NonNull java.lang.String label,
                                        @NonNull cloud.commandframework.Command<?> command,
                                        @NonNull cloud.commandframework.bukkit.BukkitCommand<C> bukkitCommand)