Interface PlainComponentSerializer.Builder

All Superinterfaces:
net.kyori.adventure.util.Buildable.Builder<PlainComponentSerializer>
Enclosing class:
PlainComponentSerializer

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

    Modifier and Type Method Description
    @NonNull PlainComponentSerializer.Builder flattener​(@NonNull 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

      @NonNull PlainComponentSerializer.Builder flattener​(@NonNull 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.7.0