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.BaseTextStyle.Basebold, 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, underlineclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getNameprotected 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()
TextStyleTextStyle is a composite of multiple text
styles.isComposite in class TextStyletrue if this text style is a composite