public static class CopyNbtLootFunction.Serializer extends ConditionalLootFunction.Serializer<CopyNbtLootFunction>
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
CopyNbtLootFunction |
fromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext,
LootCondition[] lootCondition) |
void |
toJson(JsonObject jsonObject,
CopyNbtLootFunction copyNbtLootFunction,
JsonSerializationContext jsonSerializationContext) |
fromJson
public void toJson(JsonObject jsonObject, CopyNbtLootFunction copyNbtLootFunction, JsonSerializationContext jsonSerializationContext)
toJson
in interface JsonSerializer<CopyNbtLootFunction>
toJson
in class ConditionalLootFunction.Serializer<CopyNbtLootFunction>
public CopyNbtLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
fromJson
in class ConditionalLootFunction.Serializer<CopyNbtLootFunction>