Package dev.booky.cloudcore.config
Class KeySerializer
java.lang.Object
org.spongepowered.configurate.serialize.ScalarSerializer<net.kyori.adventure.key.Key>
dev.booky.cloudcore.config.KeySerializer
- All Implemented Interfaces:
org.spongepowered.configurate.serialize.TypeSerializer<net.kyori.adventure.key.Key>
public class KeySerializer
extends org.spongepowered.configurate.serialize.ScalarSerializer<net.kyori.adventure.key.Key>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.spongepowered.configurate.serialize.TypeSerializer<net.kyori.adventure.key.Key> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.spongepowered.configurate.serialize.ScalarSerializer
deserialize, deserialize, serialize, serializeToString, tryDeserialize, typeMethods 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
emptyValue
-
Field Details
-
INSTANCE
public static final org.spongepowered.configurate.serialize.TypeSerializer<net.kyori.adventure.key.Key> INSTANCE
-
-
Constructor Details
-
KeySerializer
protected KeySerializer()
-
-
Method Details
-
deserialize
public net.kyori.adventure.key.Key deserialize(Type type, Object obj) throws org.spongepowered.configurate.serialize.SerializationException - Specified by:
deserializein classorg.spongepowered.configurate.serialize.ScalarSerializer<net.kyori.adventure.key.Key>- Throws:
org.spongepowered.configurate.serialize.SerializationException
-
serialize
- Specified by:
serializein classorg.spongepowered.configurate.serialize.ScalarSerializer<net.kyori.adventure.key.Key>
-