Package net.minecraft.util.text
Class Style
java.lang.Object
net.minecraft.util.text.Style
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Boolean
private final ClickEvent
private final Color
static final ResourceLocation
static final Style
private final ResourceLocation
private final HoverEvent
private final String
private final Boolean
private final Boolean
private final Boolean
private final Boolean
-
Constructor Summary
ModifierConstructorDescriptionprivate
Style
(Color p_i232570_1_, Boolean p_i232570_2_, Boolean p_i232570_3_, Boolean p_i232570_4_, Boolean p_i232570_5_, Boolean p_i232570_6_, ClickEvent p_i232570_7_, HoverEvent p_i232570_8_, String p_i232570_9_, ResourceLocation p_i232570_10_) -
Method Summary
Modifier and TypeMethodDescriptionapplyFormat
(TextFormatting p_240721_1_) applyFormats
(TextFormatting... p_240720_1_) applyLegacyFormat
(TextFormatting p_240723_1_) boolean
getColor()
getFont()
int
hashCode()
boolean
isBold()
boolean
isEmpty()
boolean
isItalic()
boolean
boolean
boolean
setObfuscated
(Boolean obfuscated) setStrikethrough
(Boolean strikethrough) setUnderlined
(Boolean underlined) toString()
withClickEvent
(ClickEvent p_240715_1_) withColor
(TextFormatting p_240712_1_) withFont
(ResourceLocation p_240719_1_) withHoverEvent
(HoverEvent p_240716_1_) withInsertion
(String p_240714_1_) withItalic
(Boolean p_240722_1_) withUnderlined
(Boolean p_244282_1_)
-
Field Details
-
EMPTY
-
DEFAULT_FONT
-
color
-
bold
-
italic
-
underlined
-
strikethrough
-
obfuscated
-
clickEvent
-
hoverEvent
-
insertion
-
font
-
-
Constructor Details
-
Style
private Style(@Nullable Color p_i232570_1_, @Nullable Boolean p_i232570_2_, @Nullable Boolean p_i232570_3_, @Nullable Boolean p_i232570_4_, @Nullable Boolean p_i232570_5_, @Nullable Boolean p_i232570_6_, @Nullable ClickEvent p_i232570_7_, @Nullable HoverEvent p_i232570_8_, @Nullable String p_i232570_9_, @Nullable ResourceLocation p_i232570_10_)
-
-
Method Details
-
getColor
-
isBold
public boolean isBold() -
isItalic
public boolean isItalic() -
isStrikethrough
public boolean isStrikethrough() -
isUnderlined
public boolean isUnderlined() -
isObfuscated
public boolean isObfuscated() -
isEmpty
public boolean isEmpty() -
getClickEvent
-
getHoverEvent
-
getInsertion
-
getFont
-
withColor
-
withColor
-
withBold
-
withItalic
-
withUnderlined
-
setUnderlined
-
setStrikethrough
-
setObfuscated
-
withClickEvent
-
withHoverEvent
-
withInsertion
-
withFont
-
applyFormat
-
applyLegacyFormat
-
applyFormats
-
applyTo
-
toString
-
equals
-
hashCode
public int hashCode()
-