类的使用
net.minecraft.text.TextColor
-
使用TextColor的程序包 程序包 说明 net.minecraft.text -
-
net.minecraft.text中TextColor的使用
声明为TextColor的net.minecraft.text中的字段 修饰符和类型 字段 说明 private @Nullable TextColorStyle. color类型参数类型为TextColor的net.minecraft.text中的字段 修饰符和类型 字段 说明 private static Map<String,TextColor>TextColor. BY_NAMEprivate static Map<Formatting,TextColor>TextColor. FORMATTING_TO_COLOR返回TextColor的net.minecraft.text中的方法 修饰符和类型 方法 说明 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)参数类型为TextColor的net.minecraft.text中的方法 修饰符和类型 方法 说明 StyleStyle. withColor(@Nullable TextColor color)Returns a new style with the color provided and all other attributes of this style.参数类型为TextColor的net.minecraft.text中的构造器 构造器 说明 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)
-