// Path: src/main/java/com/teammetallurgy/agriculture/Agriculture.java
// @Mod(name = Agriculture.MODNAME, modid = Agriculture.MODID, version = Agriculture.VERSION, useMetadata = true)
// public class Agriculture
// {
//     public static final String MODNAME = "Agriculture";
//     public static final String MODID = "Agriculture";
//     public static final String VERSION = "2.0";
// 
//     @Mod.Instance(Agriculture.MODID)
//     public static Agriculture instance;
// 
//     @SidedProxy(clientSide = "com.teammetallurgy.agriculture.networking.ClientProxy", serverSide = "com.teammetallurgy.agriculture.networking.CommonProxy")
//     public static CommonProxy proxy;
//     
// 
//     public AgricultureCreativeTab creativeTabFood = new AgricultureCreativeTab(Agriculture.MODID + ".Food");
//     public AgricultureCreativeTab creativeTabBlock = new AgricultureCreativeTab(Agriculture.MODID + ".blocks");
// 
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent event)
//     {
//         AgricultureLogHandler.setLogger(event.getModLog());
//         AgricultureConfigHandler.setFile(event.getSuggestedConfigurationFile());
// 
//         ItemList.preInit();
// 
//         BlockList.preInit();
// 
//         setCreativeTabsIcons();
//     }
// 
//     @EventHandler
//     public void init(FMLInitializationEvent event)
//     {
//         NetworkRegistry.INSTANCE.registerGuiHandler(Agriculture.instance, new GuiHandler());
//         GameRegistry.registerWorldGenerator(new WorldGenSalt(), 0);
//         GameRegistry.registerWorldGenerator(new WorldGenPlants(), 0);
//         proxy.initRenderers();
//         MinecraftForge.EVENT_BUS.register(new AgricultureEventHandler());
//     }
// 
//     @EventHandler
//     public void postInit(FMLPostInitializationEvent event)
//     {
//         Recipes.create();
//         Hunger.init();
//     }
// 
//     @EventHandler
//     public void missingMapping(FMLMissingMappingsEvent event)
//     {
//         MissingMapHandler.processingMissingMap(event);
//     }
// 
//     private void setCreativeTabsIcons()
//     {
//         
//         creativeTabFood.setItemStack(ItemList.getItemStack("base", "Caramel Apple With Nuts"));
//         creativeTabBlock.setItem(BlockList.counter);
//     }
// }
// 
// Path: src/main/java/com/teammetallurgy/agriculture/food/Food.java
// public static enum FoodType
// {
//     base, crop, edible
// }
// 
// Path: src/main/java/com/teammetallurgy/agriculture/food/Food.java
// public static enum Methods
// {
//     process(2), bake(3), prepare(1), brew(2), fry(3), freeze(3);
// 
//     private int hungerBonus;
// 
//     private Methods(int bonus)
//     {
//         hungerBonus = bonus;
//     }
// 
//     public int getHungerBonus()
//     {
//         return hungerBonus;
//     }
// }


