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 @NonNull net.kyori.adventure.text.Componentdeserialize(@NonNull org.spongepowered.api.text.Text input)static @NonNull SpongeComponentSerializerget()Gets a component serializer for the currentPlatform.getMinecraftVersion().@NonNull org.spongepowered.api.text.Textserialize(@NonNull net.kyori.adventure.text.Component component)
-
-
-
Method Detail
-
get
public static @NonNull SpongeComponentSerializer get()
Gets a component serializer for the currentPlatform.getMinecraftVersion().- Returns:
- a component serializer
- Since:
- 4.0.0
-
deserialize
public @NonNull net.kyori.adventure.text.Component deserialize(@NonNull 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
public @NonNull org.spongepowered.api.text.Text serialize(@NonNull 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>
-
-