if ("item".equalsIgnoreCase(e.getName()))
{
int item_id = Integer.parseInt(e.attributeValue("id"));
long count = Long.parseLong(e.attributeValue("count"));
int chance = Integer.parseInt(e.attributeValue("chance"));
recipe.addProduct(new RecipeComponent(item_id, count, chance));
}
}
}
else if ("npc_fee".equalsIgnoreCase(subElement.getName()))
{