Class ResourceLocationAdapter
java.lang.Object
com.pixelmonmod.pixelmon.api.util.ResourceLocationAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<net.minecraft.resources.ResourceLocation>
public class ResourceLocationAdapter
extends Object
implements com.google.gson.JsonDeserializer<net.minecraft.resources.ResourceLocation>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocation
deserialize
(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext ctx)
-
Field Details
-
ADAPTER
-
-
Constructor Details
-
ResourceLocationAdapter
public ResourceLocationAdapter()
-
-
Method Details
-
deserialize
public net.minecraft.resources.ResourceLocation deserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext ctx) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<net.minecraft.resources.ResourceLocation>
- Throws:
com.google.gson.JsonParseException
-