/// <summary> /// Gets the timestamp of the chunk from its underlying region file. /// </summary> /// <param name="cx">The global X-coordinate of a chunk.</param> /// <param name="cz">The global Z-coordinate of a chunk.</param> /// <returns>The timestamp of the chunk from its underlying region file.</returns> /// <remarks>The value returned may differ from any timestamp stored in the chunk data itself.</remarks> public int GetChunkTimestamp(int cx, int cz) { IRegion r = GetRegion(cx, cz); if (r == null) { return(0); } return(r.GetChunkTimestamp(cx & REGION_XMASK, cz & REGION_ZMASK)); }
/// <inherits /> public int GetChunkTimestamp(int lcx, int lcz) { if (!LocalBoundsCheck(lcx, lcz)) { IRegion alt = GetForeignRegion(lcx, lcz); return((alt == null) ? 0 : alt.GetChunkTimestamp(ForeignX(lcx), ForeignZ(lcz))); } RegionFile rf = GetRegionFile(); return(rf.GetTimestamp(lcx, lcz)); }