QcMineshaftBuilder Class
Writes the cells of a mine shaft that lie in one chunk (decision E-570), the same in any order of the chunks: reads only the chunk's own blocks before the mine shaft. More...
| Header: | #include <worldgen/mineshafts/QcMineshaftBuilder.h> |
Public Functions
| void | build(QcChunk &chunk, const QcMineshaftPlan &plan) const |
| void | buildEntrance(QcChunk &chunk, const QcMineshaftPlan::Entrance &entrance) const |
Detailed Description
In this order: pillars under open floors of bridges (posts down to the ground, at most maxPillar), planks for open floors, the open cells, liquid beside them and sand or gravel above them turned into seal (generated liquids stay still, and nothing falls in once a neighbour changes), rooms from structures, then supports, rails, cobwebs, lights and spawners. The entrance comes in a pass of its own after the terrain's trees, cacti and surface pools (buildEntrance).
Member Function Documentation
void QcMineshaftBuilder::build(QcChunk &chunk, const QcMineshaftPlan &plan) const
Writes the cells of plan that lie in chunk, in the order above (without the entrance).
void QcMineshaftBuilder::buildEntrance(QcChunk &chunk, const QcMineshaftPlan::Entrance &entrance) const
Writes the cells of entrance that lie in chunk: empties the box of three by three cells, three high, above its top and the leaves and cacti of the ring around it, and the shaft (the ladder shaft or the tunnel); seals liquid beside them and sand or gravel above them; lines the shaft with planks where it is open, then places the entrance's blocks (the ladder and the headframe, or the tunnel's supports and rails).