Class LocationTypeSerializer

java.lang.Object
com.earth2me.essentials.config.serializers.LocationTypeSerializer
All Implemented Interfaces:
org.spongepowered.configurate.serialize.TypeSerializer<LazyLocation>

public class LocationTypeSerializer extends Object implements org.spongepowered.configurate.serialize.TypeSerializer<LazyLocation>
A Configurate type serializer for LazyLocations.
  • Constructor Details

    • LocationTypeSerializer

      public LocationTypeSerializer()
  • Method Details

    • deserialize

      public LazyLocation deserialize(Type type, org.spongepowered.configurate.ConfigurationNode node) throws org.spongepowered.configurate.serialize.SerializationException
      Specified by:
      deserialize in interface org.spongepowered.configurate.serialize.TypeSerializer<LazyLocation>
      Throws:
      org.spongepowered.configurate.serialize.SerializationException
    • serialize

      public void serialize(Type type, @Nullable LazyLocation value, org.spongepowered.configurate.ConfigurationNode node) throws org.spongepowered.configurate.serialize.SerializationException
      Specified by:
      serialize in interface org.spongepowered.configurate.serialize.TypeSerializer<LazyLocation>
      Throws:
      org.spongepowered.configurate.serialize.SerializationException