public void addRecipe(Recipe recipe) {
if(recipe == null || !recipe.isValid()) {
Log.debug("Could not add invalid recipe: " + recipe);
return;
}
IRecipe rec = getRecipeForInput(getInput(recipe));
if(rec != null) {
Log.warn("Not adding supplied recipe as a recipe already exists for the input: " + getInput(recipe));
return;
}
recipes.add(recipe);