Package net.minecraft.util
Enum Class DyeColor
- All Implemented Interfaces:
Serializable
,Comparable<DyeColor>
,Constable
,StringIdentifiable
- Mappings:
Namespace Name official byt
intermediary net/minecraft/class_1767
named net/minecraft/util/DyeColor
-
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.StringIdentifiable
StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Int2ObjectOpenHashMap<DyeColor>
private final float[]
private final int
private final int
private final MapColor
private final String
private final int
private static final DyeColor[]
Fields inherited from interface net.minecraft.util.StringIdentifiable
field_38377
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
byFireworkColor
(int color) static DyeColor
byId
(int id) float[]
Returns the red, blue and green components of this dye color.int
int
getId()
getName()
int
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
- Mappings:
Namespace Name Mixin selector official a
Lbyt;a:Lbyt;
intermediary field_7952
Lnet/minecraft/class_1767;field_7952:Lnet/minecraft/class_1767;
named WHITE
Lnet/minecraft/util/DyeColor;WHITE:Lnet/minecraft/util/DyeColor;
-
ORANGE
- Mappings:
Namespace Name Mixin selector official b
Lbyt;b:Lbyt;
intermediary field_7946
Lnet/minecraft/class_1767;field_7946:Lnet/minecraft/class_1767;
named ORANGE
Lnet/minecraft/util/DyeColor;ORANGE:Lnet/minecraft/util/DyeColor;
-
MAGENTA
- Mappings:
Namespace Name Mixin selector official c
Lbyt;c:Lbyt;
intermediary field_7958
Lnet/minecraft/class_1767;field_7958:Lnet/minecraft/class_1767;
named MAGENTA
Lnet/minecraft/util/DyeColor;MAGENTA:Lnet/minecraft/util/DyeColor;
-
LIGHT_BLUE
- Mappings:
Namespace Name Mixin selector official d
Lbyt;d:Lbyt;
intermediary field_7951
Lnet/minecraft/class_1767;field_7951:Lnet/minecraft/class_1767;
named LIGHT_BLUE
Lnet/minecraft/util/DyeColor;LIGHT_BLUE:Lnet/minecraft/util/DyeColor;
-
YELLOW
- Mappings:
Namespace Name Mixin selector official e
Lbyt;e:Lbyt;
intermediary field_7947
Lnet/minecraft/class_1767;field_7947:Lnet/minecraft/class_1767;
named YELLOW
Lnet/minecraft/util/DyeColor;YELLOW:Lnet/minecraft/util/DyeColor;
-
LIME
- Mappings:
Namespace Name Mixin selector official f
Lbyt;f:Lbyt;
intermediary field_7961
Lnet/minecraft/class_1767;field_7961:Lnet/minecraft/class_1767;
named LIME
Lnet/minecraft/util/DyeColor;LIME:Lnet/minecraft/util/DyeColor;
-
PINK
- Mappings:
Namespace Name Mixin selector official g
Lbyt;g:Lbyt;
intermediary field_7954
Lnet/minecraft/class_1767;field_7954:Lnet/minecraft/class_1767;
named PINK
Lnet/minecraft/util/DyeColor;PINK:Lnet/minecraft/util/DyeColor;
-
GRAY
- Mappings:
Namespace Name Mixin selector official h
Lbyt;h:Lbyt;
intermediary field_7944
Lnet/minecraft/class_1767;field_7944:Lnet/minecraft/class_1767;
named GRAY
Lnet/minecraft/util/DyeColor;GRAY:Lnet/minecraft/util/DyeColor;
-
LIGHT_GRAY
- Mappings:
Namespace Name Mixin selector official i
Lbyt;i:Lbyt;
intermediary field_7967
Lnet/minecraft/class_1767;field_7967:Lnet/minecraft/class_1767;
named LIGHT_GRAY
Lnet/minecraft/util/DyeColor;LIGHT_GRAY:Lnet/minecraft/util/DyeColor;
-
CYAN
- Mappings:
Namespace Name Mixin selector official j
Lbyt;j:Lbyt;
intermediary field_7955
Lnet/minecraft/class_1767;field_7955:Lnet/minecraft/class_1767;
named CYAN
Lnet/minecraft/util/DyeColor;CYAN:Lnet/minecraft/util/DyeColor;
-
PURPLE
- Mappings:
Namespace Name Mixin selector official k
Lbyt;k:Lbyt;
intermediary field_7945
Lnet/minecraft/class_1767;field_7945:Lnet/minecraft/class_1767;
named PURPLE
Lnet/minecraft/util/DyeColor;PURPLE:Lnet/minecraft/util/DyeColor;
-
BLUE
- Mappings:
Namespace Name Mixin selector official l
Lbyt;l:Lbyt;
intermediary field_7966
Lnet/minecraft/class_1767;field_7966:Lnet/minecraft/class_1767;
named BLUE
Lnet/minecraft/util/DyeColor;BLUE:Lnet/minecraft/util/DyeColor;
-
BROWN
- Mappings:
Namespace Name Mixin selector official m
Lbyt;m:Lbyt;
intermediary field_7957
Lnet/minecraft/class_1767;field_7957:Lnet/minecraft/class_1767;
named BROWN
Lnet/minecraft/util/DyeColor;BROWN:Lnet/minecraft/util/DyeColor;
-
GREEN
- Mappings:
Namespace Name Mixin selector official n
Lbyt;n:Lbyt;
intermediary field_7942
Lnet/minecraft/class_1767;field_7942:Lnet/minecraft/class_1767;
named GREEN
Lnet/minecraft/util/DyeColor;GREEN:Lnet/minecraft/util/DyeColor;
-
RED
- Mappings:
Namespace Name Mixin selector official o
Lbyt;o:Lbyt;
intermediary field_7964
Lnet/minecraft/class_1767;field_7964:Lnet/minecraft/class_1767;
named RED
Lnet/minecraft/util/DyeColor;RED:Lnet/minecraft/util/DyeColor;
-
BLACK
- Mappings:
Namespace Name Mixin selector official p
Lbyt;p:Lbyt;
intermediary field_7963
Lnet/minecraft/class_1767;field_7963:Lnet/minecraft/class_1767;
named BLACK
Lnet/minecraft/util/DyeColor;BLACK:Lnet/minecraft/util/DyeColor;
-
-
Field Details
-
VALUES
- Mappings:
Namespace Name Mixin selector official q
Lbyt;q:[Lbyt;
intermediary field_7959
Lnet/minecraft/class_1767;field_7959:[Lnet/minecraft/class_1767;
named VALUES
Lnet/minecraft/util/DyeColor;VALUES:[Lnet/minecraft/util/DyeColor;
-
BY_FIREWORK_COLOR
- Mappings:
Namespace Name Mixin selector official r
Lbyt;r:Lit/unimi/dsi/fastutil/ints/Int2ObjectOpenHashMap;
intermediary field_7950
Lnet/minecraft/class_1767;field_7950:Lit/unimi/dsi/fastutil/ints/Int2ObjectOpenHashMap;
named BY_FIREWORK_COLOR
Lnet/minecraft/util/DyeColor;BY_FIREWORK_COLOR:Lit/unimi/dsi/fastutil/ints/Int2ObjectOpenHashMap;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official s
Lbyt;s:I
intermediary field_7965
Lnet/minecraft/class_1767;field_7965:I
named id
Lnet/minecraft/util/DyeColor;id:I
-
name
- Mappings:
Namespace Name Mixin selector official t
Lbyt;t:Ljava/lang/String;
intermediary field_7948
Lnet/minecraft/class_1767;field_7948:Ljava/lang/String;
named name
Lnet/minecraft/util/DyeColor;name:Ljava/lang/String;
-
mapColor
- Mappings:
Namespace Name Mixin selector official u
Lbyt;u:Ldpc;
intermediary field_7956
Lnet/minecraft/class_1767;field_7956:Lnet/minecraft/class_3620;
named mapColor
Lnet/minecraft/util/DyeColor;mapColor:Lnet/minecraft/block/MapColor;
-
colorComponents
private final float[] colorComponents- Mappings:
Namespace Name Mixin selector official v
Lbyt;v:[F
intermediary field_7943
Lnet/minecraft/class_1767;field_7943:[F
named colorComponents
Lnet/minecraft/util/DyeColor;colorComponents:[F
-
fireworkColor
private final int fireworkColor- Mappings:
Namespace Name Mixin selector official w
Lbyt;w:I
intermediary field_7960
Lnet/minecraft/class_1767;field_7960:I
named fireworkColor
Lnet/minecraft/util/DyeColor;fireworkColor:I
-
signColor
private final int signColor- Mappings:
Namespace Name Mixin selector official x
Lbyt;x:I
intermediary field_16537
Lnet/minecraft/class_1767;field_16537:I
named signColor
Lnet/minecraft/util/DyeColor;signColor:I
-
-
Constructor Details
-
DyeColor
private DyeColor(int id, String name, int color, MapColor mapColor, int fireworkColor, int signColor) - Mappings:
Namespace Name Mixin selector official <init>
Lbyt;<init>(Ljava/lang/String;IILjava/lang/String;ILdpc;II)V
intermediary <init>
Lnet/minecraft/class_1767;<init>(Ljava/lang/String;IILjava/lang/String;ILnet/minecraft/class_3620;II)V
named <init>
Lnet/minecraft/util/DyeColor;<init>(Ljava/lang/String;IILjava/lang/String;ILnet/minecraft/block/MapColor;II)V
-
-
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()- Mappings:
Namespace Name Mixin selector official a
Lbyt;a()I
intermediary method_7789
Lnet/minecraft/class_1767;method_7789()I
named getId
Lnet/minecraft/util/DyeColor;getId()I
-
getName
- Mappings:
Namespace Name Mixin selector official b
Lbyt;b()Ljava/lang/String;
intermediary method_7792
Lnet/minecraft/class_1767;method_7792()Ljava/lang/String;
named getName
Lnet/minecraft/util/DyeColor;getName()Ljava/lang/String;
-
getColorComponents
public float[] getColorComponents()Returns the red, blue and green components of this dye color.- Returns:
- an array composed of the red, blue and green floats
- Mappings:
Namespace Name Mixin selector official d
Lbyt;d()[F
intermediary method_7787
Lnet/minecraft/class_1767;method_7787()[F
named getColorComponents
Lnet/minecraft/util/DyeColor;getColorComponents()[F
-
getMapColor
- Mappings:
Namespace Name Mixin selector official e
Lbyt;e()Ldpc;
intermediary method_7794
Lnet/minecraft/class_1767;method_7794()Lnet/minecraft/class_3620;
named getMapColor
Lnet/minecraft/util/DyeColor;getMapColor()Lnet/minecraft/block/MapColor;
-
getFireworkColor
public int getFireworkColor()- Mappings:
Namespace Name Mixin selector official f
Lbyt;f()I
intermediary method_7790
Lnet/minecraft/class_1767;method_7790()I
named getFireworkColor
Lnet/minecraft/util/DyeColor;getFireworkColor()I
-
getSignColor
public int getSignColor()- Mappings:
Namespace Name Mixin selector official g
Lbyt;g()I
intermediary method_16357
Lnet/minecraft/class_1767;method_16357()I
named getSignColor
Lnet/minecraft/util/DyeColor;getSignColor()I
-
byId
- Mappings:
Namespace Name Mixin selector official a
Lbyt;a(I)Lbyt;
intermediary method_7791
Lnet/minecraft/class_1767;method_7791(I)Lnet/minecraft/class_1767;
named byId
Lnet/minecraft/util/DyeColor;byId(I)Lnet/minecraft/util/DyeColor;
-
byName
@Contract("_,!null->!null;_,null->_") @Nullable public static @Nullable DyeColor byName(String name, @Nullable @Nullable DyeColor defaultColor) - Mappings:
Namespace Name Mixin selector official a
Lbyt;a(Ljava/lang/String;Lbyt;)Lbyt;
intermediary method_7793
Lnet/minecraft/class_1767;method_7793(Ljava/lang/String;Lnet/minecraft/class_1767;)Lnet/minecraft/class_1767;
named byName
Lnet/minecraft/util/DyeColor;byName(Ljava/lang/String;Lnet/minecraft/util/DyeColor;)Lnet/minecraft/util/DyeColor;
-
byFireworkColor
- Mappings:
Namespace Name Mixin selector official b
Lbyt;b(I)Lbyt;
intermediary method_7786
Lnet/minecraft/class_1767;method_7786(I)Lnet/minecraft/class_1767;
named byFireworkColor
Lnet/minecraft/util/DyeColor;byFireworkColor(I)Lnet/minecraft/util/DyeColor;
-
toString
-
asString
- Specified by:
asString
in interfaceStringIdentifiable
- Mappings:
Namespace Name Mixin selector official c
Lamd;c()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-