Package net.minecraft.item
Enum Class DyeColor
- All Implemented Interfaces:
Serializable
,Comparable<DyeColor>
,Constable
,IStringSerializable
-
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 Tags.IOptionalNamedTag<Item>
private final int
private final int
private final int
private final float[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
DyeColor
(int p_i50049_3_, String p_i50049_4_, int p_i50049_5_, MaterialColor p_i50049_6_, int p_i50049_7_, int p_i50049_8_) -
Method Summary
Modifier and TypeMethodDescriptionstatic DyeColor
byFireworkColor
(int p_196058_0_) static DyeColor
byId
(int p_196056_0_) static DyeColor
static DyeColor
int
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
-
textureDiffuseColor
private final int textureDiffuseColor -
textureDiffuseColorBGR
private final int textureDiffuseColorBGR -
textureDiffuseColors
private final float[] textureDiffuseColors -
fireworkColor
private final int fireworkColor -
tag
-
textColor
private final int textColor
-
-
Constructor Details
-
DyeColor
private DyeColor(int p_i50049_3_, String p_i50049_4_, int p_i50049_5_, MaterialColor p_i50049_6_, int p_i50049_7_, int p_i50049_8_)
-
-
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 interfaceIStringSerializable
-
getColorValue
public int getColorValue() -
getTag
-
getColor
-