public class ExtentBlockCopy extends java.lang.Object implements RegionFunction
Constructor and Description |
---|
ExtentBlockCopy(Extent source,
Vector from,
Extent destination,
Vector to,
Transform transform)
Make a new copy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(Vector position)
Apply the function to the given position.
|
public ExtentBlockCopy(Extent source, Vector from, Extent destination, Vector to, Transform transform)
source
- the source extentfrom
- the source offsetdestination
- the destination extentto
- the destination offsettransform
- a transform to apply to positions (after source offset, before destination offset)public boolean apply(Vector position) throws WorldEditException
RegionFunction
apply
in interface RegionFunction
position
- the positionWorldEditException
- thrown on an error