mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-13 14:58:35 +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:
@ -75,9 +75,11 @@ public interface Region extends Iterable<BlockVector> {
|
||||
/**
|
||||
* Expand the region.
|
||||
*
|
||||
* @deprecated will be seamlessly replaced by {@link #expand(Vector...)
|
||||
* @param change
|
||||
* @throws RegionOperationException
|
||||
*/
|
||||
@Deprecated
|
||||
public void expand(Vector change) throws RegionOperationException;
|
||||
|
||||
/**
|
||||
@ -91,9 +93,11 @@ public interface Region extends Iterable<BlockVector> {
|
||||
/**
|
||||
* Contract the region.
|
||||
*
|
||||
* @deprecated will be seamlessly replaced by {@link #contract(Vector...)
|
||||
* @param change
|
||||
* @throws RegionOperationException
|
||||
*/
|
||||
@Deprecated
|
||||
public void contract(Vector change) throws RegionOperationException;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user