Class PokemonSpecificationAdapter

java.lang.Object
org.spongepowered.configurate.serialize.ScalarSerializer<PokemonSpecification>
com.pixelmonmod.pixelmon.api.config.adapter.PokemonSpecificationAdapter
All Implemented Interfaces:
org.spongepowered.configurate.serialize.TypeSerializer<PokemonSpecification>, org.spongepowered.configurate.serialize.TypeSerializer.Annotated<PokemonSpecification>

public class PokemonSpecificationAdapter extends org.spongepowered.configurate.serialize.ScalarSerializer<PokemonSpecification>
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.spongepowered.configurate.serialize.ScalarSerializer

    org.spongepowered.configurate.serialize.ScalarSerializer.Annotated<V extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(Type type, Object obj)
     
    serialize(PokemonSpecification item, Predicate<Class<?>> typeSupported)
     

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

    deserialize, deserialize, deserialize, deserialize, serialize, 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.Annotated

    emptyValue, emptyValue
  • Constructor Details

    • PokemonSpecificationAdapter

      public PokemonSpecificationAdapter()
  • Method Details

    • deserialize

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

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