public class RegionOffset extends java.lang.Object implements RegionFunction
Constructor and Description |
---|
RegionOffset(BlockVector3 offset,
RegionFunction function)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(BlockVector3 position)
Apply the function to the given position.
|
BlockVector3 |
getOffset()
Get the offset that is added to the position.
|
void |
setOffset(BlockVector3 offset)
Set the offset that is added to the position.
|
public RegionOffset(BlockVector3 offset, RegionFunction function)
offset
- the offsetfunction
- the function that is called with the offset positionpublic BlockVector3 getOffset()
public void setOffset(BlockVector3 offset)
offset
- the offsetpublic boolean apply(BlockVector3 position) throws WorldEditException
RegionFunction
apply
in interface RegionFunction
position
- the positionWorldEditException
- thrown on an error