Add logic for custom recipe. Add default for custom recipe.

This commit is contained in:
alexcrea 2024-04-05 18:00:46 +02:00
parent 39ae8845b5
commit 9f31d396ce
3 changed files with 122 additions and 19 deletions

View file

@ -262,11 +262,15 @@ public abstract class ConfigHolder {
// Class for custom anvil craft
public static class CustomAnvilCraftHolder extends ResourceConfigHolder {
private final static String CUSTOM_CRAFT_FILE_NAME = "custom_recipes";
private final static String CUSTOM_RECIPE_FILE_NAME = "custom_recipes";
CustomAnvilRecipeManager recipeManager;
private CustomAnvilCraftHolder() {
super(CUSTOM_CRAFT_FILE_NAME);
super(CUSTOM_RECIPE_FILE_NAME);
}
public CustomAnvilRecipeManager getRecipeManager() {
return recipeManager;
}
@Override
@ -274,7 +278,6 @@ public abstract class ConfigHolder {
this.recipeManager = new CustomAnvilRecipeManager();
this.recipeManager.prepareRecipes(this.configuration);
}
}