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 Details

    • content

      String content()
      Gets the plain text content.
      Returns:
      the plain text content
      Since:
      4.0.0
    • content

      @Contract("_ -> this") TextComponent.Builder content(String content)
      Sets the plain text content.
      Parameters:
      content - the plain text content
      Returns:
      this builder
      Since:
      4.0.0