Class ArbitraryBiomeShape
java.lang.Object
com.sk89q.worldedit.regions.shape.ArbitraryBiomeShape
Generates solid and hollow shapes according to materials returned by the
getBiome(int, int, int, com.sk89q.worldedit.world.biome.BiomeType)
method.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
generate
(EditSession editSession, BiomeType baseBiome, boolean hollow) Generates the shape.protected abstract BiomeType
Override this function to specify the shape to generate.protected Iterable
<BlockVector3>
-
Constructor Details
-
ArbitraryBiomeShape
-
-
Method Details
-
getExtent
-
getBiome
Override this function to specify the shape to generate.- Parameters:
x
- X coordinate to be queriedz
- Z coordinate to be querieddefaultBaseBiome
- The default biome for the current column.- Returns:
- material to place or null to not place anything.
-
generate
Generates the shape.- Parameters:
editSession
- The EditSession to use.baseBiome
- The default biome type.hollow
- Specifies whether to generate a hollow shape.- Returns:
- number of affected blocks.
-