Class CompositeLootItemCondition.Serializer<T extends CompositeLootItemCondition>
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.CompositeLootItemCondition.Serializer<T>
- All Implemented Interfaces:
Serializer<T>
- Direct Known Subclasses:
AllOfCondition.Serializer
,AnyOfCondition.Serializer
- Enclosing class:
- CompositeLootItemCondition
public abstract static class CompositeLootItemCondition.Serializer<T extends CompositeLootItemCondition>
extends Object
implements Serializer<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
create
(LootItemCondition[] p_286604_) deserialize
(com.google.gson.JsonObject p_286509_, com.google.gson.JsonDeserializationContext p_286321_) void
serialize
(com.google.gson.JsonObject p_286342_, CompositeLootItemCondition p_286412_, com.google.gson.JsonSerializationContext p_286331_)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
public void serialize(com.google.gson.JsonObject p_286342_, CompositeLootItemCondition p_286412_, com.google.gson.JsonSerializationContext p_286331_) - Specified by:
serialize
in interfaceSerializer<T extends CompositeLootItemCondition>
-
deserialize
public T deserialize(com.google.gson.JsonObject p_286509_, com.google.gson.JsonDeserializationContext p_286321_) - Specified by:
deserialize
in interfaceSerializer<T extends CompositeLootItemCondition>
-
create
-