Class GsonAdapterFactory.JsonAdapter<E,T extends SerializerType<E>>
java.lang.Object
net.minecraft.world.level.storage.loot.GsonAdapterFactory.JsonAdapter<E,T>
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<E>
,com.google.gson.JsonSerializer<E>
- Enclosing class:
- GsonAdapterFactory
static class GsonAdapterFactory.JsonAdapter<E,T extends SerializerType<E>>
extends Object
implements com.google.gson.JsonDeserializer<E>, com.google.gson.JsonSerializer<E>
-
Field Details
-
registry
-
elementName
-
typeKey
-
typeGetter
-
defaultType
-
inlineType
@Nullable private final com.mojang.datafixers.util.Pair<T extends SerializerType<E>,GsonAdapterFactory.InlineSerializer<? extends E>> inlineType
-
-
Constructor Details
-
JsonAdapter
-
-
Method Details
-
deserialize
public E deserialize(com.google.gson.JsonElement p_78848_, Type p_78849_, com.google.gson.JsonDeserializationContext p_78850_) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<E>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(E p_78852_, Type p_78853_, com.google.gson.JsonSerializationContext p_78854_) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<E>
-