public enum ClothColor extends java.lang.Enum<ClothColor>
This class may be removed in the future.
Modifier and Type | Class and Description |
---|---|
static class |
ClothColor.ID |
Enum Constant and Description |
---|
BLACK |
BLUE |
BROWN |
CYAN |
DARK_GREEN |
GRAY |
LIGHT_BLUE |
LIGHT_GRAY |
LIGHT_GREEN |
MAGENTA |
ORANGE |
PINK |
PURPLE |
RED |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
static ClothColor |
fromID(int id)
Return type from ID.
|
int |
getID()
Get item numeric ID.
|
java.lang.String |
getName()
Get user-friendly item name.
|
static ClothColor |
lookup(java.lang.String name)
Return type from name.
|
static ClothColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClothColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClothColor WHITE
public static final ClothColor ORANGE
public static final ClothColor MAGENTA
public static final ClothColor LIGHT_BLUE
public static final ClothColor YELLOW
public static final ClothColor LIGHT_GREEN
public static final ClothColor PINK
public static final ClothColor GRAY
public static final ClothColor LIGHT_GRAY
public static final ClothColor CYAN
public static final ClothColor PURPLE
public static final ClothColor BLUE
public static final ClothColor BROWN
public static final ClothColor DARK_GREEN
public static final ClothColor RED
public static final ClothColor BLACK
public static ClothColor[] values()
for (ClothColor c : ClothColor.values()) System.out.println(c);
public static ClothColor 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@Nullable public static ClothColor fromID(int id)
id
- the ID@Nullable public static ClothColor lookup(java.lang.String name)
name
- the name of the colorpublic int getID()
public java.lang.String getName()