Interface PlainTextComponentSerializer.Builder
- All Superinterfaces:
AbstractBuilder<PlainTextComponentSerializer>
- Enclosing interface:
PlainTextComponentSerializer
public static interface PlainTextComponentSerializer.Builder
extends AbstractBuilder<PlainTextComponentSerializer>
A builder for the plain-text component serializer.
- Since:
- 4.8.0
-
Method Summary
Modifier and TypeMethodDescriptionflattener(ComponentFlattener flattener) Set the component flattener to use.Methods inherited from interface AbstractBuilder
build
-
Method Details
-
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
-