// Path: src/main/java/cn/mccraft/chinacraft/block/tileentity/TileEntitySilkwormFrame.java
// public class TileEntitySilkwormFrame extends TileEntity {
//     private IItemHandlerModifiable inventory = new ItemStackHandler(3);
//     private ICapabilitySerializable<NBTTagCompound> capabilitySerializable = new CapabilitySilkworm.Serializable();
// 
//     @Override
//     public boolean hasCapability(@Nonnull Capability<?> capability, @Nullable EnumFacing facing) {
//         return capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY || capabilitySerializable.hasCapability(capability, facing) || super.hasCapability(capability, facing);
//     }
// 
//     @Nullable
//     @Override
//     @SuppressWarnings("unchecked")
//     public <T> T getCapability(@Nonnull Capability<T> capability, @Nullable EnumFacing facing) {
//         if (capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY)
//             return (T) inventory;
//         else if (capabilitySerializable.hasCapability(capability, facing))
//             return capabilitySerializable.getCapability(capability, facing);
//         else
//             return super.getCapability(capability, facing);
//     }
// }
// 
// Path: src/main/java/cn/mccraft/chinacraft/common/ChinaCraft.java
// @Mod(modid = ChinaCraft.MODID, name = ChinaCraft.NAME, version = ChinaCraft.VERSION, dependencies = "required-after:biomesoplenty")
// public final class ChinaCraft {
//     public static final String MODID = "chinacraft";
//     public static final String NAME = "ChinaCraft 2";
//     public static final String VERSION = "0.0.1";
// 
//     @SidedProxy(clientSide = "cn.mccraft.chinacraft.client.ClientProxy", serverSide = "cn.mccraft.chinacraft.common.CommonProxy")
//     private static CommonProxy proxy;
// 
//     @Mod.Instance(ChinaCraft.MODID)
//     private static ChinaCraft instance;
// 
//     private CCEventHandler eventHandler;
// 
//     private static SimpleNetworkWrapper network;
// 
//     private static final Logger LOGGER = LogManager.getLogger(MODID);
// 
//     private JsonSettings settings;
// 
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent event) {
//         settings = new JsonSettings(event.getModConfigurationDirectory(), "config");
//         proxy.preInit(event);
//         eventHandler = new CCEventHandler();
//     }
// 
//     @EventHandler
//     public void init(FMLInitializationEvent event) {
//         network = NetworkRegistry.INSTANCE.newSimpleChannel(MODID);
//         network.registerMessage(new RedPacketMessage.Handler(), RedPacketMessage.class,0, Side.SERVER);
// 
//         NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());
// 
//         proxy.init(event);
//     }
// 
//     @EventHandler
//     public void postInit(FMLPostInitializationEvent event) {
//         proxy.postInit(event);
//     }
// 
//     @EventHandler
//     public void loadComplete(FMLLoadCompleteEvent event) {
//         proxy.loadComplete(event);
//     }
// 
//     public JsonSettings getSettings() {
//         return settings;
//     }
// 
//     public CCEventHandler getEventHandler() {
//         return eventHandler;
//     }
// 
//     public static Logger getLogger() {
//         return LOGGER;
//     }
// 
//     public static ChinaCraft getInstance() {
//         return instance;
//     }
// 
//     public static SimpleNetworkWrapper getNetwork() {
//         return network;
//     }
// 
//     public static CommonProxy getProxy() {
//         return proxy;
//     }
// }
// 
// Path: src/main/java/cn/mccraft/chinacraft/common/gui/EnumGuiType.java
// public enum EnumGuiType {
//     RED_PACKET,
//     CRUSHER,
//     SILKWORM_FRAME
// }
// 
// 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.block.tileentity.TileEntitySilkwormFrame;
import cn.mccraft.chinacraft.common.ChinaCraft;
import cn.mccraft.chinacraft.common.gui.EnumGuiType;
import cn.mccraft.chinacraft.init.CCCreativeTabs;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import javax.annotation.Nullable;
package cn.mccraft.chinacraft.block;



public class BlockCCSilkwormFrame extends BlockCCBase {
    public BlockCCSilkwormFrame() {
        super(Material.WOOD);
// Path: src/main/java/cn/mccraft/chinacraft/block/tileentity/TileEntitySilkwormFrame.java
// public class TileEntitySilkwormFrame extends TileEntity {
//     private IItemHandlerModifiable inventory = new ItemStackHandler(3);
//     private ICapabilitySerializable<NBTTagCompound> capabilitySerializable = new CapabilitySilkworm.Serializable();
// 
//     @Override
//     public boolean hasCapability(@Nonnull Capability<?> capability, @Nullable EnumFacing facing) {
//         return capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY || capabilitySerializable.hasCapability(capability, facing) || super.hasCapability(capability, facing);
//     }
// 
//     @Nullable
//     @Override
//     @SuppressWarnings("unchecked")
//     public <T> T getCapability(@Nonnull Capability<T> capability, @Nullable EnumFacing facing) {
//         if (capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY)
//             return (T) inventory;
//         else if (capabilitySerializable.hasCapability(capability, facing))
//             return capabilitySerializable.getCapability(capability, facing);
//         else
//             return super.getCapability(capability, facing);
//     }
// }
// 
// Path: src/main/java/cn/mccraft/chinacraft/common/ChinaCraft.java
// @Mod(modid = ChinaCraft.MODID, name = ChinaCraft.NAME, version = ChinaCraft.VERSION, dependencies = "required-after:biomesoplenty")
// public final class ChinaCraft {
//     public static final String MODID = "chinacraft";
//     public static final String NAME = "ChinaCraft 2";
//     public static final String VERSION = "0.0.1";
// 
//     @SidedProxy(clientSide = "cn.mccraft.chinacraft.client.ClientProxy", serverSide = "cn.mccraft.chinacraft.common.CommonProxy")
//     private static CommonProxy proxy;
// 
//     @Mod.Instance(ChinaCraft.MODID)
//     private static ChinaCraft instance;
// 
//     private CCEventHandler eventHandler;
// 
//     private static SimpleNetworkWrapper network;
// 
//     private static final Logger LOGGER = LogManager.getLogger(MODID);
// 
//     private JsonSettings settings;
// 
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent event) {
//         settings = new JsonSettings(event.getModConfigurationDirectory(), "config");
//         proxy.preInit(event);
//         eventHandler = new CCEventHandler();
//     }
// 
//     @EventHandler
//     public void init(FMLInitializationEvent event) {
//         network = NetworkRegistry.INSTANCE.newSimpleChannel(MODID);
//         network.registerMessage(new RedPacketMessage.Handler(), RedPacketMessage.class,0, Side.SERVER);
// 
//         NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());
// 
//         proxy.init(event);
//     }
// 
//     @EventHandler
//     public void postInit(FMLPostInitializationEvent event) {
//         proxy.postInit(event);
//     }
// 
//     @EventHandler
//     public void loadComplete(FMLLoadCompleteEvent event) {
//         proxy.loadComplete(event);
//     }
// 
//     public JsonSettings getSettings() {
//         return settings;
//     }
// 
//     public CCEventHandler getEventHandler() {
//         return eventHandler;
//     }
// 
//     public static Logger getLogger() {
//         return LOGGER;
//     }
// 
//     public static ChinaCraft getInstance() {
//         return instance;
//     }
// 
//     public static SimpleNetworkWrapper getNetwork() {
//         return network;
//     }
// 
//     public static CommonProxy getProxy() {
//         return proxy;
//     }
// }
// 
// Path: src/main/java/cn/mccraft/chinacraft/common/gui/EnumGuiType.java
// public enum EnumGuiType {
//     RED_PACKET,
//     CRUSHER,
//     SILKWORM_FRAME
// }
// 
// 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/BlockCCSilkwormFrame.java
import cn.mccraft.chinacraft.block.tileentity.TileEntitySilkwormFrame;
import cn.mccraft.chinacraft.common.ChinaCraft;
import cn.mccraft.chinacraft.common.gui.EnumGuiType;
import cn.mccraft.chinacraft.init.CCCreativeTabs;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import javax.annotation.Nullable;

package cn.mccraft.chinacraft.block;



public class BlockCCSilkwormFrame extends BlockCCBase {
    public BlockCCSilkwormFrame() {
        super(Material.WOOD);
        setCreativeTab(CCCreativeTabs.tabSilkworm);