try {
if (rec instanceof IDescriptiveRecipe) {
IDescriptiveRecipe recipe = (IDescriptiveRecipe) rec;
return getShapedRecipeAsArray(recipe.getWidth(), recipe.getHeight(), recipe.getIngredients(), recipe.getRecipeOutput());
}
} catch (Exception ex) {
Proxies.log.warning("Exception while trying to parse an ItemStack[10] from an IRecipe:");