|
CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
A pseudo-argument representing a single literal string. More...
Inheritance diagram for dev.jorel.commandapi.arguments.LiteralArgument:Public Member Functions | |
| LiteralArgument (final String literal) | |
| A literal argument. More... | |
| LiteralArgument (String nodeName, final String literal) | |
| A literal argument. More... | |
| Class< String > | getPrimitiveType () |
| String | getLiteral () |
| Returns the literal string represented by this argument. More... | |
| CommandAPIArgumentType | getArgumentType () |
| String | getHelpString () |
| Argument< T > | instance () |
| Returns the instance of this class with the class Impl. More... | |
Static Public Member Functions | |
| static LiteralArgument | of (final String literal) |
| A utility method to create a literal argument. More... | |
| static LiteralArgument | literal (final String literal) |
| A utility method to create a literal argument. More... | |
| static LiteralArgument | of (String nodeName, final String literal) |
| A utility method to create a literal argument. More... | |
| static LiteralArgument | literal (String nodeName, final String literal) |
| A utility method to create a literal argument. More... | |
A pseudo-argument representing a single literal string.
| dev.jorel.commandapi.arguments.LiteralArgument.LiteralArgument | ( | final String | literal | ) |
A literal argument.
Only takes one string value which cannot be modified
| literal | the string literal that this argument will represent. Also acts as this argument's node name |
| dev.jorel.commandapi.arguments.LiteralArgument.LiteralArgument | ( | String | nodeName, |
| final String | literal | ||
| ) |
A literal argument.
Only takes one string value which cannot be modified
| nodeName | the node name for this argument |
| literal | the string literal that this argument will represent |
| String dev.jorel.commandapi.arguments.LiteralArgument.getLiteral | ( | ) |
Returns the literal string represented by this argument.
|
inherited |
Returns the instance of this class with the class Impl.
Used for chaining builder methods.
|
static |
A utility method to create a literal argument.
Works as an alternative to dev.jorel.commandapi.arguments.LiteralArgument#of(String)
To provide easier use of this method you can statically import this: import static dev.jorel.commandapi.arguments.LiteralArgument.literal;
| literal | the string literal that this argument will represent |
|
static |
A utility method to create a literal argument.
Works as an alternative to dev.jorel.commandapi.arguments.LiteralArgument#of(String, String)
To provide easier use of this method you can statically import this: import static dev.jorel.commandapi.arguments.LiteralArgument.literal;
| literal | the string literal that this argument will represent |
|
static |
A utility method to create a literal argument.
Works as an alternative to dev.jorel.commandapi.arguments.LiteralArgument#literal(String)
To provide easier use of this method you can statically import this: import static dev.jorel.commandapi.arguments.LiteralArgument.of;
| literal | the string literal that this argument will represent |
|
static |
A utility method to create a literal argument.
Works as an alternative to dev.jorel.commandapi.arguments.LiteralArgument#literal(String, String)
To provide easier use of this method you can statically import this: import static dev.jorel.commandapi.arguments.LiteralArgument.of;
| literal | the string literal that this argument will represent |