Uses of Interface
net.kyori.adventure.text.TextComponent
Packages that use TextComponent
Package
Description
Data for controlling components, their styles, and events.
Component rendering.
Legacy text based serialization and deserialization.
Plain text based serialization and deserialization.
-
Uses of TextComponent in net.kyori.adventure.text
Subinterfaces of TextComponent in net.kyori.adventure.textSubinterfaces with type arguments of type TextComponent in net.kyori.adventure.textModifier and TypeInterfaceDescriptioninterfaceA component that displays a string.static interfaceA text component builder.Methods 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) -
Uses of TextComponent in net.kyori.adventure.text.serializer.legacy
Subinterfaces with type arguments of type TextComponent in net.kyori.adventure.text.serializer.legacyModifier and TypeInterfaceDescriptioninterfaceA legacy component serializer.Methods in net.kyori.adventure.text.serializer.legacy that return TextComponentModifier and TypeMethodDescriptionLegacyComponentSerializer.deserialize(String input) Deserialize a component from a legacyString. -
Uses of TextComponent in net.kyori.adventure.text.serializer.plain
Subinterfaces with type arguments of type TextComponent in net.kyori.adventure.text.serializer.plainModifier and TypeInterfaceDescriptioninterfaceA plain-text component serializer.Methods in net.kyori.adventure.text.serializer.plain that return TextComponentModifier and TypeMethodDescriptiondefault TextComponentPlainTextComponentSerializer.deserialize(String input)