net.minecraft.network.chat

public final class TextColor

xo
net.minecraft.network.chat.TextColor
net.minecraft.class_5251
net.minecraft.text.TextColor
net.minecraft.network.chat.ChatHexColor

Field summary

Modifier and TypeField
private static final String
b
CUSTOM_COLOR_PREFIX
field_33291
RGB_PREFIX
public static final com.mojang.serialization.Codec<TextColor>
a
CODEC
field_39242
CODEC
private static final Map<ChatFormatting, TextColor>
c
LEGACY_FORMAT_TO_COLOR
field_24362
FORMATTING_TO_COLOR
private static final Map<String, TextColor>
d
NAMED_COLORS
field_24363
BY_NAME
private final int
e
value
field_24364
rgb
private final String
f
name
field_24365
name

Constructor summary

ModifierConstructor
private (int rgb, String name)
private (int rgb)

Method summary

Modifier and TypeMethod
public int
a()
getValue()
method_27716()
getRgb()
public String
b()
serialize()
method_27721()
getName()
private String
c()
formatValue()
method_27723()
getHexCode()
public static TextColor
a(n arg0)
fromLegacyFormat(ChatFormatting arg0)
method_27718(class_124 arg0)
fromFormatting(Formatting formatting)
public static TextColor
a(int arg0)
fromRgb(int arg0)
method_27717(int arg0)
fromRgb(int rgb)
public static com.mojang.serialization.DataResult<TextColor>
a(String arg0)
parseColor(String arg0)
method_27719(String arg0)
parse(String name)