Uses of Class
net.minecraft.text.TextColor
Packages that use TextColor
-
Uses of TextColor in net.minecraft.client.font
Methods in net.minecraft.client.font with parameters of type TextColorModifier and TypeMethodDescriptionprivate int
TextRenderer.Drawer.getRenderColor
(@Nullable TextColor override) -
Uses of TextColor in net.minecraft.text
Fields in net.minecraft.text declared as TextColorFields in net.minecraft.text with type parameters of type TextColorModifier and TypeFieldDescriptionTextColor.BY_NAME
static final com.mojang.serialization.Codec
<TextColor> TextColor.CODEC
private static final Map
<Formatting, TextColor> TextColor.FORMATTING_TO_COLOR
Methods in net.minecraft.text that return TextColorModifier 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.Methods in net.minecraft.text that return types with arguments of type TextColorModifier and TypeMethodDescriptionstatic com.mojang.serialization.DataResult
<TextColor> Parses a color by its name.Methods in net.minecraft.text with parameters of type TextColorModifier and TypeMethodDescriptionReturns a new style with the color provided and all other attributes of this style.Method parameters in net.minecraft.text with type arguments of type TextColorModifier and TypeMethodDescriptionprivate static Style
Style.of
(Optional<TextColor> color, Optional<Integer> shadowColor, Optional<Boolean> bold, Optional<Boolean> italic, Optional<Boolean> underlined, Optional<Boolean> strikethrough, Optional<Boolean> obfuscated, Optional<ClickEvent> clickEvent, Optional<HoverEvent> hoverEvent, Optional<String> insertion, Optional<Identifier> font) Constructors in net.minecraft.text with parameters of type TextColorModifierConstructorDescriptionprivate
Style
(@Nullable TextColor color, @Nullable Integer shadowColor, @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)