@Override public boolean matches(Object o) { IPlateRecipe r = (IPlateRecipe) o; return (r.useOvenRecipe() == isOvenRecipe) && (areEqualNull(r.getOutput(), output)) && (areEqualNull(r.getInput(), input)); }
private void logPlateRecipes() { for (IPlateRecipe recipe : RecipeRegisterManager.plateRecipe.getRecipeList()) { String o = "mods.amt.Plate.addRecipe(" + getItemDeclaration(recipe.getOutput()) + ", " + getItemDeclaration(recipe.getInput()) + ", " + recipe.cookingTime() + ", "; if (recipe.useOvenRecipe()) { o += "true"; } else { o += "false"; } MineTweakerAPI.logCommand(o + ");"); } }