Uses of Class
net.minecraft.text.TextColor
| Package | Description |
|---|---|
| net.minecraft.text |
-
Uses of TextColor in net.minecraft.text
Fields in net.minecraft.text declared as TextColor Modifier and Type Field Description private @Nullable TextColorStyle. colorFields in net.minecraft.text with type parameters of type TextColor Modifier and Type Field Description private static Map<String,TextColor>TextColor. BY_NAMEprivate static Map<Formatting,TextColor>TextColor. FORMATTING_TO_COLORMethods in net.minecraft.text that return TextColor Modifier and Type Method Description static @Nullable TextColorTextColor. fromFormatting(Formatting formatting)Obtains a text color from a formatting.static TextColorTextColor. fromRgb(int rgb)Obtains a text color from an RGB value.@Nullable TextColorStyle. getColor()Returns the color of this style.static @Nullable TextColorTextColor. parse(String name)Parses a color by its name.private static @Nullable TextColorStyle.Serializer. parseColor(JsonObject root)Methods in net.minecraft.text with parameters of type TextColor Modifier and Type Method Description StyleStyle. withColor(@Nullable TextColor color)Returns a new style with the color provided and all other attributes of this style.Constructors in net.minecraft.text with parameters of type TextColor Constructor Description 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)