public enum ClothColor extends Enum<ClothColor>
| 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.
|
String |
getName()
Get user-friendly item name.
|
static ClothColor |
lookup(String name)
Return type from name.
|
static ClothColor |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static ClothColor fromID(int id)
id - public static ClothColor lookup(String name)
name - public int getID()
public String getName()
Copyright © 2010-2014. All Rights Reserved.