示例#1
0
    public bool IsEmptyBetween(int startY, int endY)
    {
        if (startY < 0)
        {
            startY = 0;
        }

        if (endY >= 256)
        {
            endY = 255;
        }

        for (var i = startY; i <= endY; i += 16)
        {
            if (!ChunkSection.IsEmpty(Sections[i >> 4]))
            {
                return(false);
            }
        }

        return(true);
    }
示例#2
0
 public static bool IsEmpty(ChunkSection section)
 {
     return(section == null || section.IsEmpty());
 }