Class SpongeComponentSerializer
- java.lang.Object
-
- net.kyori.adventure.text.serializer.spongeapi.SpongeComponentSerializer
-
- All Implemented Interfaces:
ComponentSerializer<Component,Component,Text>
public final class SpongeComponentSerializer extends java.lang.Object implements ComponentSerializer<Component,Component,Text>
A component serializer for SpongeAPI'sText
.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Component
deserialize(@NotNull Text input)
static @NotNull SpongeComponentSerializer
get()
Gets a component serializer for the currentPlatform.getMinecraftVersion()
.@NotNull Text
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 SpongeComponentSerializer get()
Gets a component serializer for the currentPlatform.getMinecraftVersion()
.- Returns:
- a component serializer
- Since:
- 4.0.0
-
deserialize
@NotNull public @NotNull Component deserialize(@NotNull @NotNull Text input)
- Specified by:
deserialize
in interfaceComponentSerializer<Component,Component,Text>
-
-