diff --git a/box.py b/box.py index dd7f0ae..a43a06b 100644 --- a/box.py +++ b/box.py @@ -142,6 +142,11 @@ class BoundingBox (object): #iterate through all of the chunk positions within this selection box return itertools.product(xrange(self.mincx, self.maxcx), xrange(self.mincz, self.maxcz)) + @property + def positions(self): + #iterate through all of the positions within this selection box + return itertools.product(xrange(self.minx, self.maxx), xrange(self.miny, self.maxy), xrange(self.minz, self.maxz)) + @property def chunkCount(self): return (self.maxcx - self.mincx) * (self.maxcz - self.mincz)