private boolean tryCraft() {
ItemIdentifierStack content = inv.getIDStackInSlot(10);
ICraftingResultHandler handler = getHandlerForRecipe();
ItemStack toAdd = getTagetForRecipe(false);
if(handler != null) {
handler.handleCrafting(toAdd);
}
if(content != null) {
if(!content.getItem().equals(toAdd)) {
return false;
}