Interface TextComponent

    • Method Detail

      • 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

        @Contract(pure=true)
        @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