Uses of Interface
net.kyori.adventure.text.TextComponent
Packages that use TextComponent
Package
Description
Data for controlling components, their styles, and events.
Component rendering.
-
Uses of TextComponent in net.kyori.adventure.text
Subinterfaces of TextComponent in net.kyori.adventure.textMethods in net.kyori.adventure.text that return TextComponentModifier and TypeMethodDescriptionSets the plain text content.static TextComponentComponent.empty()Gets an empty component.static TextComponentComponent.newline()Gets a text component with a new line character as the content.static TextComponentComponent.space()Gets a text immutable component with a single space as the content.static TextComponentComponent.text(boolean value) Creates a text component with the content ofString.valueOf(boolean).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(boolean)and styling.static TextComponentComponent.text(char value) Creates a text component with the content ofString.valueOf(char).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(char)and styling.static TextComponentComponent.text(double value) Creates a text component with the content ofString.valueOf(double).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(double)and styling.static TextComponentComponent.text(float value) Creates a text component with the content ofString.valueOf(float).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(float)and styling.static TextComponentComponent.text(int value) Creates a text component with the content ofString.valueOf(int).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(int)and styling.static TextComponentComponent.text(long value) Creates a text component with the content ofString.valueOf(long).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 the content ofString.valueOf(long)and styling.static TextComponentCreates a text component with content.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 TextComponentCreates a text component with content and styling.static TextComponentComponent.text(Consumer<? super TextComponent.Builder> consumer) Creates a text component by applying configuration fromconsumer.static TextComponentComponent.textOfChildren(ComponentLike... components) Creates a text component withcomponentsas the children. -
Uses of TextComponent in net.kyori.adventure.text.renderer
Methods in net.kyori.adventure.text.renderer with parameters of type TextComponentModifier and TypeMethodDescriptionprotected abstract ComponentAbstractComponentRenderer.renderText(TextComponent component, C context) Renders a text component.protected ComponentTranslatableComponentRenderer.renderText(TextComponent component, C context)