Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 18:40:05 +01:00
Added vararg expand and contract overload to Region and AbstractRegion.
Dieser Commit ist enthalten in:
Ursprung
e4d3f70594
Commit
ef3aeda0dc
@ -33,6 +33,18 @@ public abstract class AbstractRegion implements Region {
|
|||||||
this.world = world;
|
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 {
|
public void shift(Vector change) throws RegionOperationException {
|
||||||
expand(change);
|
expand(change);
|
||||||
contract(change);
|
contract(change);
|
||||||
|
@ -80,6 +80,14 @@ public interface Region extends Iterable<BlockVector> {
|
|||||||
*/
|
*/
|
||||||
public void expand(Vector change) throws RegionOperationException;
|
public void expand(Vector change) throws RegionOperationException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Expand the region.
|
||||||
|
*
|
||||||
|
* @param changes array/arguments with multiple related changes
|
||||||
|
* @throws RegionOperationException
|
||||||
|
*/
|
||||||
|
public void expand(Vector... changes) throws RegionOperationException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contract the region.
|
* Contract the region.
|
||||||
*
|
*
|
||||||
@ -88,6 +96,14 @@ public interface Region extends Iterable<BlockVector> {
|
|||||||
*/
|
*/
|
||||||
public void contract(Vector change) throws RegionOperationException;
|
public void contract(Vector change) throws RegionOperationException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contract the region.
|
||||||
|
*
|
||||||
|
* @param changes array/arguments with multiple related changes
|
||||||
|
* @throws RegionOperationException
|
||||||
|
*/
|
||||||
|
public void contract(Vector... changes) throws RegionOperationException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shift the region.
|
* Shift the region.
|
||||||
*
|
*
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren