// Path: src/main/java/com/foodcraft/FoodCraft.java
// @Mod(modid="foodcraft", name="FoodCraft", version="1.2.0")
// 
// public class FoodCraft implements NetworkMod {
//     public static boolean JEIIsLoad = false;
//     public static final CreativeTabs FcTabMachine = new CreativeTabs("Jiqi") {//机器&工具
//         public Item getTabIconItem() {
//             return Item.getItemFromBlock(FoodcraftGuiBlocks.Nmj);
//         }
//     };
//     public static final CreativeTabs FcTabPlant = new CreativeTabs("Zhiwu") {//植物
//         public Item getTabIconItem() {
//             return FoodcraftItems.ItemLajiao;
//         }
//     };
//     public static final CreativeTabs FcTabDrink = new CreativeTabs("Yingliao") {//饮料
//         public Item getTabIconItem() {
//             return FoodcraftItems.ItemPutaozhi;
//         }
//     };
//     public static final CreativeTabs FcTabStaple = new CreativeTabs("Zhushi") {//主食
//         public Item getTabIconItem() {
//             return FoodcraftItems.ItemChaotudousifan;
//         }
//     };
//     public static final CreativeTabs FcTabIngredient = new CreativeTabs("Shicai") {//食材
//         public Item getTabIconItem() {
//             return FoodcraftItems.ItemMianfen;
//         }
//     };
//     public static final CreativeTabs FcTabSnack = new CreativeTabs("Xiaodian") {//零食
//         public Item getTabIconItem() {
//             return FoodcraftItems.ItemJianjiao;
//         }
//     };
// 
//     @SidedProxy(clientSide = "com.foodcraft.proxy.ClientProxy", serverSide = "com.foodcraft.proxy.CommonProxy")
//     private static CommonProxy proxy;
// 
//     @Instance("foodcraft")
//     public static FoodCraft instance;
// 
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent event) {
//         PacketDispatcher.initInstance("foodcraft", this);
//         NERLogManager.log("Loading foodcraft, Version: 1.2.3");
//         JEIIsLoad = Loader.isModLoaded("JustEnoughItems");
//         NERConfigHandler.initConfig(event);
//         NERConfigHandler.getConfig();
//         proxy.preInit(event);
//     }
// 
//     @EventHandler
//     public void init(FMLInitializationEvent event) {
//         proxy.init(event);
//         MinecraftForge.EVENT_BUS.register(new FcSubscribeEvent());
//     }
// 
//     @EventHandler
//     public void postInit(FMLPostInitializationEvent event) {
//         proxy.postInit(event);
//     }
// 
//     @Override
//     public Proxy getProxy() {
//         return proxy;
//     }
// }
// 
// Path: src/main/java/com/foodcraft/block/BlockCakeFoodcraft.java
// public class BlockCakeFoodcraft extends BlockCake {
// 
//     private String[] names = new String[] {"BlockPutaoDG","BlockJinputaoDG","BlockLiDG","BlockTaoziDG","BlockJuziDG","BlockNingmengDG","BlockCaomeiDG","BlockYeziDG"};
// 
//     public BlockCakeFoodcraft() {
//         this.disableStats();
//         this.setHardness(0.5F).setStepSound(Block.soundTypeCloth);
//     }
//     @Override
//     @SideOnly(Side.CLIENT)
//     public Item getItem(World worldIn, BlockPos pos) {
//         return Item.getItemFromBlock(this);
//     }
// }
// 
// Path: src/main/java/com/foodcraft/block/BlockFc.java
// public class BlockFc extends Block {
//     public BlockFc(Material material, String name) {
//         super(material);
//         this.setUnlocalizedName(name);
//         this.setCreativeTab(FoodCraft.FcTabMachine);
//     }
// }
// 
// Path: src/main/java/com/foodcraft/block/BlockGoldenGrapeCake.java
// public class BlockGoldenGrapeCake extends BlockCake {
// 
//     public BlockGoldenGrapeCake() {
//         this.disableStats();
//         this.setHardness(0.5F).setStepSound(Block.soundTypeCloth);
//     }
// 
//     @Override
//     @SideOnly(Side.CLIENT)
//     public Item getItem(World worldIn, BlockPos pos) {
//         return Item.getItemFromBlock(this);
//     }
// 
// 
//     @Override
//     @SideOnly(Side.CLIENT)
//     public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand)  {
//         if (!worldIn.isRemote) {
//             int j = ((Integer)state.getValue(BITES)).intValue();
//             if(j > 0) {
//                 worldIn.setBlockState(pos, state.withProperty(BITES, Integer.valueOf(j - 1)), 3);
//             }
//         }
//     }
// }


import com.foodcraft.FoodCraft;
import com.foodcraft.block.BlockCakeFoodcraft;
import com.foodcraft.block.BlockFc;
import com.foodcraft.block.BlockGoldenGrapeCake;
import com.foodcraft.gui.blocks.*;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;
package com.foodcraft.init;



public class FoodcraftBlocks {

    static public Block BlockWaike,Blocksugar,BlockDami,BlockHuashenk,BlockLuobo,BlockTudou,BlockYan,BlockDouzik,BlockRuomi,BlockDouban,
           BlockQiaokeli,BlockPutaoDG,BlockJinputaoDG,BlockLiDG,BlockTaoziDG,BlockJuziDG,BlockNingmengDG,BlockCaomeiDG,BlockYeziDG;

    public static void init() {
// Path: src/main/java/com/foodcraft/FoodCraft.java
// @Mod(modid="foodcraft", name="FoodCraft", version="1.2.0")
// 
// public class FoodCraft implements NetworkMod {
//     public static boolean JEIIsLoad = false;
//     public static final CreativeTabs FcTabMachine = new CreativeTabs("Jiqi") {//机器&工具
//         public Item getTabIconItem() {
//             return Item.getItemFromBlock(FoodcraftGuiBlocks.Nmj);
//         }
//     };
//     public static final CreativeTabs FcTabPlant = new CreativeTabs("Zhiwu") {//植物
//         public Item getTabIconItem() {
//             return FoodcraftItems.ItemLajiao;
//         }
//     };
//     public static final CreativeTabs FcTabDrink = new CreativeTabs("Yingliao") {//饮料
//         public Item getTabIconItem() {
//             return FoodcraftItems.ItemPutaozhi;
//         }
//     };
//     public static final CreativeTabs FcTabStaple = new CreativeTabs("Zhushi") {//主食
//         public Item getTabIconItem() {
//             return FoodcraftItems.ItemChaotudousifan;
//         }
//     };
//     public static final CreativeTabs FcTabIngredient = new CreativeTabs("Shicai") {//食材
//         public Item getTabIconItem() {
//             return FoodcraftItems.ItemMianfen;
//         }
//     };
//     public static final CreativeTabs FcTabSnack = new CreativeTabs("Xiaodian") {//零食
//         public Item getTabIconItem() {
//             return FoodcraftItems.ItemJianjiao;
//         }
//     };
// 
//     @SidedProxy(clientSide = "com.foodcraft.proxy.ClientProxy", serverSide = "com.foodcraft.proxy.CommonProxy")
//     private static CommonProxy proxy;
// 
//     @Instance("foodcraft")
//     public static FoodCraft instance;
// 
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent event) {
//         PacketDispatcher.initInstance("foodcraft", this);
//         NERLogManager.log("Loading foodcraft, Version: 1.2.3");
//         JEIIsLoad = Loader.isModLoaded("JustEnoughItems");
//         NERConfigHandler.initConfig(event);
//         NERConfigHandler.getConfig();
//         proxy.preInit(event);
//     }
// 
//     @EventHandler
//     public void init(FMLInitializationEvent event) {
//         proxy.init(event);
//         MinecraftForge.EVENT_BUS.register(new FcSubscribeEvent());
//     }
// 
//     @EventHandler
//     public void postInit(FMLPostInitializationEvent event) {
//         proxy.postInit(event);
//     }
// 
//     @Override
//     public Proxy getProxy() {
//         return proxy;
//     }
// }
// 
// Path: src/main/java/com/foodcraft/block/BlockCakeFoodcraft.java
// public class BlockCakeFoodcraft extends BlockCake {
// 
//     private String[] names = new String[] {"BlockPutaoDG","BlockJinputaoDG","BlockLiDG","BlockTaoziDG","BlockJuziDG","BlockNingmengDG","BlockCaomeiDG","BlockYeziDG"};
// 
//     public BlockCakeFoodcraft() {
//         this.disableStats();
//         this.setHardness(0.5F).setStepSound(Block.soundTypeCloth);
//     }
//     @Override
//     @SideOnly(Side.CLIENT)
//     public Item getItem(World worldIn, BlockPos pos) {
//         return Item.getItemFromBlock(this);
//     }
// }
// 
// Path: src/main/java/com/foodcraft/block/BlockFc.java
// public class BlockFc extends Block {
//     public BlockFc(Material material, String name) {
//         super(material);
//         this.setUnlocalizedName(name);
//         this.setCreativeTab(FoodCraft.FcTabMachine);
//     }
// }
// 
// Path: src/main/java/com/foodcraft/block/BlockGoldenGrapeCake.java
// public class BlockGoldenGrapeCake extends BlockCake {
// 
//     public BlockGoldenGrapeCake() {
//         this.disableStats();
//         this.setHardness(0.5F).setStepSound(Block.soundTypeCloth);
//     }
// 
//     @Override
//     @SideOnly(Side.CLIENT)
//     public Item getItem(World worldIn, BlockPos pos) {
//         return Item.getItemFromBlock(this);
//     }
// 
// 
//     @Override
//     @SideOnly(Side.CLIENT)
//     public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand)  {
//         if (!worldIn.isRemote) {
//             int j = ((Integer)state.getValue(BITES)).intValue();
//             if(j > 0) {
//                 worldIn.setBlockState(pos, state.withProperty(BITES, Integer.valueOf(j - 1)), 3);
//             }
//         }
//     }
// }


// Path: src/main/java/com/foodcraft/init/FoodcraftBlocks.java
import com.foodcraft.FoodCraft;
import com.foodcraft.block.BlockCakeFoodcraft;
import com.foodcraft.block.BlockFc;
import com.foodcraft.block.BlockGoldenGrapeCake;
import com.foodcraft.gui.blocks.*;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;

package com.foodcraft.init;



public class FoodcraftBlocks {

    static public Block BlockWaike,Blocksugar,BlockDami,BlockHuashenk,BlockLuobo,BlockTudou,BlockYan,BlockDouzik,BlockRuomi,BlockDouban,
           BlockQiaokeli,BlockPutaoDG,BlockJinputaoDG,BlockLiDG,BlockTaoziDG,BlockJuziDG,BlockNingmengDG,BlockCaomeiDG,BlockYeziDG;

    public static void init() {
        BlockWaike = new BlockFc(Material.rock, "BlockWaike").setStepSound(Block.soundTypeStone);