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>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap
<DyeColor> private static final IntFunction
<DyeColor> static final StringRepresentable.EnumCodec
<DyeColor> private final int
private final int
private final MapColor
private final String
static final StreamCodec
<io.netty.buffer.ByteBuf, DyeColor> private final int
private final float[]
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
-
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
-
CODEC
-
STREAM_CODEC
-
id
private final int id -
name
-
mapColor
-
textureDiffuseColors
private final float[] textureDiffuseColors -
fireworkColor
private final int fireworkColor -
textColor
private final int textColor -
tag
-
-
Constructor Details
-
DyeColor
-
-
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() -
getMapColor
-
getFireworkColor
public int getFireworkColor() -
getTextColor
public int getTextColor() -
byId
-
byName
-
byFireworkColor
-
toString
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-
getTag
-
getColor
-