import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import com.teammetallurgy.agriculture.Agriculture;
import com.teammetallurgy.agriculture.food.Food.FoodType;
import com.teammetallurgy.agriculture.food.Food.Methods;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
        if (this.itemTypes.get(itemStack.getItemDamage()) != null)
        {
            return super.onEaten(itemStack, world, player);
        }
        return itemStack;
    }

    @Override
    protected void onFoodEaten(ItemStack itemStack, World world, EntityPlayer player)
    {
        if (this.itemTypes.get(itemStack.getItemDamage()) != null)
        {
            super.onFoodEaten(itemStack, world, player);
        }
    }

    @Override
    public EnumAction getItemUseAction(ItemStack itemStack)
    {
        FoodType type = itemTypes.get(itemStack.getItemDamage());
        if (type == FoodType.crop || type == FoodType.edible)
        {
            return super.getItemUseAction(itemStack);
        }
        return EnumAction.none;
    }

    @Override
    public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player)
    {
// Path: src/main/java/com/teammetallurgy/agriculture/Agriculture.java
// @Mod(name = Agriculture.MODNAME, modid = Agriculture.MODID, version = Agriculture.VERSION, useMetadata = true)
// public class Agriculture
// {
//     public static final String MODNAME = "Agriculture";
//     public static final String MODID = "Agriculture";
//     public static final String VERSION = "2.0";
// 
//     @Mod.Instance(Agriculture.MODID)
//     public static Agriculture instance;
// 
//     @SidedProxy(clientSide = "com.teammetallurgy.agriculture.networking.ClientProxy", serverSide = "com.teammetallurgy.agriculture.networking.CommonProxy")
//     public static CommonProxy proxy;
//     
// 
//     public AgricultureCreativeTab creativeTabFood = new AgricultureCreativeTab(Agriculture.MODID + ".Food");
//     public AgricultureCreativeTab creativeTabBlock = new AgricultureCreativeTab(Agriculture.MODID + ".blocks");
// 
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent event)
//     {
//         AgricultureLogHandler.setLogger(event.getModLog());
//         AgricultureConfigHandler.setFile(event.getSuggestedConfigurationFile());
// 
//         ItemList.preInit();
// 
//         BlockList.preInit();
// 
//         setCreativeTabsIcons();
//     }
// 
//     @EventHandler
//     public void init(FMLInitializationEvent event)
//     {
//         NetworkRegistry.INSTANCE.registerGuiHandler(Agriculture.instance, new GuiHandler());
//         GameRegistry.registerWorldGenerator(new WorldGenSalt(), 0);
//         GameRegistry.registerWorldGenerator(new WorldGenPlants(), 0);
//         proxy.initRenderers();
//         MinecraftForge.EVENT_BUS.register(new AgricultureEventHandler());
//     }
// 
//     @EventHandler
//     public void postInit(FMLPostInitializationEvent event)
//     {
//         Recipes.create();
//         Hunger.init();
//     }
// 
//     @EventHandler
//     public void missingMapping(FMLMissingMappingsEvent event)
//     {
//         MissingMapHandler.processingMissingMap(event);
//     }
// 
//     private void setCreativeTabsIcons()
//     {
//         
//         creativeTabFood.setItemStack(ItemList.getItemStack("base", "Caramel Apple With Nuts"));
//         creativeTabBlock.setItem(BlockList.counter);
//     }
// }
// 
// Path: src/main/java/com/teammetallurgy/agriculture/food/Food.java
// public static enum FoodType
// {
//     base, crop, edible
// }
// 
// Path: src/main/java/com/teammetallurgy/agriculture/food/Food.java
// public static enum Methods
// {
//     process(2), bake(3), prepare(1), brew(2), fry(3), freeze(3);
// 
//     private int hungerBonus;
// 
//     private Methods(int bonus)
//     {
//         hungerBonus = bonus;
//     }
// 
//     public int getHungerBonus()
//     {
//         return hungerBonus;
//     }
// }


// Path: src/main/java/com/teammetallurgy/agriculture/food/FoodItem.java
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import com.teammetallurgy.agriculture.Agriculture;
import com.teammetallurgy.agriculture.food.Food.FoodType;
import com.teammetallurgy.agriculture.food.Food.Methods;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

        if (this.itemTypes.get(itemStack.getItemDamage()) != null)
        {
            return super.onEaten(itemStack, world, player);
        }
        return itemStack;
    }

    @Override
    protected void onFoodEaten(ItemStack itemStack, World world, EntityPlayer player)
    {
        if (this.itemTypes.get(itemStack.getItemDamage()) != null)
        {
            super.onFoodEaten(itemStack, world, player);
        }
    }

    @Override
    public EnumAction getItemUseAction(ItemStack itemStack)
    {
        FoodType type = itemTypes.get(itemStack.getItemDamage());
        if (type == FoodType.crop || type == FoodType.edible)
        {
            return super.getItemUseAction(itemStack);
        }
        return EnumAction.none;
    }

    @Override
    public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player)
    {
        FoodType type = itemTypes.get(itemStack.getItemDamage());