QcTestTerrainGenerator Class
Small rolling-hills terrain with water below the sea level, a cheap, predictable world for tests. More...
| Header: | #include <worldgen/generators/QcTestTerrainGenerator.h> |
| Inherits: | QcWorldGenerator |
Reimplemented Public Functions
| virtual std::shared_ptr<QcChunk> | generate(QcChunkPos pos) const override |
| virtual QcBlockPos | spawnPoint() const override |
Static Public Members
| int | surfaceHeight(int x, int z) |
Detailed Description
The seed plays no part.
Uses the base blocks qtcraft:stone, dirt, grass_block, sand, water.
Member Function Documentation
[override virtual] std::shared_ptr<QcChunk> QcTestTerrainGenerator::generate(QcChunkPos pos) const
Reimplements: QcWorldGenerator::generate(QcChunkPos pos) const.
[override virtual] QcBlockPos QcTestTerrainGenerator::spawnPoint() const
Reimplements: QcWorldGenerator::spawnPoint() const.
[static] int QcTestTerrainGenerator::surfaceHeight(int x, int z)
Returns the terrain height (top solid block + 1) at the world column x, z.