Class EnchantRandomlyFunction.Serializer
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<EnchantRandomlyFunction>
net.minecraft.world.level.storage.loot.functions.EnchantRandomlyFunction.Serializer
- All Implemented Interfaces:
Serializer<EnchantRandomlyFunction>
- Enclosing class:
- EnchantRandomlyFunction
public static class EnchantRandomlyFunction.Serializer
extends LootItemConditionalFunction.Serializer<EnchantRandomlyFunction>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonObject p_80450_, com.google.gson.JsonDeserializationContext p_80451_, LootItemCondition[] p_80452_)
void
serialize(com.google.gson.JsonObject p_80454_, EnchantRandomlyFunction p_80455_, com.google.gson.JsonSerializationContext p_80456_)
Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer
deserialize
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
public void serialize(com.google.gson.JsonObject p_80454_, EnchantRandomlyFunction p_80455_, com.google.gson.JsonSerializationContext p_80456_)- Specified by:
serialize
in interfaceSerializer<EnchantRandomlyFunction>
- Overrides:
serialize
in classLootItemConditionalFunction.Serializer<EnchantRandomlyFunction>
-
deserialize
public EnchantRandomlyFunction deserialize(com.google.gson.JsonObject p_80450_, com.google.gson.JsonDeserializationContext p_80451_, LootItemCondition[] p_80452_)- Specified by:
deserialize
in classLootItemConditionalFunction.Serializer<EnchantRandomlyFunction>
-