Class LootItemRandomChanceCondition.Serializer
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.LootItemRandomChanceCondition.Serializer
- All Implemented Interfaces:
Serializer<LootItemRandomChanceCondition>
- Enclosing class:
- LootItemRandomChanceCondition
public static class LootItemRandomChanceCondition.Serializer
extends Object
implements Serializer<LootItemRandomChanceCondition>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonObject p_81951_, com.google.gson.JsonDeserializationContext p_81952_) void
serialize
(com.google.gson.JsonObject p_81943_, LootItemRandomChanceCondition p_81944_, com.google.gson.JsonSerializationContext p_81945_)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
public void serialize(com.google.gson.JsonObject p_81943_, LootItemRandomChanceCondition p_81944_, com.google.gson.JsonSerializationContext p_81945_) - Specified by:
serialize
in interfaceSerializer<LootItemRandomChanceCondition>
-
deserialize
public LootItemRandomChanceCondition deserialize(com.google.gson.JsonObject p_81951_, com.google.gson.JsonDeserializationContext p_81952_) - Specified by:
deserialize
in interfaceSerializer<LootItemRandomChanceCondition>
-