public static int getSideGrassTexture(IBlockAccess blockAccess, int x, int y, int z, int side) {
        if (!isBetterGrass()) {
            return 3;
        } else {
            if (isBetterGrassFancy()) {
                --y;
                switch (side) {
                case 2:
                    --z;
                    break;

                case 3:
                    ++z;
                    break;

                case 4:
                    --x;
                    break;

                case 5:
                    ++x;
                }

                int blockId = blockAccess.getBlockId(x, y, z);

                if (blockId != 2) {
                    return 3;
                }
            }

            return 0;
        }
    }