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
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isRecognized(@NonNull String alias)
    Check if the given alias is recognizable by this registration handler
    final boolean
    registerCommand(@NonNull cloud.commandframework.Command<?> command)
     
    protected void
    registerExternal(@NonNull String label, @NonNull cloud.commandframework.Command<?> command, @NonNull cloud.commandframework.bukkit.BukkitCommand<C> bukkitCommand)
     
    protected void
    unregisterExternal(@NonNull String label)
     
    final void
    unregisterRootCommand(@NonNull cloud.commandframework.arguments.StaticArgument<?> rootCommand)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BukkitPluginRegistrationHandler

      protected BukkitPluginRegistrationHandler()
  • Method Details

    • registerCommand

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

      public final void unregisterRootCommand(@NonNull cloud.commandframework.arguments.StaticArgument<?> rootCommand)
      Specified by:
      unregisterRootCommand in interface cloud.commandframework.internal.CommandRegistrationHandler
    • isRecognized

      public boolean isRecognized(@NonNull 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 String label, @NonNull cloud.commandframework.Command<?> command, @NonNull cloud.commandframework.bukkit.BukkitCommand<C> bukkitCommand)
    • unregisterExternal

      @API(status=STABLE, since="1.7.0") protected void unregisterExternal(@NonNull String label)