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