net.minecraft.network.chat

public class Style

qj
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_()
public boolean
b()
isBold()
method_10984()
isBold()
m_131154_()
public boolean
c()
isItalic()
method_10966()
isItalic()
m_131161_()
public boolean
d()
isStrikethrough()
method_10986()
isStrikethrough()
m_131168_()
public boolean
e()
isUnderlined()
method_10965()
isUnderlined()
m_131171_()
public boolean
f()
isObfuscated()
method_10987()
isObfuscated()
m_131176_()
public boolean
g()
isEmpty()
method_10967()
isEmpty()
m_131179_()
public ClickEvent
h()
getClickEvent()
method_10970()
getClickEvent()
m_131182_()
public HoverEvent
i()
getHoverEvent()
method_10969()
getHoverEvent()
m_131186_()
public String
j()
getInsertion()
method_10955()
getInsertion()
m_131189_()
public ResourceLocation
k()
getFont()
method_27708()
getFont()
m_131192_()
public Style
a(ql arg0)
withColor(TextColor arg0)
method_27703(class_5251 arg0)
withColor(TextColor color)
m_131148_(C_5024_ arg0)
public Style
a(p arg0)
withColor(ChatFormatting arg0)
method_10977(class_124 arg0)
withColor(Formatting color)
m_131140_(C_4856_ 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)
public Style
b(Boolean arg0)
withItalic(Boolean arg0)
method_10978(Boolean arg0)
withItalic(Boolean italic)
m_131155_(Boolean arg0)
public Style
c(Boolean arg0)
withUnderlined(Boolean arg0)
method_30938(Boolean arg0)
withUnderline(Boolean underline)
m_131162_(Boolean arg0)
public Style
d(Boolean arg0)
withStrikethrough(Boolean arg0)
method_36140(Boolean arg0)
withStrikethrough(Boolean strikethrough)
m_178522_(Boolean arg0)
public Style
e(Boolean arg0)
withObfuscated(Boolean arg0)
method_36141(Boolean arg0)
withObfuscated(Boolean obfuscated)
m_178524_(Boolean arg0)
public Style
a(px arg0)
withClickEvent(ClickEvent arg0)
method_10958(class_2558 arg0)
withClickEvent(ClickEvent clickEvent)
m_131142_(C_4993_ arg0)
public Style
a(qd arg0)
withHoverEvent(HoverEvent arg0)
method_10949(class_2568 arg0)
withHoverEvent(HoverEvent hoverEvent)
m_131144_(C_5007_ arg0)
public Style
a(String arg0)
withInsertion(String arg0)
method_10975(String arg0)
withInsertion(String insertion)
m_131138_(String arg0)
public Style
a(yh 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(qj arg0)
applyTo(Style arg0)
method_27702(class_2583 arg0)
withParent(Style parent)
m_131146_(C_5020_ arg0)