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); }
public static bool IsEmpty(ChunkSection section) { return(section == null || section.IsEmpty()); }