public class BiomeReplace extends java.lang.Object implements FlatRegionFunction, RegionFunction
Constructor and Description |
---|
BiomeReplace(Extent extent,
BiomePattern pattern)
Create a new instance.
|
BiomeReplace(Extent extent,
BiomeType biome)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(BlockVector2 position)
Deprecated.
|
boolean |
apply(BlockVector3 position)
Apply the function to the given position.
|
public BiomeReplace(Extent extent, BiomeType biome)
extent
- an extentbiome
- a biomepublic BiomeReplace(Extent extent, BiomePattern pattern)
extent
- the extent to apply this function topattern
- the biome pattern to setpublic boolean apply(BlockVector3 position) throws WorldEditException
RegionFunction
apply
in interface RegionFunction
position
- the positionWorldEditException
- thrown on an error@Deprecated public boolean apply(BlockVector2 position) throws WorldEditException
FlatRegionFunction
apply
in interface FlatRegionFunction
position
- the positionWorldEditException
- thrown on an error