Uses of Interface
net.kyori.adventure.text.format.TextColor
Packages that use TextColor
Package
Description
Data for controlling components, their styles, and events.
Formats which may be applied to components.
-
Uses of TextColor in net.kyori.adventure.text
Methods in net.kyori.adventure.text that return TextColorModifier and TypeMethodDescriptiondefault @Nullable TextColorComponent.color()Gets the color of this component.Methods in net.kyori.adventure.text with parameters of type TextColorModifier and TypeMethodDescriptiondefault ComponentSets the color of this component.Sets the color of this component.default Cdefault ComponentComponent.colorIfAbsent(@Nullable TextColor color) Sets the color if there isn't one set already.ComponentBuilder.colorIfAbsent(@Nullable TextColor color) Sets the color of this component if there isn't one set already.default CScopedComponent.colorIfAbsent(@Nullable TextColor color) static KeybindComponentCreates a keybind component with a keybind, and optional color.static KeybindComponentComponent.keybind(String keybind, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a keybind component with a keybind, and optional color and decorations.static KeybindComponentComponent.keybind(String keybind, @Nullable TextColor color, TextDecoration... decorations) Creates a keybind component with a keybind, and optional color and decorations.static KeybindComponentComponent.keybind(KeybindComponent.KeybindLike keybind, @Nullable TextColor color) Creates a keybind component with a keybind, and optional color.static KeybindComponentComponent.keybind(KeybindComponent.KeybindLike keybind, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a keybind component with a keybind, and optional color and decorations.static KeybindComponentComponent.keybind(KeybindComponent.KeybindLike keybind, @Nullable TextColor color, TextDecoration... decorations) Creates a keybind component with a keybind, and optional color and decorations.static TextComponentCreates a text component with the content ofString.valueOf(boolean), and optional color.static TextComponentComponent.text(boolean value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(boolean), and optional color and decorations.static TextComponentComponent.text(boolean value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(boolean), and optional color and decorations.static TextComponentCreates a text component with the content ofString.valueOf(char), and optional color.static TextComponentComponent.text(char value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(char), and optional color and decorations.static TextComponentComponent.text(char value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(char), and optional color and decorations.static TextComponentCreates a text component with the content ofString.valueOf(double), and optional color.static TextComponentComponent.text(double value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(double), and optional color and decorations.static TextComponentComponent.text(double value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(double), and optional color and decorations.static TextComponentCreates a text component with the content ofString.valueOf(float), and optional color.static TextComponentComponent.text(float value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(float), and optional color and decorations.static TextComponentComponent.text(float value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(float), and optional color and decorations.static TextComponentCreates a text component with the content ofString.valueOf(int), and optional color.static TextComponentComponent.text(int value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(int), and optional color and decorations.static TextComponentComponent.text(int value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(int), and optional color and decorations.static TextComponentCreates a text component with the content ofString.valueOf(long), and optional color.static TextComponentComponent.text(long value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(long), and optional color and decorations.static TextComponentComponent.text(long value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(long), and optional color and decorations.static TextComponentCreates a text component with content, and optional color.static TextComponentComponent.text(String content, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with content, and optional color and decorations.static TextComponentComponent.text(String content, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with content, and optional color and decorations.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color) Creates a translatable component with a translation key, and optional color.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, List<? extends ComponentLike> args) Creates a translatable component with a translation key, arguments, and optional color.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a translatable component with a translation key, and optional color and decorations.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, Set<TextDecoration> decorations, List<? extends ComponentLike> args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, Set<TextDecoration> decorations, ComponentLike... args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, ComponentLike... args) Creates a translatable component with a translation key, arguments, and optional color.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, TextDecoration... decorations) Creates a translatable component with a translation key, and optional color and decorations.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color) Creates a translatable component with a translation key, and optional color.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, List<? extends ComponentLike> args) Creates a translatable component with a translation key, arguments, and optional color.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a translatable component with a translation key, and optional color and decorations.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, Set<TextDecoration> decorations, List<? extends ComponentLike> args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, Set<TextDecoration> decorations, ComponentLike... args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, ComponentLike... args) Creates a translatable component with a translation key, arguments, and optional color.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, TextDecoration... decorations) Creates a translatable component with a translation key, and optional color and decorations. -
Uses of TextColor in net.kyori.adventure.text.format
Classes in net.kyori.adventure.text.format that implement TextColorModifier and TypeClassDescriptionfinal classThe named text colours in Minecraft: Java Edition.Methods in net.kyori.adventure.text.format with type parameters of type TextColorModifier and TypeMethodDescriptionstatic <C extends TextColor>
CTextColor.nearestColorTo(List<C> values, TextColor any) Find the colour nearest to the provided colour.Methods in net.kyori.adventure.text.format that return TextColorModifier and TypeMethodDescription@Nullable TextColorStyle.color()Gets the color.@Nullable TextColorStyleGetter.color()Gets the color.static TextColorTextColor.color(@org.jetbrains.annotations.Range(from=0L, to=255L) int r, @org.jetbrains.annotations.Range(from=0L, to=255L) int g, @org.jetbrains.annotations.Range(from=0L, to=255L) int b) Create a new text colour with the red, green, and blue components individually.static TextColorTextColor.color(float r, float g, float b) Create a new color with the individual components as floats.static TextColorTextColor.color(int value) Creates a new text colour.static TextColorCreates a new text color, converting the providedHSVLiketo the RGB color space.static TextColorCreates a new text colour.static @Nullable TextColorTextColor.fromCSSHexString(String string) Create a color from a CSS hex string (#rrggbbor#rgb).static @Nullable TextColorTextColor.fromHexString(String string) Create a new color from a hex string.static TextColorLinearly interpolates betweenaandbbyt.Methods in net.kyori.adventure.text.format with parameters of type TextColorModifier and TypeMethodDescriptionSets the color.Sets the color.Sets the color.Style.Builder.colorIfAbsent(@Nullable TextColor color) Sets the color if there isn't one set already.Style.colorIfAbsent(@Nullable TextColor color) Sets the color if there isn't one set already.StyleSetter.colorIfAbsent(@Nullable TextColor color) Sets the color if there isn't one set already.default intstatic <C extends TextColor>
CTextColor.nearestColorTo(List<C> values, TextColor any) Find the colour nearest to the provided colour.static NamedTextColorFind the named colour nearest to the provided colour.static StyleCreates a style with color.static StyleStyle.style(@Nullable TextColor color, Set<TextDecoration> decorations) Creates a style with color and decorations.static StyleStyle.style(@Nullable TextColor color, TextDecoration... decorations) Creates a style with color and decorations.