Interface PlainTextComponentSerializer.Builder

All Superinterfaces:
net.kyori.adventure.util.Buildable.Builder<PlainTextComponentSerializer>
Enclosing interface:
PlainTextComponentSerializer

public static interface PlainTextComponentSerializer.Builder
extends net.kyori.adventure.util.Buildable.Builder<PlainTextComponentSerializer>
A builder for the plain-text component serializer.
Since:
4.8.0
  • Method Summary

    Modifier and Type Method Description
    @NotNull PlainTextComponentSerializer.Builder flattener​(@NotNull net.kyori.adventure.text.flattener.ComponentFlattener flattener)
    Set the component flattener to use.

    Methods inherited from interface net.kyori.adventure.util.Buildable.Builder

    build
  • Method Details

    • flattener

      @NotNull @NotNull PlainTextComponentSerializer.Builder flattener​(@NotNull @NotNull net.kyori.adventure.text.flattener.ComponentFlattener flattener)
      Set the component flattener to use.

      The default flattener is ComponentFlattener.basic() modified to throw exceptions on unknown component types.

      Parameters:
      flattener - the new flattener
      Returns:
      this builder
      Since:
      4.8.0