public class RegionOffset extends java.lang.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
RegionFunction
apply
in interface RegionFunction
position
- the positionWorldEditException
- thrown on an error