Class ComponentSerializer

java.lang.Object
com.thewinterframework.configurate.serializer.common.ComponentSerializer
All Implemented Interfaces:
org.spongepowered.configurate.serialize.TypeSerializer<net.kyori.adventure.text.Component>

public class ComponentSerializer extends Object implements org.spongepowered.configurate.serialize.TypeSerializer<net.kyori.adventure.text.Component>
A TypeSerializer for Components.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.spongepowered.configurate.serialize.TypeSerializer

    org.spongepowered.configurate.serialize.TypeSerializer.Annotated<V>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.kyori.adventure.text.Component
    deserialize(@NotNull Type type, org.spongepowered.configurate.ConfigurationNode node)
     
    void
    serialize(@NotNull Type type, @Nullable net.kyori.adventure.text.Component obj, @NotNull org.spongepowered.configurate.ConfigurationNode node)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.spongepowered.configurate.serialize.TypeSerializer

    deserialize, emptyValue, emptyValue, serialize
  • Constructor Details

    • ComponentSerializer

      public ComponentSerializer()
  • Method Details

    • deserialize

      public net.kyori.adventure.text.Component deserialize(@NotNull @NotNull Type type, org.spongepowered.configurate.ConfigurationNode node)
      Specified by:
      deserialize in interface org.spongepowered.configurate.serialize.TypeSerializer<net.kyori.adventure.text.Component>
    • serialize

      public void serialize(@NotNull @NotNull Type type, @Nullable @Nullable net.kyori.adventure.text.Component obj, @NotNull @NotNull org.spongepowered.configurate.ConfigurationNode node) throws org.spongepowered.configurate.serialize.SerializationException
      Specified by:
      serialize in interface org.spongepowered.configurate.serialize.TypeSerializer<net.kyori.adventure.text.Component>
      Throws:
      org.spongepowered.configurate.serialize.SerializationException