public static enum CommandAPI.ArgType extends java.lang.Enum<CommandAPI.ArgType>
| Enum Constant and Description |
|---|
BLOCK_POS |
BOOLEAN |
BYTE |
DOUBLE |
ENTITY |
FLOAT |
INTEGER |
LITERAL |
LONG |
PLAYER |
POS |
ROOT |
SHORT |
STRING |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
parseArg(java.lang.Object[] objs) |
static CommandAPI.ArgType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommandAPI.ArgType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandAPI.ArgType BOOLEAN
public static final CommandAPI.ArgType BLOCK_POS
public static final CommandAPI.ArgType BYTE
public static final CommandAPI.ArgType DOUBLE
public static final CommandAPI.ArgType ENTITY
public static final CommandAPI.ArgType FLOAT
public static final CommandAPI.ArgType INTEGER
public static final CommandAPI.ArgType LITERAL
public static final CommandAPI.ArgType LONG
public static final CommandAPI.ArgType PLAYER
public static final CommandAPI.ArgType POS
public static final CommandAPI.ArgType ROOT
public static final CommandAPI.ArgType SHORT
public static final CommandAPI.ArgType STRING
public static CommandAPI.ArgType[] values()
for (CommandAPI.ArgType c : CommandAPI.ArgType.values()) System.out.println(c);
public static CommandAPI.ArgType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic <T> T parseArg(java.lang.Object[] objs)
throws java.lang.Exception
java.lang.Exception