Added getChunkCubes() to Region to get 16^3 chunks a region overlaps with

This commit is contained in:
zml2008
2012-03-29 21:06:43 -07:00
parent 3bfb12c051
commit 03f7d4ecfb
5 changed files with 161 additions and 42 deletions

View File

@ -130,17 +130,24 @@ public interface Region extends Iterable<BlockVector> {
* @return
*/
public Set<Vector2D> getChunks();
/**
* Return a list of 16*16*16 chunks in a region
*
* @return The chunk cubes this region overlaps with
*/
public Set<Vector> getChunkCubes();
/**
* Get the world the selection is in
*
*
* @return
*/
public LocalWorld getWorld();
/**
* Sets the world the selection is in
*
*
* @return
*/
public void setWorld(LocalWorld world);