mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
Add logic for custom recipe. Add default for custom recipe.
This commit is contained in:
parent
39ae8845b5
commit
9f31d396ce
3 changed files with 122 additions and 19 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue