Interface PlainComponentSerializer.Builder
- All Superinterfaces:
net.kyori.adventure.util.Buildable.Builder<PlainComponentSerializer>
- Enclosing class:
- PlainComponentSerializer
@Deprecated public static interface PlainComponentSerializer.Builder extends net.kyori.adventure.util.Buildable.Builder<PlainComponentSerializer>
Deprecated.
A builder for the plain component serializer.
- Since:
- 4.7.0
-
Method Summary
Modifier and Type Method Description @NotNull PlainComponentSerializer.Builderflattener(@NotNull net.kyori.adventure.text.flattener.ComponentFlattener flattener)Deprecated.for removal since 4.8.0, usePlainTextComponentSerializer.Builder.flattener(ComponentFlattener)insteadMethods inherited from interface net.kyori.adventure.util.Buildable.Builder
build
-
Method Details
-
flattener
@Deprecated @NotNull @NotNull PlainComponentSerializer.Builder flattener(@NotNull @NotNull net.kyori.adventure.text.flattener.ComponentFlattener flattener)Deprecated.for removal since 4.8.0, usePlainTextComponentSerializer.Builder.flattener(ComponentFlattener)insteadSet 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
-
PlainTextComponentSerializer.Builderinstead