public enum SubstanceColor extends Enum<SubstanceColor>
Enum Constant and Description |
---|
BLACK |
BLUE |
BROWN |
CYAN |
GRAY |
GREEN |
LIGHT_BLUE |
LIME |
MAGENTA |
ORANGE |
PINK |
PURPLE |
RED |
SILVER |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
int |
asInt()
Gets the color value as an int
|
static SubstanceColor |
of(byte v)
Gets a substance color from the byte value
|
static SubstanceColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SubstanceColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubstanceColor WHITE
public static final SubstanceColor ORANGE
public static final SubstanceColor MAGENTA
public static final SubstanceColor LIGHT_BLUE
public static final SubstanceColor YELLOW
public static final SubstanceColor LIME
public static final SubstanceColor PINK
public static final SubstanceColor GRAY
public static final SubstanceColor SILVER
public static final SubstanceColor CYAN
public static final SubstanceColor PURPLE
public static final SubstanceColor BLUE
public static final SubstanceColor BROWN
public static final SubstanceColor GREEN
public static final SubstanceColor RED
public static final SubstanceColor BLACK
public static SubstanceColor[] values()
for (SubstanceColor c : SubstanceColor.values()) System.out.println(c);
public static SubstanceColor 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 SubstanceColor of(byte v)
v
- the byte valuenull
if it is out of bounds (bound: 0 <= x <= 15)public int asInt()
Copyright © 2016. All rights reserved.