worldObj.setBlock((int) posX, (int) posY - 1, (int) posZ, 0);
List l = CraftingManager.getInstance().getRecipeList();
for (Object o : l) {
if (!(o instanceof ShapedRecipes))
break;
ShapedRecipes s = (ShapedRecipes) o;
List<ItemStack> li = new ArrayList<ItemStack>();
for (ItemStack i : s.recipeItems)
li.add(i);
if (li.contains(new ItemStack(b, 1))) {
blockCraft.put(b, s);
Item result = Item.itemsList[s.getRecipeOutput().itemID];
heldItem = new ItemStack(result, 1);
}
}
}
}