public abstract static class TextStyle.Base extends TextStyle implements CatalogType
TextStyle
that is not a composite, for example
TextStyles.BOLD
. It is a base text style in Minecraft with a
name.TextStyle
,
TextStyle.Base
TextStyle.Base
bold, italic, obfuscated, strikethrough, underline
Modifier | Constructor and Description |
---|---|
protected |
Base(Boolean bold,
Boolean italic,
Boolean underline,
Boolean strikethrough,
Boolean obfuscated)
Constructs a new
TextStyle.Base . |
Modifier and Type | Method and Description |
---|---|
boolean |
isComposite()
Returns whether this
TextStyle is a composite of multiple text
styles. |
and, andNot, applyTo, bold, contains, equals, hashCode, hasStrikethrough, hasUnderline, isBold, isEmpty, isItalic, isObfuscated, italic, negate, obfuscated, strikethrough, toString, underline
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName
protected Base(@Nullable Boolean bold, @Nullable Boolean italic, @Nullable Boolean underline, @Nullable Boolean strikethrough, @Nullable Boolean obfuscated)
TextStyle.Base
.bold
- Whether text where this style is applied is boldeditalic
- Whether text where this style is applied is italicizedunderline
- Whether text where this style is applied is
underlinedobfuscated
- Whether text where this style is applied is
obfuscatedstrikethrough
- Whether text where this style is applied has a
strikethroughpublic boolean isComposite()
TextStyle
TextStyle
is a composite of multiple text
styles.isComposite
in class TextStyle
true
if this text style is a composite