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
  • 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)
     

    Methods inherited from class java.lang.Object

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

    • registerCommand

      public final boolean registerCommand(@NonNull cloud.commandframework.Command<?> command)
      Specified by:
      registerCommand 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)