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>

cyq$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.loot.LootTypesManager$Serializer
net.minecraft.server.v1_16_R2.JsonRegistry$c

Field summary

Modifier and TypeField
private final Registry<T>
a
registry
field_25197
f_fgjbkyoj
registry
field_237398_a_
private final String
b
elementName
field_25198
f_wbgwujef
rootFieldName
field_237399_b_
private final String
c
typeKey
field_25199
f_jtecxylj
idFieldName
field_237400_c_
private final Function<E, T>
d
typeGetter
field_25200
f_biwcvbut
typeIdentification
field_237401_d_
private final com.mojang.datafixers.util.Pair<T, GsonAdapterFactory$DefaultSerializer<? extends E>>
e
defaultType
field_25201
f_uigwtplg
elementSerializer
field_237402_e_

Constructor summary

ModifierConstructor
private (Registry<T> arg0, String rootFieldName, String idFieldName, Function<E, T> typeIdentification, com.mojang.datafixers.util.Pair<T, GsonAdapterFactory$DefaultSerializer<? extends E>> arg4)

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 arg0, Type arg1, com.google.gson.JsonDeserializationContext arg2)
deserialize(com.google.gson.JsonElement arg0, Type arg1, 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 arg0, Type arg1, com.google.gson.JsonSerializationContext arg2)
serialize(E arg0, Type arg1, com.google.gson.JsonSerializationContext arg2)