net.minecraft.world.level.storage.loot

class GsonAdapterFactory$JsonAdapter<E, T extends SerializerType<E>>

implements com.google.gson.JsonDeserializer<E>, com.google.gson.JsonSerializer<E>

dvo$c
net.minecraft.world.level.storage.loot.GsonAdapterFactory$JsonAdapter
net.minecraft.class_5330$class_5333
net.minecraft.util.JsonSerializing$GsonSerializer
net.minecraft.src.C_2803_$C_2807_
net.minecraft.world.level.storage.loot.JsonRegistry$c

Field summary

Modifier and TypeField
private final Registry<T>
a
registry
field_25197
registry
f_78829_
private final String
b
elementName
field_25198
rootFieldName
f_78830_
private final String
c
typeKey
field_25199
idFieldName
f_78831_
private final Function<E, T>
d
typeGetter
field_25200
typeGetter
f_78832_
private final T
e
defaultType
field_28445
defaultType
f_78833_
private final com.mojang.datafixers.util.Pair<T, GsonAdapterFactory$InlineSerializer<? extends E>>
f
inlineType
field_25201
elementSerializer
f_164993_

Constructor summary

ModifierConstructor
(Registry<T> registry, String rootFieldName, String idFieldName, Function<E, T> typeGetter, T defaultType, com.mojang.datafixers.util.Pair<T, GsonAdapterFactory$InlineSerializer<? extends E>> elementSerializer)

Method summary

Modifier and TypeMethod
public E
deserialize(com.google.gson.JsonElement arg0, Type arg1, com.google.gson.JsonDeserializationContext arg2)
deserialize(com.google.gson.JsonElement arg0, Type arg1, com.google.gson.JsonDeserializationContext arg2)
deserialize(com.google.gson.JsonElement arg0, Type arg1, com.google.gson.JsonDeserializationContext arg2)
deserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext context)
deserialize(com.google.gson.JsonElement p_78849_, Type p_78850_, com.google.gson.JsonDeserializationContext arg2)
public com.google.gson.JsonElement
serialize(E arg0, Type arg1, com.google.gson.JsonSerializationContext arg2)
serialize(E arg0, Type arg1, com.google.gson.JsonSerializationContext arg2)
serialize(E arg0, Type arg1, com.google.gson.JsonSerializationContext arg2)
serialize(E object, Type type, com.google.gson.JsonSerializationContext context)
serialize(E p_78853_, Type p_78854_, com.google.gson.JsonSerializationContext arg2)