diff --git a/src/main/java/ab/api/AdvancedBotanyAPI.java b/src/main/java/ab/api/AdvancedBotanyAPI.java index 1fa307e..93f9a20 100644 --- a/src/main/java/ab/api/AdvancedBotanyAPI.java +++ b/src/main/java/ab/api/AdvancedBotanyAPI.java @@ -18,12 +18,12 @@ import ab.common.core.handler.ConfigABHandler; public class AdvancedBotanyAPI { - public static List advancedPlateRecipes = new ArrayList(); - public static List alphirineRecipes = new ArrayList(); - public static List farmlandList = new ArrayList(); - public static List achievements = new ArrayList(); - public static List relicList = new ArrayList(); - public static List diceList = new ArrayList(); + public static List advancedPlateRecipes = new ArrayList<>(); + public static List alphirineRecipes = new ArrayList<>(); + public static List farmlandList = new ArrayList<>(); + public static List achievements = new ArrayList<>(); + public static List relicList = new ArrayList<>(); + public static List diceList = new ArrayList<>(); public static Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("MITHRIL", 7, -1, 8.0F, 4.0F, 24); public static ItemArmor.ArmorMaterial nebulaArmorMaterial = EnumHelper.addArmorMaterial( @@ -47,6 +47,22 @@ public class AdvancedBotanyAPI { return recipe; } + public static RecipeAdvancedPlate registerAdvancedPlateRecipe(ItemStack output, int mana, int color, + Object... inputs) { + RecipeAdvancedPlate recipe = new RecipeAdvancedPlate(output, mana, color, inputs); + advancedPlateRecipes.add(recipe); + return recipe; + } + + public static RecipeAdvancedPlate registerAdvancedPlateRecipe(String output, int mana, int color, + Object... inputs) { + RecipeAdvancedPlate recipe = RecipeAdvancedPlate.fromOreDictOutput(output, mana, color, inputs); + if (recipe != null) { + advancedPlateRecipes.add(recipe); + } + return recipe; + } + public static RecipeAncientAlphirine registerAlphirineRecipe(ItemStack output, ItemStack input, int chance) { RecipeAncientAlphirine recipe = new RecipeAncientAlphirine(output, input, chance); alphirineRecipes.add(recipe);