Class ExtentBlockCopy
java.lang.Object
com.sk89q.worldedit.function.block.ExtentBlockCopy
- All Implemented Interfaces:
RegionFunction
Copies blocks from one extent to another.
-
Constructor Summary
ConstructorDescriptionExtentBlockCopy
(Extent source, BlockVector3 from, Extent destination, BlockVector3 to, Transform transform) Make a new copy. -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(BlockVector3 position) Apply the function to the given position.
-
Constructor Details
-
ExtentBlockCopy
public ExtentBlockCopy(Extent source, BlockVector3 from, Extent destination, BlockVector3 to, Transform transform) Make a new copy.- Parameters:
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)
-
-
Method Details
-
apply
Description copied from interface:RegionFunction
Apply the function to the given position.- Specified by:
apply
in interfaceRegionFunction
- Parameters:
position
- the position- Returns:
- true if something was changed
- Throws:
WorldEditException
- thrown on an error
-