Interface TextComponent

    • Method Detail

      • ofChildren

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

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

        @Contract(pure=true)
        @NotNull
        @NotNull TextComponent content​(@NotNull
                                       @NotNull String content)
        Sets the plain text content.
        Parameters:
        content - the plain text content
        Returns:
        a copy of this component
        Since:
        4.0.0