Package net.kyori.adventure.text
Interface TranslatableComponent
- All Superinterfaces:
- Buildable<TranslatableComponent,TranslatableComponent.Builder>,- BuildableComponent<TranslatableComponent,TranslatableComponent.Builder>,- Component,- ComponentBuilderApplicable,- ComponentLike,- net.kyori.examination.Examinable,- HoverEventSource<Component>,- ScopedComponent<TranslatableComponent>
public interface TranslatableComponent extends BuildableComponent<TranslatableComponent,TranslatableComponent.Builder>, ScopedComponent<TranslatableComponent>
A translatable component.
- Since:
- 4.0.0
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceTranslatableComponent.BuilderA text component builder.
- 
Method SummaryModifier and Type Method Description @NonNull List<Component>args()Gets the unmodifiable list of translation arguments.@NonNull TranslatableComponentargs(@NonNull List<? extends ComponentLike> args)Sets the translation arguments for this component.@NonNull TranslatableComponentargs(@NonNull ComponentLike @NonNull ... args)Sets the translation arguments for this component.@NonNull Stringkey()Gets the translation key.@NonNull TranslatableComponentkey(@NonNull String key)Sets the translation key.Methods inherited from interface net.kyori.adventure.text.ComponentasComponent, asHoverEvent, children, clickEvent, color, componentBuilderApply, contains, decoration, decorations, decorations, detectCycle, hasDecoration, hasStyling, hoverEvent, insertion, replaceFirstText, replaceFirstText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, style, styleMethods inherited from interface net.kyori.examination.ExaminableexaminableName, examinableProperties, examineMethods inherited from interface net.kyori.adventure.text.ScopedComponentappend, append, append, children, clickEvent, color, colorIfAbsent, decorate, decoration, decoration, hoverEvent, insertion, mergeStyle, mergeStyle, mergeStyle, style, style, style
- 
Method Details- 
key@NonNull String key()Gets the translation key.- Returns:
- the translation key
- Since:
- 4.0.0
 
- 
keySets the translation key.- Parameters:
- key- the translation key
- Returns:
- a translatable component
- Since:
- 4.0.0
 
- 
argsGets the unmodifiable list of translation arguments.- Returns:
- the unmodifiable list of translation arguments
- Since:
- 4.0.0
 
- 
argsSets the translation arguments for this component.- Parameters:
- args- the translation arguments
- Returns:
- a translatable component
- Since:
- 4.0.0
 
- 
argsSets the translation arguments for this component.- Parameters:
- args- the translation arguments
- Returns:
- a translatable component
- Since:
- 4.0.0
 
 
-