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