Jump to content

Recommended Posts

Posted

Hello, i want to update my 1.4.7 mod to 1.5.1, but i have i few errors.

 

Errors:

The method renderCornersBottomFace(Block, double, double, double, int, int, RenderBlocks, int) in the type RenderCorners is not applicable for the arguments (Block, double, double, double, Icon, int, RenderBlocks, int)  line 135

Type mismatch: cannot convert from Icon to int   line 340	

 

Code:

package Corners;

import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
import net.minecraft.client.Minecraft;
import net.minecraft.block.Block;
import net.minecraft.world.IBlockAccess;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import org.lwjgl.opengl.GL11;

public class RenderCorners implements ISimpleBlockRenderingHandler
{
    public static boolean field_27511_cfgGrassFix = true;
    public boolean enableAO = false;
    public float aoLightValueThis;
    public float aoLightValueXNeg;
    public float aoLightValueYNeg;
    public float aoLightValueZNeg;
    public float aoLightValueXPos;
    public float aoLightValueYPos;
    public float aoLightValueZPos;
    public float aoLightValueXNegYNegZNeg;
    public float aoLightValueXNegYNeg;
    public float aoLightValueXNegYNegZPos;
    public float aoLightValueYNegZNeg;
    public float aoLightValueYNegZPos;
    public float aoLightValueXPosYNegZNeg;
    public float aoLightValueXPosYNeg;
    public float aoLightValueXPosYNegZPos;
    public float aoLightValueXNegYPosZNeg;
    public float aoLightValueXNegYPos;
    public float aoLightValueXNegYPosZPos;
    public float aoLightValueYPosZNeg;
    public float aoLightValueXPosYPosZNeg;
    public float aoLightValueXPosYPos;
    public float aoLightValueYPosZPos;
    public float aoLightValueXPosYPosZPos;
    public float aoLightValueXNegZNeg;
    public float aoLightValueXPosZNeg;
    public float aoLightValueXNegZPos;
    public float aoLightValueXPosZPos;
    public int field_22352_G = 1;
    public float factorTop = 1.0F;
    public float factorBottom = 0.5F;
    public float factorEast = 0.8F;
    public float factorWest = 0.8F;
    public float factorNorth = 0.6F;
    public float factorSouth = 0.6F;
    public float colorRedTopLeft_TopFace;
    public float colorRedBottomLeft_TopFace;
    public float colorRedBottomRight_TopFace;
    public float colorRedTopRight_TopFace;
    public float colorGreenTopLeft_TopFace;
    public float colorGreenBottomLeft_TopFace;
    public float colorGreenBottomRight_TopFace;
    public float colorGreenTopRight_TopFace;
    public float colorBlueTopLeft_TopFace;
    public float colorBlueBottomLeft_TopFace;
    public float colorBlueBottomRight_TopFace;
    public float colorBlueTopRight_TopFace;
    public float colorRedTopLeft_BottomFace;
    public float colorRedBottomLeft_BottomFace;
    public float colorRedBottomRight_BottomFace;
    public float colorRedTopRight_BottomFace;
    public float colorGreenTopLeft_BottomFace;
    public float colorGreenBottomLeft_BottomFace;
    public float colorGreenBottomRight_BottomFace;
    public float colorGreenTopRight_BottomFace;
    public float colorBlueTopLeft_BottomFace;
    public float colorBlueBottomLeft_BottomFace;
    public float colorBlueBottomRight_BottomFace;
    public float colorBlueTopRight_BottomFace;
    public float colorRedTopLeft_EastFace;
    public float colorRedBottomLeft_EastFace;
    public float colorRedBottomRight_EastFace;
    public float colorRedTopRight_EastFace;
    public float colorGreenTopLeft_EastFace;
    public float colorGreenBottomLeft_EastFace;
    public float colorGreenBottomRight_EastFace;
    public float colorGreenTopRight_EastFace;
    public float colorBlueTopLeft_EastFace;
    public float colorBlueBottomLeft_EastFace;
    public float colorBlueBottomRight_EastFace;
    public float colorBlueTopRight_EastFace;
    public float colorRedTopLeft_WestFace;
    public float colorRedBottomLeft_WestFace;
    public float colorRedBottomRight_WestFace;
    public float colorRedTopRight_WestFace;
    public float colorGreenTopLeft_WestFace;
    public float colorGreenBottomLeft_WestFace;
    public float colorGreenBottomRight_WestFace;
    public float colorGreenTopRight_WestFace;
    public float colorBlueTopLeft_WestFace;
    public float colorBlueBottomLeft_WestFace;
    public float colorBlueBottomRight_WestFace;
    public float colorBlueTopRight_WestFace;
    public float colorRedTopLeft_NorthFace;
    public float colorRedBottomLeft_NorthFace;
    public float colorRedBottomRight_NorthFace;
    public float colorRedTopRight_NorthFace;
    public float colorGreenTopLeft_NorthFace;
    public float colorGreenBottomLeft_NorthFace;
    public float colorGreenBottomRight_NorthFace;
    public float colorGreenTopRight_NorthFace;
    public float colorBlueTopLeft_NorthFace;
    public float colorBlueBottomLeft_NorthFace;
    public float colorBlueBottomRight_NorthFace;
    public float colorBlueTopRight_NorthFace;
    public float colorRedTopLeft_SouthFace;
    public float colorRedBottomLeft_SouthFace;
    public float colorRedBottomRight_SouthFace;
    public float colorRedTopRight_SouthFace;
    public float colorGreenTopLeft_SouthFace;
    public float colorGreenBottomLeft_SouthFace;
    public float colorGreenBottomRight_SouthFace;
    public float colorGreenTopRight_SouthFace;
    public float colorBlueTopLeft_SouthFace;
    public float colorBlueBottomLeft_SouthFace;
    public float colorBlueBottomRight_SouthFace;
    public float colorBlueTopRight_SouthFace;
    public float colorRedSlopes;
    public float colorGreenSlopes;
    public float colorBlueSlopes;

    public void renderInventoryBlock(Block var1, int var2, int var3, RenderBlocks var4)
    {
        Tessellator var5 = Tessellator.instance;

        if (var3 == this.getRenderId())
        {
            var1.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
            GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
            var5.startDrawingQuads();
            var5.setNormal(0.0F, -1.0F, 0.0F);
            this.renderCornersBottomFace(var1, 0.0D, 0.0D, 0.0D, var1.getBlockTextureFromSideAndMetadata(0, var2), var2 + 1, var4, 240);
            var5.draw();
            var5.startDrawingQuads();
            var5.setNormal(0.0F, 1.0F, 0.0F);
            this.renderCornersTopFace(var1, 0.0D, 0.0D, 0.0D, var1.getBlockTextureFromSideAndMetadata(1, var2), var2 + 1, var4, 240);
            var5.draw();
            var5.startDrawingQuads();
            var5.setNormal(0.0F, 0.0F, -1.0F);
            this.renderCornersEastFace(var1, 0.0D, 0.0D, 0.0D, var1.getBlockTextureFromSideAndMetadata(2, var2), var2 + 1, var4, 240);
            var5.draw();
            var5.startDrawingQuads();
            var5.setNormal(0.0F, 0.0F, 1.0F);
            this.renderCornersWestFace(var1, 0.0D, 0.0D, 0.0D, var1.getBlockTextureFromSideAndMetadata(3, var2), var2 + 1, var4, 240);
            var5.draw();
            var5.startDrawingQuads();
            var5.setNormal(-1.0F, 0.0F, 0.0F);
            this.renderCornersNorthFace(var1, 0.0D, 0.0D, 0.0D, var1.getBlockTextureFromSideAndMetadata(4, var2), var2 + 1, var4, 240);
            var5.draw();
            var5.startDrawingQuads();
            var5.setNormal(1.0F, 0.0F, 0.0F);
            this.renderCornersSouthFace(var1, 0.0D, 0.0D, 0.0D, var1.getBlockTextureFromSideAndMetadata(5, var2), var2 + 1, var4, 240);
            var5.draw();
            GL11.glTranslatef(0.5F, 0.5F, 0.5F);
        }

        var1.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
    }

    public boolean renderWorldBlock(IBlockAccess var1, int var2, int var3, int var4, Block var5, int var6, RenderBlocks var7)
    {
        return var6 == this.getRenderId() ? this.renderBlockCorners(var5, var2, var3, var4, var7, var1) : false;
    }

    public boolean shouldRender3DInInventory()
    {
        return true;
    }

    public int getRenderId()
    {
        return Corners.CornersRoofRenderID;
    }

    public boolean renderBlockCorners(Block var1, int var2, int var3, int var4, RenderBlocks var5, IBlockAccess var6)
    {
        int var7 = var6.getBlockMetadata(var2, var3, var4);
        int var8 = var1.colorMultiplier(var6, var2, var3, var4);
        float var9 = (float)(var8 >> 16 & 255) / 255.0F;
        float var10 = (float)(var8 >> 8 & 255) / 255.0F;
        float var11 = (float)(var8 & 255) / 255.0F;
        return Minecraft.isAmbientOcclusionEnabled() ? this.renderCornersBlockWithAmbientOcclusion(var1, var2, var3, var4, var9, var10, var11, var7, var5, var6) : this.renderCornersBlockWithColorMultiplier(var1, var2, var3, var4, var9, var10, var11, var7, var5, var6);
    }

