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

    Fields
    Modifier and Type
    Field
    Description
    static final org.spongepowered.configurate.serialize.TypeSerializer<net.kyori.adventure.key.Key>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.kyori.adventure.key.Key
    deserialize(Type type, Object obj)
     
    protected Object
    serialize(net.kyori.adventure.key.Key item, Predicate<Class<?>> typeSupported)
     

    Methods inherited from class org.spongepowered.configurate.serialize.ScalarSerializer

    deserialize, deserialize, serialize, serializeToString, tryDeserialize, type

    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

    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:
      deserialize in class org.spongepowered.configurate.serialize.ScalarSerializer<net.kyori.adventure.key.Key>
      Throws:
      org.spongepowered.configurate.serialize.SerializationException
    • serialize

      protected Object serialize(net.kyori.adventure.key.Key item, Predicate<Class<?>> typeSupported)
      Specified by:
      serialize in class org.spongepowered.configurate.serialize.ScalarSerializer<net.kyori.adventure.key.Key>