Created pattern, mask, and block registries.

Deprecated getBlock, getBlockPattern, and so-on in WorldEdit.
This commit is contained in:
sk89q
2014-04-03 17:52:53 -07:00
parent 589c3e9629
commit 9d08f266bf
32 changed files with 2192 additions and 478 deletions

View File

@ -19,6 +19,8 @@
package com.sk89q.worldedit.extent;
import com.sk89q.worldedit.Vector;
/**
* A world, portion of a world, clipboard, or other object that can have blocks
* set or entities placed.
@ -27,4 +29,25 @@ package com.sk89q.worldedit.extent;
* @see OutputExtent the set____() portion
*/
public interface Extent extends InputExtent, OutputExtent {
/**
* Get the minimum point in the extent.
* </p>
* If the extent is unbounded, then a large (negative) value may
* be returned.
*
* @return the minimum point
*/
Vector getMinimumPoint();
/**
* Get the maximum point in the extent.
* </p>
* If the extent is unbounded, then a large (positive) value may
* be returned.
*
* @return the maximum point
*/
Vector getMaximumPoint();
}

View File

@ -70,6 +70,16 @@ public class ExtentDelegate implements Extent {
return extent.setBlock(location, block);
}
@Override
public Vector getMinimumPoint() {
return extent.getMinimumPoint();
}
@Override
public Vector getMaximumPoint() {
return extent.getMaximumPoint();
}
protected Operation commitBefore() {
return null;
}
@ -88,4 +98,5 @@ public class ExtentDelegate implements Extent {
return null;
}
}
}