Package net.mcreator.element.parts
Class TextureHolder.GSONAdapter
java.lang.Object
net.mcreator.element.parts.TextureHolder.GSONAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<TextureHolder>
,com.google.gson.JsonSerializer<TextureHolder>
- Enclosing class:
TextureHolder
public static class TextureHolder.GSONAdapter
extends Object
implements com.google.gson.JsonSerializer<TextureHolder>, com.google.gson.JsonDeserializer<TextureHolder>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElement
serialize
(TextureHolder textureHolder, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
GSONAdapter
public GSONAdapter()
-
-
Method Details
-
deserialize
public TextureHolder deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<TextureHolder>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(TextureHolder textureHolder, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<TextureHolder>
-