public void setBlockBoundsBasedOnState(IBlockAccess var1, int var2, int var3, int var4) {
      if(!this.isFreestanding) {
         int var5 = var1.getBlockMetadata(var2, var3, var4);
         float var6 = 0.28125F;
         float var7 = 0.78125F;
         float var8 = 0.0F;
         float var9 = 1.0F;
         float var10 = 0.125F;
         this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
         if(var5 == 2) {
            this.setBlockBounds(var8, var6, 1.0F - var10, var9, var7, 1.0F);
         }

         if(var5 == 3) {
            this.setBlockBounds(var8, var6, 0.0F, var9, var7, var10);
         }

         if(var5 == 4) {
            this.setBlockBounds(1.0F - var10, var6, var8, 1.0F, var7, var9);
         }

         if(var5 == 5) {
            this.setBlockBounds(0.0F, var6, var8, var10, var7, var9);
         }

      }
   }