Annotation Type Command
-
@Retention(RUNTIME) @Documented @Target(TYPE) public @interface Command
Describes a command line command- Author:
- cdivilly
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description TranslatableText
description
The command descriptionjava.lang.String
name
The command name
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Argument[]
arguments
Command Argumentsboolean
documented
Indicates if the command is documentedOption[]
options
Command Optionsboolean
processArgs
Indicates that the command wishes to consume the command line arguments itself, without usingoptions()
orarguments()
-
-
-
-
description
TranslatableText description
The command description- Returns:
- command description
-
-
-
processArgs
boolean processArgs
Indicates that the command wishes to consume the command line arguments itself, without usingoptions()
orarguments()
- Returns:
- true if this Command wants to process the command line arguments itself
- Since:
- 20.2
- Default:
- false
-
-