Uses of Class
net.minecraft.text.TextColor
-
Uses of TextColor in net.minecraft.text
Modifier and TypeFieldDescriptionTextColor.BY_NAME
static final com.mojang.serialization.Codec<TextColor>
TextColor.CODEC
private static final Map<Formatting,
TextColor> TextColor.FORMATTING_TO_COLOR
Modifier and TypeMethodDescriptionTextColor.fromFormatting
(Formatting formatting) Obtains a text color from a formatting.static TextColor
TextColor.fromRgb
(int rgb) Obtains a text color from an RGB value.Style.getColor()
Returns the color of this style.Parses a color by its name.Style.Serializer.parseColor
(JsonObject root) Modifier and TypeMethodDescriptionReturns a new style with the color provided and all other attributes of this style.Modifier and TypeMethodDescriptionprivate static Style
Style.of
(Optional<TextColor> color, Optional<Boolean> bold, Optional<Boolean> italic, Optional<Boolean> underlined, Optional<Boolean> strikethrough, Optional<Boolean> obfuscated, Optional<String> insertion, Optional<Identifier> font) ModifierConstructorDescription(package private)
Style
(@Nullable TextColor color, @Nullable Boolean bold, @Nullable Boolean italic, @Nullable Boolean underlined, @Nullable Boolean strikethrough, @Nullable Boolean obfuscated, @Nullable ClickEvent clickEvent, @Nullable HoverEvent hoverEvent, @Nullable String insertion, @Nullable Identifier font)