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>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<DyeColor>private static final IntFunction<DyeColor>static final StringRepresentable.EnumCodec<DyeColor>private final MaterialColorprivate final intprivate final intprivate final Stringprivate final intprivate final float[]Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDyeColor(int p_41046_, String p_41047_, int p_41048_, MaterialColor p_41049_, int p_41050_, int p_41051_) -
Method Summary
Modifier and TypeMethodDescriptionstatic DyeColorbyFireworkColor(int p_41062_) static DyeColorbyId(int p_41054_) static DyeColorstatic DyeColorintintgetId()getName()getTag()intfloat[]toString()static DyeColorReturns 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
-
CODEC
-
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:
getSerializedNamein interfaceStringRepresentable
-
getTag
-
getColor
-