Package net.minecraft.resources
Class ResourceLocation.Serializer
java.lang.Object
net.minecraft.resources.ResourceLocation.Serializer
- All Implemented Interfaces:
JsonDeserializer<ResourceLocation>
,JsonSerializer<ResourceLocation>
- Enclosing class:
ResourceLocation
public static class ResourceLocation.Serializer
extends Object
implements JsonDeserializer<ResourceLocation>, JsonSerializer<ResourceLocation>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(JsonElement pJson, Type pTypeOfT, JsonDeserializationContext pContext) serialize
(ResourceLocation pSrc, Type pTypeOfSrc, JsonSerializationContext pContext)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
public ResourceLocation deserialize(JsonElement pJson, Type pTypeOfT, JsonDeserializationContext pContext) throws JsonParseException - Specified by:
deserialize
in interfaceJsonDeserializer<ResourceLocation>
- Throws:
JsonParseException
-
serialize
public JsonElement serialize(ResourceLocation pSrc, Type pTypeOfSrc, JsonSerializationContext pContext) - Specified by:
serialize
in interfaceJsonSerializer<ResourceLocation>
-