    public boolean renderCornersBlockWithAmbientOcclusion(Block var1, int var2, int var3, int var4, float var5, float var6, float var7, int var8, RenderBlocks var9, IBlockAccess var10)
    {
        this.enableAO = true;
        boolean var11 = false;
        boolean var12 = true;
        boolean var13 = true;
        boolean var14 = true;
        boolean var15 = true;
        boolean var16 = true;
        boolean var17 = true;
        this.aoLightValueThis = var1.getAmbientOcclusionLightValue(var10, var2, var3, var4);
        this.aoLightValueXNeg = var1.getAmbientOcclusionLightValue(var10, var2 - 1, var3, var4);
        this.aoLightValueYNeg = var1.getAmbientOcclusionLightValue(var10, var2, var3 - 1, var4);
        this.aoLightValueZNeg = var1.getAmbientOcclusionLightValue(var10, var2, var3, var4 - 1);
        this.aoLightValueXPos = var1.getAmbientOcclusionLightValue(var10, var2 + 1, var3, var4);
        this.aoLightValueYPos = var1.getAmbientOcclusionLightValue(var10, var2, var3 + 1, var4);
        this.aoLightValueZPos = var1.getAmbientOcclusionLightValue(var10, var2, var3, var4 + 1);
        this.aoLightValueXPosYPos = var1.getAmbientOcclusionLightValue(var10, var2 + 1, var3 + 1, var4);
        this.aoLightValueXPosYNeg = var1.getAmbientOcclusionLightValue(var10, var2 + 1, var3 - 1, var4);
        this.aoLightValueXPosZPos = var1.getAmbientOcclusionLightValue(var10, var2 + 1, var3, var4 + 1);
        this.aoLightValueXPosZNeg = var1.getAmbientOcclusionLightValue(var10, var2 + 1, var3, var4 - 1);
        this.aoLightValueXNegYPos = var1.getAmbientOcclusionLightValue(var10, var2 - 1, var3 + 1, var4);
        this.aoLightValueXNegYNeg = var1.getAmbientOcclusionLightValue(var10, var2 - 1, var3 - 1, var4);
        this.aoLightValueXNegZNeg = var1.getAmbientOcclusionLightValue(var10, var2 - 1, var3, var4 - 1);
        this.aoLightValueXNegZPos = var1.getAmbientOcclusionLightValue(var10, var2 - 1, var3, var4 + 1);
        this.aoLightValueYPosZPos = var1.getAmbientOcclusionLightValue(var10, var2, var3 + 1, var4 + 1);
        this.aoLightValueYPosZNeg = var1.getAmbientOcclusionLightValue(var10, var2, var3 + 1, var4 - 1);
        this.aoLightValueYNegZPos = var1.getAmbientOcclusionLightValue(var10, var2, var3 - 1, var4 + 1);
        this.aoLightValueYNegZNeg = var1.getAmbientOcclusionLightValue(var10, var2, var3 - 1, var4 - 1);
        this.aoLightValueXPosYPosZPos = var1.getAmbientOcclusionLightValue(var10, var2 + 1, var3 + 1, var4 + 1);
        this.aoLightValueXPosYNegZPos = var1.getAmbientOcclusionLightValue(var10, var2 + 1, var3 - 1, var4 + 1);
        this.aoLightValueXPosYPosZNeg = var1.getAmbientOcclusionLightValue(var10, var2 + 1, var3 + 1, var4 - 1);
        this.aoLightValueXPosYNegZNeg = var1.getAmbientOcclusionLightValue(var10, var2 + 1, var3 - 1, var4 - 1);
        this.aoLightValueXNegYPosZPos = var1.getAmbientOcclusionLightValue(var10, var2 - 1, var3 + 1, var4 + 1);
        this.aoLightValueXNegYNegZPos = var1.getAmbientOcclusionLightValue(var10, var2 - 1, var3 - 1, var4 + 1);
        this.aoLightValueXNegYPosZNeg = var1.getAmbientOcclusionLightValue(var10, var2 - 1, var3 + 1, var4 - 1);
        this.aoLightValueXNegYNegZNeg = var1.getAmbientOcclusionLightValue(var10, var2 - 1, var3 - 1, var4 - 1);

        if (var1.blockID == 3)
        {
            var17 = false;
            var16 = false;
            var15 = false;
            var14 = false;
            var12 = false;
        }

        float var19;
        float var18;
        float var21;
        float var20;

        if (this.field_22352_G > 0)
        {
            var18 = (this.aoLightValueXNegYNegZPos + this.aoLightValueXNegYNeg + this.aoLightValueYNegZPos + this.aoLightValueYNeg) / 4.0F;
            var21 = (this.aoLightValueYNegZPos + this.aoLightValueYNeg + this.aoLightValueXPosYNegZPos + this.aoLightValueXPosYNeg) / 4.0F;
            var20 = (this.aoLightValueYNeg + this.aoLightValueYNegZNeg + this.aoLightValueXPosYNeg + this.aoLightValueXPosYNegZNeg) / 4.0F;
            var19 = (this.aoLightValueXNegYNeg + this.aoLightValueXNegYNegZNeg + this.aoLightValueYNeg + this.aoLightValueYNegZNeg) / 4.0F;
        }
        else
        {
            var21 = this.aoLightValueYNeg;
            var20 = this.aoLightValueYNeg;
            var19 = this.aoLightValueYNeg;
            var18 = this.aoLightValueYNeg;
        }

        this.colorRedTopLeft_BottomFace = this.colorRedBottomLeft_BottomFace = this.colorRedBottomRight_BottomFace = this.colorRedTopRight_BottomFace = (var12 ? var5 : 1.0F) * 0.5F;
        this.colorGreenTopLeft_BottomFace = this.colorGreenBottomLeft_BottomFace = this.colorGreenBottomRight_BottomFace = this.colorGreenTopRight_BottomFace = (var12 ? var6 : 1.0F) * 0.5F;
        this.colorBlueTopLeft_BottomFace = this.colorBlueBottomLeft_BottomFace = this.colorBlueBottomRight_BottomFace = this.colorBlueTopRight_BottomFace = (var12 ? var7 : 1.0F) * 0.5F;
        this.colorRedTopLeft_BottomFace *= var18;
        this.colorGreenTopLeft_BottomFace *= var18;
        this.colorBlueTopLeft_BottomFace *= var18;
        this.colorRedBottomLeft_BottomFace *= var19;
        this.colorGreenBottomLeft_BottomFace *= var19;
        this.colorBlueBottomLeft_BottomFace *= var19;
        this.colorRedBottomRight_BottomFace *= var20;
        this.colorGreenBottomRight_BottomFace *= var20;
        this.colorBlueBottomRight_BottomFace *= var20;
        this.colorRedTopRight_BottomFace *= var21;
        this.colorGreenTopRight_BottomFace *= var21;
        this.colorBlueTopRight_BottomFace *= var21;
        float var23;
        float var22;
        float var25;
        float var24;

        if (this.field_22352_G > 0)
        {
            var25 = (this.aoLightValueXNegYPosZPos + this.aoLightValueXNegYPos + this.aoLightValueYPosZPos + this.aoLightValueYPos) / 4.0F;
            var22 = (this.aoLightValueYPosZPos + this.aoLightValueYPos + this.aoLightValueXPosYPosZPos + this.aoLightValueXPosYPos) / 4.0F;
            var23 = (this.aoLightValueYPos + this.aoLightValueYPosZNeg + this.aoLightValueXPosYPos + this.aoLightValueXPosYPosZNeg) / 4.0F;
            var24 = (this.aoLightValueXNegYPos + this.aoLightValueXNegYPosZNeg + this.aoLightValueYPos + this.aoLightValueYPosZNeg) / 4.0F;
        }
        else
        {
            var25 = this.aoLightValueYPos;
            var24 = this.aoLightValueYPos;
            var23 = this.aoLightValueYPos;
            var22 = this.aoLightValueYPos;
        }

        this.colorRedTopLeft_TopFace = this.colorRedBottomLeft_TopFace = this.colorRedBottomRight_TopFace = this.colorRedTopRight_TopFace = var13 ? var5 : 1.0F;
        this.colorGreenTopLeft_TopFace = this.colorGreenBottomLeft_TopFace = this.colorGreenBottomRight_TopFace = this.colorGreenTopRight_TopFace = var13 ? var6 : 1.0F;
        this.colorBlueTopLeft_TopFace = this.colorBlueBottomLeft_TopFace = this.colorBlueBottomRight_TopFace = this.colorBlueTopRight_TopFace = var13 ? var7 : 1.0F;
        this.colorRedTopLeft_TopFace *= var22;
        this.colorGreenTopLeft_TopFace *= var22;
        this.colorBlueTopLeft_TopFace *= var22;
        this.colorRedBottomLeft_TopFace *= var23;
        this.colorGreenBottomLeft_TopFace *= var23;
        this.colorBlueBottomLeft_TopFace *= var23;
        this.colorRedBottomRight_TopFace *= var24;
        this.colorGreenBottomRight_TopFace *= var24;
        this.colorBlueBottomRight_TopFace *= var24;
        this.colorRedTopRight_TopFace *= var25;
        this.colorGreenTopRight_TopFace *= var25;
        this.colorBlueTopRight_TopFace *= var25;
        float var27;
        float var26;
        float var29;
        float var28;

        if (this.field_22352_G > 0)
        {
            var26 = (this.aoLightValueXNegZNeg + this.aoLightValueXNegYPosZNeg + this.aoLightValueZNeg + this.aoLightValueYPosZNeg) / 4.0F;
            var27 = (this.aoLightValueZNeg + this.aoLightValueYPosZNeg + this.aoLightValueXPosZNeg + this.aoLightValueXPosYPosZNeg) / 4.0F;
            var28 = (this.aoLightValueYNegZNeg + this.aoLightValueZNeg + this.aoLightValueXPosYNegZNeg + this.aoLightValueXPosZNeg) / 4.0F;
            var29 = (this.aoLightValueXNegYNegZNeg + this.aoLightValueXNegZNeg + this.aoLightValueYNegZNeg + this.aoLightValueZNeg) / 4.0F;
        }
        else
        {
            var29 = this.aoLightValueZNeg;
            var28 = this.aoLightValueZNeg;
            var27 = this.aoLightValueZNeg;
            var26 = this.aoLightValueZNeg;
        }

        this.colorRedTopLeft_EastFace = this.colorRedBottomLeft_EastFace = this.colorRedBottomRight_EastFace = this.colorRedTopRight_EastFace = (var14 ? var5 : 1.0F) * 0.8F;
        this.colorGreenTopLeft_EastFace = this.colorGreenBottomLeft_EastFace = this.colorGreenBottomRight_EastFace = this.colorGreenTopRight_EastFace = (var14 ? var6 : 1.0F) * 0.8F;
        this.colorBlueTopLeft_EastFace = this.colorBlueBottomLeft_EastFace = this.colorBlueBottomRight_EastFace = this.colorBlueTopRight_EastFace = (var14 ? var7 : 1.0F) * 0.8F;
        this.colorRedTopLeft_EastFace *= var26;
        this.colorGreenTopLeft_EastFace *= var26;
        this.colorBlueTopLeft_EastFace *= var26;
        this.colorRedBottomLeft_EastFace *= var27;
        this.colorGreenBottomLeft_EastFace *= var27;
        this.colorBlueBottomLeft_EastFace *= var27;
        this.colorRedBottomRight_EastFace *= var28;
        this.colorGreenBottomRight_EastFace *= var28;
        this.colorBlueBottomRight_EastFace *= var28;
        this.colorRedTopRight_EastFace *= var29;
        this.colorGreenTopRight_EastFace *= var29;
        this.colorBlueTopRight_EastFace *= var29;
        int var30 = var1.getBlockTexture(var10, var2, var3, var4, 2);
        float var31;
        float var34;
        float var32;
        float var33;

        if (this.field_22352_G > 0)
        {
            var31 = (this.aoLightValueXNegZPos + this.aoLightValueXNegYPosZPos + this.aoLightValueZPos + this.aoLightValueYPosZPos) / 4.0F;
            var34 = (this.aoLightValueZPos + this.aoLightValueYPosZPos + this.aoLightValueXPosZPos + this.aoLightValueXPosYPosZPos) / 4.0F;
            var33 = (this.aoLightValueYNegZPos + this.aoLightValueZPos + this.aoLightValueXPosYNegZPos + this.aoLightValueXPosZPos) / 4.0F;
            var32 = (this.aoLightValueXNegYNegZPos + this.aoLightValueXNegZPos + this.aoLightValueYNegZPos + this.aoLightValueZPos) / 4.0F;
        }
        else
        {
            var34 = this.aoLightValueZPos;
            var33 = this.aoLightValueZPos;
            var32 = this.aoLightValueZPos;
            var31 = this.aoLightValueZPos;
        }

        this.colorRedTopLeft_WestFace = this.colorRedBottomLeft_WestFace = this.colorRedBottomRight_WestFace = this.colorRedTopRight_WestFace = (var15 ? var5 : 1.0F) * 0.8F;
        this.colorGreenTopLeft_WestFace = this.colorGreenBottomLeft_WestFace = this.colorGreenBottomRight_WestFace = this.colorGreenTopRight_WestFace = (var15 ? var6 : 1.0F) * 0.8F;
        this.colorBlueTopLeft_WestFace = this.colorBlueBottomLeft_WestFace = this.colorBlueBottomRight_WestFace = this.colorBlueTopRight_WestFace = (var15 ? var7 : 1.0F) * 0.8F;
        this.colorRedTopLeft_WestFace *= var31;
        this.colorGreenTopLeft_WestFace *= var31;
        this.colorBlueTopLeft_WestFace *= var31;
        this.colorRedBottomLeft_WestFace *= var32;
        this.colorGreenBottomLeft_WestFace *= var32;
        this.colorBlueBottomLeft_WestFace *= var32;
        this.colorRedBottomRight_WestFace *= var33;
        this.colorGreenBottomRight_WestFace *= var33;
        this.colorBlueBottomRight_WestFace *= var33;
        this.colorRedTopRight_WestFace *= var34;
        this.colorGreenTopRight_WestFace *= var34;
        this.colorBlueTopRight_WestFace *= var34;
        int var35 = var1.getBlockTexture(var10, var2, var3, var4, 3);
        float var38;
        float var39;
        float var36;
        float var37;

        if (this.field_22352_G > 0)
        {
            var39 = (this.aoLightValueXNegYNeg + this.aoLightValueXNegYNegZPos + this.aoLightValueXNeg + this.aoLightValueXNegZPos) / 4.0F;
            var36 = (this.aoLightValueXNeg + this.aoLightValueXNegZPos + this.aoLightValueXNegYPos + this.aoLightValueXNegYPosZPos) / 4.0F;
            var37 = (this.aoLightValueXNegZNeg + this.aoLightValueXNeg + this.aoLightValueXNegYPosZNeg + this.aoLightValueXNegYPos) / 4.0F;
            var38 = (this.aoLightValueXNegYNegZNeg + this.aoLightValueXNegYNeg + this.aoLightValueXNegZNeg + this.aoLightValueXNeg) / 4.0F;
        }
        else
        {
            var39 = this.aoLightValueXNeg;
            var38 = this.aoLightValueXNeg;
            var37 = this.aoLightValueXNeg;
            var36 = this.aoLightValueXNeg;
        }

        this.colorRedTopLeft_NorthFace = this.colorRedBottomLeft_NorthFace = this.colorRedBottomRight_NorthFace = this.colorRedTopRight_NorthFace = (var16 ? var5 : 1.0F) * 0.6F;
        this.colorGreenTopLeft_NorthFace = this.colorGreenBottomLeft_NorthFace = this.colorGreenBottomRight_NorthFace = this.colorGreenTopRight_NorthFace = (var16 ? var6 : 1.0F) * 0.6F;
        this.colorBlueTopLeft_NorthFace = this.colorBlueBottomLeft_NorthFace = this.colorBlueBottomRight_NorthFace = this.colorBlueTopRight_NorthFace = (var16 ? var7 : 1.0F) * 0.6F;
        this.colorRedTopLeft_NorthFace *= var36;
        this.colorGreenTopLeft_NorthFace *= var36;
        this.colorBlueTopLeft_NorthFace *= var36;
        this.colorRedBottomLeft_NorthFace *= var37;
        this.colorGreenBottomLeft_NorthFace *= var37;
        this.colorBlueBottomLeft_NorthFace *= var37;
        this.colorRedBottomRight_NorthFace *= var38;
        this.colorGreenBottomRight_NorthFace *= var38;
        this.colorBlueBottomRight_NorthFace *= var38;
        this.colorRedTopRight_NorthFace *= var39;
        this.colorGreenTopRight_NorthFace *= var39;
        this.colorBlueTopRight_NorthFace *= var39;
        int var40 = var1.getBlockTexture(var10, var2, var3, var4, 4);
        float var42;
        float var43;
        float var41;
        float var44;

        if (this.field_22352_G > 0)
        {
            var41 = (this.aoLightValueXPosYNeg + this.aoLightValueXPosYNegZPos + this.aoLightValueXPos + this.aoLightValueXPosZPos) / 4.0F;
            var44 = (this.aoLightValueXPos + this.aoLightValueXPosZPos + this.aoLightValueXPosYPos + this.aoLightValueXPosYPosZPos) / 4.0F;
            var43 = (this.aoLightValueXPosZNeg + this.aoLightValueXPos + this.aoLightValueXPosYPosZNeg + this.aoLightValueXPosYPos) / 4.0F;
            var42 = (this.aoLightValueXPosYNegZNeg + this.aoLightValueXPosYNeg + this.aoLightValueXPosZNeg + this.aoLightValueXPos) / 4.0F;
        }
        else
        {
            var44 = this.aoLightValueXPos;
            var43 = this.aoLightValueXPos;
            var42 = this.aoLightValueXPos;
            var41 = this.aoLightValueXPos;
        }

        this.colorRedTopLeft_SouthFace = this.colorRedBottomLeft_SouthFace = this.colorRedBottomRight_SouthFace = this.colorRedTopRight_SouthFace = (var17 ? var5 : 1.0F) * 0.6F;
        this.colorGreenTopLeft_SouthFace = this.colorGreenBottomLeft_SouthFace = this.colorGreenBottomRight_SouthFace = this.colorGreenTopRight_SouthFace = (var17 ? var6 : 1.0F) * 0.6F;
        this.colorBlueTopLeft_SouthFace = this.colorBlueBottomLeft_SouthFace = this.colorBlueBottomRight_SouthFace = this.colorBlueTopRight_SouthFace = (var17 ? var7 : 1.0F) * 0.6F;
        this.colorRedTopLeft_SouthFace *= var41;
        this.colorGreenTopLeft_SouthFace *= var41;
        this.colorBlueTopLeft_SouthFace *= var41;
        this.colorRedBottomLeft_SouthFace *= var42;
        this.colorGreenBottomLeft_SouthFace *= var42;
        this.colorBlueBottomLeft_SouthFace *= var42;
        this.colorRedBottomRight_SouthFace *= var43;
        this.colorGreenBottomRight_SouthFace *= var43;
        this.colorBlueBottomRight_SouthFace *= var43;
        this.colorRedTopRight_SouthFace *= var44;
        this.colorGreenTopRight_SouthFace *= var44;
        this.colorBlueTopRight_SouthFace *= var44;
        int var45 = var1.getBlockTexture(var10, var2, var3, var4, 5);
        this.colorRedSlopes = var5;
        this.colorGreenSlopes = var6;
        this.colorBlueSlopes = var7;

        if (var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2, var3 - 1, var4, 0))
        {
            this.renderCornersBottomFace(var1, (double)var2, (double)var3, (double)var4, var1.getBlockTexture(var10, var2, var3, var4, 0), var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            var11 = true;
        }

        if (var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2, var3 + 1, var4, 1))
        {
            this.renderCornersTopFace(var1, (double)var2, (double)var3, (double)var4, var1.getBlockTexture(var10, var2, var3, var4, 0), var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            var11 = true;
        }

        if (var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2, var3, var4 - 1, 2))
        {
            this.renderCornersEastFace(var1, (double)var2, (double)var3, (double)var4, var30, var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));

