Class 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's Text.
    Since:
    4.0.0
    • Method Detail

      • get

        @NotNull
        public static @NotNull SpongeComponentSerializer get()
        Gets a component serializer for the current Platform.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:
        deserialize in interface net.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:
        serialize in interface net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,​net.kyori.adventure.text.Component,​org.spongepowered.api.text.Text>