Class PlainComponentSerializer

java.lang.Object
net.kyori.adventure.text.serializer.plain.PlainComponentSerializer
All Implemented Interfaces:
net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,​net.kyori.adventure.text.TextComponent,​String>, net.kyori.adventure.util.Buildable<PlainComponentSerializer,​PlainComponentSerializer.Builder>

@Deprecated
public class PlainComponentSerializer
extends Object
implements net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,​net.kyori.adventure.text.TextComponent,​String>, net.kyori.adventure.util.Buildable<PlainComponentSerializer,​PlainComponentSerializer.Builder>
Deprecated.
for removal since 4.8.0, use PlainTextComponentSerializer instead
A plain component serializer.

Plain does not support more complex features such as, but not limited to, colours, decorations, ClickEvent, and HoverEvent.

Since:
4.0.0
  • Constructor Details

    • PlainComponentSerializer

      @Deprecated public PlainComponentSerializer()
      Deprecated.
      for removal since 4.7.0
      Constructs.
      Since:
      4.0.0
    • PlainComponentSerializer

      @Deprecated public PlainComponentSerializer​(@Nullable @Nullable Function<net.kyori.adventure.text.KeybindComponent,​String> keybind, @Nullable @Nullable Function<net.kyori.adventure.text.TranslatableComponent,​String> translatable)
      Deprecated.
      for removal since 4.7.0, use the builder instead
      Constructs.
      Parameters:
      keybind - the keybind renderer
      translatable - the translatable renderer
      Since:
      4.0.0
  • Method Details