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 Componentdeserialize(@NotNull net.kyori.text.Component input) static @NotNull LegacyText3ComponentSerializerget()Gets a component serializer for adapting text 3.x components to adventure.@NotNull net.kyori.text.ComponentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
deserializein interfaceComponentSerializer<Component,Component, net.kyori.text.Component>
-
serialize
- Specified by:
serializein interfaceComponentSerializer<Component,Component, net.kyori.text.Component>
-