mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-13 15:08:35 +00:00
Added Region.shift
- Provided a default implementation using expand+contract in AbstractRegion - Overrid the implementation in the subtypes
This commit is contained in:
@ -136,6 +136,11 @@ public class EllipsoidRegion extends AbstractRegion {
|
||||
public void contract(Vector change) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shift(Vector change) throws RegionOperationException {
|
||||
center = center.add(change);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the center.
|
||||
*
|
||||
|
Reference in New Issue
Block a user