gt:                     if (k == 1)
context: package io.github.phantamanta44.cliffside.ctm;
  
  import net.minecraft.block.Block;
  import net.minecraft.block.BlockAnvil;
  import net.minecraft.block.BlockBeacon;
  import net.minecraft.block.BlockBrewingStand;
  import net.minecraft.block.BlockCauldron;
  import net.minecraft.block.BlockCocoa;
  import net.minecraft.block.BlockDoublePlant;
  import net.minecraft.block.BlockDragonEgg;
  import net.minecraft.block.BlockEndPortalFrame;
  import net.minecraft.block.BlockFence;
  import net.minecraft.block.BlockFenceGate;
  import net.minecraft.block.BlockFire;
  import net.minecraft.block.BlockFlowerPot;
  import net.minecraft.block.BlockHopper;
  import net.minecraft.block.BlockPane;
  import net.minecraft.block.BlockRailBase;
  import net.minecraft.block.BlockRedstoneComparator;
  import net.minecraft.block.BlockRedstoneDiode;
  import net.minecraft.block.BlockRedstoneRepeater;
  import net.minecraft.block.BlockStairs;
  import net.minecraft.block.BlockWall;
  import net.minecraft.client.renderer.RenderBlocks;
  import net.minecraft.client.renderer.Tessellator;
  import net.minecraft.client.renderer.tileentity.TileEntityRendererChestHelper;
  import net.minecraft.init.Blocks;
  import net.minecraft.src.FMLRenderAccessLibrary;
  import net.minecraft.util.IIcon;
  
  import org.lwjgl.opengl.GL11;
  import org.lwjgl.opengl.GL12;
  
  public class RenderBlocksUtil {
  	
  	public static boolean renderWorldBlockByGivenType(Block block, int x, int y, int z, RenderBlocks rb, int mode) {
  		if (mode == -1)
  		{
  			return false;
  		}
  		else
  		{
  			block.setBlockBoundsBasedOnState(rb.blockAccess, x, y, z);
  			rb.setRenderBoundsFromBlock(block);
  
  			switch (mode)
  			{
  			//regex: ' : \(l == ([\d]+) \?' replace: ';\ncase \1: return' ::: IMPORTANT: REMEMBER THIS ON FIRST line!
  			case 0: return rb.renderStandardBlock(block, x, y, z) ;
  			case 4: return rb.renderBlockLiquid(block, x, y, z) ;
  			case 31: return rb.renderBlockLog(block, x, y, z) ;
  			case 1: return rb.renderCrossedSquares(block, x, y, z) ;
  			case 40: return rb.renderBlockDoublePlant((BlockDoublePlant)block, x, y, z) ;
  			case 2: return rb.renderBlockTorch(block, x, y, z) ;
  			case 20: return rb.renderBlockVine(block, x, y, z) ;
  			case 11: return rb.renderBlockFence((BlockFence)block, x, y, z) ;
  			case 39: return rb.renderBlockQuartz(block, x, y, z) ;
  			case 5: return rb.renderBlockRedstoneWire(block, x, y, z) ;
  			case 13: return rb.renderBlockCactus(block, x, y, z) ;
  			case 9: return rb.renderBlockMinecartTrack((BlockRailBase)block, x, y, z) ;
  			case 19: return rb.renderBlockStem(block, x, y, z) ;
  			case 23: return rb.renderBlockLilyPad(block, x, y, z) ;
  			case 6: return rb.renderBlockCrops(block, x, y, z) ;
  			case 3: return rb.renderBlockFire((BlockFire)block, x, y, z) ;
  			case 8: return rb.renderBlockLadder(block, x, y, z) ;
  			case 7: return rb.renderBlockDoor(block, x, y, z) ;
  			case 10: return rb.renderBlockStairs((BlockStairs)block, x, y, z) ;
  			case 27: return rb.renderBlockDragonEgg((BlockDragonEgg)block, x, y, z) ;
  			case 32: return rb.renderBlockWall((BlockWall)block, x, y, z) ;
  			case 12: return rb.renderBlockLever(block, x, y, z) ;
  			case 29: return rb.renderBlockTripWireSource(block, x, y, z) ;
  			case 30: return rb.renderBlockTripWire(block, x, y, z) ;
  			case 14: return rb.renderBlockBed(block, x, y, z) ;
  			case 15: return rb.renderBlockRepeater((BlockRedstoneRepeater)block, x, y, z) ;
  			case 36: return rb.renderBlockRedstoneDiode((BlockRedstoneDiode)block, x, y, z) ;
  			case 37: return rb.renderBlockRedstoneComparator((BlockRedstoneComparator)block, x, y, z) ;
  			case 16: return rb.renderPistonBase(block, x, y, z, false) ;
  			case 17: return rb.renderPistonExtension(block, x, y, z, true) ;
  			case 18: return rb.renderBlockPane((BlockPane)block, x, y, z) ;
  			case 41: return rb.renderBlockStainedGlassPane(block, x, y, z) ;
  			case 21: return rb.renderBlockFenceGate((BlockFenceGate)block, x, y, z) ;
  			case 24: return rb.renderBlockCauldron((BlockCauldron)block, x, y, z) ;
  			case 33: return rb.renderBlockFlowerpot((BlockFlowerPot)block, x, y, z) ;
  			case 35: return rb.renderBlockAnvil((BlockAnvil)block, x, y, z) ;
  			case 25: return rb.renderBlockBrewingStand((BlockBrewingStand)block, x, y, z) ;
  			case 26: return rb.renderBlockEndPortalFrame((BlockEndPortalFrame)block, x, y, z) ;
  			case 28: return rb.renderBlockCocoa((BlockCocoa)block, x, y, z) ;
  			case 34: return rb.renderBlockBeacon((BlockBeacon)block, x, y, z) ;
  			case 38: return rb.renderBlockHopper((BlockHopper)block, x, y, z);
  			default: return FMLRenderAccessLibrary.renderWorldBlock(rb, rb.blockAccess, x, y, z, block, mode);
  			}
  		}
  	}
  
      public static void renderItemBlockByGivenType(Block block, int meta, float light, RenderBlocks rb, int mode)
      {
          Tessellator tessellator = Tessellator.instance;
          boolean flag = block == Blocks.grass;
  
          if (block == Blocks.dispenser || block == Blocks.dropper || block == Blocks.furnace)
          {
              meta = 3;
          }
  
          int j;
          float f1;
          float f2;
          float f3;
  
          if (rb.useInventoryTint)
          {
              j = block.getRenderColor(meta);
  
              if (flag)
              {
                  j = 16777215;
              }
  
              f1 = (float)(j >> 16 & 255) / 255.0F;
              f2 = (float)(j >> 8 & 255) / 255.0F;
              f3 = (float)(j & 255) / 255.0F;
              GL11.glColor4f(f1 * light, f2 * light, f3 * light, 1.0F);
          }
  
          j = mode;
          rb.setRenderBoundsFromBlock(block);
          int k;
  
          if (j != 0 && j != 31 && j != 39 && j != 16 && j != 26)
          {
              if (j == 1)
              {
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(0.0F, -1.0F, 0.0F);
                  IIcon iicon = rb.getBlockIconFromSideAndMetadata(block, 0, meta);
                  rb.drawCrossedSquares(iicon, -0.5D, -0.5D, -0.5D, 1.0F);
                  tessellator.draw();
              }
              else if (j == 19)
              {
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(0.0F, -1.0F, 0.0F);
                  block.setBlockBoundsForItemRender();
                  rb.renderBlockStemSmall(block, meta, rb.renderMaxY, -0.5D, -0.5D, -0.5D);
                  tessellator.draw();
              }
              else if (j == 23)
              {
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(0.0F, -1.0F, 0.0F);
                  block.setBlockBoundsForItemRender();
                  tessellator.draw();
              }
              else if (j == 13)
              {
                  block.setBlockBoundsForItemRender();
                  GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
                  f1 = 0.0625F;
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(0.0F, -1.0F, 0.0F);
                  rb.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, rb.getBlockIconFromSide(block, 0));
                  tessellator.draw();
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(0.0F, 1.0F, 0.0F);
                  rb.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, rb.getBlockIconFromSide(block, 1));
                  tessellator.draw();
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(0.0F, 0.0F, -1.0F);
                  tessellator.addTranslation(0.0F, 0.0F, f1);
                  rb.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, rb.getBlockIconFromSide(block, 2));
                  tessellator.addTranslation(0.0F, 0.0F, -f1);
                  tessellator.draw();
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(0.0F, 0.0F, 1.0F);
                  tessellator.addTranslation(0.0F, 0.0F, -f1);
                  rb.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, rb.getBlockIconFromSide(block, 3));
                  tessellator.addTranslation(0.0F, 0.0F, f1);
                  tessellator.draw();
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(-1.0F, 0.0F, 0.0F);
                  tessellator.addTranslation(f1, 0.0F, 0.0F);
                  rb.renderFaceXNeg(block, 0.0D, 0.0D, 0.0D, rb.getBlockIconFromSide(block, 4));
                  tessellator.addTranslation(-f1, 0.0F, 0.0F);
                  tessellator.draw();
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(1.0F, 0.0F, 0.0F);
                  tessellator.addTranslation(-f1, 0.0F, 0.0F);
                  rb.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, rb.getBlockIconFromSide(block, 5));
                  tessellator.addTranslation(f1, 0.0F, 0.0F);
                  tessellator.draw();
                  GL11.glTranslatef(0.5F, 0.5F, 0.5F);
              }
              else if (j == 22)
              {
                  GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
                  GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
                  TileEntityRendererChestHelper.instance.renderChest(block, meta, light);
                  GL11.glEnable(GL12.GL_RESCALE_NORMAL);
              }
              else if (j == 6)
              {
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(0.0F, -1.0F, 0.0F);
                  rb.renderBlockCropsImpl(block, meta, -0.5D, -0.5D, -0.5D);
                  tessellator.draw();
              }
              else if (j == 2)
              {
                  tessellator.startDrawingQuads();
                  tessellator.setNormal(0.0F, -1.0F, 0.0F);
                  rb.renderTorchAtAngle(block, -0.5D, -0.5D, -0.5D, 0.0D, 0.0D, 0);
                  tessellator.draw();
              }
              else if (j == 10)
              {
                  for (k = 0; k < 2; ++k)
                  {
                      if (k == 0)
                      {
                          rb.setRenderBounds(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 0.5D);
                      }
  
  