Class NbtCompoundSerializerPair

java.lang.Object
net.thomilist.dimensionalinventories.util.gson.NbtCompoundSerializerPair
All Implemented Interfaces:
com.google.gson.JsonDeserializer<net.minecraft.nbt.NbtCompound>, com.google.gson.JsonSerializer<net.minecraft.nbt.NbtCompound>, SerializerPair<net.minecraft.nbt.NbtCompound>

public class NbtCompoundSerializerPair extends Object implements SerializerPair<net.minecraft.nbt.NbtCompound>
  • Constructor Details

    • NbtCompoundSerializerPair

      public NbtCompoundSerializerPair()
  • Method Details

    • fromJson

      public net.minecraft.nbt.NbtCompound 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.nbt.NbtCompound>
      Throws:
      com.google.gson.JsonParseException
    • toJson

      public com.google.gson.JsonElement toJson(net.minecraft.nbt.NbtCompound src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      toJson in interface SerializerPair<net.minecraft.nbt.NbtCompound>