Biome class

One biome: what covers the ground, what grows on it, what falls on it.

Constructors

Biome(String name, {required String top, String? under, int underDepth = 3, Climate climate = Climate.any, List<TreeSpec> trees = const [], int treeChance = 0, List<Plant> plants = const [], List<Cover> covers = const [], Pools? pools, String? ice, Flats? flats, Precipitation precipitation = Precipitation.rain})
A biome named name with top on its surface over under soil underDepth deep. treeChance is the per cent of tree patches (7 x 7 blocks, one tree at most) that grow one of trees.
const

Properties

blockNames → Set<String>
Every block this biome places.
no setter
climate → Climate
Where this biome grows.
final
covers → List<Cover>
What covers the ground instead of top where the surface stands in a cover's window and its roll hits, tried in order: snow on the peaks, gravel on the sea floor, patches of mud.
final
flats → Flats?
The low ground pressed flat where this biome would grow on it (a swamp's), or null for the ground as the terrain made it. Only a land biome's.
final
hashCode → int
The hash code for this object.
no setterinherited
ice → String?
The block the sea's surface freezes to here, or null for open water.
final
name → String
The biome's name, what SpecGenerator.biomeAt answers.
final
plants → List<Plant>
Small plants, one roll per column, tried in order.
final
pools → Pools?
Shallow pools in the low ground, or null for none.
final
precipitation → Precipitation
What falls here when the weather turns.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
top → String
The surface block.
final
treeChance → int
Per cent of tree patches that hold a tree.
final
trees → List<TreeSpec>
The trees it grows, one picked per tree by its roll, weighted by TreeSpec.weight.
final
under → String
The soil under top.
final
underDepth → int
How deep the soil runs under the surface block.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited