Package net.minecraft.resources
Class ResourceLocation.Serializer
java.lang.Object
net.minecraft.resources.ResourceLocation.Serializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<ResourceLocation>
,com.google.gson.JsonSerializer<ResourceLocation>
- Enclosing class:
- ResourceLocation
public static class ResourceLocation.Serializer
extends Object
implements com.google.gson.JsonDeserializer<ResourceLocation>, com.google.gson.JsonSerializer<ResourceLocation>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement p_135851_, Type p_135852_, com.google.gson.JsonDeserializationContext p_135853_) com.google.gson.JsonElement
serialize
(ResourceLocation p_135855_, Type p_135856_, com.google.gson.JsonSerializationContext p_135857_)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
public ResourceLocation deserialize(com.google.gson.JsonElement p_135851_, Type p_135852_, com.google.gson.JsonDeserializationContext p_135853_) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<ResourceLocation>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(ResourceLocation p_135855_, Type p_135856_, com.google.gson.JsonSerializationContext p_135857_) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<ResourceLocation>
-