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 -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.Componentdeserialize(@NotNull Type type, org.spongepowered.configurate.ConfigurationNode node) voidserialize(@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, waitMethods 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:
deserializein interfaceorg.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:
serializein interfaceorg.spongepowered.configurate.serialize.TypeSerializer<net.kyori.adventure.text.Component>- Throws:
org.spongepowered.configurate.serialize.SerializationException
-