Class MaterialTypeSerializer

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

public class MaterialTypeSerializer extends org.spongepowered.configurate.serialize.ScalarSerializer<Material>
  • Constructor Details

    • MaterialTypeSerializer

      public MaterialTypeSerializer()
  • Method Details

    • deserialize

      public Material deserialize(Type type, Object obj) throws org.spongepowered.configurate.serialize.SerializationException
      Specified by:
      deserialize in class org.spongepowered.configurate.serialize.ScalarSerializer<Material>
      Throws:
      org.spongepowered.configurate.serialize.SerializationException
    • serialize

      protected Object serialize(Material item, Predicate<Class<?>> typeSupported)
      Specified by:
      serialize in class org.spongepowered.configurate.serialize.ScalarSerializer<Material>