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 -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.nbt.CompoundTagfromJson(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElementtoJson(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, waitMethods inherited from interface SerializerPair
deserialize, serialize, typeModifier and TypeMethodDescriptiondefault net.minecraft.nbt.CompoundTagdeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) default com.google.gson.JsonElementserialize(net.minecraft.nbt.CompoundTag src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) default Typetype()
-
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:
fromJsonin interfaceSerializerPair<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:
toJsonin interfaceSerializerPair<net.minecraft.nbt.CompoundTag>
-