Interface TextComponent

All Superinterfaces:
Buildable<TextComponent,​TextComponent.Builder>, BuildableComponent<TextComponent,​TextComponent.Builder>, Component, ComponentBuilderApplicable, ComponentLike, net.kyori.examination.Examinable, HoverEventSource<Component>, ScopedComponent<TextComponent>

public interface TextComponent
extends BuildableComponent<TextComponent,​TextComponent.Builder>, ScopedComponent<TextComponent>
A text component.
Since:
4.0.0
  • Method Details

    • ofChildren

      static @NonNull TextComponent ofChildren​(@NonNull ComponentLike @NonNull ... components)
      Creates a component with components as the children.
      Parameters:
      components - the children
      Returns:
      a text component
      Since:
      4.0.0
    • content

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

      @NonNull TextComponent content​(@NonNull String content)
      Sets the plain text content.
      Parameters:
      content - the plain text content
      Returns:
      a copy of this component
      Since:
      4.0.0