/// <summary> /// Returns whether the ExtendedBlockStorages containing levels (in blocks) from arg 1 to arg 2 are fully empty /// (true) or not (false). /// </summary> public virtual bool GetAreLevelsEmpty(int par1, int par2) { if (par1 < 0) { par1 = 0; } if (par2 >= 256) { par2 = 255; } for (int i = par1; i <= par2; i += 16) { ExtendedBlockStorage extendedblockstorage = storageArrays[i >> 4]; if (extendedblockstorage != null && !extendedblockstorage.GetIsEmpty()) { return(false); } } return(true); }