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 -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationdeserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) com.google.gson.JsonElementserialize(net.minecraft.resources.ResourceLocation resourceLocation, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
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:
deserializein interfacecom.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:
serializein interfacecom.google.gson.JsonSerializer<net.minecraft.resources.ResourceLocation>
-