Package net.minecraft.loot.function
Class SetEnchantmentsLootFunction.Serializer
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction.Serializer<SetEnchantmentsLootFunction>
net.minecraft.loot.function.SetEnchantmentsLootFunction.Serializer
- All Implemented Interfaces:
JsonSerializer<SetEnchantmentsLootFunction>
- Enclosing class:
- SetEnchantmentsLootFunction
public static class SetEnchantmentsLootFunction.Serializer extends ConditionalLootFunction.Serializer<SetEnchantmentsLootFunction>
- Mappings:
Namespace Name official dgb$b
intermediary net/minecraft/class_5642$class_5643
named net/minecraft/loot/function/SetEnchantmentsLootFunction$Serializer
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
Modifier and Type Method Description SetEnchantmentsLootFunction
fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
void
toJson(JsonObject jsonObject, SetEnchantmentsLootFunction setEnchantmentsLootFunction, JsonSerializationContext jsonSerializationContext)
Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction.Serializer
fromJson
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
toJson
public void toJson(JsonObject jsonObject, SetEnchantmentsLootFunction setEnchantmentsLootFunction, JsonSerializationContext jsonSerializationContext)- Specified by:
toJson
in interfaceJsonSerializer<SetEnchantmentsLootFunction>
- Overrides:
toJson
in classConditionalLootFunction.Serializer<SetEnchantmentsLootFunction>
- Mappings:
Namespace Name Mixin selector official a
Ldgb$b;a(Lcom/google/gson/JsonObject;Ldgb;Lcom/google/gson/JsonSerializationContext;)V
intermediary method_32417
Lnet/minecraft/class_5642$class_5643;method_32417(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5642;Lcom/google/gson/JsonSerializationContext;)V
named toJson
Lnet/minecraft/loot/function/SetEnchantmentsLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/SetEnchantmentsLootFunction;Lcom/google/gson/JsonSerializationContext;)V
-
fromJson
public SetEnchantmentsLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)- Specified by:
fromJson
in classConditionalLootFunction.Serializer<SetEnchantmentsLootFunction>
- Mappings:
Namespace Name Mixin selector official a
Ldgb$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldha;)Ldgb;
intermediary method_32415
Lnet/minecraft/class_5642$class_5643;method_32415(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_5642;
named fromJson
Lnet/minecraft/loot/function/SetEnchantmentsLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/SetEnchantmentsLootFunction;
-