static @NotNull ComponentFlattener textOnly() {
    return ComponentFlattenerImpl.TEXT_ONLY;
  }
A component flattener that will only handle text components.

<p>All other component types will not be included in the output.</p>

@return a text-only flattener
@since 4.7.0
api/src/main/java/net/kyori/adventure/text/flattener/ComponentFlattener.java