CaveBiomeGenerator
A static class in Root.Township, Alta.Caves.
Static helper that picks the biome, or blend of two biomes, for each cave layer. Called by CaveLayerManager when it generates layers.
- Listed in World generation
- Documented in Caves
Methods
| Member | What it is |
|---|---|
static GeneratedBiome Generate(int biomeSeed, int layer, GeneratedBiome previous) | Works out a layer's biome from the previous layer's: may start a transition to a new biome, advance one, or finish it. Seeded by biomeSeed. |
static GeneratedBiome Preview(int depth, HashFunction hash, Biome biomeFrom, Biome biomeTo, float transition) | Builds a biome for a layer from a given from/to biome and transition amount, without the layer-to-layer logic. Used for previews. |
static GeneratedBiome Preview(Section section, int layer, HashFunction hash, Biome biomeFrom, Biome biomeTo, float transition) | Builds a biome for a layer from a given from/to biome and transition amount, without the layer-to-layer logic. Used for previews. |
1 private and internal method
| Member | What it is |
|---|---|
private static GeneratedBiome Preview(int seed, GeneratingBiome generating, Biome biomeFrom, Biome biomeTo, float transition) | Builds a biome for a layer from a given from/to biome and transition amount, without the layer-to-layer logic. Used for previews. |