2020-04-25 20:29:03 -04:00
|
|
|
CLASS net/minecraft/class_5251 net/minecraft/text/TextColor
|
|
|
|
COMMENT Represents an RGB color of a {@link Text}.
|
|
|
|
COMMENT
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT <p>This is immutable, and part of a {@link Style}.
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @see Style
|
|
|
|
FIELD field_24362 FORMATTING_TO_COLOR Ljava/util/Map;
|
|
|
|
FIELD field_24363 BY_NAME Ljava/util/Map;
|
|
|
|
FIELD field_24364 rgb I
|
|
|
|
FIELD field_24365 name Ljava/lang/String;
|
2021-04-06 13:00:23 -04:00
|
|
|
FIELD field_33291 RGB_PREFIX Ljava/lang/String;
|
2020-04-25 20:29:03 -04:00
|
|
|
METHOD <init> (I)V
|
|
|
|
ARG 1 rgb
|
|
|
|
METHOD <init> (ILjava/lang/String;)V
|
|
|
|
ARG 1 rgb
|
|
|
|
ARG 2 name
|
2021-04-30 13:03:23 -04:00
|
|
|
METHOD equals (Ljava/lang/Object;)Z
|
|
|
|
ARG 1 o
|
2020-04-25 20:29:03 -04:00
|
|
|
METHOD method_27716 getRgb ()I
|
|
|
|
COMMENT Gets the RGB value of this color.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The red bits can be obtained by {@code (rgb >> 16) & 0xFF}, green bits
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT by {@code (rgb >> 8) & 0xFF}, blue bits by {@code rgb & 0xFF}.
|
2020-04-25 20:29:03 -04:00
|
|
|
METHOD method_27717 fromRgb (I)Lnet/minecraft/class_5251;
|
|
|
|
COMMENT Obtains a text color from an RGB value.
|
|
|
|
ARG 0 rgb
|
|
|
|
COMMENT the RGB color
|
|
|
|
METHOD method_27718 fromFormatting (Lnet/minecraft/class_124;)Lnet/minecraft/class_5251;
|
|
|
|
COMMENT Obtains a text color from a formatting.
|
|
|
|
ARG 0 formatting
|
|
|
|
COMMENT the formatting
|
|
|
|
METHOD method_27719 parse (Ljava/lang/String;)Lnet/minecraft/class_5251;
|
|
|
|
COMMENT Parses a color by its name.
|
|
|
|
ARG 0 name
|
|
|
|
COMMENT the name
|
2021-04-28 10:25:24 -04:00
|
|
|
METHOD method_27720 (Lnet/minecraft/class_5251;)Ljava/lang/String;
|
|
|
|
ARG 0 textColor
|
2020-04-25 20:29:03 -04:00
|
|
|
METHOD method_27721 getName ()Ljava/lang/String;
|
|
|
|
COMMENT Gets the name of this color, used for converting the color to JSON format.
|
2021-04-28 10:25:24 -04:00
|
|
|
METHOD method_27722 (Lnet/minecraft/class_124;)Lnet/minecraft/class_5251;
|
|
|
|
ARG 0 formatting
|
2020-04-25 20:29:03 -04:00
|
|
|
METHOD method_27723 getHexCode ()Ljava/lang/String;
|