Class SpongeComponentSerializer
java.lang.Object
net.kyori.adventure.text.serializer.spongeapi.SpongeComponentSerializer
- All Implemented Interfaces:
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 Component
deserialize
(@NotNull Text input) static @NotNull SpongeComponentSerializer
get()
Gets a component serializer for the currentPlatform.getMinecraftVersion()
.@NotNull Text
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 the currentPlatform.getMinecraftVersion()
.- Returns:
- a component serializer
- Since:
- 4.0.0
-
deserialize
- Specified by:
deserialize
in interfaceComponentSerializer<Component,
Component, Text>
-
serialize
- Specified by:
serialize
in interfaceComponentSerializer<Component,
Component, Text>
-