Class NbtCompoundSerializerPair

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

public class NbtCompoundSerializerPair extends Object implements SerializerPair<net.minecraft.nbt.CompoundTag>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.nbt.CompoundTag
    fromJson(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
     
    com.google.gson.JsonElement
    toJson(net.minecraft.nbt.CompoundTag 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.nbt.CompoundTag
    deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
     
    default com.google.gson.JsonElement
    serialize(net.minecraft.nbt.CompoundTag src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
     
    default Type
     
  • Constructor Details

    • NbtCompoundSerializerPair

      public NbtCompoundSerializerPair()
  • Method Details

    • fromJson

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

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