net.minecraft.network.chat

public final class TextColor

tu
net.minecraft.network.chat.TextColor
net.minecraft.class_5251
net.minecraft.text.TextColor
net.minecraft.src.C_5024_
net.minecraft.network.chat.ChatHexColor

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public int
a()
getValue()
method_27716()
getRgb()
m_131265_()
public String
b()
serialize()
method_27721()
getName()
m_131274_()
private String
c()
formatValue()
method_27723()
getHexCode()
m_131277_()
public static TextColor
a(n arg0)
fromLegacyFormat(ChatFormatting arg0)
method_27718(class_124 arg0)
fromFormatting(Formatting formatting)
m_131270_(C_4856_ p_131271_)
public static TextColor
a(int arg0)
fromRgb(int arg0)
method_27717(int arg0)
fromRgb(int rgb)
m_131266_(int p_131267_)
public static TextColor
a(String arg0)
parseColor(String arg0)
method_27719(String arg0)
parse(String name)
m_131268_(String p_131269_)