public enum ArgumentType extends java.lang.Enum<ArgumentType>
Enum Constant and Description |
---|
BOOLEAN |
DATE |
DECIMAL_NUMBER |
ENTITY_UUID |
ITEM |
REGISTRY_KEY |
SPACED_TEXT |
SUCCESS |
TEXT |
TYPE |
WHOLE_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
isValidInput(java.lang.String input) |
static ArgumentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArgumentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArgumentType WHOLE_NUMBER
public static final ArgumentType DECIMAL_NUMBER
public static final ArgumentType TEXT
public static final ArgumentType SPACED_TEXT
public static final ArgumentType REGISTRY_KEY
public static final ArgumentType ENTITY_UUID
public static final ArgumentType BOOLEAN
public static final ArgumentType SUCCESS
public static final ArgumentType ITEM
public static final ArgumentType TYPE
public static final ArgumentType DATE
public static ArgumentType[] values()
for (ArgumentType c : ArgumentType.values()) System.out.println(c);
public static ArgumentType 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 boolean isValidInput(java.lang.String input)