public static class TranslatableComponent.Builder extends AbstractBuildableComponent.AbstractBuilder<TranslatableComponent,TranslatableComponent.Builder>
bold, children, clickEvent, color, hoverEvent, insertion, italic, obfuscated, strikethrough, underlined| Modifier and Type | Method and Description |
|---|---|
@NonNull TranslatableComponent.Builder |
args(Component... args)
Sets the translation args.
|
@NonNull TranslatableComponent.Builder |
args(@NonNull java.util.List<Component> args)
Sets the translation args.
|
@NonNull TranslatableComponent |
build()
Build a component.
|
@NonNull TranslatableComponent.Builder |
key(@NonNull java.lang.String key)
Sets the translation key.
|
append, append, applyDeep, clickEvent, color, colorIfAbsent, decoration, hoverEvent, insertion, mapChildren, mapChildrenDeepclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, decoration, decorations, mergeColor, mergeDecorations, mergeEvents, mergeStyle, resetStylepublic @NonNull TranslatableComponent.Builder key(@NonNull java.lang.String key)
key - the translation keypublic @NonNull TranslatableComponent.Builder args(Component... args)
args - the translation argspublic @NonNull TranslatableComponent.Builder args(@NonNull java.util.List<Component> args)
args - the translation argspublic @NonNull TranslatableComponent build()
BuildableComponent.Builder