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 Object
implements ComponentSerializer<Component,Component,net.kyori.text.Component>
A component serializer betweeen text 3.x's
Component
and adventure's Component
.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescription@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
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 Details
-
get
Gets a component serializer for adapting text 3.x components to adventure.- Returns:
- a component serializer
- Since:
- 4.0.0
-
deserialize
- Specified by:
deserialize
in interfaceComponentSerializer<Component,
Component, net.kyori.text.Component>
-
serialize
- Specified by:
serialize
in interfaceComponentSerializer<Component,
Component, net.kyori.text.Component>
-