Package net.minecraft.network.chat
Class Style
java.lang.Object
net.minecraft.network.chat.Style
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) Boolean
(package private) ClickEvent
(package private) TextColor
static ResourceLocation
static Style
(package private) ResourceLocation
(package private) HoverEvent
(package private) String
(package private) Boolean
(package private) Boolean
(package private) Boolean
(package private) Boolean
-
Constructor Summary
ConstructorDescriptionStyle(TextColor p_131113_, Boolean p_131114_, Boolean p_131115_, Boolean p_131116_, Boolean p_131117_, Boolean p_131118_, ClickEvent p_131119_, HoverEvent p_131120_, String p_131121_, ResourceLocation p_131122_)
-
Method Summary
Modifier and TypeMethodDescriptionapplyFormat(ChatFormatting p_131158_)
applyFormats(ChatFormatting... p_131153_)
applyLegacyFormat(ChatFormatting p_131165_)
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_131143_)
withColor(int p_178521_)
withColor(ChatFormatting p_131141_)
withFont(ResourceLocation p_131151_)
withHoverEvent(HoverEvent p_131145_)
withInsertion(String p_131139_)
withItalic(Boolean p_131156_)
withObfuscated(Boolean p_178525_)
withStrikethrough(Boolean p_178523_)
withUnderlined(Boolean p_131163_)
-
Field Details
-
EMPTY
-
DEFAULT_FONT
-
color
-
bold
-
italic
-
underlined
-
strikethrough
-
obfuscated
-
clickEvent
-
hoverEvent
-
insertion
-
font
-
-
Constructor Details
-
Style
Style(@Nullable TextColor p_131113_, @Nullable Boolean p_131114_, @Nullable Boolean p_131115_, @Nullable Boolean p_131116_, @Nullable Boolean p_131117_, @Nullable Boolean p_131118_, @Nullable ClickEvent p_131119_, @Nullable HoverEvent p_131120_, @Nullable String p_131121_, @Nullable ResourceLocation p_131122_)
-
-
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
-
withColor
-
withBold
-
withItalic
-
withUnderlined
-
withStrikethrough
-
withObfuscated
-
setUnderlined
-
setStrikethrough
-
setObfuscated
-
withClickEvent
-
withHoverEvent
-
withInsertion
-
withFont
-
applyFormat
-
applyLegacyFormat
-
applyFormats
-
applyTo
-
toString
-
equals
-
hashCode
public int hashCode()
-