net.minecraft

public enum ChatFormatting

implements StringRepresentable

n
net.minecraft.ChatFormatting
net.minecraft.class_124
net.minecraft.util.Formatting
net.minecraft.EnumChatFormat

Enum constant summary

Enum Constant
a
BLACK
field_1074
BLACK
b
DARK_BLUE
field_1058
DARK_BLUE
c
DARK_GREEN
field_1077
DARK_GREEN
d
DARK_AQUA
field_1062
DARK_AQUA
e
DARK_RED
field_1079
DARK_RED
f
DARK_PURPLE
field_1064
DARK_PURPLE
g
GOLD
field_1065
GOLD
h
GRAY
field_1080
GRAY
i
DARK_GRAY
field_1063
DARK_GRAY
j
BLUE
field_1078
BLUE
k
GREEN
field_1060
GREEN
l
AQUA
field_1075
AQUA
m
RED
field_1061
RED
n
LIGHT_PURPLE
field_1076
LIGHT_PURPLE
o
YELLOW
field_1054
YELLOW
p
WHITE
field_1068
WHITE
q
OBFUSCATED
field_1051
OBFUSCATED
r
BOLD
field_1067
BOLD
s
STRIKETHROUGH
field_1055
STRIKETHROUGH
t
UNDERLINE
field_1073
UNDERLINE
u
ITALIC
field_1056
ITALIC
v
RESET
field_1070
RESET

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<ChatFormatting>
w
CODEC
field_39218
CODEC
public static final char
x
PREFIX_CODE
field_33292
FORMATTING_CODE_PREFIX
private static final Map<String, ChatFormatting>
y
FORMATTING_BY_NAME
field_1052
BY_NAME
private static final Pattern
z
STRIP_FORMATTING_PATTERN
field_1066
FORMATTING_CODE_PATTERN
private final String
A
name
field_1057
name
private final char
B
code
field_1059
code
private final boolean
C
isFormat
field_1081
modifier
private final String
D
toString
field_1069
stringValue
private final int
E
id
field_1071
colorIndex
private final Integer
F
color
field_1053
colorValue

Constructor summary

ModifierConstructor
private (String arg0, char arg1, int name, Integer code)
private (String arg0, char arg1, boolean name)
private (String arg0, char arg1, boolean name, int code, Integer modifier)

Method summary

Modifier and TypeMethod
private static String
c(String arg0)
cleanName(String arg0)
method_535(String arg0)
sanitize(String name)
public char
a()
getChar()
method_36145()
getCode()
public int
b()
getId()
method_536()
getColorIndex()
public boolean
d()
isFormat()
method_542()
isModifier()
public boolean
e()
isColor()
method_543()
isColor()
public Integer
f()
getColor()
method_532()
getColorValue()
public String
g()
getName()
method_537()
getName()
public static String
a(String arg0)
stripFormatting(String arg0)
method_539(String arg0)
strip(String string)
public static ChatFormatting
b(String arg0)
getByName(String arg0)
method_533(String arg0)
byName(String name)
public static ChatFormatting
a(int arg0)
getById(int arg0)
method_534(int arg0)
byColorIndex(int colorIndex)
public static ChatFormatting
a(char arg0)
getByCode(char arg0)
method_544(char arg0)
byCode(char code)
public static Collection<String>
a(boolean arg0, boolean arg1)
getNames(boolean arg0, boolean arg1)
method_540(boolean arg0, boolean arg1)
getNames(boolean colors, boolean modifiers)
public String
c()
getSerializedName()
method_15434()
asString()