public static CraftRecipe[] getCraftingRequirements(int itemid, int data) {
List<CraftRecipe> poss = new ArrayList<CraftRecipe>(2);
for (Object rec : getCraftRecipes()) {
ItemStack item = RecipeRef.getOutput(rec);
if (item != null && MaterialUtil.getTypeId(item) == itemid && (data == -1 || MaterialUtil.getRawData(item) == data)) {
CraftRecipe crec = CraftRecipe.create(rec);
if (crec != null) {
poss.add(crec);
}
}
}