Package net.minecraft.world.item
Enum Class DyeColor
- All Implemented Interfaces:
Serializable
,Comparable<DyeColor>
,Constable
,StringRepresentable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<DyeColor>
private static final DyeColor[]
private final MaterialColor
private final int
private final int
private final String
private final int
private final float[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
DyeColor
(int p_41046_, String p_41047_, int p_41048_, MaterialColor p_41049_, int p_41050_, int p_41051_) -
Method Summary
Modifier and TypeMethodDescriptionstatic DyeColor
byFireworkColor
(int p_41062_) static DyeColor
byId
(int p_41054_) static DyeColor
static DyeColor
int
int
getId()
getName()
getTag()
int
float[]
toString()
static DyeColor
Returns the enum constant of this class with the specified name.static DyeColor[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WHITE
-
ORANGE
-
MAGENTA
-
LIGHT_BLUE
-
YELLOW
-
LIME
-
PINK
-
GRAY
-
LIGHT_GRAY
-
CYAN
-
PURPLE
-
BLUE
-
BROWN
-
GREEN
-
RED
-
BLACK
-
-
Field Details
-
BY_ID
-
BY_FIREWORK_COLOR
-
id
private final int id -
name
-
color
-
textureDiffuseColors
private final float[] textureDiffuseColors -
fireworkColor
private final int fireworkColor -
tag
-
textColor
private final int textColor
-
-
Constructor Details
-
DyeColor
private DyeColor(int p_41046_, String p_41047_, int p_41048_, MaterialColor p_41049_, int p_41050_, int p_41051_)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public int getId() -
getName
-
getTextureDiffuseColors
public float[] getTextureDiffuseColors() -
getMaterialColor
-
getFireworkColor
public int getFireworkColor() -
getTextColor
public int getTextColor() -
byId
-
byName
-
byFireworkColor
-
toString
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-
getTag
-
getColor
-