public static class TextComponent.Builder extends AbstractBuildableComponent.AbstractBuilder<TextComponent,TextComponent.Builder>
bold, children, clickEvent, color, hoverEvent, insertion, italic, obfuscated, strikethrough, underlined| Modifier and Type | Method and Description |
|---|---|
@NonNull TextComponent |
build()
Build a component.
|
@NonNull TextComponent.Builder |
content(@NonNull java.lang.String content)
Sets the plain text content.
|
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 TextComponent.Builder content(@NonNull java.lang.String content)
content - the plain text contentpublic @NonNull TextComponent build()
BuildableComponent.Builder