public boolean render(Level level, int x, int y, int z, ShapeRenderer shapeRenderer) {
        boolean rendered = false;
        float var7 = 0.5F;
        float var8 = 0.8F;
        float var9 = 0.6F;
        ColorCache colorCache;
        if (canRenderSide(level, x, y - 1, z, 0)) {
            colorCache = getBrightness(level, x, y - 1, z);
            shapeRenderer.color(var7 * colorCache.R, var7 * colorCache.G, var7 * colorCache.B);
            renderInside(shapeRenderer, x, y, z, 0);
            rendered = true;
        }

        if (canRenderSide(level, x, y + 1, z, 1)) {
            colorCache = getBrightness(level, x, y + 1, z);
            shapeRenderer.color(colorCache.R * 1F, colorCache.G * 1F, colorCache.B * 1F);
            renderInside(shapeRenderer, x, y, z, 1);
            rendered = true;
        }

        if (canRenderSide(level, x, y, z - 1, 2)) {
            colorCache = getBrightness(level, x, y, z - 1);
            shapeRenderer.color(var8 * colorCache.R, var8 * colorCache.G, var8 * colorCache.B);
            renderInside(shapeRenderer, x, y, z, 2);
            rendered = true;
        }

        if (canRenderSide(level, x, y, z + 1, 3)) {
            colorCache = getBrightness(level, x, y, z + 1);
            shapeRenderer.color(var8 * colorCache.R, var8 * colorCache.G, var8 * colorCache.B);
            renderInside(shapeRenderer, x, y, z, 3);
            rendered = true;
        }

        if (canRenderSide(level, x - 1, y, z, 4)) {
            colorCache = getBrightness(level, x - 1, y, z);
            shapeRenderer.color(var9 * colorCache.R, var9 * colorCache.G, var9 * colorCache.B);
            renderInside(shapeRenderer, x, y, z, 4);
            rendered = true;
        }

        if (canRenderSide(level, x + 1, y, z, 5)) {
            colorCache = getBrightness(level, x + 1, y, z);
            shapeRenderer.color(var9 * colorCache.R, var9 * colorCache.G, var9 * colorCache.B);
            renderInside(shapeRenderer, x, y, z, 5);
            rendered = true;
        }

        return rendered;
    }