Class LootEntry.Serializer<T extends LootEntry>

java.lang.Object
net.minecraft.loot.LootEntry.Serializer<T>
All Implemented Interfaces:
ILootSerializer<T>
Direct Known Subclasses:
StandaloneLootEntry.Serializer
Enclosing class:
LootEntry

public abstract static class LootEntry.Serializer<T extends LootEntry> extends Object implements ILootSerializer<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final T
    deserialize(com.google.gson.JsonObject p_230423_1_, com.google.gson.JsonDeserializationContext p_230423_2_)
     
    abstract T
    deserializeCustom(com.google.gson.JsonObject p_230421_1_, com.google.gson.JsonDeserializationContext p_230421_2_, ILootCondition[] p_230421_3_)
     
    final void
    serialize(com.google.gson.JsonObject p_230424_1_, T p_230424_2_, com.google.gson.JsonSerializationContext p_230424_3_)
     
    abstract void
    serializeCustom(com.google.gson.JsonObject p_230422_1_, T p_230422_2_, com.google.gson.JsonSerializationContext p_230422_3_)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • serialize

      public final void serialize(com.google.gson.JsonObject p_230424_1_, T p_230424_2_, com.google.gson.JsonSerializationContext p_230424_3_)
      Specified by:
      serialize in interface ILootSerializer<T extends LootEntry>
    • deserialize

      public final T deserialize(com.google.gson.JsonObject p_230423_1_, com.google.gson.JsonDeserializationContext p_230423_2_)
      Specified by:
      deserialize in interface ILootSerializer<T extends LootEntry>
    • serializeCustom

      public abstract void serializeCustom(com.google.gson.JsonObject p_230422_1_, T p_230422_2_, com.google.gson.JsonSerializationContext p_230422_3_)
    • deserializeCustom

      public abstract T deserializeCustom(com.google.gson.JsonObject p_230421_1_, com.google.gson.JsonDeserializationContext p_230421_2_, ILootCondition[] p_230421_3_)