gt:             blockCarpentersLadder = new BlockCarpentersLadder(material)
context: package com.carpentersblocks.util.registry;
  
  import com.carpentersblocks.CarpentersBlocks;
  import com.carpentersblocks.Reference;
  import com.carpentersblocks.block.BlockCarpentersBarrier;
  import com.carpentersblocks.block.BlockCarpentersBed;
  import com.carpentersblocks.block.BlockCarpentersBlock;
  import com.carpentersblocks.block.BlockCarpentersButton;
  import com.carpentersblocks.block.BlockCarpentersCollapsibleBlock;
  import com.carpentersblocks.block.BlockCarpentersDaylightSensor;
  import com.carpentersblocks.block.BlockCarpentersDoor;
  import com.carpentersblocks.block.BlockCarpentersFlowerPot;
  import com.carpentersblocks.block.BlockCarpentersGarageDoor;
  import com.carpentersblocks.block.BlockCarpentersGate;
  import com.carpentersblocks.block.BlockCarpentersHatch;
  import com.carpentersblocks.block.BlockCarpentersLadder;
  import com.carpentersblocks.block.BlockCarpentersLever;
  import com.carpentersblocks.block.BlockCarpentersPressurePlate;
  import com.carpentersblocks.block.BlockCarpentersSafe;
  import com.carpentersblocks.block.BlockCarpentersSlope;
  import com.carpentersblocks.block.BlockCarpentersStairs;
  import com.carpentersblocks.block.BlockCarpentersTorch;
  
  import net.minecraft.block.Block;
  import net.minecraft.block.BlockPlanks.EnumType;
  import net.minecraft.block.BlockPressurePlate.Sensitivity;
  import net.minecraft.block.material.MapColor;
  import net.minecraft.block.material.Material;
  import net.minecraft.client.Minecraft;
  import net.minecraft.client.renderer.block.model.ModelResourceLocation;
  import net.minecraft.init.Blocks;
  import net.minecraft.init.Items;
  import net.minecraft.item.Item;
  import net.minecraft.item.ItemBlock;
  import net.minecraft.item.ItemStack;
  import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  import net.minecraftforge.fml.common.registry.GameRegistry;
  import net.minecraftforge.fml.relauncher.Side;
  import net.minecraftforge.fml.relauncher.SideOnly;
  import net.minecraftforge.oredict.ShapedOreRecipe;
  import static com.carpentersblocks.Reference.*;
  
  public class BlockRegistry 
  {	
  	private static final Material material = Material.WOOD; 
  	
      public static Block blockCarpentersBarrier;
      public static Block blockCarpentersBed;
      public static Block blockCarpentersBlock;
      public static Block blockCarpentersButton;
      public static Block blockCarpentersCollapsibleBlock;
      public static Block blockCarpentersDaylightSensor;
      public static Block blockCarpentersDoor;
      public static Block blockCarpentersFlowerPot;
      public static Block blockCarpentersGarageDoor;
      public static Block blockCarpentersGate;
      public static Block blockCarpentersHatch;
      public static Block blockCarpentersLadder;
      public static Block blockCarpentersLever;
      public static Block blockCarpentersPressurePlate;
      public static Block blockCarpentersSafe;
      public static Block blockCarpentersSlope;
      public static Block blockCarpentersStairs;
      public static Block blockCarpentersTorch;
  
      /**
       * Block preinitialization.
       */
      public static void preInit()
      { 
          // Register blocks
          
      	blockCarpentersBlock = new BlockCarpentersBlock(material)
      		.setUnlocalizedName("blockCarpentersBlock")
          	.setRegistryName(REGISTRY_NAME_BLOCK)
          	.setHardness(0.2F)
              .setCreativeTab(CarpentersBlocks.CREATIVE_TAB);
          GameRegistry.register(blockCarpentersBlock);
          GameRegistry.register(new ItemBlock(blockCarpentersBlock), blockCarpentersBlock.getRegistryName());
          Blocks.FIRE.setFireInfo(blockCarpentersBlock, 5, 20);
  
           if(enableBarrier)
           {
               blockCarpentersBarrier = new BlockCarpentersBarrier(material, MapColor.WOOD)
                   .setUnlocalizedName("blockCarpentersBarrier")
                   .setRegistryName(REGISTRY_NAME_BARRIER)
                   .setHardness(0.2F)
                   .setCreativeTab(CarpentersBlocks.CREATIVE_TAB);
               GameRegistry.register(blockCarpentersBarrier);
               GameRegistry.register(new ItemBlock(blockCarpentersBarrier), blockCarpentersBarrier.getRegistryName());
               Blocks.FIRE.setFireInfo(blockCarpentersBarrier, 5, 20);
           }
          
          if(enableBed) 
          {
              blockCarpentersBed = new BlockCarpentersBed(material)
                  .setUnlocalizedName("blockCarpentersBed")
                  .setRegistryName(REGISTRY_NAME_BED)
                  .setHardness(0.4F)
                  .setCreativeTab(CarpentersBlocks.CREATIVE_TAB); 
              GameRegistry.register(blockCarpentersBed);
              GameRegistry.register(new ItemBlock(blockCarpentersBed), blockCarpentersBed.getRegistryName());
              Blocks.FIRE.setFireInfo(blockCarpentersBed, 5, 20);
          }
          
          if(enableButton) 
          {
              blockCarpentersButton = new BlockCarpentersButton(true)
                  .setUnlocalizedName("blockCarpentersButton")
                  .setRegistryName(REGISTRY_NAME_BUTTON)
                  .setHardness(0.2F)
                  .setCreativeTab(CarpentersBlocks.CREATIVE_TAB);
              GameRegistry.register(blockCarpentersButton);
              GameRegistry.register(new ItemBlock(blockCarpentersButton), blockCarpentersButton.getRegistryName());
              Blocks.FIRE.setFireInfo(blockCarpentersButton, 5, 20);
          }
  
          if(enableCollapsibleBlock) 
          {
              blockCarpentersCollapsibleBlock = new BlockCarpentersCollapsibleBlock(material)
                  .setUnlocalizedName("blockCarpentersCollapsibleBlock")
                  .setRegistryName(REGISTRY_NAME_COLLAPSIBLE)
                  .setHardness(0.2F)
                  .setCreativeTab(CarpentersBlocks.CREATIVE_TAB);
              GameRegistry.register(blockCarpentersCollapsibleBlock);
              GameRegistry.register(new ItemBlock(blockCarpentersCollapsibleBlock), blockCarpentersCollapsibleBlock.getRegistryName());
              Blocks.FIRE.setFireInfo(blockCarpentersCollapsibleBlock, 5, 20);
          } 
          
          if(enableDaylightSensor) 
          {
              blockCarpentersDaylightSensor = new BlockCarpentersDaylightSensor(false)
                  .setUnlocalizedName("blockCarpentersDaylightSensor")
                  .setRegistryName(REGISTRY_NAME_DAYLIGHT_SENSOR)
                  .setHardness(0.2F)
                  .setCreativeTab(CarpentersBlocks.CREATIVE_TAB);
              GameRegistry.register(blockCarpentersDaylightSensor);
              GameRegistry.register(new ItemBlock(blockCarpentersDaylightSensor), blockCarpentersDaylightSensor.getRegistryName());
              Blocks.FIRE.setFireInfo(blockCarpentersDaylightSensor, 5, 20);
          }
  
          if(enableDoor) 
          {
              blockCarpentersDoor = new BlockCarpentersDoor(material)
                  .setUnlocalizedName("blockCarpentersDoor")
                  .setRegistryName(REGISTRY_NAME_DOOR)
                  .setHardness(0.2F)
                  .setCreativeTab(CarpentersBlocks.CREATIVE_TAB);
              GameRegistry.register(blockCarpentersDoor);
              GameRegistry.register(new ItemBlock(blockCarpentersDoor), blockCarpentersDoor.getRegistryName());
              Blocks.FIRE.setFireInfo(blockCarpentersDoor, 5, 20);
          }
  
          if(enableFlowerPot) 
          {
              blockCarpentersFlowerPot = new BlockCarpentersFlowerPot(Material.CIRCUITS)
                  .setUnlocalizedName("blockCarpentersFlowerPot")
                  .setRegistryName(REGISTRY_NAME_FLOWER_POT)
                  .setHardness(0.5F)
                  .setCreativeTab(CarpentersBlocks.CREATIVE_TAB);
              GameRegistry.register(blockCarpentersFlowerPot);
              GameRegistry.register(new ItemBlock(blockCarpentersFlowerPot), blockCarpentersFlowerPot.getRegistryName());
              Blocks.FIRE.setFireInfo(blockCarpentersFlowerPot, 5, 20);
          }
  
          if(enableGarageDoor) 
          {
              blockCarpentersGarageDoor = new BlockCarpentersGarageDoor(material)
                  .setUnlocalizedName("blockCarpentersGarageDoor")
                  .setRegistryName(REGISTRY_NAME_GARAGE_DOOR)
                  .setHardness(0.2F)
                  .setCreativeTab(CarpentersBlocks.CREATIVE_TAB);
              GameRegistry.register(blockCarpentersGarageDoor);
              GameRegistry.register(new ItemBlock(blockCarpentersGarageDoor), blockCarpentersGarageDoor.getRegistryName());
              Blocks.FIRE.setFireInfo(blockCarpentersGarageDoor, 5, 20);
          }
  
          if(enableGate) 
          {
              blockCarpentersGate = new BlockCarpentersGate(EnumType.OAK)
                  .setUnlocalizedName("blockCarpentersGate")
                  .setRegistryName(REGISTRY_NAME_GATE)
                  .setHardness(0.2F)
                  .setCreativeTab(CarpentersBlocks.CREATIVE_TAB);
              GameRegistry.register(blockCarpentersGate);
              GameRegistry.register(new ItemBlock(blockCarpentersGate), blockCarpentersGate.getRegistryName());
              Blocks.FIRE.setFireInfo(blockCarpentersGate, 5, 20);
          }
  
          if(enableHatch) 
          {
              blockCarpentersHatch = new BlockCarpentersHatch(material)
                  .setUnlocalizedName("blockCarpentersHatch")
                  .setRegistryName(REGISTRY_NAME_HATCH)
                  .setHardness(0.2F)
                  .setCreativeTab(CarpentersBlocks.CREATIVE_TAB);
              GameRegistry.register(blockCarpentersHatch);
              GameRegistry.register(new ItemBlock(blockCarpentersHatch), blockCarpentersHatch.getRegistryName());
              Blocks.FIRE.setFireInfo(blockCarpentersHatch, 5, 20);
          }
  
          if(enableLadder) 
          {
  