blob: f3e43c0e6b0b1da4cc94ed819893b5bc42eea3b5 [file] [log] [blame] [raw]
/**
* Team CoFH
*
* Thermal Expansion
*/
package thermalexpansion.api.crafting;
import net.minecraft.item.ItemStack;
/**
* Provides an interface to the recipe manager of the Sawmill. Accessible via
* {@link CraftingManagers.sawmillManager}
*/
public interface ISawmillManager {
/**
* Add a recipe to the Sawmill
*
* @param energy
* Energy needed to process the item.
* @param input
* ItemStack representing the input item.
* @param primaryOutput
* ItemStack representing the primary (only) output product.
* @param overwrite
* Flag to enable recipe overwriting. This will only be allowed if enabled in the
* Thermal Expansion Configuration file and will be logged for information purposes.
*/
public boolean addRecipe(int energy, ItemStack input, ItemStack primaryOutput, boolean overwrite);
public boolean addRecipe(int energy, ItemStack input, ItemStack primaryOutput);
/**
* Add a recipe to the Sawmill
*
* @param energy
* Energy needed to process the item.
* @param input
* ItemStack representing the input item.
* @param primaryOutput
* ItemStack representing the primary output product.
* @param secondaryOutput
* ItemStack representing the secondary output product. Product % is taken to be 100.
* @param overwrite
* Flag to enable recipe overwriting. This will only be allowed if enabled in the
* Thermal Expansion Configuration file and will be logged for information purposes.
*/
public boolean addRecipe(int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput, boolean overwrite);
public boolean addRecipe(int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput);
/**
* Add a recipe to the Sawmill
*
* @param energy
* Energy needed to process the item.
* @param input
* ItemStack representing the input item.
* @param outputprimaryOutput
* ItemStack representing the primary output product.
* @param outputsecondaryOutput
* ItemStack representing the secondary output product.
* @param secondaryChance
* Integer representing % chance (out of 100) of the secondary product being created.
* @param overwrite
* Flag to enable recipe overwriting. This will only be allowed if enabled in the
* Thermal Expansion Configuration file and will be logged for information purposes.
*/
public boolean addRecipe(int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput, int secondaryChance, boolean overwrite);
public boolean addRecipe(int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput, int secondaryChance);
/**
* Access to the list of recipes.
*/
ISawmillRecipe[] getRecipeList();
}