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 ebe$bintermediary net/minecraft/class_5642$class_5643named net/minecraft/loot/function/SetEnchantmentsLootFunction$Serializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition) voidtoJson(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:
toJsonin interfaceJsonSerializer<SetEnchantmentsLootFunction>- Overrides:
toJsonin classConditionalLootFunction.Serializer<SetEnchantmentsLootFunction>- Mappings:
Namespace Name Mixin selector official aLebe$b;a(Lcom/google/gson/JsonObject;Lebe;Lcom/google/gson/JsonSerializationContext;)Vintermediary method_32417Lnet/minecraft/class_5642$class_5643;method_32417(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5642;Lcom/google/gson/JsonSerializationContext;)Vnamed toJsonLnet/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:
fromJsonin classConditionalLootFunction.Serializer<SetEnchantmentsLootFunction>- Mappings:
Namespace Name Mixin selector official aLebe$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lech;)Lebe;intermediary method_32415Lnet/minecraft/class_5642$class_5643;method_32415(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_5642;named fromJsonLnet/minecraft/loot/function/SetEnchantmentsLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/SetEnchantmentsLootFunction;
-