// 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.BlockSlab;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IStringSerializable;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import java.util.Random;
package cn.mccraft.chinacraft.block;



public class BlockCCSlab extends BlockSlab{

    public static final PropertyEnum<EnumType> VARIANT = PropertyEnum.<EnumType>create("variant", EnumType.class);
    private final boolean isDouble;
    private final BlockCCSlab singleSlab;

    public BlockCCSlab(Material materialIn,boolean isDouble,BlockCCSlab singleSlab) {
        super(materialIn);
        this.isDouble = isDouble;
        this.useNeighborBrightness = !isDouble;
        this.singleSlab = singleSlab==null?this:singleSlab;

        IBlockState iblockstate = this.blockState.getBaseState();

        if (!this.isDouble())
        {
            iblockstate = iblockstate.withProperty(HALF, BlockSlab.EnumBlockHalf.BOTTOM);
// 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/BlockCCSlab.java
import cn.mccraft.chinacraft.init.CCCreativeTabs;
import net.minecraft.block.BlockSlab;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IStringSerializable;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import java.util.Random;

package cn.mccraft.chinacraft.block;



public class BlockCCSlab extends BlockSlab{

    public static final PropertyEnum<EnumType> VARIANT = PropertyEnum.<EnumType>create("variant", EnumType.class);
    private final boolean isDouble;
    private final BlockCCSlab singleSlab;

    public BlockCCSlab(Material materialIn,boolean isDouble,BlockCCSlab singleSlab) {
        super(materialIn);
        this.isDouble = isDouble;
        this.useNeighborBrightness = !isDouble;
        this.singleSlab = singleSlab==null?this:singleSlab;

        IBlockState iblockstate = this.blockState.getBaseState();

        if (!this.isDouble())
        {
            iblockstate = iblockstate.withProperty(HALF, BlockSlab.EnumBlockHalf.BOTTOM);
            setCreativeTab(CCCreativeTabs.tabCore);