Uses of Interface
net.kyori.adventure.text.TranslatableComponent
Packages that use TranslatableComponent
Package
Description
Data for controlling components, their styles, and events.
Tools for working with Adventure's translation API.
Component rendering.
Translations and translation registries.
-
Uses of TranslatableComponent in net.kyori.adventure.text
Subinterfaces with type arguments of type TranslatableComponent in net.kyori.adventure.textModifier and TypeInterfaceDescriptioninterfaceA component that can display translated text.static interfaceA text component builder.Methods in net.kyori.adventure.text that return TranslatableComponentModifier and TypeMethodDescriptionTranslatableComponent.arguments(List<? extends ComponentLike> args) Sets the translation arguments for this component.TranslatableComponent.arguments(ComponentLike... args) Sets the translation arguments for this component.Sets the translation fallback text for this component.Sets the translation key.default TranslatableComponentTranslatableComponent.key(Translatable translatable) Sets the translation key.static TranslatableComponentComponent.translatable(String key) Creates a translatable component with a translation key.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback) Creates a translatable component with a translation key and an optional fallback string.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, List<? extends ComponentLike> args, Iterable<StyleBuilderApplicable> style) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, List<? extends ComponentLike> args, StyleBuilderApplicable... style) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, ComponentLike... args) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, Style style) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, StyleBuilderApplicable... style) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, Style style, ComponentLike... args) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(String key, List<? extends ComponentLike> args) Creates a translatable component with a translation key and arguments.static TranslatableComponentComponent.translatable(String key, ComponentLike... args) Creates a translatable component with a translation key and arguments.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(String key, Style style) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(String key, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(String key, Style style, ComponentLike... args) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(Consumer<? super TranslatableComponent.Builder> consumer) Creates a translatable component by applying configuration fromconsumer.static TranslatableComponentComponent.translatable(Translatable translatable) Creates a translatable component with a translation key.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback) Creates a translatable component with a translation key and an optional fallback string.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, Iterable<StyleBuilderApplicable> style) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, List<? extends ComponentLike> args, Iterable<StyleBuilderApplicable> style) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, List<? extends ComponentLike> args, StyleBuilderApplicable... style) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, ComponentLike... args) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, Style style) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, Style style, ComponentLike... args) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(Translatable translatable, List<? extends ComponentLike> args) Creates a translatable component with a translation key and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, ComponentLike... args) Creates a translatable component with a translation key and arguments.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.static TranslatableComponentComponent.translatable(Translatable translatable, Style style) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(Translatable translatable, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(Translatable translatable, Style style, ComponentLike... args) Creates a translatable component with a translation key and styling. -
Uses of TranslatableComponent in net.kyori.adventure.text.minimessage.translation
Methods in net.kyori.adventure.text.minimessage.translation with parameters of type TranslatableComponentModifier and TypeMethodDescriptionfinal @Nullable ComponentMiniMessageTranslator.translate(TranslatableComponent component, Locale locale) -
Uses of TranslatableComponent in net.kyori.adventure.text.renderer
Methods in net.kyori.adventure.text.renderer with parameters of type TranslatableComponentModifier and TypeMethodDescriptionprotected abstract ComponentAbstractComponentRenderer.renderTranslatable(TranslatableComponent component, C context) Renders a translatable component.protected ComponentTranslatableComponentRenderer.renderTranslatable(TranslatableComponent component, C context) protected ComponentTranslatableComponentRenderer.renderTranslatableInner(TranslatableComponent component, C context) -
Uses of TranslatableComponent in net.kyori.adventure.translation
Methods in net.kyori.adventure.translation with parameters of type TranslatableComponentModifier and TypeMethodDescriptiondefault @Nullable ComponentTranslator.translate(TranslatableComponent component, Locale locale) Gets a translated component from a translatable component and locale.