Package net.kyori.adventure.text
Interface TextComponent.Builder
-
- All Superinterfaces:
AbstractBuilder<TextComponent>
,Buildable.Builder<TextComponent>
,ComponentBuilder<TextComponent,TextComponent.Builder>
,ComponentBuilderApplicable
,ComponentLike
,MutableStyleSetter<TextComponent.Builder>
,StyleSetter<TextComponent.Builder>
- Enclosing interface:
- TextComponent
public static interface TextComponent.Builder extends ComponentBuilder<TextComponent,TextComponent.Builder>
A text component builder.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull String
content()
Gets the plain text content.@NotNull TextComponent.Builder
content(@NotNull String content)
Sets the plain text content.-
Methods inherited from interface net.kyori.adventure.text.ComponentBuilder
append, append, append, append, append, append, applicableApply, apply, applyDeep, asComponent, build, children, clickEvent, color, colorIfAbsent, componentBuilderApply, decorate, decorate, decoration, decoration, decorations, decorations, font, hoverEvent, insertion, mapChildren, mapChildrenDeep, mergeStyle, mergeStyle, mergeStyle, resetStyle, style, style
-
-
-
-
Method Detail
-
content
@NotNull @NotNull String content()
Gets the plain text content.- Returns:
- the plain text content
- Since:
- 4.0.0
-
content
@Contract("_ -> this") @NotNull @NotNull TextComponent.Builder content(@NotNull @NotNull String content)
Sets the plain text content.- Parameters:
content
- the plain text content- Returns:
- this builder
- Since:
- 4.0.0
-
-