net.minecraft.network.chat

public class Style

ys
net.minecraft.network.chat.Style
net.minecraft.class_2583
net.minecraft.text.Style
net.minecraft.network.chat.ChatModifier

Field summary

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

Constructor summary

ModifierConstructor
private (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<yu> arg0, Optional<Boolean> arg1, Optional<Boolean> arg2, Optional<Boolean> arg3, Optional<Boolean> arg4, Optional<Boolean> arg5, Optional<xt> arg6, Optional<yb> arg7, Optional<String> arg8, Optional<alz> arg9)
create(Optional<TextColor> arg0, Optional<Boolean> arg1, Optional<Boolean> arg2, Optional<Boolean> arg3, Optional<Boolean> arg4, Optional<Boolean> arg5, Optional<ClickEvent> arg6, Optional<HoverEvent> arg7, Optional<String> arg8, Optional<ResourceLocation> arg9)
method_43870(Optional<class_5251> arg0, Optional<Boolean> arg1, Optional<Boolean> arg2, Optional<Boolean> arg3, Optional<Boolean> arg4, Optional<Boolean> arg5, Optional<class_2558> arg6, Optional<class_2568> arg7, Optional<String> arg8, Optional<class_2960> arg9)
of(Optional<TextColor> color, Optional<Boolean> bold, Optional<Boolean> italic, Optional<Boolean> underlined, Optional<Boolean> strikethrough, Optional<Boolean> obfuscated, Optional<ClickEvent> arg6, Optional<HoverEvent> arg7, Optional<String> arg8, Optional<Identifier> arg9)
public TextColor
a()
getColor()
method_10973()
getColor()
public boolean
b()
isBold()
method_10984()
isBold()
public boolean
c()
isItalic()
method_10966()
isItalic()
public boolean
d()
isStrikethrough()
method_10986()
isStrikethrough()
public boolean
e()
isUnderlined()
method_10965()
isUnderlined()
public boolean
f()
isObfuscated()
method_10987()
isObfuscated()
public boolean
g()
isEmpty()
method_10967()
isEmpty()
public ClickEvent
h()
getClickEvent()
method_10970()
getClickEvent()
public HoverEvent
i()
getHoverEvent()
method_10969()
getHoverEvent()
public String
j()
getInsertion()
method_10955()
getInsertion()
public ResourceLocation
k()
getFont()
method_27708()
getFont()
private static <T> Style
a(ys arg0, T arg1, T arg2)
checkEmptyAfterChange(Style arg0, T arg1, T arg2)
method_54210(class_2583 arg0, T arg1, T arg2)
with(Style newStyle, T oldAttribute, T newAttribute)
public Style
a(yu arg0)
withColor(TextColor arg0)
method_27703(class_5251 arg0)
withColor(TextColor color)
public Style
a(n arg0)
withColor(ChatFormatting arg0)
method_10977(class_124 arg0)
withColor(Formatting color)
public Style
a(int arg0)
withColor(int arg0)
method_36139(int arg0)
withColor(int rgbColor)
public Style
a(Boolean arg0)
withBold(Boolean arg0)
method_10982(Boolean arg0)
withBold(Boolean bold)
public Style
b(Boolean arg0)
withItalic(Boolean arg0)
method_10978(Boolean arg0)
withItalic(Boolean italic)
public Style
c(Boolean arg0)
withUnderlined(Boolean arg0)
method_30938(Boolean arg0)
withUnderline(Boolean underline)
public Style
d(Boolean arg0)
withStrikethrough(Boolean arg0)
method_36140(Boolean arg0)
withStrikethrough(Boolean strikethrough)
public Style
e(Boolean arg0)
withObfuscated(Boolean arg0)
method_36141(Boolean arg0)
withObfuscated(Boolean obfuscated)
public Style
a(xt arg0)
withClickEvent(ClickEvent arg0)
method_10958(class_2558 arg0)
withClickEvent(ClickEvent clickEvent)
public Style
a(yb arg0)
withHoverEvent(HoverEvent arg0)
method_10949(class_2568 arg0)
withHoverEvent(HoverEvent hoverEvent)
public Style
a(String arg0)
withInsertion(String arg0)
method_10975(String arg0)
withInsertion(String insertion)
public Style
a(alz arg0)
withFont(ResourceLocation arg0)
method_27704(class_2960 arg0)
withFont(Identifier font)
public Style
b(n arg0)
applyFormat(ChatFormatting arg0)
method_27706(class_124 arg0)
withFormatting(Formatting formatting)
public Style
c(n arg0)
applyLegacyFormat(ChatFormatting arg0)
method_27707(class_124 arg0)
withExclusiveFormatting(Formatting formatting)
public Style
a(n... arg0)
applyFormats(ChatFormatting... arg0)
method_27705(class_124... arg0)
withFormatting(Formatting... formattings)
public Style
a(ys arg0)
applyTo(Style arg0)
method_27702(class_2583 arg0)
withParent(Style parent)