Added vararg expand and contract overload to Region and AbstractRegion.

This commit is contained in:
TomyLobo
2012-01-05 21:06:40 +01:00
parent e4d3f70594
commit ef3aeda0dc
2 changed files with 28 additions and 0 deletions

View File

@ -33,6 +33,18 @@ public abstract class AbstractRegion implements Region {
this.world = world;
}
public void expand(Vector... changes) throws RegionOperationException {
for (Vector change : changes) {
expand(change);
}
}
public void contract(Vector... changes) throws RegionOperationException {
for (Vector change : changes) {
contract(change);
}
}
public void shift(Vector change) throws RegionOperationException {
expand(change);
contract(change);