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) final Boolean
(package private) final ClickEvent
(package private) final TextColor
static final ResourceLocation
static final Style
(package private) final ResourceLocation
(package private) final HoverEvent
(package private) final String
(package private) final Boolean
(package private) final Boolean
(package private) final Boolean
(package private) final 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) Deprecated, for removal: This API element is subject to removal in a future version.setStrikethrough
(Boolean strikethrough) Deprecated, for removal: This API element is subject to removal in a future version.UsewithStrikethrough(Boolean)
instead.setUnderlined
(Boolean underlined) Deprecated, for removal: This API element is subject to removal in a future version.UsewithUnderlined(Boolean)
instead.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
@Deprecated(forRemoval=true, since="1.18.2") public Style setUnderlined(@Nullable Boolean underlined) Deprecated, for removal: This API element is subject to removal in a future version.UsewithUnderlined(Boolean)
instead. -
setStrikethrough
@Deprecated(forRemoval=true, since="1.18.2") public Style setStrikethrough(@Nullable Boolean strikethrough) Deprecated, for removal: This API element is subject to removal in a future version.UsewithStrikethrough(Boolean)
instead. -
setObfuscated
@Deprecated(forRemoval=true, since="1.18.2") public Style setObfuscated(@Nullable Boolean obfuscated) Deprecated, for removal: This API element is subject to removal in a future version.UsewithObfuscated(Boolean)
instead. -
withClickEvent
-
withHoverEvent
-
withInsertion
-
withFont
-
applyFormat
-
applyLegacyFormat
-
applyFormats
-
applyTo
-
toString
-
equals
-
hashCode
public int hashCode()
-
withObfuscated(Boolean)
instead.