QcWorldSetup Struct
What a world generator puts into a new world once, when the world is created (decision E-221): the world's rules and what its structures bring along, in world coordinates: creatures, contents of chests and machines, minecarts, boats, block updates to run (liquids flow, sand falls) and saplings that grow. More...
| Header: | #include <worldgen/generators/QcWorldSetup.h> |
Public Types
Public Variables
| QcAdventureRules | adventure |
| QList<QcWorldSetup::Boat> | boats |
| QList<QcWorldSetup::Contents> | contents |
| bool | daylightCycle |
| bool | explosionBlockDamage |
| bool | fireSpread |
| QList<QcBlockPos> | growing |
| QList<QcWorldSetup::Hanging> | hangings |
| QList<QcWorldSetup::Cart> | minecarts |
| bool | mobGriefing |
| bool | mobSpawning |
| QList<QcWorldSetup::Mob> | mobs |
| bool | randomTicks |
| QList<QcWorldSetup::Sign> | signs |
| QList<QcWorldSetup::Stand> | stands |
| std::optional<double> | timeOfDay |
| QList<QcBlockPos> | updates |
| bool | weatherCycle |
Static Public Members
| QcWorldSetup | fromRules(const QcWorldTypeRules &rules) |
Detailed Description
The server applies it before the first player joins and records that in world.json.
Member Type Documentation
[alias] QcWorldSetup::Boat
A boat to place.
[alias] QcWorldSetup::Cart
A minecart to place.
[alias] QcWorldSetup::Contents
The items of a container block or a container minecart.
[alias] QcWorldSetup::Hanging
An item frame or a painting.
[alias] QcWorldSetup::Mob
A creature to place.
[alias] QcWorldSetup::Sign
The text of a sign.
[alias] QcWorldSetup::Stand
An armour stand to place.
Member Function Documentation
[static] QcWorldSetup QcWorldSetup::fromRules(const QcWorldTypeRules &rules)
Returns a setup with only the time of day, daylight cycle and creature spawning of rules, the rules of a world type (flat, void).
Member Variable Documentation
QcAdventureRules QcWorldSetup::adventure
The adventure allow-lists the world starts with (decision E-735; the showcase's station).
QList<QcWorldSetup::Boat> QcWorldSetup::boats
Boats (decision E-920).
QList<QcWorldSetup::Contents> QcWorldSetup::contents
Contents of chests, machines and container minecarts.
bool QcWorldSetup::daylightCycle
Game rule daylightCycle.
bool QcWorldSetup::explosionBlockDamage
Game rule explosionBlockDamage (decision E-603).
bool QcWorldSetup::fireSpread
Game rule fireSpread (decision E-392).
QList<QcBlockPos> QcWorldSetup::growing
Saplings that grow.
QList<QcWorldSetup::Hanging> QcWorldSetup::hangings
Item frames and paintings (decision E-797).
QList<QcWorldSetup::Cart> QcWorldSetup::minecarts
Minecarts on rails (decisions E-382, E-386).
bool QcWorldSetup::mobGriefing
Game rule mobGriefing (decision E-460).
bool QcWorldSetup::mobSpawning
Game rule mobSpawning.
QList<QcWorldSetup::Mob> QcWorldSetup::mobs
Creatures.
bool QcWorldSetup::randomTicks
Game rule randomTicks.
QList<QcWorldSetup::Sign> QcWorldSetup::signs
Text on signs (decision E-766).
QList<QcWorldSetup::Stand> QcWorldSetup::stands
Armour stands.
std::optional<double> QcWorldSetup::timeOfDay
Seconds into the day the world starts at (QcDayCycle), else the usual morning.
QList<QcBlockPos> QcWorldSetup::updates
Blocks whose block update runs once (liquids flow, sand falls, circuits start).
bool QcWorldSetup::weatherCycle
Game rule weatherCycle (decision E-395).