| Enum Constant and Description |
|---|
CUSTOM
Use the custom value specified by
Opt.custom(). |
EMPTY
Use
null as the default value. |
EMPTY_OR_CUSTOM
|
SENDER
Use the command sender as the default value (for player types).
|
| Modifier and Type | Method and Description |
|---|---|
static Opt.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Opt.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Opt.Type EMPTY_OR_CUSTOM
public static final Opt.Type EMPTY
null as the default value.
For primitive types, this will use the default value of the primitive (e.g., 0 for int, false for boolean).
public static final Opt.Type SENDER
For non-player types, this will result in an error at command execution.
public static final Opt.Type CUSTOM
Opt.custom().
This will be parsed according to the parameter type.
public static Opt.Type[] values()
for (Opt.Type c : Opt.Type.values()) System.out.println(c);
public static Opt.Type 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 null