Class InventoryModuleStateSerializerPair
java.lang.Object
net.thomilist.dimensionalinventories.module.builtin.inventory.InventoryModuleStateSerializerPair
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<InventoryModuleState>, com.google.gson.JsonSerializer<InventoryModuleState>, SerializerPair<InventoryModuleState>
public class InventoryModuleStateSerializerPair
extends Object
implements SerializerPair<InventoryModuleState>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElementtoJson(InventoryModuleState src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SerializerPair
deserialize, serialize, typeModifier and TypeMethodDescriptiondefault InventoryModuleStatedeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) default com.google.gson.JsonElementserialize(InventoryModuleState src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) default Typetype()
-
Constructor Details
-
InventoryModuleStateSerializerPair
public InventoryModuleStateSerializerPair()
-
-
Method Details
-
fromJson
public InventoryModuleState fromJson(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
fromJsonin interfaceSerializerPair<InventoryModuleState>- Throws:
com.google.gson.JsonParseException
-
toJson
public com.google.gson.JsonElement toJson(InventoryModuleState src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
toJsonin interfaceSerializerPair<InventoryModuleState>
-