net.minecraft.network.chat

public class Style

sj
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 com.mojang.serialization.Codec<Style>
b
FORMATTING_CODEC
field_39241
CODEC
f_237254_
public static final ResourceLocation
c
DEFAULT_FONT
field_24359
DEFAULT_FONT_ID
f_131100_
final TextColor
d
color
field_11855
color
f_131101_
final Boolean
e
bold
field_11856
bold
f_131102_
final Boolean
f
italic
field_11852
italic
f_131103_
final Boolean
g
underlined
field_11851
underlined
f_131104_
final Boolean
h
strikethrough
field_11857
strikethrough
f_131105_
final Boolean
i
obfuscated
field_11861
obfuscated
f_131106_
final ClickEvent
j
clickEvent
field_11853
clickEvent
f_131107_
final HoverEvent
k
hoverEvent
field_11858
hoverEvent
f_131108_
final String
l
insertion
field_11859
insertion
f_131109_
final ResourceLocation
m
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
private static Style
a(Optional<sl> arg0, Optional<Boolean> arg1, Optional<Boolean> arg2, Optional<Boolean> arg3, Optional<Boolean> arg4, Optional<Boolean> arg5, Optional<String> arg6, Optional<abb> arg7)
create(Optional<TextColor> arg0, Optional<Boolean> arg1, Optional<Boolean> arg2, Optional<Boolean> arg3, Optional<Boolean> arg4, Optional<Boolean> arg5, Optional<String> arg6, Optional<ResourceLocation> arg7)
method_43870(Optional<class_5251> arg0, Optional<Boolean> arg1, Optional<Boolean> arg2, Optional<Boolean> arg3, Optional<Boolean> arg4, Optional<Boolean> arg5, Optional<String> arg6, Optional<class_2960> arg7)
of(Optional<TextColor> color, Optional<Boolean> bold, Optional<Boolean> italic, Optional<Boolean> underlined, Optional<Boolean> strikethrough, Optional<Boolean> obfuscated, Optional<String> insertion, Optional<Identifier> font)
m_237257_(Optional<C_5024_> p_237258_, Optional<Boolean> p_237259_, Optional<Boolean> p_237260_, Optional<Boolean> p_237261_, Optional<Boolean> p_237262_, Optional<Boolean> p_237263_, Optional<String> p_237264_, Optional<C_5265_> p_237265_)
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(sl 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(ro arg0)
withClickEvent(ClickEvent arg0)
method_10958(class_2558 arg0)
withClickEvent(ClickEvent clickEvent)
m_131142_(C_4993_ arg0)
public Style
a(rv 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(abb 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(sj arg0)
applyTo(Style arg0)
method_27702(class_2583 arg0)
withParent(Style parent)
m_131146_(C_5020_ arg0)