/// <inherits /> public NbtTree GetChunkTree(int lcx, int lcz) { if (!LocalBoundsCheck(lcx, lcz)) { IRegion alt = GetForeignRegion(lcx, lcz); return((alt == null) ? null : alt.GetChunkTree(ForeignX(lcx), ForeignZ(lcz))); } RegionFile rf = GetRegionFile(); Stream nbtstr = rf.GetChunkDataInputStream(lcx, lcz); if (nbtstr == null) { return(null); } NbtTree tree = new NbtTree(nbtstr); nbtstr.Close(); return(tree); }