Annotation Interface Command


@Retention(RUNTIME) @Documented @Target(TYPE) public @interface Command
Describes a command line command
Author:
cdivilly
  • Element Details

    • name

      String name
      The command name
      Returns:
      command name
    • description

      TranslatableText description
      The command description
      Returns:
      command description
    • documented

      boolean documented
      Indicates if the command is documented
      Returns:
      true if the command is documented, false otherwise
      Default:
      true
    • options

      Option[] options
      Command Options
      Returns:
      The command Options
      Default:
      {}
    • arguments

      Argument[] arguments
      Command Arguments
      Returns:
      The command Arguments
      Default:
      {}
    • processArgs

      boolean processArgs
      Indicates that the command wishes to consume the command line arguments itself, without using options() or arguments()
      Returns:
      true if this Command wants to process the command line arguments itself
      Since:
      20.2
      Default:
      false