Interface TranslatableComponent.Builder
- All Superinterfaces:
Buildable.Builder<TranslatableComponent,,TranslatableComponent.Builder> BuildableComponent.Builder<TranslatableComponent,TranslatableComponent.Builder>
- Enclosing interface:
- TranslatableComponent
public static interface TranslatableComponent.Builder
extends BuildableComponent.Builder<TranslatableComponent,TranslatableComponent.Builder>
A builder for translatable components.
-
Method Summary
Modifier and TypeMethodDescriptionSets the key of the translation.setParameters(TranslationArguments parameters) Sets the parameters of the translation.Methods inherited from interface com.xpdustry.distributor.api.util.Buildable.Builder
build, modifyMethods inherited from interface com.xpdustry.distributor.api.component.BuildableComponent.Builder
setTextStyle
-
Method Details
-
setKey
Sets the key of the translation.- Parameters:
key- the key- Returns:
- this builder
-
setParameters
Sets the parameters of the translation.- Parameters:
parameters- the parameters- Returns:
- this builder
-