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
static final com.mojang.serialization.Codec<Style>
(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_) private static Style
create
(Optional<TextColor> p_237258_, Optional<Boolean> p_237259_, Optional<Boolean> p_237260_, Optional<Boolean> p_237261_, Optional<Boolean> p_237262_, Optional<Boolean> p_237263_, Optional<String> p_237264_, Optional<ResourceLocation> p_237265_) boolean
getColor()
getFont()
int
hashCode()
boolean
isBold()
boolean
isEmpty()
boolean
isItalic()
boolean
boolean
boolean
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
-
FORMATTING_CODEC
-
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
-
create
-
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
-
withClickEvent
-
withHoverEvent
-
withInsertion
-
withFont
-
applyFormat
-
applyLegacyFormat
-
applyFormats
-
applyTo
-
toString
-
equals
-
hashCode
public int hashCode()
-