public class ExtentBlockCopy extends java.lang.Object implements RegionFunction
Constructor and Description |
---|
ExtentBlockCopy(Extent source,
BlockVector3 from,
Extent destination,
BlockVector3 to,
Transform transform)
Make a new copy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(BlockVector3 position)
Apply the function to the given position.
|
public ExtentBlockCopy(Extent source, BlockVector3 from, Extent destination, BlockVector3 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(BlockVector3 position) throws WorldEditException
RegionFunction
apply
in interface RegionFunction
position
- the positionWorldEditException
- thrown on an error