Interface PlainComponentSerializer.Builder
- All Superinterfaces:
AbstractBuilder<PlainComponentSerializer>
,Buildable.Builder<PlainComponentSerializer>
- Enclosing class:
- PlainComponentSerializer
@ScheduledForRemoval(inVersion="5.0.0")
@Deprecated
public static interface PlainComponentSerializer.Builder
extends AbstractBuilder<PlainComponentSerializer>, Buildable.Builder<PlainComponentSerializer>
Deprecated.
A builder for the plain component serializer.
- Since:
- 4.7.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull PlainComponentSerializer.Builder
flattener
(@NotNull 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
@ScheduledForRemoval(inVersion="5.0.0") @Deprecated @NotNull @NotNull PlainComponentSerializer.Builder flattener(@NotNull @NotNull 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.Builder
instead