Interface TextComponent.Builder
- All Superinterfaces:
AbstractBuilder<TextComponent>, ComponentBuilder<TextComponent, TextComponent.Builder>, ComponentBuilderApplicable, ComponentLike, MutableStyleSetter<TextComponent.Builder>, StyleSetter<TextComponent.Builder>
- Enclosing interface:
TextComponent
public static sealed interface TextComponent.Builder
extends ComponentBuilder<TextComponent, TextComponent.Builder>
A text component builder.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptioncontent()Gets the plain text content.Sets the plain text content.Methods inherited from interface ComponentBuilder
append, append, append, append, append, append, appendNewline, appendSpace, applicableApply, apply, applyDeep, asComponent, build, children, clickEvent, color, colorIfAbsent, componentBuilderApply, decorate, decorate, decoration, decoration, decorationIfAbsent, decorations, decorations, font, hoverEvent, insertion, mapChildren, mapChildrenDeep, mergeStyle, mergeStyle, mergeStyle, resetStyle, style, styleMethods inherited from interface StyleSetter
shadowColor, shadowColorIfAbsent
-
Method Details
-
content
-
content
Sets the plain text content.- Parameters:
content- the plain text content- Returns:
- this builder
- Since:
- 4.0.0
-