public class ResourceLocationTypeAdapter
extends java.lang.Object
implements com.google.gson.JsonSerializer<net.minecraft.util.ResourceLocation>, com.google.gson.JsonDeserializer<net.minecraft.util.ResourceLocation>
| Constructor and Description |
|---|
ResourceLocationTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.ResourceLocation |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(net.minecraft.util.ResourceLocation src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public net.minecraft.util.ResourceLocation deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context)
throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<net.minecraft.util.ResourceLocation>com.google.gson.JsonParseExceptionpublic com.google.gson.JsonElement serialize(net.minecraft.util.ResourceLocation src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
serialize in interface com.google.gson.JsonSerializer<net.minecraft.util.ResourceLocation>