net.minecraft.text

public final class Style

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

Field summary

Modifier and TypeField
public static final Style
EMPTY
field_24360
EMPTY
public static final int
NO_SHADOW
field_63933
field_63933
private final TextColor
color
field_11855
color
private final Integer
shadowColor
field_55191
shadowColor
private final Boolean
bold
field_11856
bold
private final Boolean
italic
field_11852
italic
private final Boolean
underlined
field_11851
underlined
private final Boolean
strikethrough
field_11857
strikethrough
private final Boolean
obfuscated
field_11861
obfuscated
private final ClickEvent
clickEvent
field_11853
clickEvent
private final HoverEvent
hoverEvent
field_11858
hoverEvent
private final String
insertion
field_11859
insertion
private final StyleSpriteSource
font
field_24361
font

Constructor summary

ModifierConstructor
private (TextColor color, Integer shadowColor, Boolean bold, Boolean italic, Boolean underlined, Boolean strikethrough, Boolean obfuscated, ClickEvent clickEvent, HoverEvent hoverEvent, String insertion, StyleSpriteSource font)

Method summary

Modifier and TypeMethod
private static Style
create(Optional<TextColor> color, Optional<Integer> shadowColor, Optional<Boolean> bold, Optional<Boolean> italic, Optional<Boolean> underlined, Optional<Boolean> strikethrough, Optional<Boolean> obfuscated, Optional<ClickEvent> clickEvent, Optional<HoverEvent> hoverEvent, Optional<String> insertion, Optional<FontDescription> font)
method_43870(Optional<class_5251> arg0, Optional<Integer> arg1, Optional<Boolean> arg2, Optional<Boolean> arg3, Optional<Boolean> arg4, Optional<Boolean> arg5, Optional<Boolean> arg6, Optional<class_2558> arg7, Optional<class_2568> arg8, Optional<String> arg9, Optional<class_11719> arg10)
of(Optional<TextColor> color, Optional<Integer> shadowColor, Optional<Boolean> bold, Optional<Boolean> italic, Optional<Boolean> underlined, Optional<Boolean> strikethrough, Optional<Boolean> obfuscated, Optional<ClickEvent> clickEvent, Optional<HoverEvent> hoverEvent, Optional<String> insertion, Optional<StyleSpriteSource> font)
public TextColor
getColor()
method_10973()
getColor()
public Integer
getShadowColor()
method_65301()
getShadowColor()
public boolean
isBold()
method_10984()
isBold()
public boolean
isItalic()
method_10966()
isItalic()
public boolean
isStrikethrough()
method_10986()
isStrikethrough()
public boolean
isUnderlined()
method_10965()
isUnderlined()
public boolean
isObfuscated()
method_10987()
isObfuscated()
public boolean
isEmpty()
method_10967()
isEmpty()
public ClickEvent
getClickEvent()
method_10970()
getClickEvent()
public HoverEvent
getHoverEvent()
method_10969()
getHoverEvent()
public String
getInsertion()
method_10955()
getInsertion()
public StyleSpriteSource
getFont()
method_27708()
getFont()
private static <T> Style
checkEmptyAfterChange(Style newStyle, T previous, T next)
method_54210(class_2583 arg0, T arg1, T arg2)
with(Style newStyle, T oldAttribute, T newAttribute)
public Style
withColor(TextColor color)
method_27703(class_5251 arg0)
withColor(TextColor color)
public Style
withColor(ChatFormatting color)
method_10977(class_124 arg0)
withColor(Formatting color)
public Style
withColor(int color)
method_36139(int arg0)
withColor(int rgbColor)
public Style
withShadowColor(int shadowColor)
method_65302(int arg0)
withShadowColor(int shadowColor)
public Style
withoutShadow()
method_75861()
withoutShadow()
public Style
withBold(Boolean bold)
method_10982(Boolean arg0)
withBold(Boolean bold)
public Style
withItalic(Boolean italic)
method_10978(Boolean arg0)
withItalic(Boolean italic)
public Style
withUnderlined(Boolean underlined)
method_30938(Boolean arg0)
withUnderline(Boolean underline)
public Style
withStrikethrough(Boolean strikethrough)
method_36140(Boolean arg0)
withStrikethrough(Boolean strikethrough)
public Style
withObfuscated(Boolean obfuscated)
method_36141(Boolean arg0)
withObfuscated(Boolean obfuscated)
public Style
withClickEvent(ClickEvent clickEvent)
method_10958(class_2558 arg0)
withClickEvent(ClickEvent clickEvent)
public Style
withHoverEvent(HoverEvent hoverEvent)
method_10949(class_2568 arg0)
withHoverEvent(HoverEvent hoverEvent)
public Style
withInsertion(String insertion)
method_10975(String arg0)
withInsertion(String insertion)
public Style
withFont(FontDescription font)
method_27704(class_11719 arg0)
withFont(StyleSpriteSource font)
public Style
applyFormat(ChatFormatting format)
method_27706(class_124 arg0)
withFormatting(Formatting formatting)
public Style
applyLegacyFormat(ChatFormatting format)
method_27707(class_124 arg0)
withExclusiveFormatting(Formatting formatting)
public Style
applyFormats(ChatFormatting... formats)
method_27705(class_124... arg0)
withFormatting(Formatting... formattings)
public Style
applyTo(Style other)
method_27702(class_2583 arg0)
withParent(Style parent)