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>

dsa$c
net.minecraft.world.level.storage.loot.GsonAdapterFactory$JsonAdapter
net.minecraft.class_5330$class_5333
net.minecraft.unmapped.C_xaxdohtf$C_gjcixcyc
net.minecraft.util.JsonSerializing$GsonSerializer
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
f_fgjbkyoj
registry
registry
f_78829_
private final String
b
elementName
field_25198
f_wbgwujef
rootFieldName
rootFieldName
f_78830_
private final String
c
typeKey
field_25199
f_jtecxylj
idFieldName
idFieldName
f_78831_
private final Function<E, T>
d
typeGetter
field_25200
f_biwcvbut
typeGetter
typeGetter
f_78832_
private final T
e
defaultType
field_28445
f_uigwtplg
defaultType
defaultType
f_78833_
private final com.mojang.datafixers.util.Pair<T, GsonAdapterFactory$InlineSerializer<? extends E>>
f
inlineType
field_25201
f_ekijghod
elementSerializer
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)