Class SpongeComponentSerializer
- java.lang.Object
-
- net.kyori.adventure.text.serializer.spongeapi.SpongeComponentSerializer
-
- All Implemented Interfaces:
net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,org.spongepowered.api.text.Text>
public final class SpongeComponentSerializer extends Object implements net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,org.spongepowered.api.text.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 net.kyori.adventure.text.Componentdeserialize(@NotNull org.spongepowered.api.text.Text input)static @NotNull SpongeComponentSerializerget()Gets a component serializer for the currentPlatform.getMinecraftVersion().@NotNull org.spongepowered.api.text.Textserialize(@NotNull net.kyori.adventure.text.Component component)
-
-
-
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 net.kyori.adventure.text.Component deserialize(@NotNull @NotNull org.spongepowered.api.text.Text input)- Specified by:
deserializein interfacenet.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,org.spongepowered.api.text.Text>
-
serialize
@NotNull public @NotNull org.spongepowered.api.text.Text serialize(@NotNull @NotNull net.kyori.adventure.text.Component component)- Specified by:
serializein interfacenet.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,org.spongepowered.api.text.Text>
-
-