Class LootingEnchantFunction.Serializer
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<LootingEnchantFunction>
net.minecraft.world.level.storage.loot.functions.LootingEnchantFunction.Serializer
- All Implemented Interfaces:
Serializer<LootingEnchantFunction>
- Enclosing class:
- LootingEnchantFunction
public static class LootingEnchantFunction.Serializer
extends LootItemConditionalFunction.Serializer<LootingEnchantFunction>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonObject p_80812_, com.google.gson.JsonDeserializationContext p_80813_, LootItemCondition[] p_80814_)
void
serialize(com.google.gson.JsonObject p_80820_, LootingEnchantFunction p_80821_, com.google.gson.JsonSerializationContext p_80822_)
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_80820_, LootingEnchantFunction p_80821_, com.google.gson.JsonSerializationContext p_80822_)- Specified by:
serialize
in interfaceSerializer<LootingEnchantFunction>
- Overrides:
serialize
in classLootItemConditionalFunction.Serializer<LootingEnchantFunction>
-
deserialize
public LootingEnchantFunction deserialize(com.google.gson.JsonObject p_80812_, com.google.gson.JsonDeserializationContext p_80813_, LootItemCondition[] p_80814_)- Specified by:
deserialize
in classLootItemConditionalFunction.Serializer<LootingEnchantFunction>
-