Class SpongeComponentSerializer
java.lang.Object
net.kyori.adventure.text.serializer.spongeapi.SpongeComponentSerializer
- All Implemented Interfaces:
ComponentDecoder<Text,,Component> ComponentEncoder<Component,,Text> ComponentSerializer<Component,Component, Text>
public final class SpongeComponentSerializer
extends Object
implements ComponentSerializer<Component,Component,Text>
A component serializer for SpongeAPI's
Text.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull Componentdeserialize(@NotNull Text input) static @NotNull SpongeComponentSerializerget()Gets a component serializer for the currentPlatform.getMinecraftVersion().@NotNull TextMethods 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 the currentPlatform.getMinecraftVersion().- Returns:
- a component serializer
- Since:
- 4.0.0
-
deserialize
- Specified by:
deserializein interfaceComponentDecoder<Text,Component> - Specified by:
deserializein interfaceComponentSerializer<Component,Component, Text>
-
serialize
- Specified by:
serializein interfaceComponentEncoder<Component,Text> - Specified by:
serializein interfaceComponentSerializer<Component,Component, Text>
-