public class NBTCompoundSerializer extends Object implements com.google.gson.JsonSerializer<CompoundTag>, com.google.gson.JsonDeserializer<CompoundTag>
Constructor and Description |
---|
NBTCompoundSerializer() |
Modifier and Type | Method and Description |
---|---|
CompoundTag |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(CompoundTag src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public CompoundTag deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<CompoundTag>
com.google.gson.JsonParseException
public com.google.gson.JsonElement serialize(CompoundTag src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<CompoundTag>
Copyright © 2020. All rights reserved.