net.minecraft.network.chat

public class Style

pc
net.minecraft.network.chat.Style
net.minecraft.class_2583
net.minecraft.text.Style
net.minecraft.src.C_5020_
net.minecraft.network.chat.ChatModifier

Field summary

Modifier and TypeField
public static final Style
a
EMPTY
field_24360
EMPTY
f_131099_
public static final ResourceLocation
b
DEFAULT_FONT
field_24359
DEFAULT_FONT_ID
f_131100_
final TextColor
c
color
field_11855
color
f_131101_
final Boolean
d
bold
field_11856
bold
f_131102_
final Boolean
e
italic
field_11852
italic
f_131103_
final Boolean
f
underlined
field_11851
underlined
f_131104_
final Boolean
g
strikethrough
field_11857
strikethrough
f_131105_
final Boolean
h
obfuscated
field_11861
obfuscated
f_131106_
final ClickEvent
i
clickEvent
field_11853
clickEvent
f_131107_
final HoverEvent
j
hoverEvent
field_11858
hoverEvent
f_131108_
final String
k
insertion
field_11859
insertion
f_131109_
final ResourceLocation
l
font
field_24361
font
f_131110_

Constructor summary

ModifierConstructor
(TextColor color, Boolean bold, Boolean italic, Boolean underlined, Boolean strikethrough, Boolean obfuscated, ClickEvent clickEvent, HoverEvent hoverEvent, String insertion, ResourceLocation font)

Method summary

Modifier and TypeMethod
public TextColor
a()
getColor()
method_10973()
getColor()
m_131135_()
getColor()
public boolean
b()
isBold()
method_10984()
isBold()
m_131154_()
isBold()
public boolean
c()
isItalic()
method_10966()
isItalic()
m_131161_()
isItalic()
public boolean
d()
isStrikethrough()
method_10986()
isStrikethrough()
m_131168_()
isStrikethrough()
public boolean
e()
isUnderlined()
method_10965()
isUnderlined()
m_131171_()
isUnderlined()
public boolean
f()
isObfuscated()
method_10987()
isObfuscated()
m_131176_()
isRandom()
public boolean
g()
isEmpty()
method_10967()
isEmpty()
m_131179_()
public ClickEvent
h()
getClickEvent()
method_10970()
getClickEvent()
m_131182_()
getClickEvent()
public HoverEvent
i()
getHoverEvent()
method_10969()
getHoverEvent()
m_131186_()
getHoverEvent()
public String
j()
getInsertion()
method_10955()
getInsertion()
m_131189_()
getInsertion()
public ResourceLocation
k()
getFont()
method_27708()
getFont()
m_131192_()
getFont()
public Style
a(pe arg0)
withColor(TextColor arg0)
method_27703(class_5251 arg0)
withColor(TextColor color)
m_131148_(C_5024_ arg0)
setColor(ChatHexColor arg0)
public Style
a(p arg0)
withColor(ChatFormatting arg0)
method_10977(class_124 arg0)
withColor(Formatting color)
m_131140_(C_4856_ arg0)
setColor(EnumChatFormat arg0)
public Style
a(int arg0)
withColor(int arg0)
method_36139(int arg0)
withColor(int rgbColor)
m_178520_(int arg0)
public Style
a(Boolean arg0)
withBold(Boolean arg0)
method_10982(Boolean arg0)
withBold(Boolean bold)
m_131136_(Boolean arg0)
setBold(Boolean arg0)
public Style
b(Boolean arg0)
withItalic(Boolean arg0)
method_10978(Boolean arg0)
withItalic(Boolean italic)
m_131155_(Boolean arg0)
setItalic(Boolean arg0)
public Style
c(Boolean arg0)
withUnderlined(Boolean arg0)
method_30938(Boolean arg0)
withUnderline(Boolean underline)
m_131162_(Boolean arg0)
setUnderline(Boolean arg0)
public Style
d(Boolean arg0)
withStrikethrough(Boolean arg0)
method_36140(Boolean arg0)
withStrikethrough(Boolean strikethrough)
m_178522_(Boolean arg0)
setStrikethrough(Boolean arg0)
public Style
e(Boolean arg0)
withObfuscated(Boolean arg0)
method_36141(Boolean arg0)
obfuscated(Boolean obfuscated)
m_178524_(Boolean arg0)
setRandom(Boolean arg0)
public Style
a(oq arg0)
withClickEvent(ClickEvent arg0)
method_10958(class_2558 arg0)
withClickEvent(ClickEvent clickEvent)
m_131142_(C_4993_ arg0)
setChatClickable(ChatClickable arg0)
public Style
a(ow arg0)
withHoverEvent(HoverEvent arg0)
method_10949(class_2568 arg0)
withHoverEvent(HoverEvent hoverEvent)
m_131144_(C_5007_ arg0)
setChatHoverable(ChatHoverable arg0)
public Style
a(String arg0)
withInsertion(String arg0)
method_10975(String arg0)
withInsertion(String insertion)
m_131138_(String arg0)
setInsertion(String arg0)
public Style
a(ww arg0)
withFont(ResourceLocation arg0)
method_27704(class_2960 arg0)
withFont(Identifier font)
m_131150_(C_5265_ arg0)
public Style
b(p arg0)
applyFormat(ChatFormatting arg0)
method_27706(class_124 arg0)
withFormatting(Formatting formatting)
m_131157_(C_4856_ arg0)
public Style
c(p arg0)
applyLegacyFormat(ChatFormatting arg0)
method_27707(class_124 arg0)
withExclusiveFormatting(Formatting formatting)
m_131164_(C_4856_ arg0)
public Style
a(p... arg0)
applyFormats(ChatFormatting... arg0)
method_27705(class_124... arg0)
withFormatting(Formatting... formattings)
m_131152_(C_4856_... arg0)
public Style
a(pc arg0)
applyTo(Style arg0)
method_27702(class_2583 arg0)
withParent(Style parent)
m_131146_(C_5020_ arg0)
setChatModifier(ChatModifier arg0)