public enum DyeColor extends Enum<DyeColor> implements StringIdentifiable
Enum Constant and Description |
---|
BLACK |
BLUE |
BROWN |
CYAN |
GRAY |
GREEN |
LIGHT_BLUE |
LIGHT_GRAY |
LIME |
MAGENTA |
ORANGE |
PINK |
PURPLE |
RED |
WHITE |
YELLOW |
Modifier and Type | Field and Description |
---|---|
private static it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<DyeColor> |
BY_FIREWORK_COLOR |
private int |
color |
private float[] |
colorComponents |
private int |
colorSwapped |
private int |
fireworkColor |
private int |
id |
private MaterialColor |
materialColor |
private String |
name |
private int |
signColor |
private static DyeColor[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static DyeColor |
byFireworkColor(int color) |
static DyeColor |
byId(int id) |
static DyeColor |
byName(String name,
DyeColor defaultColor) |
float[] |
getColorComponents() |
int |
getFireworkColor() |
int |
getId() |
MaterialColor |
getMaterialColor() |
String |
getName() |
int |
getSignColor() |
String |
toString() |
static DyeColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DyeColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
createCodec, createCodec, method_28142
public static final DyeColor WHITE
public static final DyeColor ORANGE
public static final DyeColor MAGENTA
public static final DyeColor LIGHT_BLUE
public static final DyeColor YELLOW
public static final DyeColor LIME
public static final DyeColor PINK
public static final DyeColor GRAY
public static final DyeColor LIGHT_GRAY
public static final DyeColor CYAN
public static final DyeColor PURPLE
public static final DyeColor BLUE
public static final DyeColor BROWN
public static final DyeColor GREEN
public static final DyeColor RED
public static final DyeColor BLACK
private static final DyeColor[] VALUES
private static final it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<DyeColor> BY_FIREWORK_COLOR
private final int id
private final String name
private final MaterialColor materialColor
private final int color
private final int colorSwapped
private final float[] colorComponents
private final int fireworkColor
private final int signColor
public static DyeColor[] values()
for (DyeColor c : DyeColor.values()) System.out.println(c);
public static DyeColor 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 int getId()
public String getName()
public float[] getColorComponents()
public MaterialColor getMaterialColor()
public int getFireworkColor()
@Environment(value=CLIENT) public int getSignColor()
public static DyeColor byId(int id)
@Environment(value=CLIENT) @Nullable public static DyeColor byFireworkColor(int color)
public String asString()
asString
in interface StringIdentifiable