Class LegacyText3ComponentSerializer
- java.lang.Object
-
- net.kyori.adventure.text.serializer.legacytext3.LegacyText3ComponentSerializer
-
- All Implemented Interfaces:
ComponentSerializer<Component,Component,net.kyori.text.Component>
public final class LegacyText3ComponentSerializer extends java.lang.Object implements ComponentSerializer<Component,Component,net.kyori.text.Component>
A component serializer betweeen text 3.x'sComponent
and adventure'sComponent
.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Component
deserialize(@NotNull net.kyori.text.Component input)
static @NotNull LegacyText3ComponentSerializer
get()
Gets a component serializer for adapting text 3.x components to adventure.@NotNull net.kyori.text.Component
serialize(@NotNull Component component)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.kyori.adventure.text.serializer.ComponentSerializer
deseializeOrNull, deserializeOr, deserializeOrNull, serializeOr, serializeOrNull
-
-
-
-
Method Detail
-
get
@NotNull public static @NotNull LegacyText3ComponentSerializer get()
Gets a component serializer for adapting text 3.x components to adventure.- Returns:
- a component serializer
- Since:
- 4.0.0
-
deserialize
@NotNull public @NotNull Component deserialize(@NotNull net.kyori.text.Component input)
- Specified by:
deserialize
in interfaceComponentSerializer<Component,Component,net.kyori.text.Component>
-
serialize
public @NotNull net.kyori.text.Component serialize(@NotNull @NotNull Component component)
- Specified by:
serialize
in interfaceComponentSerializer<Component,Component,net.kyori.text.Component>
-
-