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

  • Constructor Details

  • 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 interface com.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 interface com.google.gson.JsonSerializer<E>