WorldGenSpec constructor

const WorldGenSpec({
  1. required List<Biome> biomes,
  2. int seaLevel = 46,
  3. TerrainRecipe terrain = const TerrainRecipe(),
  4. String stone = 'stone',
  5. String water = 'water',
  6. String? bedrock,
  7. Biome? ocean,
  8. Biome? beach,
  9. List<Biome> shores = const [],
  10. List<Stratum> strata = const [],
  11. List<Ore> ores = const [],
  12. CaveSpec caves = const CaveSpec(),
  13. List<StructureSpec> structures = const [],
  14. CavernSpec? cavern,
  15. Plaza? plaza,
})

A world. biomes are tried in order and the first whose Climate matches a column wins; the last one is the fallback, whatever its climate. ocean and beach take the columns below and just above seaLevel when given, and shores the beach's where their climate holds. With a cavern the world is a roofed slab of stone instead (see CavernSpec).

Implementation

const WorldGenSpec({
  required this.biomes,
  this.seaLevel = 46,
  this.terrain = const TerrainRecipe(),
  this.stone = 'stone',
  this.water = 'water',
  this.bedrock,
  this.ocean,
  this.beach,
  this.shores = const [],
  this.strata = const [],
  this.ores = const [],
  this.caves = const CaveSpec(),
  this.structures = const [],
  this.cavern,
  this.plaza,
});