Class BiomeReplace
java.lang.Object
com.sk89q.worldedit.function.biome.BiomeReplace
- All Implemented Interfaces:
Filter,FlatRegionFunction,RegionFunction
Replaces the biome at the locations that this function is applied to.
-
Constructor Summary
ConstructorsConstructorDescriptionBiomeReplace(Extent extent, BiomePattern pattern) Create a new instance.BiomeReplace(Extent extent, BiomeType biome) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(BlockVector2 position) Deprecated.booleanapply(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, waitMethods inherited from interface com.fastasyncworldedit.core.queue.Filter
applyChunk, finish, finishChunk, fork, joinMethods inherited from interface com.sk89q.worldedit.function.RegionFunction
applyBlock
-
Constructor Details
-
BiomeReplace
Create a new instance.- Parameters:
extent- an extentbiome- a biome
-
BiomeReplace
Create a new instance.- Parameters:
extent- the extent to apply this function topattern- the biome pattern to set
-
-
Method Details
-
apply
Description copied from interface:RegionFunctionApply the function to the given position.- Specified by:
applyin interfaceRegionFunction- Parameters:
position- the position- Returns:
- true if something was changed
- Throws:
WorldEditException- thrown on an error
-
apply
Deprecated.Description copied from interface:FlatRegionFunctionApply the function to the given position.- Specified by:
applyin interfaceFlatRegionFunction- Parameters:
position- the position- Returns:
- true if something was changed
- Throws:
WorldEditException- thrown on an error
-