Class SetItemDamageFunction.Serializer
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<SetItemDamageFunction>
net.minecraft.world.level.storage.loot.functions.SetItemDamageFunction.Serializer
- All Implemented Interfaces:
Serializer<SetItemDamageFunction>
- Enclosing class:
- SetItemDamageFunction
public static class SetItemDamageFunction.Serializer
extends LootItemConditionalFunction.Serializer<SetItemDamageFunction>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonObject p_81060_, com.google.gson.JsonDeserializationContext p_81061_, LootItemCondition[] p_81062_) void
serialize
(com.google.gson.JsonObject p_81068_, SetItemDamageFunction p_81069_, com.google.gson.JsonSerializationContext p_81070_) 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_81068_, SetItemDamageFunction p_81069_, com.google.gson.JsonSerializationContext p_81070_) - Specified by:
serialize
in interfaceSerializer<SetItemDamageFunction>
- Overrides:
serialize
in classLootItemConditionalFunction.Serializer<SetItemDamageFunction>
-
deserialize
public SetItemDamageFunction deserialize(com.google.gson.JsonObject p_81060_, com.google.gson.JsonDeserializationContext p_81061_, LootItemCondition[] p_81062_) - Specified by:
deserialize
in classLootItemConditionalFunction.Serializer<SetItemDamageFunction>
-