Class SetEnchantmentsFunction.Serializer
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<SetEnchantmentsFunction>
net.minecraft.world.level.storage.loot.functions.SetEnchantmentsFunction.Serializer
- All Implemented Interfaces:
Serializer<SetEnchantmentsFunction>
- Enclosing class:
- SetEnchantmentsFunction
public static class SetEnchantmentsFunction.Serializer
extends LootItemConditionalFunction.Serializer<SetEnchantmentsFunction>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonObject p_165381_, com.google.gson.JsonDeserializationContext p_165382_, LootItemCondition[] p_165383_) void
serialize
(com.google.gson.JsonObject p_165394_, SetEnchantmentsFunction p_165395_, com.google.gson.JsonSerializationContext p_165396_) 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_165394_, SetEnchantmentsFunction p_165395_, com.google.gson.JsonSerializationContext p_165396_) - Specified by:
serialize
in interfaceSerializer<SetEnchantmentsFunction>
- Overrides:
serialize
in classLootItemConditionalFunction.Serializer<SetEnchantmentsFunction>
-
deserialize
public SetEnchantmentsFunction deserialize(com.google.gson.JsonObject p_165381_, com.google.gson.JsonDeserializationContext p_165382_, LootItemCondition[] p_165383_) - Specified by:
deserialize
in classLootItemConditionalFunction.Serializer<SetEnchantmentsFunction>
-