IMHO, there is more convenient way to remove broken recipes.
But good job anyway
Code
int counter=0;
List<ItemStack> badItems = asList(
Ic2Items.iridiumDrill,
Ic2Items.mvTransformer,
Ic2Items.weedEx,
Ic2Items.suBattery,
Ic2Items.personalSafe,
Ic2Items.nanoHelmet,
Ic2Items.electricJetpack
// Ic2Items.diamondDrill //no need with GregTech
);
//delete bad recipes
ItemStack recipeResult = null;
ArrayList recipes = (ArrayList) CraftingManager.getInstance().getRecipeList();
for (int i=0; i<recipes.size(); i++){
if(recipes.get(i) instanceof AdvRecipe){
recipeResult = ((IRecipe)recipes.get(i)).getRecipeOutput();
for(ItemStack itm : badItems){
if (ItemStack.areItemStacksEqual(itm, recipeResult)){
recipes.remove(i);
counter++;
break;
}
}
if(counter==badItems.size()){
break;
}
}
}
Display More