mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 11:26:42 +00:00
Deprecate expand/contract(Vector) in favor of varargs versions
This keeps things simpler by not dealing with redundant implementations for single change and multiple changes. This also let regions handle related changes in a more efficient way (for example recalculates region components only when needed).
This commit is contained in:
@ -52,16 +52,14 @@ public abstract class AbstractRegion implements Region {
|
||||
this.world = world;
|
||||
}
|
||||
|
||||
public void expand(Vector... changes) throws RegionOperationException {
|
||||
for (Vector change : changes) {
|
||||
expand(change);
|
||||
}
|
||||
@Deprecated
|
||||
public void expand(Vector change) throws RegionOperationException {
|
||||
expand(new Vector[] { change });
|
||||
}
|
||||
|
||||
public void contract(Vector... changes) throws RegionOperationException {
|
||||
for (Vector change : changes) {
|
||||
contract(change);
|
||||
}
|
||||
@Deprecated
|
||||
public void contract(Vector change) throws RegionOperationException {
|
||||
contract(new Vector[] { change });
|
||||
}
|
||||
|
||||
public void shift(Vector change) throws RegionOperationException {
|
||||
|
Reference in New Issue
Block a user