public static class EnchantWithLevelsLootFunction.Factory extends ConditionalLootFunction.Factory<EnchantWithLevelsLootFunction>
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
EnchantWithLevelsLootFunction |
fromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext,
LootCondition[] lootCondition) |
void |
toJson(JsonObject jsonObject,
EnchantWithLevelsLootFunction enchantWithLevelsLootFunction,
JsonSerializationContext jsonSerializationContext) |
fromJson
getFunctionClass, getId
public void toJson(JsonObject jsonObject, EnchantWithLevelsLootFunction enchantWithLevelsLootFunction, JsonSerializationContext jsonSerializationContext)
toJson
in class ConditionalLootFunction.Factory<EnchantWithLevelsLootFunction>
public EnchantWithLevelsLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
fromJson
in class ConditionalLootFunction.Factory<EnchantWithLevelsLootFunction>