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
ConstructorDescriptionBiomeReplace
(Extent extent, BiomePattern pattern) Create a new instance.BiomeReplace
(Extent extent, BiomeType biome) Create a new instance. -
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
-
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: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
-