Class ResourceLocationTypeAdapter

java.lang.Object
com.pixelmonmod.pixelmon.api.spawning.util.ResourceLocationTypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<net.minecraft.resources.ResourceLocation>, com.google.gson.JsonSerializer<net.minecraft.resources.ResourceLocation>

public class ResourceLocationTypeAdapter extends Object implements com.google.gson.JsonSerializer<net.minecraft.resources.ResourceLocation>, com.google.gson.JsonDeserializer<net.minecraft.resources.ResourceLocation>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
    deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
     
    com.google.gson.JsonElement
    serialize(net.minecraft.resources.ResourceLocation resourceLocation, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResourceLocationTypeAdapter

      public ResourceLocationTypeAdapter()
  • Method Details

    • deserialize

      public net.minecraft.resources.ResourceLocation deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<net.minecraft.resources.ResourceLocation>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(net.minecraft.resources.ResourceLocation resourceLocation, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<net.minecraft.resources.ResourceLocation>