Class LootPoolEntry.Serializer<T extends LootPoolEntry>

java.lang.Object
net.minecraft.loot.entry.LootPoolEntry.Serializer<T>
All Implemented Interfaces:
JsonSerializer<T>
Direct Known Subclasses:
LeafEntry.Serializer
Enclosing class:
LootPoolEntry

public abstract static class LootPoolEntry.Serializer<T extends LootPoolEntry> extends Object implements JsonSerializer<T>
Mappings:
Namespace Name
official dxt$b
intermediary net/minecraft/class_79$class_5337
named net/minecraft/loot/entry/LootPoolEntry$Serializer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    addEntryFields(com.google.gson.JsonObject json, T entry, com.google.gson.JsonSerializationContext context)
     
    final T
    fromJson(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
     
    abstract T
    fromJson(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context, LootCondition[] conditions)
     
    final void
    toJson(com.google.gson.JsonObject jsonObject, T t, com.google.gson.JsonSerializationContext jsonSerializationContext)
     

    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

    • toJson

      public final void toJson(com.google.gson.JsonObject jsonObject, T t, com.google.gson.JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<T extends LootPoolEntry>
      Mappings:
      Namespace Name Mixin selector
      official b Ldxt$b;b(Lcom/google/gson/JsonObject;Ldxt;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_29320 Lnet/minecraft/class_79$class_5337;method_29320(Lcom/google/gson/JsonObject;Lnet/minecraft/class_79;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/entry/LootPoolEntry$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/entry/LootPoolEntry;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public final T fromJson(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
      Specified by:
      fromJson in interface JsonSerializer<T extends LootPoolEntry>
      Mappings:
      Namespace Name Mixin selector
      official b Ldxt$b;b(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Ldxt;
      intermediary method_29319 Lnet/minecraft/class_79$class_5337;method_29319(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_79;
      named fromJson Lnet/minecraft/loot/entry/LootPoolEntry$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/entry/LootPoolEntry;
    • addEntryFields

      public abstract void addEntryFields(com.google.gson.JsonObject json, T entry, com.google.gson.JsonSerializationContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxt$b;a(Lcom/google/gson/JsonObject;Ldxt;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_422 Lnet/minecraft/class_79$class_5337;method_422(Lcom/google/gson/JsonObject;Lnet/minecraft/class_79;Lcom/google/gson/JsonSerializationContext;)V
      named addEntryFields Lnet/minecraft/loot/entry/LootPoolEntry$Serializer;addEntryFields(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/entry/LootPoolEntry;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public abstract T fromJson(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context, LootCondition[] conditions)
      Mappings:
      Namespace Name Mixin selector
      official b Ldxt$b;b(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldzv;)Ldxt;
      intermediary method_424 Lnet/minecraft/class_79$class_5337;method_424(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_79;
      named fromJson Lnet/minecraft/loot/entry/LootPoolEntry$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/entry/LootPoolEntry;