Package net.minecraft.world.item
Enum Class DyeColor
- All Implemented Interfaces:
- Serializable,- Comparable<DyeColor>,- Constable,- StringRepresentable
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentableStringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<DyeColor>private static final IntFunction<DyeColor>static final StringRepresentable.EnumCodec<DyeColor>private final intprivate final intprivate final MapColorprivate final Stringprivate final intprivate final float[]Fields inherited from interface net.minecraft.util.StringRepresentablePRE_BUILT_MAP_THRESHOLD
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
idprivate final int id
- 
name
- 
mapColor
- 
textureDiffuseColorsprivate final float[] textureDiffuseColors
- 
fireworkColorprivate final int fireworkColor
- 
tag
- 
textColorprivate final int textColor
 
- 
- 
Constructor Details- 
DyeColor
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getIdpublic int getId()
- 
getName
- 
getTextureDiffuseColorspublic float[] getTextureDiffuseColors()
- 
getMapColor
- 
getFireworkColorpublic int getFireworkColor()
- 
getTextColorpublic int getTextColor()
- 
byId
- 
byName
- 
byFireworkColor
- 
toString
- 
getSerializedName- Specified by:
- getSerializedNamein interface- StringRepresentable
 
- 
getTag
- 
getColor
 
-