// Path: src/main/java/cn/mccraft/chinacraft/init/CCCreativeTabs.java
// public interface CCCreativeTabs {
//     CreativeTabs tabCore = new CreativeTabs(ChinaCraft.MODID + "Core") {
//         @Nonnull
//         @Override
//         public ItemStack getTabIconItem() {
//             return new ItemStack(CCBlocks.COPPER_ORE);
//         }
//     };
// 
//     CreativeTabs tabMaterials = new CreativeTabs(ChinaCraft.MODID + "Materials") {
//         @Nonnull
//         @Override
//         public ItemStack getTabIconItem() {
//             return new ItemStack(CCItems.BRONZE_INGOT);
//         }
//     };
// 
//     CreativeTabs tabSilkworm = new CreativeTabs(ChinaCraft.MODID + "Silkworm") {
//         @Nonnull
//         @Override
//         public ItemStack getTabIconItem() {
//             ItemStack stack = new ItemStack(CCItems.SILK);
//             stack.getCapability(CCCapabilities.ITEM_STACK_COLORABLE_CAPABILITY, null).setColor(EnumDyeColor.WHITE.func_176768_e().colorValue);
//             return stack;
//         }
//     };
// 
//     CreativeTabs tabPlant = new CreativeTabs(ChinaCraft.MODID + "Plant") {
//         @Nonnull
//         @Override
//         public ItemStack getTabIconItem() {
//             return new ItemStack(CCBlocks.AZALEA);
//         }
//     };
// }


import cn.mccraft.chinacraft.init.CCCreativeTabs;
import net.minecraft.block.BlockBush;
import net.minecraft.block.IGrowable;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;
import net.minecraftforge.event.terraingen.TerrainGen;
import java.util.Random;
package cn.mccraft.chinacraft.block;



public class BlockCCSapling extends BlockBush implements IGrowable {
    public static final PropertyInteger STAGE = PropertyInteger.create("stage", 0, 1);
    protected static final AxisAlignedBB SAPLING_AABB = new AxisAlignedBB(0.09999999403953552D, 0.0D, 0.09999999403953552D, 0.8999999761581421D, 0.800000011920929D, 0.8999999761581421D);
    private WorldGenerator treeGen;

    public BlockCCSapling(WorldGenerator treeGen) {
        this(Material.PLANTS, treeGen);
    }

    public BlockCCSapling(Material material, WorldGenerator treeGen) {
        super(material);
        this.treeGen = treeGen;
        this.setDefaultState(this.blockState.getBaseState().withProperty(STAGE, Integer.valueOf(0)));
// Path: src/main/java/cn/mccraft/chinacraft/init/CCCreativeTabs.java
// public interface CCCreativeTabs {
//     CreativeTabs tabCore = new CreativeTabs(ChinaCraft.MODID + "Core") {
//         @Nonnull
//         @Override
//         public ItemStack getTabIconItem() {
//             return new ItemStack(CCBlocks.COPPER_ORE);
//         }
//     };
// 
//     CreativeTabs tabMaterials = new CreativeTabs(ChinaCraft.MODID + "Materials") {
//         @Nonnull
//         @Override
//         public ItemStack getTabIconItem() {
//             return new ItemStack(CCItems.BRONZE_INGOT);
//         }
//     };
// 
//     CreativeTabs tabSilkworm = new CreativeTabs(ChinaCraft.MODID + "Silkworm") {
//         @Nonnull
//         @Override
//         public ItemStack getTabIconItem() {
//             ItemStack stack = new ItemStack(CCItems.SILK);
//             stack.getCapability(CCCapabilities.ITEM_STACK_COLORABLE_CAPABILITY, null).setColor(EnumDyeColor.WHITE.func_176768_e().colorValue);
//             return stack;
//         }
//     };
// 
//     CreativeTabs tabPlant = new CreativeTabs(ChinaCraft.MODID + "Plant") {
//         @Nonnull
//         @Override
//         public ItemStack getTabIconItem() {
//             return new ItemStack(CCBlocks.AZALEA);
//         }
//     };
// }


// Path: src/main/java/cn/mccraft/chinacraft/block/BlockCCSapling.java
import cn.mccraft.chinacraft.init.CCCreativeTabs;
import net.minecraft.block.BlockBush;
import net.minecraft.block.IGrowable;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;
import net.minecraftforge.event.terraingen.TerrainGen;
import java.util.Random;

package cn.mccraft.chinacraft.block;



public class BlockCCSapling extends BlockBush implements IGrowable {
    public static final PropertyInteger STAGE = PropertyInteger.create("stage", 0, 1);
    protected static final AxisAlignedBB SAPLING_AABB = new AxisAlignedBB(0.09999999403953552D, 0.0D, 0.09999999403953552D, 0.8999999761581421D, 0.800000011920929D, 0.8999999761581421D);
    private WorldGenerator treeGen;

    public BlockCCSapling(WorldGenerator treeGen) {
        this(Material.PLANTS, treeGen);
    }

    public BlockCCSapling(Material material, WorldGenerator treeGen) {
        super(material);
        this.treeGen = treeGen;
        this.setDefaultState(this.blockState.getBaseState().withProperty(STAGE, Integer.valueOf(0)));
        this.setCreativeTab(CCCreativeTabs.tabCore);