            if (field_27511_cfgGrassFix && var30 == 3)
            {
                this.colorRedTopLeft_EastFace *= var5;
                this.colorRedBottomLeft_EastFace *= var5;
                this.colorRedBottomRight_EastFace *= var5;
                this.colorRedTopRight_EastFace *= var5;
                this.colorGreenTopLeft_EastFace *= var6;
                this.colorGreenBottomLeft_EastFace *= var6;
                this.colorGreenBottomRight_EastFace *= var6;
                this.colorGreenTopRight_EastFace *= var6;
                this.colorBlueTopLeft_EastFace *= var7;
                this.colorBlueBottomLeft_EastFace *= var7;
                this.colorBlueBottomRight_EastFace *= var7;
                this.colorBlueTopRight_EastFace *= var7;
                this.renderCornersEastFace(var1, (double)var2, (double)var3, (double)var4, 38, var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            }

            var11 = true;
        }

        if (var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2, var3, var4 + 1, 3))
        {
            this.renderCornersWestFace(var1, (double)var2, (double)var3, (double)var4, var35, var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));

            if (field_27511_cfgGrassFix && var35 == 3)
            {
                this.colorRedTopLeft_WestFace *= var5;
                this.colorRedBottomLeft_WestFace *= var5;
                this.colorRedBottomRight_WestFace *= var5;
                this.colorRedTopRight_WestFace *= var5;
                this.colorGreenTopLeft_WestFace *= var6;
                this.colorGreenBottomLeft_WestFace *= var6;
                this.colorGreenBottomRight_WestFace *= var6;
                this.colorGreenTopRight_WestFace *= var6;
                this.colorBlueTopLeft_WestFace *= var7;
                this.colorBlueBottomLeft_WestFace *= var7;
                this.colorBlueBottomRight_WestFace *= var7;
                this.colorBlueTopRight_WestFace *= var7;
                this.renderCornersWestFace(var1, (double)var2, (double)var3, (double)var4, 38, var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            }

            var11 = true;
        }

        if (var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2 - 1, var3, var4, 4))
        {
            this.renderCornersNorthFace(var1, (double)var2, (double)var3, (double)var4, var40, var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));

            if (field_27511_cfgGrassFix && var40 == 3)
            {
                this.colorRedTopLeft_NorthFace *= var5;
                this.colorRedBottomLeft_NorthFace *= var5;
                this.colorRedBottomRight_NorthFace *= var5;
                this.colorRedTopRight_NorthFace *= var5;
                this.colorGreenTopLeft_NorthFace *= var6;
                this.colorGreenBottomLeft_NorthFace *= var6;
                this.colorGreenBottomRight_NorthFace *= var6;
                this.colorGreenTopRight_NorthFace *= var6;
                this.colorBlueTopLeft_NorthFace *= var7;
                this.colorBlueBottomLeft_NorthFace *= var7;
                this.colorBlueBottomRight_NorthFace *= var7;
                this.colorBlueTopRight_NorthFace *= var7;
                this.renderCornersNorthFace(var1, (double)var2, (double)var3, (double)var4, 38, var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            }

            var11 = true;
        }

        if (var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2 + 1, var3, var4, 5))
        {
            this.renderCornersSouthFace(var1, (double)var2, (double)var3, (double)var4, var45, var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));

            if (field_27511_cfgGrassFix && var45 == 3)
            {
                this.colorRedTopLeft_SouthFace *= var5;
                this.colorRedBottomLeft_SouthFace *= var5;
                this.colorRedBottomRight_SouthFace *= var5;
                this.colorRedTopRight_SouthFace *= var5;
                this.colorGreenTopLeft_SouthFace *= var6;
                this.colorGreenBottomLeft_SouthFace *= var6;
                this.colorGreenBottomRight_SouthFace *= var6;
                this.colorGreenTopRight_SouthFace *= var6;
                this.colorBlueTopLeft_SouthFace *= var7;
                this.colorBlueBottomLeft_SouthFace *= var7;
                this.colorBlueBottomRight_SouthFace *= var7;
                this.colorBlueTopRight_SouthFace *= var7;
                this.renderCornersSouthFace(var1, (double)var2, (double)var3, (double)var4, 38, var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            }

            var11 = true;
        }

        this.enableAO = false;
        return var11;
    }

    public boolean renderCornersBlockWithColorMultiplier(Block var1, int var2, int var3, int var4, float var5, float var6, float var7, int var8, RenderBlocks var9, IBlockAccess var10)
    {
        Tessellator var11 = Tessellator.instance;
        boolean var12 = false;
        float var13 = 0.5F;
        float var14 = 1.0F;
        float var15 = 0.8F;
        float var16 = 0.6F;
        float var17 = var14 * var5;
        float var18 = var14 * var6;
        float var19 = var14 * var7;

        if (var1 == Block.grass)
        {
            var7 = 1.0F;
            var6 = 1.0F;
            var5 = 1.0F;
        }

        float var20 = var13 * var5;
        float var21 = var15 * var5;
        float var22 = var16 * var5;
        float var23 = var13 * var6;
        float var24 = var15 * var6;
        float var25 = var16 * var6;
        float var26 = var13 * var7;
        float var27 = var15 * var7;
        float var28 = var16 * var7;
        float var29 = var1.getAmbientOcclusionLightValue(var10, var2, var3, var4);
        float var30;

        if ((var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2, var3 - 1, var4, 0)) && var8 / 4 != 1 && var8 / 4 != 3)
        {
            var30 = var1.getAmbientOcclusionLightValue(var10, var2, var3 - 1, var4);
            var11.setColorOpaque_F(var20 * var30, var23 * var30, var26 * var30);
            this.renderCornersBottomFace(var1, (double)var2, (double)var3, (double)var4, var1.getBlockTexture(var10, var2, var3, var4, 0), var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            var12 = true;
        }

        if ((var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2, var3 + 1, var4, 1)) && var8 / 4 != 0 && var8 / 4 != 2)
        {
            var30 = var1.getAmbientOcclusionLightValue(var10, var2, var3 + 1, var4);

            if (var1.getBlockBoundsMaxY() != 1.0D && !var1.blockMaterial.isLiquid())
            {
                var30 = var29;
            }

            var11.setColorOpaque_F(var17 * var30, var18 * var30, var19 * var30);
            this.renderCornersTopFace(var1, (double)var2, (double)var3, (double)var4, var1.getBlockTexture(var10, var2, var3, var4, 1), var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            var12 = true;
        }

        if (var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2, var3, var4 - 1, 2) || var8 % 2 == 0)
        {
            var30 = var1.getAmbientOcclusionLightValue(var10, var2, var3, var4 - 1);

            if (var8 % 2 == 0)
            {
                var30 = var29;
            }

            var11.setColorOpaque_F(var21 * var30, var24 * var30, var27 * var30);
            this.renderCornersEastFace(var1, (double)var2, (double)var3, (double)var4, var1.getBlockTexture(var10, var2, var3, var4, 2), var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            var12 = true;
        }

        if (var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2, var3, var4 + 1, 3) || var8 % 2 == 1)
        {
            var30 = var1.getAmbientOcclusionLightValue(var10, var2, var3, var4 + 1);

            if (var8 % 2 == 1)
            {
                var30 = var29;
            }

            var11.setColorOpaque_F(var21 * var30, var24 * var30, var27 * var30);
            this.renderCornersWestFace(var1, (double)var2, (double)var3, (double)var4, var1.getBlockTexture(var10, var2, var3, var4, 3), var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            var12 = true;
        }

        if (var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2 - 1, var3, var4, 4) || var8 == 0 || var8 == 3 || var8 == 4 || var8 == 7 || var8 == 11 || var8 == 15)
        {
            var30 = var1.getAmbientOcclusionLightValue(var10, var2 - 1, var3, var4);

            if (var8 == 0 || var8 == 3 || var8 == 4 || var8 == 7 || var8 == 11 || var8 == 15)
            {
                var30 = var29;
            }

            var11.setColorOpaque_F(var22 * var30, var25 * var30, var28 * var30);
            this.renderCornersNorthFace(var1, (double)var2, (double)var3, (double)var4, var1.getBlockTexture(var10, var2, var3, var4, 4), var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            var12 = true;
        }

        if (var9.renderAllFaces || var1.shouldSideBeRendered(var10, var2 + 1, var3, var4, 5) || var8 == 1 || var8 == 2 || var8 == 5 || var8 == 6 || var8 == 10 || var8 == 14)
        {
            var30 = var1.getAmbientOcclusionLightValue(var10, var2 + 1, var3, var4);

            if (var8 == 1 || var8 == 2 || var8 == 5 || var8 == 6 || var8 == 10 || var8 == 14)
            {
                var30 = var29;
            }

            var11.setColorOpaque_F(var22 * var30, var25 * var30, var28 * var30);
            this.renderCornersSouthFace(var1, (double)var2, (double)var3, (double)var4, var1.getBlockTexture(var10, var2, var3, var4, 5), var8, var9, var1.getMixedBrightnessForBlock(var10, var2, var3, var4));
            var12 = true;
        }

        return var12;
    }

    public void renderCornersBottomFace(Block var1, double var2, double var4, double var6, int var8, int var9, RenderBlocks var10, int var11)
    {
        Tessellator var12 = Tessellator.instance;
        var12.setBrightness(var11);

        int var13 = (var8 & 15) << 4;
        int var14 = var8 & 240;
        double var15 = ((double)var13 + var1.getBlockBoundsMinX() * 16.0D) / 256.0D;
        double var17 = ((double)var13 + var1.getBlockBoundsMaxX() * 16.0D - 0.01D) / 256.0D;
        double var19 = ((double)var14 + var1.getBlockBoundsMinZ() * 16.0D) / 256.0D;
        double var21 = ((double)var14 + var1.getBlockBoundsMaxZ() * 16.0D - 0.01D) / 256.0D;

        if (var1.getBlockBoundsMinX() < 0.0D || var1.getBlockBoundsMaxX() > 1.0D)
        {
            var15 = (double)(((float)var13 + 0.0F) / 256.0F);
            var17 = (double)(((float)var13 + 15.99F) / 256.0F);
        }

        if (var1.getBlockBoundsMinZ() < 0.0D || var1.getBlockBoundsMaxZ() > 1.0D)
        {
            var19 = (double)(((float)var14 + 0.0F) / 256.0F);
            var21 = (double)(((float)var14 + 15.99F) / 256.0F);
        }

        double var23 = var2 + var1.getBlockBoundsMinX();
        double var25 = var2 + var1.getBlockBoundsMaxX();
        double var27 = var4 + var1.getBlockBoundsMinY();
        double var29 = var6 + var1.getBlockBoundsMinZ();
        double var31 = var6 + var1.getBlockBoundsMaxZ();

        if (this.enableAO)
        {
            if (var9 / 4 == 0)
            {
                var12.setColorOpaque_F(this.colorRedTopLeft_BottomFace, this.colorGreenTopLeft_BottomFace, this.colorBlueTopLeft_BottomFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedBottomLeft_BottomFace, this.colorGreenBottomLeft_BottomFace, this.colorBlueBottomLeft_BottomFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedBottomRight_BottomFace, this.colorGreenBottomRight_BottomFace, this.colorBlueBottomRight_BottomFace);
                var12.addVertexWithUV(var25, var27, var29, var17, var19);
                var12.setColorOpaque_F(this.colorRedTopRight_BottomFace, this.colorGreenTopRight_BottomFace, this.colorBlueTopRight_BottomFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
            }
            else if (var9 == 
            {
                var12.setColorOpaque_F(this.colorRedTopLeft_BottomFace, this.colorGreenTopLeft_BottomFace, this.colorBlueTopLeft_BottomFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedBottomRight_BottomFace, this.colorGreenBottomRight_BottomFace, this.colorBlueBottomRight_BottomFace);
                var12.addVertexWithUV(var25, var27, var29, var17, var19);
                var12.setColorOpaque_F(this.colorRedBottomRight_BottomFace, this.colorGreenBottomRight_BottomFace, this.colorBlueBottomRight_BottomFace);
                var12.addVertexWithUV(var25, var27, var29, var17, var19);
                var12.setColorOpaque_F(this.colorRedTopRight_BottomFace, this.colorGreenTopRight_BottomFace, this.colorBlueTopRight_BottomFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
            }
            else if (var9 == 9)
            {
                var12.setColorOpaque_F(this.colorRedTopLeft_BottomFace, this.colorGreenTopLeft_BottomFace, this.colorBlueTopLeft_BottomFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedBottomLeft_BottomFace, this.colorGreenBottomLeft_BottomFace, this.colorBlueBottomLeft_BottomFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedBottomRight_BottomFace, this.colorGreenBottomRight_BottomFace, this.colorBlueBottomRight_BottomFace);
                var12.addVertexWithUV(var25, var27, var29, var17, var19);
                var12.setColorOpaque_F(this.colorRedTopLeft_BottomFace, this.colorGreenTopLeft_BottomFace, this.colorBlueTopLeft_BottomFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
            }
            else if (var9 == 10)
            {
                var12.setColorOpaque_F(this.colorRedTopLeft_BottomFace, this.colorGreenTopLeft_BottomFace, this.colorBlueTopLeft_BottomFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedBottomLeft_BottomFace, this.colorGreenBottomLeft_BottomFace, this.colorBlueBottomLeft_BottomFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedTopRight_BottomFace, this.colorGreenTopRight_BottomFace, this.colorBlueTopRight_BottomFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
                var12.setColorOpaque_F(this.colorRedTopRight_BottomFace, this.colorGreenTopRight_BottomFace, this.colorBlueTopRight_BottomFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
            }
            else if (var9 == 11)
            {
                var12.setColorOpaque_F(this.colorRedBottomLeft_BottomFace, this.colorGreenBottomLeft_BottomFace, this.colorBlueBottomLeft_BottomFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedBottomLeft_BottomFace, this.colorGreenBottomLeft_BottomFace, this.colorBlueBottomLeft_BottomFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedBottomRight_BottomFace, this.colorGreenBottomRight_BottomFace, this.colorBlueBottomRight_BottomFace);
                var12.addVertexWithUV(var25, var27, var29, var17, var19);
                var12.setColorOpaque_F(this.colorRedTopRight_BottomFace, this.colorGreenTopRight_BottomFace, this.colorBlueTopRight_BottomFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
            }
        }
        else if (var9 / 4 == 0)
        {
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var25, var27, var29, var17, var19);
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
        }
        else if (var9 == 
        {
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
            var12.addVertexWithUV(var25, var27, var29, var17, var19);
            var12.addVertexWithUV(var25, var27, var29, var17, var19);
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
        }
        else if (var9 == 9)
        {
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var25, var27, var29, var17, var19);
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
        }
        else if (var9 == 10)
        {
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
        }
        else if (var9 == 11)
        {
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var25, var27, var29, var17, var19);
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
        }
    }

    public void renderCornersTopFace(Block var1, double var2, double var4, double var6, int var8, int var9, RenderBlocks var10, int var11)
    {
        Tessellator var12 = Tessellator.instance;
        var12.setBrightness(var11);

        int var13 = (var8 & 15) << 4;
        int var14 = var8 & 240;
        double var15 = ((double)var13 + var1.getBlockBoundsMinX() * 16.0D) / 256.0D;
        double var17 = ((double)var13 + var1.getBlockBoundsMaxX() * 16.0D - 0.01D) / 256.0D;
        double var19 = ((double)var14 + var1.getBlockBoundsMinZ() * 16.0D) / 256.0D;
        double var21 = ((double)var14 + var1.getBlockBoundsMaxZ() * 16.0D - 0.01D) / 256.0D;

        if (var1.getBlockBoundsMinX() < 0.0D || var1.getBlockBoundsMaxX() > 1.0D)
        {
            var15 = (double)(((float)var13 + 0.0F) / 256.0F);
            var17 = (double)(((float)var13 + 15.99F) / 256.0F);
        }

        if (var1.getBlockBoundsMinZ() < 0.0D || var1.getBlockBoundsMaxZ() > 1.0D)
        {
            var19 = (double)(((float)var14 + 0.0F) / 256.0F);
            var21 = (double)(((float)var14 + 15.99F) / 256.0F);
        }

        double var23 = var2 + var1.getBlockBoundsMinX();
        double var25 = var2 + var1.getBlockBoundsMaxX();
        double var27 = var4 + var1.getBlockBoundsMaxY();
        double var29 = var6 + var1.getBlockBoundsMinZ();
        double var31 = var6 + var1.getBlockBoundsMaxZ();

        if (this.enableAO)
        {
            if (var9 / 4 == 1)
            {
                var12.setColorOpaque_F(this.colorRedTopLeft_TopFace, this.colorGreenTopLeft_TopFace, this.colorBlueTopLeft_TopFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
                var12.setColorOpaque_F(this.colorRedBottomLeft_TopFace, this.colorGreenBottomLeft_TopFace, this.colorBlueBottomLeft_TopFace);
                var12.addVertexWithUV(var25, var27, var29, var17, var19);
                var12.setColorOpaque_F(this.colorRedBottomRight_TopFace, this.colorGreenBottomRight_TopFace, this.colorBlueBottomRight_TopFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedTopRight_TopFace, this.colorGreenTopRight_TopFace, this.colorBlueTopRight_TopFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
            }
            else if (var9 == 12)
            {
                var12.setColorOpaque_F(this.colorRedTopLeft_TopFace, this.colorGreenTopLeft_TopFace, this.colorBlueTopLeft_TopFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
                var12.setColorOpaque_F(this.colorRedBottomLeft_TopFace, this.colorGreenBottomLeft_TopFace, this.colorBlueBottomLeft_TopFace);
                var12.addVertexWithUV(var25, var27, var29, var17, var19);
                var12.setColorOpaque_F(this.colorRedTopRight_TopFace, this.colorGreenTopRight_TopFace, this.colorBlueTopRight_TopFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedTopRight_TopFace, this.colorGreenTopRight_TopFace, this.colorBlueTopRight_TopFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
            }
            else if (var9 == 13)
            {
                var12.setColorOpaque_F(this.colorRedBottomLeft_TopFace, this.colorGreenBottomLeft_TopFace, this.colorBlueBottomLeft_TopFace);
                var12.addVertexWithUV(var25, var27, var29, var17, var19);
                var12.setColorOpaque_F(this.colorRedBottomLeft_TopFace, this.colorGreenBottomLeft_TopFace, this.colorBlueBottomLeft_TopFace);
                var12.addVertexWithUV(var25, var27, var29, var17, var19);
                var12.setColorOpaque_F(this.colorRedBottomRight_TopFace, this.colorGreenBottomRight_TopFace, this.colorBlueBottomRight_TopFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedTopRight_TopFace, this.colorGreenTopRight_TopFace, this.colorBlueTopRight_TopFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
            }
            else if (var9 == 14)
            {
                var12.setColorOpaque_F(this.colorRedTopLeft_TopFace, this.colorGreenTopLeft_TopFace, this.colorBlueTopLeft_TopFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
                var12.setColorOpaque_F(this.colorRedBottomRight_TopFace, this.colorGreenBottomRight_TopFace, this.colorBlueBottomRight_TopFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedBottomRight_TopFace, this.colorGreenBottomRight_TopFace, this.colorBlueBottomRight_TopFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedTopRight_TopFace, this.colorGreenTopRight_TopFace, this.colorBlueTopRight_TopFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
            }
            else if (var9 == 15)
            {
                var12.setColorOpaque_F(this.colorRedTopLeft_TopFace, this.colorGreenTopLeft_TopFace, this.colorBlueTopLeft_TopFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
                var12.setColorOpaque_F(this.colorRedBottomLeft_TopFace, this.colorGreenBottomLeft_TopFace, this.colorBlueBottomLeft_TopFace);
                var12.addVertexWithUV(var25, var27, var29, var17, var19);
                var12.setColorOpaque_F(this.colorRedBottomRight_TopFace, this.colorGreenBottomRight_TopFace, this.colorBlueBottomRight_TopFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedTopLeft_TopFace, this.colorGreenTopLeft_TopFace, this.colorBlueTopLeft_TopFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
            }
        }
        else if (var9 / 4 == 1)
        {
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
            var12.addVertexWithUV(var25, var27, var29, var17, var19);
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
        }
        else if (var9 == 12)
        {
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
            var12.addVertexWithUV(var25, var27, var29, var17, var19);
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
        }
        else if (var9 == 13)
        {
            var12.addVertexWithUV(var25, var27, var29, var17, var19);
            var12.addVertexWithUV(var25, var27, var29, var17, var19);
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
        }
        else if (var9 == 14)
        {
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
        }
        else if (var9 == 15)
        {
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
            var12.addVertexWithUV(var25, var27, var29, var17, var19);
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
        }
    }

    public void renderCornersEastFace(Block var1, double var2, double var4, double var6, int var8, int var9, RenderBlocks var10, int var11)
    {
        Tessellator var12 = Tessellator.instance;
        var12.setBrightness(var11);

        int var13 = (var8 & 15) << 4;
        int var14 = var8 & 240;
        double var15 = ((double)var13 + var1.getBlockBoundsMinX() * 16.0D) / 256.0D;
        double var17 = ((double)var13 + var1.getBlockBoundsMaxX() * 16.0D - 0.01D) / 256.0D;
        double var19 = ((double)var14 + var1.getBlockBoundsMinY() * 16.0D) / 256.0D;
        double var21 = ((double)var14 + var1.getBlockBoundsMaxY() * 16.0D - 0.01D) / 256.0D;
        double var23;

        if (var10.flipTexture)
        {
            var23 = var15;
            var15 = var17;
            var17 = var23;
        }

        if (var1.getBlockBoundsMinX() < 0.0D || var1.getBlockBoundsMaxX() > 1.0D)
        {
            var15 = (double)(((float)var13 + 0.0F) / 256.0F);
            var17 = (double)(((float)var13 + 15.99F) / 256.0F);
        }

        if (var1.getBlockBoundsMinY() < 0.0D || var1.getBlockBoundsMaxY() > 1.0D)
        {
            var19 = (double)(((float)var14 + 0.0F) / 256.0F);
            var21 = (double)(((float)var14 + 15.99F) / 256.0F);
        }

        var23 = var2 + var1.getBlockBoundsMinX();
        double var25 = var2 + var1.getBlockBoundsMaxX();
        double var27 = var4 + var1.getBlockBoundsMinY();
        double var29 = var4 + var1.getBlockBoundsMaxY();
        double var31 = var6 + var1.getBlockBoundsMinZ();
        double var33 = var6 + var1.getBlockBoundsMaxZ();

        if (this.enableAO)
        {
            if (var9 == 0)
            {
                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorEast) / 4.0F);
                var12.addVertexWithUV(var25, var29, var33, var15, var19);
                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorEast) / 4.0F);
                var12.addVertexWithUV(var25, var29, var33, var15, var19);
                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorEast) / 4.0F);
                var12.addVertexWithUV(var25, var27, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorEast) / 4.0F);
                var12.addVertexWithUV(var23, var27, var31, var17, var21);
            }
            else if (var9 != 1 && var9 != 9)
            {
                if (var9 == 2)
                {
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorEast) / 4.0F);
                    var12.addVertexWithUV(var23, var29, var33, var17, var19);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorEast) / 4.0F);
                    var12.addVertexWithUV(var23, var29, var33, var17, var19);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorEast) / 4.0F);
                    var12.addVertexWithUV(var25, var27, var31, var15, var21);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorEast) / 4.0F);
                    var12.addVertexWithUV(var23, var27, var31, var17, var21);
                }
                else if (var9 != 3 && var9 != 11)
                {
                    if (var9 == 4)
                    {
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorEast) / 4.0F);
                        var12.addVertexWithUV(var23, var29, var31, var17, var19);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorEast) / 4.0F);
                        var12.addVertexWithUV(var25, var29, var31, var15, var19);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorEast) / 4.0F);
                        var12.addVertexWithUV(var25, var27, var33, var15, var21);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorEast) / 4.0F);
                        var12.addVertexWithUV(var25, var27, var33, var15, var21);
                    }
                    else if (var9 != 5 && var9 != 13)
                    {
                        if (var9 == 6)
                        {
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorEast) / 4.0F);
                            var12.addVertexWithUV(var23, var29, var31, var17, var19);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZNeg + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorEast) / 4.0F);
                            var12.addVertexWithUV(var25, var29, var31, var15, var19);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorEast) / 4.0F);
                            var12.addVertexWithUV(var23, var27, var33, var17, var21);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorEast) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorEast) / 4.0F);
                            var12.addVertexWithUV(var23, var27, var33, var17, var21);
                        }
                        else if (var9 != 7 && var9 != 15)
                        {
                            if (var9 == 
                            {
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYPos * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueYPos * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueYPos * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var25, var29, var33, (var15 + var17) / 2.0D, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYPos * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueYPos * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueYPos * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var25, var29, var33, (var15 + var17) / 2.0D, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueZNeg * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueZNeg * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueZNeg * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var25, var27, var31, var15, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueXNeg * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueXNeg * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueXNeg * (this.factorTop + this.factorNorth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var23, var27, var33, var17, var21);
                            }
                            else if (var9 == 12)
                            {
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueXNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueXNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueXNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var23, var29, var33, var17, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueZNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueZNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueZNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var25, var29, var31, var15, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var25, var27, var33, (var15 + var17) / 2.0D, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorNorth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var25, var27, var33, (var15 + var17) / 2.0D, var21);
                            }
                        }
                        else
                        {
                            var12.setColorOpaque_F(this.colorRedTopLeft_EastFace, this.colorGreenTopLeft_EastFace, this.colorBlueTopLeft_EastFace);
                            var12.addVertexWithUV(var23, var29, var31, var17, var19);
                            var12.setColorOpaque_F(this.colorRedBottomLeft_EastFace, this.colorGreenBottomLeft_EastFace, this.colorBlueBottomLeft_EastFace);
                            var12.addVertexWithUV(var25, var29, var31, var15, var19);
                            var12.setColorOpaque_F(this.colorRedBottomRight_EastFace, this.colorGreenBottomRight_EastFace, this.colorBlueBottomRight_EastFace);
                            var12.addVertexWithUV(var25, var27, var31, var15, var21);
                            var12.setColorOpaque_F(this.colorRedTopLeft_EastFace, this.colorGreenTopLeft_EastFace, this.colorBlueTopLeft_EastFace);
                            var12.addVertexWithUV(var23, var29, var31, var17, var19);
                        }
                    }
                    else
                    {
                        var12.setColorOpaque_F(this.colorRedTopLeft_EastFace, this.colorGreenTopLeft_EastFace, this.colorBlueTopLeft_EastFace);
                        var12.addVertexWithUV(var23, var29, var31, var17, var19);
                        var12.setColorOpaque_F(this.colorRedBottomLeft_EastFace, this.colorGreenBottomLeft_EastFace, this.colorBlueBottomLeft_EastFace);
                        var12.addVertexWithUV(var25, var29, var31, var15, var19);
                        var12.setColorOpaque_F(this.colorRedBottomLeft_EastFace, this.colorGreenBottomLeft_EastFace, this.colorBlueBottomLeft_EastFace);
                        var12.addVertexWithUV(var25, var29, var31, var15, var19);
                        var12.setColorOpaque_F(this.colorRedTopRight_EastFace, this.colorGreenTopRight_EastFace, this.colorBlueTopRight_EastFace);
                        var12.addVertexWithUV(var23, var27, var31, var17, var21);
                    }
                }
                else
                {
                    var12.setColorOpaque_F(this.colorRedTopRight_EastFace, this.colorGreenTopRight_EastFace, this.colorBlueTopRight_EastFace);
                    var12.addVertexWithUV(var23, var27, var31, var17, var21);
                    var12.setColorOpaque_F(this.colorRedBottomLeft_EastFace, this.colorGreenBottomLeft_EastFace, this.colorBlueBottomLeft_EastFace);
                    var12.addVertexWithUV(var25, var29, var31, var15, var19);
                    var12.setColorOpaque_F(this.colorRedBottomRight_EastFace, this.colorGreenBottomRight_EastFace, this.colorBlueBottomRight_EastFace);
                    var12.addVertexWithUV(var25, var27, var31, var15, var21);
                    var12.setColorOpaque_F(this.colorRedTopRight_EastFace, this.colorGreenTopRight_EastFace, this.colorBlueTopRight_EastFace);
                    var12.addVertexWithUV(var23, var27, var31, var17, var21);
                }
            }
            else
            {
                var12.setColorOpaque_F(this.colorRedTopLeft_EastFace, this.colorGreenTopLeft_EastFace, this.colorBlueTopLeft_EastFace);
                var12.addVertexWithUV(var23, var29, var31, var17, var19);
                var12.setColorOpaque_F(this.colorRedBottomRight_EastFace, this.colorGreenBottomRight_EastFace, this.colorBlueBottomRight_EastFace);
                var12.addVertexWithUV(var25, var27, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedBottomRight_EastFace, this.colorGreenBottomRight_EastFace, this.colorBlueBottomRight_EastFace);
                var12.addVertexWithUV(var25, var27, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedTopRight_EastFace, this.colorGreenTopRight_EastFace, this.colorBlueTopRight_EastFace);
                var12.addVertexWithUV(var23, var27, var31, var17, var21);
            }
        }
        else if (var9 == 0)
        {
            var12.addVertexWithUV(var25, var29, var33, var15, var19);
            var12.addVertexWithUV(var25, var29, var33, var15, var19);
            var12.addVertexWithUV(var25, var27, var31, var15, var21);
            var12.addVertexWithUV(var23, var27, var31, var17, var21);
        }
        else if (var9 != 1 && var9 != 9)
        {
            if (var9 == 2)
            {
                var12.addVertexWithUV(var23, var29, var33, var17, var19);
                var12.addVertexWithUV(var23, var29, var33, var17, var19);
                var12.addVertexWithUV(var25, var27, var31, var15, var21);
                var12.addVertexWithUV(var23, var27, var31, var17, var21);
            }
            else if (var9 != 3 && var9 != 11)
            {
                if (var9 == 4)
                {
                    var12.addVertexWithUV(var23, var29, var31, var17, var19);
                    var12.addVertexWithUV(var25, var29, var31, var15, var19);
                    var12.addVertexWithUV(var25, var27, var33, var15, var21);
                    var12.addVertexWithUV(var25, var27, var33, var15, var21);
                }
                else if (var9 != 5 && var9 != 13)
                {
                    if (var9 == 6)
                    {
                        var12.addVertexWithUV(var23, var29, var31, var17, var19);
                        var12.addVertexWithUV(var25, var29, var31, var15, var19);
                        var12.addVertexWithUV(var23, var27, var33, var17, var21);
                        var12.addVertexWithUV(var23, var27, var33, var17, var21);
                    }
                    else if (var9 != 7 && var9 != 15)
                    {
                        if (var9 == 
                        {
                            var12.addVertexWithUV(var25, var29, var33, (var15 + var17) / 2.0D, var19);
                            var12.addVertexWithUV(var25, var29, var33, (var15 + var17) / 2.0D, var19);
                            var12.addVertexWithUV(var25, var27, var31, var15, var21);
                            var12.addVertexWithUV(var23, var27, var33, var17, var21);
                        }
                        else if (var9 == 12)
                        {
                            var12.addVertexWithUV(var23, var29, var33, var17, var19);
                            var12.addVertexWithUV(var25, var29, var31, var15, var19);
                            var12.addVertexWithUV(var25, var27, var33, (var15 + var17) / 2.0D, var21);
                            var12.addVertexWithUV(var25, var27, var33, (var15 + var17) / 2.0D, var21);
                        }
                    }
                    else
                    {
                        var12.addVertexWithUV(var23, var29, var31, var17, var19);
                        var12.addVertexWithUV(var25, var29, var31, var15, var19);
                        var12.addVertexWithUV(var25, var27, var31, var15, var21);
                        var12.addVertexWithUV(var25, var27, var31, var15, var21);
                    }
                }
                else
                {
                    var12.addVertexWithUV(var23, var29, var31, var17, var19);
                    var12.addVertexWithUV(var25, var29, var31, var15, var19);
                    var12.addVertexWithUV(var23, var27, var31, var17, var21);
                    var12.addVertexWithUV(var23, var27, var31, var17, var21);
                }
            }
            else
            {
                var12.addVertexWithUV(var25, var29, var31, var15, var19);
                var12.addVertexWithUV(var25, var29, var31, var15, var19);
                var12.addVertexWithUV(var25, var27, var31, var15, var21);
                var12.addVertexWithUV(var23, var27, var31, var17, var21);
            }
        }
        else
        {
            var12.addVertexWithUV(var23, var29, var31, var17, var19);
            var12.addVertexWithUV(var23, var29, var31, var17, var19);
            var12.addVertexWithUV(var25, var27, var31, var15, var21);
            var12.addVertexWithUV(var23, var27, var31, var17, var21);
        }
    }

    public void renderCornersWestFace(Block var1, double var2, double var4, double var6, int var8, int var9, RenderBlocks var10, int var11)
    {
        Tessellator var12 = Tessellator.instance;
        var12.setBrightness(var11);

        int var13 = (var8 & 15) << 4;
        int var14 = var8 & 240;
        double var15 = ((double)var13 + var1.getBlockBoundsMinX() * 16.0D) / 256.0D;
        double var17 = ((double)var13 + var1.getBlockBoundsMaxX() * 16.0D - 0.01D) / 256.0D;
        double var19 = ((double)var14 + var1.getBlockBoundsMinY() * 16.0D) / 256.0D;
        double var21 = ((double)var14 + var1.getBlockBoundsMaxY() * 16.0D - 0.01D) / 256.0D;
        double var23;

        if (var10.flipTexture)
        {
            var23 = var15;
            var15 = var17;
            var17 = var23;
        }

        if (var1.getBlockBoundsMinX() < 0.0D || var1.getBlockBoundsMaxX() > 1.0D)
        {
            var15 = (double)(((float)var13 + 0.0F) / 256.0F);
            var17 = (double)(((float)var13 + 15.99F) / 256.0F);
        }

        if (var1.getBlockBoundsMinY() < 0.0D || var1.getBlockBoundsMaxY() > 1.0D)
        {
            var19 = (double)(((float)var14 + 0.0F) / 256.0F);
            var21 = (double)(((float)var14 + 15.99F) / 256.0F);
        }

        var23 = var2 + var1.getBlockBoundsMinX();
        double var25 = var2 + var1.getBlockBoundsMaxX();
        double var27 = var4 + var1.getBlockBoundsMinY();
        double var29 = var4 + var1.getBlockBoundsMaxY();
        double var31 = var6 + var1.getBlockBoundsMaxZ();
        double var33 = var6 + var1.getBlockBoundsMinZ();

        if (this.enableAO)
        {
            if (var9 != 0 && var9 != 
            {
                if (var9 == 1)
                {
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorWest) / 4.0F);
                    var12.addVertexWithUV(var23, var29, var33, var15, var19);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorTop + this.factorWest) / 4.0F);
                    var12.addVertexWithUV(var23, var27, var31, var15, var21);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorWest) / 4.0F);
                    var12.addVertexWithUV(var25, var27, var31, var17, var21);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueXNegYPos) * (this.factorTop + this.factorWest) / 4.0F);
                    var12.addVertexWithUV(var23, var29, var33, var15, var19);
                }
                else if (var9 != 2 && var9 != 10)
                {
                    if (var9 == 3)
                    {
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorWest) / 4.0F);
                        var12.addVertexWithUV(var25, var29, var33, var17, var19);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorTop + this.factorWest) / 4.0F);
                        var12.addVertexWithUV(var23, var27, var31, var15, var21);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorWest) / 4.0F);
                        var12.addVertexWithUV(var25, var27, var31, var17, var21);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueXPosYPos) * (this.factorTop + this.factorWest) / 4.0F);
                        var12.addVertexWithUV(var25, var29, var33, var17, var19);
                    }
                    else if (var9 != 4 && var9 != 12)
                    {
                        if (var9 == 5)
                        {
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorWest) / 4.0F);
                            var12.addVertexWithUV(var23, var29, var31, var15, var19);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorWest) / 4.0F);
                            var12.addVertexWithUV(var23, var27, var33, var15, var21);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueXNegYNeg) * (this.factorBottom + this.factorWest) / 4.0F);
                            var12.addVertexWithUV(var23, var27, var33, var15, var21);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorWest) / 4.0F);
                            var12.addVertexWithUV(var25, var29, var31, var17, var19);
                        }
                        else if (var9 != 6 && var9 != 14)
                        {
                            if (var9 == 7)
                            {
                                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZPos + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorWest) / 4.0F);
                                var12.addVertexWithUV(var23, var29, var31, var15, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorWest) / 4.0F);
                                var12.addVertexWithUV(var25, var27, var33, var17, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueXPosYNeg) * (this.factorBottom + this.factorWest) / 4.0F);
                                var12.addVertexWithUV(var25, var27, var33, var17, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorWest) / 4.0F, this.colorGreenSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorWest) / 4.0F, this.colorBlueSlopes * (this.aoLightValueZPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorWest) / 4.0F);
                                var12.addVertexWithUV(var25, var29, var31, var17, var19);
                            }
                            else if (var9 == 9)
                            {
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F, this.colorGreenSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F, this.colorBlueSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F);
                                var12.addVertexWithUV(var23, var29, var33, (var15 + var17) / 2.0D, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueZPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F, this.colorGreenSlopes * this.aoLightValueZPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F, this.colorBlueSlopes * this.aoLightValueZPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F);
                                var12.addVertexWithUV(var23, var27, var31, var15, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueXPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F, this.colorGreenSlopes * this.aoLightValueXPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F, this.colorBlueSlopes * this.aoLightValueXPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F);
                                var12.addVertexWithUV(var25, var27, var33, var17, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F, this.colorGreenSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F, this.colorBlueSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorSouth) / 3.0F);
                                var12.addVertexWithUV(var23, var29, var33, (var15 + var17) / 2.0D, var19);
                            }
                            else if (var9 == 13)
                            {
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueZPos * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F, this.colorGreenSlopes * this.aoLightValueZPos * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F, this.colorBlueSlopes * this.aoLightValueZPos * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F);
                                var12.addVertexWithUV(var23, var29, var31, var15, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F, this.colorGreenSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F, this.colorBlueSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F);
                                var12.addVertexWithUV(var23, var27, var33, (var15 + var17) / 2.0D, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F, this.colorGreenSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F, this.colorBlueSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F);
                                var12.addVertexWithUV(var23, var27, var33, (var15 + var17) / 2.0D, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueXPos * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F, this.colorGreenSlopes * this.aoLightValueXPos * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F, this.colorBlueSlopes * this.aoLightValueXPos * (this.factorBottom + this.factorWest + this.factorSouth) / 3.0F);
                                var12.addVertexWithUV(var25, var29, var33, var17, var19);
                            }
                        }
                        else
                        {
                            var12.setColorOpaque_F(this.colorRedTopLeft_WestFace, this.colorGreenTopLeft_WestFace, this.colorBlueTopLeft_WestFace);
                            var12.addVertexWithUV(var23, var29, var31, var15, var19);
                            var12.setColorOpaque_F(this.colorRedBottomLeft_WestFace, this.colorGreenBottomLeft_WestFace, this.colorBlueBottomLeft_WestFace);
                            var12.addVertexWithUV(var23, var27, var31, var15, var21);
                            var12.setColorOpaque_F(this.colorRedTopRight_WestFace, this.colorGreenTopRight_WestFace, this.colorBlueTopRight_WestFace);
                            var12.addVertexWithUV(var25, var29, var31, var17, var19);
                            var12.setColorOpaque_F(this.colorRedTopRight_WestFace, this.colorGreenTopRight_WestFace, this.colorBlueTopRight_WestFace);
                            var12.addVertexWithUV(var25, var29, var31, var17, var19);
                        }
                    }
                    else
                    {
                        var12.setColorOpaque_F(this.colorRedTopLeft_WestFace, this.colorGreenTopLeft_WestFace, this.colorBlueTopLeft_WestFace);
                        var12.addVertexWithUV(var23, var29, var31, var15, var19);
                        var12.setColorOpaque_F(this.colorRedTopLeft_WestFace, this.colorGreenTopLeft_WestFace, this.colorBlueTopLeft_WestFace);
                        var12.addVertexWithUV(var23, var29, var31, var15, var19);
                        var12.setColorOpaque_F(this.colorRedBottomRight_WestFace, this.colorGreenBottomRight_WestFace, this.colorBlueBottomRight_WestFace);
                        var12.addVertexWithUV(var25, var27, var31, var17, var21);
                        var12.setColorOpaque_F(this.colorRedTopRight_WestFace, this.colorGreenTopRight_WestFace, this.colorBlueTopRight_WestFace);
                        var12.addVertexWithUV(var25, var29, var31, var17, var19);
                    }
                }
                else
                {
                    var12.setColorOpaque_F(this.colorRedTopLeft_WestFace, this.colorGreenTopLeft_WestFace, this.colorBlueTopLeft_WestFace);
                    var12.addVertexWithUV(var23, var29, var31, var15, var19);
                    var12.setColorOpaque_F(this.colorRedBottomLeft_WestFace, this.colorGreenBottomLeft_WestFace, this.colorBlueBottomLeft_WestFace);
                    var12.addVertexWithUV(var23, var27, var31, var15, var21);
                    var12.setColorOpaque_F(this.colorRedBottomRight_WestFace, this.colorGreenBottomRight_WestFace, this.colorBlueBottomRight_WestFace);
                    var12.addVertexWithUV(var25, var27, var31, var17, var21);
                    var12.setColorOpaque_F(this.colorRedBottomRight_WestFace, this.colorGreenBottomRight_WestFace, this.colorBlueBottomRight_WestFace);
                    var12.addVertexWithUV(var25, var27, var31, var17, var21);
                }
            }
            else
            {
                var12.setColorOpaque_F(this.colorRedBottomLeft_WestFace, this.colorGreenBottomLeft_WestFace, this.colorBlueBottomLeft_WestFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedBottomLeft_WestFace, this.colorGreenBottomLeft_WestFace, this.colorBlueBottomLeft_WestFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedBottomRight_WestFace, this.colorGreenBottomRight_WestFace, this.colorBlueBottomRight_WestFace);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
                var12.setColorOpaque_F(this.colorRedTopRight_WestFace, this.colorGreenTopRight_WestFace, this.colorBlueTopRight_WestFace);
                var12.addVertexWithUV(var25, var29, var31, var17, var19);
            }
        }
        else if (var9 != 0 && var9 != 
        {
            if (var9 == 1)
            {
                var12.addVertexWithUV(var23, var29, var33, var15, var19);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
                var12.addVertexWithUV(var23, var29, var33, var15, var19);
            }
            else if (var9 != 2 && var9 != 10)
            {
                if (var9 == 3)
                {
                    var12.addVertexWithUV(var25, var29, var33, var17, var19);
                    var12.addVertexWithUV(var23, var27, var31, var15, var21);
                    var12.addVertexWithUV(var25, var27, var31, var17, var21);
                    var12.addVertexWithUV(var25, var29, var33, var17, var19);
                }
                else if (var9 != 4 && var9 != 12)
                {
                    if (var9 == 5)
                    {
                        var12.addVertexWithUV(var23, var29, var31, var15, var19);
                        var12.addVertexWithUV(var23, var27, var33, var15, var21);
                        var12.addVertexWithUV(var23, var27, var33, var15, var21);
                        var12.addVertexWithUV(var25, var29, var31, var17, var19);
                    }
                    else if (var9 != 6 && var9 != 14)
                    {
                        if (var9 == 7)
                        {
                            var12.addVertexWithUV(var23, var29, var31, var15, var19);
                            var12.addVertexWithUV(var25, var27, var33, var17, var21);
                            var12.addVertexWithUV(var25, var27, var33, var17, var21);
                            var12.addVertexWithUV(var25, var29, var31, var17, var19);
                        }
                        else if (var9 == 9)
                        {
                            var12.addVertexWithUV(var23, var29, var33, (var15 + var17) / 2.0D, var19);
                            var12.addVertexWithUV(var23, var27, var31, var15, var21);
                            var12.addVertexWithUV(var25, var27, var33, var17, var21);
                            var12.addVertexWithUV(var23, var29, var33, (var15 + var17) / 2.0D, var19);
                        }
                        else if (var9 == 13)
                        {
                            var12.addVertexWithUV(var23, var29, var31, var15, var19);
                            var12.addVertexWithUV(var23, var27, var33, (var15 + var17) / 2.0D, var21);
                            var12.addVertexWithUV(var23, var27, var33, (var15 + var17) / 2.0D, var21);
                            var12.addVertexWithUV(var25, var29, var33, var17, var19);
                        }
                    }
                    else
                    {
                        var12.addVertexWithUV(var23, var29, var31, var15, var19);
                        var12.addVertexWithUV(var23, var27, var31, var15, var21);
                        var12.addVertexWithUV(var23, var27, var31, var15, var21);
                        var12.addVertexWithUV(var25, var29, var31, var17, var19);
                    }
                }
                else
                {
                    var12.addVertexWithUV(var23, var29, var31, var15, var19);
                    var12.addVertexWithUV(var25, var27, var31, var17, var21);
                    var12.addVertexWithUV(var25, var27, var31, var17, var21);
                    var12.addVertexWithUV(var25, var29, var31, var17, var19);
                }
            }
            else
            {
                var12.addVertexWithUV(var23, var29, var31, var15, var19);
                var12.addVertexWithUV(var23, var27, var31, var15, var21);
                var12.addVertexWithUV(var25, var27, var31, var17, var21);
                var12.addVertexWithUV(var23, var29, var31, var15, var19);
            }
        }
        else
        {
            var12.addVertexWithUV(var25, var29, var31, var17, var19);
            var12.addVertexWithUV(var23, var27, var31, var15, var21);
            var12.addVertexWithUV(var25, var27, var31, var17, var21);
            var12.addVertexWithUV(var25, var29, var31, var17, var19);
        }
    }

    public void renderCornersNorthFace(Block var1, double var2, double var4, double var6, int var8, int var9, RenderBlocks var10, int var11)
    {
        Tessellator var12 = Tessellator.instance;
        var12.setBrightness(var11);

        int var13 = (var8 & 15) << 4;
        int var14 = var8 & 240;
        double var15 = ((double)var13 + var1.getBlockBoundsMinZ() * 16.0D) / 256.0D;
        double var17 = ((double)var13 + var1.getBlockBoundsMaxZ() * 16.0D - 0.01D) / 256.0D;
        double var19 = ((double)var14 + var1.getBlockBoundsMinY() * 16.0D) / 256.0D;
        double var21 = ((double)var14 + var1.getBlockBoundsMaxY() * 16.0D - 0.01D) / 256.0D;
        double var23;

        if (var10.flipTexture)
        {
            var23 = var15;
            var15 = var17;
            var17 = var23;
        }

        if (var1.getBlockBoundsMinZ() < 0.0D || var1.getBlockBoundsMaxZ() > 1.0D)
        {
            var15 = (double)(((float)var13 + 0.0F) / 256.0F);
            var17 = (double)(((float)var13 + 15.99F) / 256.0F);
        }

        if (var1.getBlockBoundsMinY() < 0.0D || var1.getBlockBoundsMaxY() > 1.0D)
        {
            var19 = (double)(((float)var14 + 0.0F) / 256.0F);
            var21 = (double)(((float)var14 + 15.99F) / 256.0F);
        }

        var23 = var2 + var1.getBlockBoundsMinX();
        double var25 = var4 + var1.getBlockBoundsMinY();
        double var27 = var4 + var1.getBlockBoundsMaxY();
        double var29 = var6 + var1.getBlockBoundsMinZ();
        double var31 = var6 + var1.getBlockBoundsMaxZ();
        double var33 = var2 + var1.getBlockBoundsMaxX();

        if (this.enableAO)
        {
            if (var9 == 0)
            {
                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorNorth) / 4.0F);
                var12.addVertexWithUV(var33, var27, var31, var17, var19);
                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorNorth) / 4.0F);
                var12.addVertexWithUV(var33, var27, var31, var17, var19);
                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorNorth) / 4.0F);
                var12.addVertexWithUV(var23, var25, var29, var15, var21);
                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorTop + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorTop + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorTop + this.factorNorth) / 4.0F);
                var12.addVertexWithUV(var23, var25, var31, var17, var21);
            }
            else if (var9 != 1 && var9 != 9)
            {
                if (var9 != 2 && var9 != 10)
                {
                    if (var9 == 3)
                    {
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorNorth) / 4.0F);
                        var12.addVertexWithUV(var33, var27, var29, var15, var19);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorNorth) / 4.0F);
                        var12.addVertexWithUV(var33, var27, var29, var15, var19);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorTop + this.factorNorth) / 4.0F);
                        var12.addVertexWithUV(var23, var25, var29, var15, var21);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorTop + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorTop + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorTop + this.factorNorth) / 4.0F);
                        var12.addVertexWithUV(var23, var25, var31, var17, var21);
                    }
                    else if (var9 == 4)
                    {
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F);
                        var12.addVertexWithUV(var23, var27, var31, var17, var19);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F);
                        var12.addVertexWithUV(var23, var27, var29, var15, var19);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F);
                        var12.addVertexWithUV(var33, var25, var31, var17, var21);
                        var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F);
                        var12.addVertexWithUV(var33, var25, var31, var17, var21);
                    }
                    else if (var9 != 5 && var9 != 13)
                    {
                        if (var9 != 6 && var9 != 14)
                        {
                            if (var9 == 7)
                            {
                                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZPos) * (this.factorBottom + this.factorNorth) / 4.0F);
                                var12.addVertexWithUV(var23, var27, var31, var17, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXNeg + this.aoLightValueXNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F);
                                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F);
                                var12.addVertexWithUV(var33, var25, var29, var15, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorNorth) / 4.0F);
                                var12.addVertexWithUV(var33, var25, var29, var15, var21);
                            }
                            else if (var9 == 11)
                            {
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F, this.colorGreenSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F, this.colorBlueSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F);
                                var12.addVertexWithUV(var33, var27, var29, (var15 + var17) / 2.0D, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F, this.colorGreenSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F, this.colorBlueSlopes * this.aoLightValueYPos * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F);
                                var12.addVertexWithUV(var33, var27, var29, (var15 + var17) / 2.0D, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueXNeg * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F, this.colorGreenSlopes * this.aoLightValueXNeg * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F, this.colorBlueSlopes * this.aoLightValueXNeg * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F);
                                var12.addVertexWithUV(var23, var25, var29, var15, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueZPos * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F, this.colorGreenSlopes * this.aoLightValueZPos * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F, this.colorBlueSlopes * this.aoLightValueZPos * (this.factorTop + this.factorWest + this.factorNorth) / 3.0F);
                                var12.addVertexWithUV(var33, var25, var31, var17, var21);
                            }
                            else if (var9 == 15)
                            {
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueZPos * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F, this.colorGreenSlopes * this.aoLightValueZPos * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F, this.colorBlueSlopes * this.aoLightValueZPos * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F);
                                var12.addVertexWithUV(var33, var27, var31, var17, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueXNeg * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F, this.colorGreenSlopes * this.aoLightValueXNeg * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F, this.colorBlueSlopes * this.aoLightValueXNeg * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F);
                                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F, this.colorGreenSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F, this.colorBlueSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F);
                                var12.addVertexWithUV(var33, var25, var29, (var15 + var17) / 2.0D, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F, this.colorGreenSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F, this.colorBlueSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorWest + this.factorNorth) / 3.0F);
                                var12.addVertexWithUV(var33, var25, var29, (var15 + var17) / 2.0D, var21);
                            }
                        }
                        else
                        {
                            var12.setColorOpaque_F(this.colorRedTopLeft_NorthFace, this.colorGreenTopLeft_NorthFace, this.colorBlueTopLeft_NorthFace);
                            var12.addVertexWithUV(var23, var27, var31, var17, var19);
                            var12.setColorOpaque_F(this.colorRedBottomLeft_NorthFace, this.colorGreenBottomLeft_NorthFace, this.colorBlueBottomLeft_NorthFace);
                            var12.addVertexWithUV(var23, var27, var29, var15, var19);
                            var12.setColorOpaque_F(this.colorRedBottomLeft_NorthFace, this.colorGreenBottomLeft_NorthFace, this.colorBlueBottomLeft_NorthFace);
                            var12.addVertexWithUV(var23, var27, var29, var15, var19);
                            var12.setColorOpaque_F(this.colorRedTopRight_NorthFace, this.colorGreenTopRight_NorthFace, this.colorBlueTopRight_NorthFace);
                            var12.addVertexWithUV(var23, var25, var31, var17, var21);
                        }
                    }
                    else
                    {
                        var12.setColorOpaque_F(this.colorRedTopLeft_NorthFace, this.colorGreenTopLeft_NorthFace, this.colorBlueTopLeft_NorthFace);
                        var12.addVertexWithUV(var23, var27, var31, var17, var19);
                        var12.setColorOpaque_F(this.colorRedBottomLeft_NorthFace, this.colorGreenBottomLeft_NorthFace, this.colorBlueBottomLeft_NorthFace);
                        var12.addVertexWithUV(var23, var27, var29, var15, var19);
                        var12.setColorOpaque_F(this.colorRedBottomRight_NorthFace, this.colorGreenBottomRight_NorthFace, this.colorBlueBottomRight_NorthFace);
                        var12.addVertexWithUV(var23, var25, var29, var15, var21);
                        var12.setColorOpaque_F(this.colorRedTopLeft_NorthFace, this.colorGreenTopLeft_NorthFace, this.colorBlueTopLeft_NorthFace);
                        var12.addVertexWithUV(var23, var27, var31, var17, var19);
                    }
                }
                else
                {
                    var12.setColorOpaque_F(this.colorRedTopLeft_NorthFace, this.colorGreenTopLeft_NorthFace, this.colorBlueTopLeft_NorthFace);
                    var12.addVertexWithUV(var23, var27, var31, var17, var19);
                    var12.setColorOpaque_F(this.colorRedBottomRight_NorthFace, this.colorGreenBottomRight_NorthFace, this.colorBlueBottomRight_NorthFace);
                    var12.addVertexWithUV(var23, var25, var29, var15, var21);
                    var12.setColorOpaque_F(this.colorRedBottomRight_NorthFace, this.colorGreenBottomRight_NorthFace, this.colorBlueBottomRight_NorthFace);
                    var12.addVertexWithUV(var23, var25, var29, var15, var21);
                    var12.setColorOpaque_F(this.colorRedTopRight_NorthFace, this.colorGreenTopRight_NorthFace, this.colorBlueTopRight_NorthFace);
                    var12.addVertexWithUV(var23, var25, var31, var17, var21);
                }
            }
            else
            {
                var12.setColorOpaque_F(this.colorRedTopRight_NorthFace, this.colorGreenTopRight_NorthFace, this.colorBlueTopRight_NorthFace);
                var12.addVertexWithUV(var23, var25, var31, var17, var21);
                var12.setColorOpaque_F(this.colorRedBottomLeft_NorthFace, this.colorGreenBottomLeft_NorthFace, this.colorBlueBottomLeft_NorthFace);
                var12.addVertexWithUV(var23, var27, var29, var15, var19);
                var12.setColorOpaque_F(this.colorRedBottomRight_NorthFace, this.colorGreenBottomRight_NorthFace, this.colorBlueBottomRight_NorthFace);
                var12.addVertexWithUV(var23, var25, var29, var15, var21);
                var12.setColorOpaque_F(this.colorRedTopRight_NorthFace, this.colorGreenTopRight_NorthFace, this.colorBlueTopRight_NorthFace);
                var12.addVertexWithUV(var23, var25, var31, var17, var21);
            }
        }
        else if (var9 == 0)
        {
            var12.addVertexWithUV(var33, var27, var31, var17, var19);
            var12.addVertexWithUV(var33, var27, var31, var17, var19);
            var12.addVertexWithUV(var23, var25, var29, var15, var21);
            var12.addVertexWithUV(var23, var25, var31, var17, var21);
        }
        else if (var9 != 1 && var9 != 9)
        {
            if (var9 != 2 && var9 != 10)
            {
                if (var9 == 3)
                {
                    var12.addVertexWithUV(var33, var27, var29, var15, var19);
                    var12.addVertexWithUV(var33, var27, var29, var15, var19);
                    var12.addVertexWithUV(var23, var25, var29, var15, var21);
                    var12.addVertexWithUV(var23, var25, var31, var17, var21);
                }
                else if (var9 == 4)
                {
                    var12.addVertexWithUV(var23, var27, var31, var17, var19);
                    var12.addVertexWithUV(var23, var27, var29, var15, var19);
                    var12.addVertexWithUV(var33, var25, var31, var17, var21);
                    var12.addVertexWithUV(var33, var25, var31, var17, var21);
                }
                else if (var9 != 5 && var9 != 13)
                {
                    if (var9 != 6 && var9 != 14)
                    {
                        if (var9 == 7)
                        {
                            var12.addVertexWithUV(var23, var27, var31, var17, var19);
                            var12.addVertexWithUV(var23, var27, var29, var15, var19);
                            var12.addVertexWithUV(var33, var25, var29, var15, var21);
                            var12.addVertexWithUV(var33, var25, var29, var15, var21);
                        }
                        else if (var9 == 11)
                        {
                            var12.addVertexWithUV(var33, var27, var29, (var15 + var17) / 2.0D, var19);
                            var12.addVertexWithUV(var33, var27, var29, (var15 + var17) / 2.0D, var19);
                            var12.addVertexWithUV(var23, var25, var29, var15, var21);
                            var12.addVertexWithUV(var33, var25, var31, var17, var21);
                        }
                        else if (var9 == 15)
                        {
                            var12.addVertexWithUV(var33, var27, var31, var17, var19);
                            var12.addVertexWithUV(var23, var27, var29, var15, var19);
                            var12.addVertexWithUV(var33, var25, var29, (var15 + var17) / 2.0D, var21);
                            var12.addVertexWithUV(var33, var25, var29, (var15 + var17) / 2.0D, var21);
                        }
                    }
                    else
                    {
                        var12.addVertexWithUV(var23, var27, var31, var17, var19);
                        var12.addVertexWithUV(var23, var27, var29, var15, var19);
                        var12.addVertexWithUV(var23, var25, var31, var17, var21);
                        var12.addVertexWithUV(var23, var25, var31, var17, var21);
                    }
                }
                else
                {
                    var12.addVertexWithUV(var23, var27, var31, var17, var19);
                    var12.addVertexWithUV(var23, var27, var29, var15, var19);
                    var12.addVertexWithUV(var23, var25, var29, var15, var21);
                    var12.addVertexWithUV(var23, var25, var29, var15, var21);
                }
            }
            else
            {
                var12.addVertexWithUV(var23, var27, var31, var17, var19);
                var12.addVertexWithUV(var23, var27, var31, var17, var19);
                var12.addVertexWithUV(var23, var25, var29, var15, var21);
                var12.addVertexWithUV(var23, var25, var31, var17, var21);
            }
        }
        else
        {
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var23, var27, var29, var15, var19);
            var12.addVertexWithUV(var23, var25, var29, var15, var21);
            var12.addVertexWithUV(var23, var25, var31, var17, var21);
        }
    }

    public void renderCornersSouthFace(Block var1, double var2, double var4, double var6, int var8, int var9, RenderBlocks var10, int var11)
    {
        Tessellator var12 = Tessellator.instance;
        var12.setBrightness(var11);

        int var13 = (var8 & 15) << 4;
        int var14 = var8 & 240;
        double var15 = ((double)var13 + var1.getBlockBoundsMinZ() * 16.0D) / 256.0D;
        double var17 = ((double)var13 + var1.getBlockBoundsMaxZ() * 16.0D - 0.01D) / 256.0D;
        double var19 = ((double)var14 + var1.getBlockBoundsMinY() * 16.0D) / 256.0D;
        double var21 = ((double)var14 + var1.getBlockBoundsMaxY() * 16.0D - 0.01D) / 256.0D;
        double var23;

        if (var10.flipTexture)
        {
            var23 = var15;
            var15 = var17;
            var17 = var23;
        }

        if (var1.getBlockBoundsMinZ() < 0.0D || var1.getBlockBoundsMaxZ() > 1.0D)
        {
            var15 = (double)(((float)var13 + 0.0F) / 256.0F);
            var17 = (double)(((float)var13 + 15.99F) / 256.0F);
        }

        if (var1.getBlockBoundsMinY() < 0.0D || var1.getBlockBoundsMaxY() > 1.0D)
        {
            var19 = (double)(((float)var14 + 0.0F) / 256.0F);
            var21 = (double)(((float)var14 + 15.99F) / 256.0F);
        }

        var23 = var2 + var1.getBlockBoundsMaxX();
        double var25 = var4 + var1.getBlockBoundsMinY();
        double var27 = var4 + var1.getBlockBoundsMaxY();
        double var29 = var6 + var1.getBlockBoundsMinZ();
        double var31 = var6 + var1.getBlockBoundsMaxZ();
        double var33 = var2 + var1.getBlockBoundsMinX();

        if (this.enableAO)
        {
            if (var9 != 0 && var9 != 
            {
                if (var9 == 1)
                {
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorSouth) / 4.0F);
                    var12.addVertexWithUV(var23, var25, var31, var15, var21);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F);
                    var12.addVertexWithUV(var23, var25, var29, var17, var21);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F);
                    var12.addVertexWithUV(var33, var27, var29, var17, var19);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F);
                    var12.addVertexWithUV(var33, var27, var29, var17, var19);
                }
                else if (var9 == 2)
                {
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorTop + this.factorSouth) / 4.0F);
                    var12.addVertexWithUV(var23, var25, var31, var15, var21);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorTop + this.factorSouth) / 4.0F);
                    var12.addVertexWithUV(var23, var25, var29, var17, var21);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorSouth) / 4.0F);
                    var12.addVertexWithUV(var33, var27, var31, var15, var19);
                    var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYPos + this.aoLightValueYPosZPos) * (this.factorTop + this.factorSouth) / 4.0F);
                    var12.addVertexWithUV(var33, var27, var31, var15, var19);
                }
                else if (var9 != 3 && var9 != 11)
                {
                    if (var9 != 4 && var9 != 12)
                    {
                        if (var9 == 5)
                        {
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorSouth) / 4.0F);
                            var12.addVertexWithUV(var33, var25, var29, var17, var21);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZNeg) * (this.factorBottom + this.factorSouth) / 4.0F);
                            var12.addVertexWithUV(var33, var25, var29, var17, var21);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorSouth) / 4.0F);
                            var12.addVertexWithUV(var23, var27, var29, var17, var19);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorSouth) / 4.0F);
                            var12.addVertexWithUV(var23, var27, var31, var15, var19);
                        }
                        else if (var9 == 6)
                        {
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorSouth) / 4.0F);
                            var12.addVertexWithUV(var33, var25, var31, var15, var21);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueYNeg + this.aoLightValueYNegZPos) * (this.factorBottom + this.factorSouth) / 4.0F);
                            var12.addVertexWithUV(var33, var25, var31, var15, var21);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZNeg) * (this.factorBottom + this.factorSouth) / 4.0F);
                            var12.addVertexWithUV(var23, var27, var29, var17, var19);
                            var12.setColorOpaque_F(this.colorRedSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorGreenSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorSouth) / 4.0F, this.colorBlueSlopes * (this.aoLightValueXPos + this.aoLightValueXPosZPos) * (this.factorBottom + this.factorSouth) / 4.0F);
                            var12.addVertexWithUV(var23, var27, var31, var15, var19);
                        }
                        else if (var9 != 7 && var9 != 15)
                        {
                            if (var9 == 10)
                            {
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueXPos * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueXPos * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueXPos * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var23, var25, var31, var15, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueZNeg * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueZNeg * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueZNeg * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var33, var25, var29, var17, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYPos * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueYPos * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueYPos * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var33, var27, var31, (var15 + var17) / 2.0D, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYPos * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueYPos * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueYPos * (this.factorTop + this.factorSouth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var33, var27, var31, (var15 + var17) / 2.0D, var19);
                            }
                            else if (var9 == 14)
                            {
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var33, var25, var31, (var15 + var17) / 2.0D, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueYNeg * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var33, var25, var31, (var15 + var17) / 2.0D, var21);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueZNeg * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueZNeg * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueZNeg * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var33, var27, var29, var17, var19);
                                var12.setColorOpaque_F(this.colorRedSlopes * this.aoLightValueXPos * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F, this.colorGreenSlopes * this.aoLightValueXPos * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F, this.colorBlueSlopes * this.aoLightValueXPos * (this.factorBottom + this.factorSouth + this.factorEast) / 3.0F);
                                var12.addVertexWithUV(var23, var27, var31, var15, var19);
                            }
                        }
                        else
                        {
                            var12.setColorOpaque_F(this.colorRedTopRight_SouthFace, this.colorGreenTopRight_SouthFace, this.colorBlueTopRight_SouthFace);
                            var12.addVertexWithUV(var23, var27, var31, var15, var19);
                            var12.setColorOpaque_F(this.colorRedBottomLeft_SouthFace, this.colorGreenBottomLeft_SouthFace, this.colorBlueBottomLeft_SouthFace);
                            var12.addVertexWithUV(var23, var25, var29, var17, var21);
                            var12.setColorOpaque_F(this.colorRedBottomRight_SouthFace, this.colorGreenBottomRight_SouthFace, this.colorBlueBottomRight_SouthFace);
                            var12.addVertexWithUV(var23, var27, var29, var17, var19);
                            var12.setColorOpaque_F(this.colorRedTopRight_SouthFace, this.colorGreenTopRight_SouthFace, this.colorBlueTopRight_SouthFace);
                            var12.addVertexWithUV(var23, var27, var31, var15, var19);
                        }
                    }
                    else
                    {
                        var12.setColorOpaque_F(this.colorRedTopLeft_SouthFace, this.colorGreenTopLeft_SouthFace, this.colorBlueTopLeft_SouthFace);
                        var12.addVertexWithUV(var23, var25, var31, var15, var21);
                        var12.setColorOpaque_F(this.colorRedBottomRight_SouthFace, this.colorGreenBottomRight_SouthFace, this.colorBlueBottomRight_SouthFace);
                        var12.addVertexWithUV(var23, var27, var29, var17, var19);
                        var12.setColorOpaque_F(this.colorRedBottomRight_SouthFace, this.colorGreenBottomRight_SouthFace, this.colorBlueBottomRight_SouthFace);
                        var12.addVertexWithUV(var23, var27, var29, var17, var19);
                        var12.setColorOpaque_F(this.colorRedTopRight_SouthFace, this.colorGreenTopRight_SouthFace, this.colorBlueTopRight_SouthFace);
                        var12.addVertexWithUV(var23, var27, var31, var15, var19);
                    }
                }
                else
                {
                    var12.setColorOpaque_F(this.colorRedTopLeft_SouthFace, this.colorGreenTopLeft_SouthFace, this.colorBlueTopLeft_SouthFace);
                    var12.addVertexWithUV(var23, var25, var31, var15, var21);
                    var12.setColorOpaque_F(this.colorRedBottomLeft_SouthFace, this.colorGreenBottomLeft_SouthFace, this.colorBlueBottomLeft_SouthFace);
                    var12.addVertexWithUV(var23, var25, var29, var17, var21);
                    var12.setColorOpaque_F(this.colorRedBottomRight_SouthFace, this.colorGreenBottomRight_SouthFace, this.colorBlueBottomRight_SouthFace);
                    var12.addVertexWithUV(var23, var27, var29, var17, var19);
                    var12.setColorOpaque_F(this.colorRedTopLeft_SouthFace, this.colorGreenTopLeft_SouthFace, this.colorBlueTopLeft_SouthFace);
                    var12.addVertexWithUV(var23, var25, var31, var15, var21);
                }
            }
            else
            {
                var12.setColorOpaque_F(this.colorRedTopLeft_SouthFace, this.colorGreenTopLeft_SouthFace, this.colorBlueTopLeft_SouthFace);
                var12.addVertexWithUV(var23, var25, var31, var15, var21);
                var12.setColorOpaque_F(this.colorRedBottomLeft_SouthFace, this.colorGreenBottomLeft_SouthFace, this.colorBlueBottomLeft_SouthFace);
                var12.addVertexWithUV(var23, var25, var29, var17, var21);
                var12.setColorOpaque_F(this.colorRedBottomLeft_SouthFace, this.colorGreenBottomLeft_SouthFace, this.colorBlueBottomLeft_SouthFace);
                var12.addVertexWithUV(var23, var25, var29, var17, var21);
                var12.setColorOpaque_F(this.colorRedTopRight_SouthFace, this.colorGreenTopRight_SouthFace, this.colorBlueTopRight_SouthFace);
                var12.addVertexWithUV(var23, var27, var31, var15, var19);
            }
        }
        else if (var9 != 0 && var9 != 
        {
            if (var9 == 1)
            {
                var12.addVertexWithUV(var23, var25, var31, var15, var21);
                var12.addVertexWithUV(var23, var25, var29, var17, var21);
                var12.addVertexWithUV(var33, var27, var29, var17, var19);
                var12.addVertexWithUV(var33, var27, var29, var17, var19);
            }
            else if (var9 == 2)
            {
                var12.addVertexWithUV(var23, var25, var31, var15, var21);
                var12.addVertexWithUV(var23, var25, var29, var17, var21);
                var12.addVertexWithUV(var33, var27, var31, var15, var19);
                var12.addVertexWithUV(var33, var27, var31, var15, var19);
            }
            else if (var9 != 3 && var9 != 11)
            {
                if (var9 != 4 && var9 != 12)
                {
                    if (var9 == 5)
                    {
                        var12.addVertexWithUV(var33, var25, var29, var17, var21);
                        var12.addVertexWithUV(var33, var25, var29, var17, var21);
                        var12.addVertexWithUV(var23, var27, var29, var17, var19);
                        var12.addVertexWithUV(var23, var27, var31, var15, var19);
                    }
                    else if (var9 == 6)
                    {
                        var12.addVertexWithUV(var33, var25, var31, var15, var21);
                        var12.addVertexWithUV(var33, var25, var31, var15, var21);
                        var12.addVertexWithUV(var23, var27, var29, var17, var19);
                        var12.addVertexWithUV(var23, var27, var31, var15, var19);
                    }
                    else if (var9 != 7 && var9 != 15)
                    {
                        if (var9 == 10)
                        {
                            var12.addVertexWithUV(var23, var25, var31, var15, var21);
                            var12.addVertexWithUV(var33, var25, var29, var17, var21);
                            var12.addVertexWithUV(var33, var27, var31, (var15 + var17) / 2.0D, var19);
                            var12.addVertexWithUV(var33, var27, var31, (var15 + var17) / 2.0D, var19);
                        }
                        else if (var9 == 14)
                        {
                            var12.addVertexWithUV(var33, var25, var31, (var15 + var17) / 2.0D, var21);
                            var12.addVertexWithUV(var33, var25, var31, (var15 + var17) / 2.0D, var21);
                            var12.addVertexWithUV(var33, var27, var29, var17, var19);
                            var12.addVertexWithUV(var23, var27, var31, var15, var19);
                        }
                    }
                    else
                    {
                        var12.addVertexWithUV(var23, var25, var29, var17, var21);
                        var12.addVertexWithUV(var23, var25, var29, var17, var21);
                        var12.addVertexWithUV(var23, var27, var29, var17, var19);
                        var12.addVertexWithUV(var23, var27, var31, var15, var19);
                    }
                }
                else
                {
                    var12.addVertexWithUV(var23, var25, var31, var15, var21);
                    var12.addVertexWithUV(var23, var25, var31, var15, var21);
                    var12.addVertexWithUV(var23, var27, var29, var17, var19);
                    var12.addVertexWithUV(var23, var27, var31, var15, var19);
                }
            }
            else
            {
                var12.addVertexWithUV(var23, var25, var31, var15, var21);
                var12.addVertexWithUV(var23, var25, var29, var17, var21);
                var12.addVertexWithUV(var23, var27, var29, var17, var19);
                var12.addVertexWithUV(var23, var27, var29, var17, var19);
            }
        }
        else
        {
            var12.addVertexWithUV(var23, var25, var31, var15, var21);
            var12.addVertexWithUV(var23, var25, var29, var17, var21);
            var12.addVertexWithUV(var23, var27, var31, var15, var19);
            var12.addVertexWithUV(var23, var27, var31, var15, var19);
        }
    }
}

 

how can i resolve this?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.