Package net.kyori.adventure.text
Interface TranslatableComponent.Builder
- All Superinterfaces:
Buildable.Builder<TranslatableComponent>,ComponentBuilder<TranslatableComponent,TranslatableComponent.Builder>,ComponentBuilderApplicable,ComponentLike
- Enclosing interface:
- TranslatableComponent
public static interface TranslatableComponent.Builder extends ComponentBuilder<TranslatableComponent,TranslatableComponent.Builder>
A text component builder.
- Since:
- 4.0.0
-
Method Summary
Modifier and Type Method Description @NonNull TranslatableComponent.Builderargs(@NonNull List<? extends ComponentLike> args)Sets the translation args.@NonNull TranslatableComponent.Builderargs(@NonNull Component arg)Sets the translation args.@NonNull TranslatableComponent.Builderargs(@NonNull ComponentBuilder<?,?> arg)Sets the translation args.@NonNull TranslatableComponent.Builderargs(@NonNull ComponentBuilder<?,?> @NonNull ... args)Sets the translation args.@NonNull TranslatableComponent.Builderargs(@NonNull ComponentLike @NonNull ... args)Sets the translation args.@NonNull TranslatableComponent.Builderkey(@NonNull String key)Sets the translation key.Methods inherited from interface net.kyori.adventure.text.ComponentBuilder
append, append, append, append, append, append, applicableApply, apply, applyDeep, asComponent, build, clickEvent, color, colorIfAbsent, componentBuilderApply, decorate, decorate, decoration, decoration, decorations, font, hoverEvent, insertion, mapChildren, mapChildrenDeep, mergeStyle, mergeStyle, mergeStyle, resetStyle, style, style
-
Method Details
-
key
Sets the translation key.- Parameters:
key- the translation key- Returns:
- this builder
- Since:
- 4.0.0
-
args
Sets the translation args.- Parameters:
arg- the translation arg- Returns:
- this builder
- Since:
- 4.0.0
-
args
Sets the translation args.- Parameters:
args- the translation args- Returns:
- this builder
- Since:
- 4.0.0
-
args
Sets the translation args.- Parameters:
arg- the translation arg- Returns:
- this builder
- Since:
- 4.0.0
-
args
Sets the translation args.- Parameters:
args- the translation args- Returns:
- this builder
- Since:
- 4.0.0
-
args
Sets the translation args.- Parameters:
args- the translation args- Returns:
- this builder
- Since:
- 4.0.0
-