Added methods for creating recipes with OreDictionary inputs

This commit is contained in:
Alexander Anishin committed 2024-03-16 12:38:19 +03:00
1 parent e02dbcf00e
commit d4c7ea7198
1 file changed
+22 -6
+22 -6
View File
@@ -18,12 +18,12 @@ import ab.common.core.handler.ConfigABHandler;
public class AdvancedBotanyAPI {
public static List<RecipeAdvancedPlate> advancedPlateRecipes = new ArrayList<RecipeAdvancedPlate>();
public static List<RecipeAncientAlphirine> alphirineRecipes = new ArrayList<RecipeAncientAlphirine>();
public static List<TerraFarmlandList> farmlandList = new ArrayList<TerraFarmlandList>();
public static List<Achievement> achievements = new ArrayList<Achievement>();
public static List<ItemStack> relicList = new ArrayList<ItemStack>();
public static List<ItemStack> diceList = new ArrayList<ItemStack>();
public static List<RecipeAdvancedPlate> advancedPlateRecipes = new ArrayList<>();
public static List<RecipeAncientAlphirine> alphirineRecipes = new ArrayList<>();
public static List<TerraFarmlandList> farmlandList = new ArrayList<>();
public static List<Achievement> achievements = new ArrayList<>();
public static List<ItemStack> relicList = new ArrayList<>();
public static List<ItemStack> 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);