Class ItemStackSerializerPair
java.lang.Object
net.thomilist.dimensionalinventories.module.builtin.inventory.ItemStackSerializerPair
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<net.minecraft.world.item.ItemStack>, com.google.gson.JsonSerializer<net.minecraft.world.item.ItemStack>, SerializerPair<net.minecraft.world.item.ItemStack>
public class ItemStackSerializerPair
extends Object
implements SerializerPair<net.minecraft.world.item.ItemStack>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackfromJson(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElementtoJson(net.minecraft.world.item.ItemStack 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 net.minecraft.world.item.ItemStackdeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) default com.google.gson.JsonElementserialize(net.minecraft.world.item.ItemStack src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) default Typetype()
-
Constructor Details
-
ItemStackSerializerPair
public ItemStackSerializerPair()
-
-
Method Details
-
fromJson
public net.minecraft.world.item.ItemStack fromJson(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
fromJsonin interfaceSerializerPair<net.minecraft.world.item.ItemStack>- Throws:
com.google.gson.JsonParseException
-
toJson
public com.google.gson.JsonElement toJson(net.minecraft.world.item.ItemStack src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
toJsonin interfaceSerializerPair<net.minecraft.world.item.ItemStack>
-