Class ExtentBiomeCopy
java.lang.Object
com.sk89q.worldedit.function.biome.ExtentBiomeCopy
- All Implemented Interfaces:
Filter
,FlatRegionFunction
,RegionFunction
Copies the biome from one extent to another.
-
Constructor Summary
ConstructorDescriptionExtentBiomeCopy
(Extent source, BlockVector2 from, Extent destination, BlockVector2 to, Transform transform) Deprecated.ExtentBiomeCopy
(Extent source, BlockVector3 from, Extent destination, BlockVector3 to, Transform transform) Make a new biome copy. -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(BlockVector2 position) Deprecated.boolean
apply
(BlockVector3 position) Apply the function to the given position.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fastasyncworldedit.core.queue.Filter
applyChunk, finishChunk, fork, join
Methods inherited from interface com.sk89q.worldedit.function.RegionFunction
applyBlock
-
Constructor Details
-
ExtentBiomeCopy
@Deprecated public ExtentBiomeCopy(Extent source, BlockVector2 from, Extent destination, BlockVector2 to, Transform transform) Make a new biome 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)
-
ExtentBiomeCopy
public ExtentBiomeCopy(Extent source, BlockVector3 from, Extent destination, BlockVector3 to, Transform transform) Make a new biome 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
-
apply
Deprecated.Description copied from interface:FlatRegionFunction
Apply the function to the given position.- Specified by:
apply
in interfaceFlatRegionFunction
- Parameters:
position
- the position- Returns:
- true if something was changed
- Throws:
WorldEditException
- thrown on an error
-
ExtentBiomeCopy(Extent, BlockVector3, Extent, BlockVector3, Transform)