WorldGenSpec constructor
const
WorldGenSpec({
- required List<
Biome> biomes, - int seaLevel = 46,
- TerrainRecipe terrain = const TerrainRecipe(),
- String stone = 'stone',
- String water = 'water',
- String? bedrock,
- Biome? ocean,
- Biome? beach,
- List<
Biome> shores = const [], - List<
Stratum> strata = const [], - List<
Ore> ores = const [], - CaveSpec caves = const CaveSpec(),
- List<
StructureSpec> structures = const [], - CavernSpec? cavern,
- 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,
});