yarn/mappings/net/minecraft/util/DyeColor.mapping

57 lines
2.5 KiB
Plaintext
Raw Normal View History

2019-06-28 17:55:20 -04:00
CLASS net/minecraft/class_1767 net/minecraft/util/DyeColor
COMMENT An enum representing 16 dye colors.
2019-06-28 17:55:20 -04:00
FIELD field_16537 signColor I
2022-11-23 07:29:21 -05:00
FIELD field_41600 CODEC Lnet/minecraft/class_3542$class_7292;
2019-06-28 17:55:20 -04:00
FIELD field_7943 colorComponents [F
FIELD field_7948 name Ljava/lang/String;
FIELD field_7950 BY_FIREWORK_COLOR Lit/unimi/dsi/fastutil/ints/Int2ObjectOpenHashMap;
FIELD field_7956 mapColor Lnet/minecraft/class_3620;
2022-11-23 11:58:46 -05:00
FIELD field_7959 VALUES Ljava/util/function/IntFunction;
2019-06-28 17:55:20 -04:00
FIELD field_7960 fireworkColor I
FIELD field_7965 id I
METHOD <init> (Ljava/lang/String;IILjava/lang/String;ILnet/minecraft/class_3620;II)V
2022-02-18 13:35:12 -05:00
ARG 3 id
2018-11-04 07:22:38 -05:00
ARG 4 name
ARG 5 color
ARG 6 mapColor
ARG 7 fireworkColor
ARG 8 signColor
2019-06-28 17:55:20 -04:00
METHOD method_16357 getSignColor ()I
COMMENT {@return the color used for dyed signs as RGB integer}
COMMENT
COMMENT <p>The returned value is between {@code 0} and {@code 0xFFFFFF}.
2019-06-28 17:55:20 -04:00
METHOD method_7786 byFireworkColor (I)Lnet/minecraft/class_1767;
COMMENT {@return the dye color whose firework color is {@code color}, or {@code null}
COMMENT if there is no such color}
ARG 0 color
2019-06-28 17:55:20 -04:00
METHOD method_7787 getColorComponents ()[F
COMMENT {@return the float array containing the red, green and blue components of this dye color}
COMMENT
COMMENT <p>Each value of the array is between {@code 0.0} and {@code 255.0} (both inclusive).
2019-06-28 17:55:20 -04:00
METHOD method_7789 getId ()I
COMMENT {@return the integer ID of the dye color}
2019-06-28 17:55:20 -04:00
METHOD method_7790 getFireworkColor ()I
COMMENT {@return the color used for colored fireworks as RGB integer}
COMMENT
COMMENT <p>The returned value is between {@code 0} and {@code 0xFFFFFF}.
2019-06-28 17:55:20 -04:00
METHOD method_7791 byId (I)Lnet/minecraft/class_1767;
COMMENT {@return the dye color whose ID is {@code id}}
COMMENT
COMMENT @apiNote If out-of-range IDs are passed, this returns {@link #WHITE}.
2017-05-13 02:02:51 -04:00
ARG 0 id
2019-06-28 17:55:20 -04:00
METHOD method_7792 getName ()Ljava/lang/String;
COMMENT {@return the name of the dye color}
2019-06-28 17:55:20 -04:00
METHOD method_7793 byName (Ljava/lang/String;Lnet/minecraft/class_1767;)Lnet/minecraft/class_1767;
COMMENT {@return the dye color whose name is {@code name}, or {@code defaultColor} if
COMMENT there is no such color}
COMMENT
COMMENT @apiNote This returns {@code null} only if {@code defaultColor} is {@code null}.
ARG 0 name
ARG 1 defaultColor
METHOD method_7794 getMapColor ()Lnet/minecraft/class_3620;
COMMENT {@return the corresponding map color}
2022-11-23 07:29:21 -05:00
METHOD method_7795 (Lnet/minecraft/class_1767;)Ljava/lang/Integer;
ARG 0 color
METHOD method_7797 (Lnet/minecraft/class_1767;)Lnet/minecraft/class_1767;
ARG 0 color