mirror of
https://github.com/GTNewHorizons/Advanced-Botany.git
synced 2026-10-25 20:22:20 +00:00
Added methods for creating recipes with OreDictionary inputs
This commit is contained in:
1 parent
e02dbcf00e
commit
d4c7ea7198
1 file changed
+22
-6
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user