@Override public ItemStack b(ItemStack itemstack, World world, EntityHuman entityhuman) { CustomItem item = MaterialData.getCustomItem(itemstack.getData()); if (item instanceof Food) { --itemstack.count; entityhuman.getFoodData().eat(((Food) item).getHungerRestored(), 0.6F); } return itemstack; }
@Override public void run() { if (human.g(false)) { human.a(item, 32); } }