public class RegionOffset extends Object implements RegionFunction
| Constructor and Description |
|---|
RegionOffset(Vector offset,
RegionFunction function)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(Vector position)
Apply the function to the given position.
|
Vector |
getOffset()
Get the offset that is added to the position.
|
void |
setOffset(Vector offset)
Set the offset that is added to the position.
|
public RegionOffset(Vector offset, RegionFunction function)
offset - the offsetfunction - the function that is called with the offset positionpublic Vector getOffset()
public void setOffset(Vector offset)
offset - the offsetpublic boolean apply(Vector position) throws WorldEditException
RegionFunctionapply in interface RegionFunctionposition - the positionWorldEditException - thrown on an errorCopyright © 2010-2014. All Rights Reserved.