Class RandomChanceLootCondition.Serializer

java.lang.Object
net.minecraft.loot.condition.RandomChanceLootCondition.Serializer
All Implemented Interfaces:
JsonSerializer<RandomChanceLootCondition>
Enclosing class:
RandomChanceLootCondition

public static class RandomChanceLootCondition.Serializer extends Object implements JsonSerializer<RandomChanceLootCondition>
Mappings:
Namespace Name
official dvc$a
intermediary net/minecraft/class_219$class_220
named net/minecraft/loot/condition/RandomChanceLootCondition$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, RandomChanceLootCondition randomChanceLootCondition, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<RandomChanceLootCondition>
      Mappings:
      Namespace Name Mixin selector
      official a Ldvc$a;a(Lcom/google/gson/JsonObject;Ldvc;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_936 Lnet/minecraft/class_219$class_220;method_936(Lcom/google/gson/JsonObject;Lnet/minecraft/class_219;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/condition/RandomChanceLootCondition$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/condition/RandomChanceLootCondition;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public RandomChanceLootCondition fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext)
      Specified by:
      fromJson in interface JsonSerializer<RandomChanceLootCondition>
      Mappings:
      Namespace Name Mixin selector
      official b Ldvc$a;b(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Ldvc;
      intermediary method_937 Lnet/minecraft/class_219$class_220;method_937(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_219;
      named fromJson Lnet/minecraft/loot/condition/RandomChanceLootCondition$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/condition/RandomChanceLootCondition;