Class CommandManager.Registration

  • Enclosing class:
    CommandManager

    public class CommandManager.Registration
    extends java.lang.Object
    Command Registrations are a fluent way of aliasing commands.
    • Method Summary

      Modifier and Type Method Description
      CommandManager.Registration alias​(java.lang.String alias)
      Creates an alias of the command described by this registration.
      CommandExecutor getExecutor()
      CommandExecutor instance mapped to this Registration.
      java.lang.String getLabel()
      Gets the command label bound with this registration.
      • Methods inherited from class java.lang.Object

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

      • Registration

        public Registration​(CommandExecutor executor,
                            java.lang.String label)
    • Method Detail

      • getExecutor

        public CommandExecutor getExecutor()
        CommandExecutor instance mapped to this Registration.
        Returns:
        CommandExecutor instance.
      • getLabel

        public java.lang.String getLabel()
        Gets the command label bound with this registration.
        Returns:
        label.
      • alias

        public CommandManager.Registration alias​(java.lang.String alias)
        Creates an alias of the command described by this registration.
        Parameters:
        alias - label alias to map.
        Returns:
        Registration instance.