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
ModifierConstructorDescriptionprivate
Style
(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 <T> Style
checkEmptyAfterChange
(Style p_304840_, T p_304483_, T p_304384_) 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<ClickEvent> p_237264_, Optional<HoverEvent> p_237265_, Optional<String> p_304921_, Optional<ResourceLocation> p_304811_) 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
-
DEFAULT_FONT
-
color
-
bold
-
italic
-
underlined
-
strikethrough
-
obfuscated
-
clickEvent
-
hoverEvent
-
insertion
-
font
-
-
Constructor Details
-
Style
private 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
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<ClickEvent> p_237264_, Optional<HoverEvent> p_237265_, Optional<String> p_304921_, Optional<ResourceLocation> p_304811_) -
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
-
checkEmptyAfterChange
-
withColor
-
withColor
-
withColor
-
withBold
-
withItalic
-
withUnderlined
-
withStrikethrough
-
withObfuscated
-
withClickEvent
-
withHoverEvent
-
withInsertion
-
withFont
-
applyFormat
-
applyLegacyFormat
-
applyFormats
-
applyTo
-
toString
-
equals
-
hashCode
public int hashCode()
-