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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    fromJson(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
     
    com.google.gson.JsonElement
    toJson(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, wait

    Methods inherited from interface SerializerPair

    deserialize, serialize, type
    Modifier and Type
    Method
    Description
    default net.minecraft.world.item.ItemStack
    deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
     
    default com.google.gson.JsonElement
    serialize(net.minecraft.world.item.ItemStack src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
     
    default Type
     
  • 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:
      fromJson in interface SerializerPair<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:
      toJson in interface SerializerPair<net.minecraft.world.item.ItemStack>