net.minecraft.network.chat

public final class TextColor

od
net.minecraft.network.chat.TextColor
net.minecraft.class_5251
net.minecraft.text.TextColor
net.minecraft.util.text.Color
net.minecraft.server.v1_16_R3.ChatHexColor

Field summary

Modifier and TypeField
private static final Map<ChatFormatting, TextColor>
a
LEGACY_FORMAT_TO_COLOR
field_24362
FORMATTING_TO_COLOR
field_240738_a_
private static final Map<String, TextColor>
b
NAMED_COLORS
field_24363
BY_NAME
field_240739_b_
private final int
c
value
field_24364
rgb
field_240740_c_
rgb
private final String
d
name
field_24365
name
field_240741_d_
name

Constructor summary

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

Method summary

Modifier and TypeMethod
public String
b()
serialize()
method_27721()
getName()
func_240747_b_()
private String
c()
formatValue()
method_27723()
getHexCode()
func_240749_c_()
public static TextColor
a(k arg0)
fromLegacyFormat(ChatFormatting arg0)
method_27718(class_124 arg0)
fromFormatting(Formatting formatting)
func_240744_a_(TextFormatting arg0)
public static TextColor
a(int arg0)
fromRgb(int arg0)
method_27717(int arg0)
fromRgb(int rgb)
func_240743_a_(int arg0)
public static TextColor
a(String arg0)
parseColor(String arg0)
method_27719(String arg0)
parse(String name)
func_240745_a_(String arg0)
public int
a()
getValue()
method_27716()
getRgb()
func_240742_a_()