Interface PlainTextComponentSerializer.Builder
- All Superinterfaces:
AbstractBuilder<PlainTextComponentSerializer>
,Buildable.Builder<PlainTextComponentSerializer>
- Enclosing interface:
- PlainTextComponentSerializer
public static interface PlainTextComponentSerializer.Builder
extends AbstractBuilder<PlainTextComponentSerializer>, Buildable.Builder<PlainTextComponentSerializer>
A builder for the plain-text component serializer.
- Since:
- 4.8.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull PlainTextComponentSerializer.Builder
flattener
(@NotNull 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 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
-