Skip to content

API reference / @jsprismarine/worldgen / FixedBiomeSource

Class: FixedBiomeSource ​

Defined in: biome/BiomeSource.ts:75

A biome source that answers with the same biome everywhere.

Implements ​

Constructors ​

Constructor ​

new FixedBiomeSource(biome): FixedBiomeSource

Defined in: biome/BiomeSource.ts:76

Parameters ​

biome ​

string

The biome identifier every cell resolves to.

Returns ​

FixedBiomeSource

Properties ​

biome ​

readonly biome: string

Defined in: biome/BiomeSource.ts:78

The biome identifier every cell resolves to.

Methods ​

possibleBiomes() ​

possibleBiomes(): readonly string[]

Defined in: biome/BiomeSource.ts:82

Every biome this source can produce, which the surface pass uses to prune rules.

Returns ​

readonly string[]

Implementation of ​

BiomeSource.possibleBiomes


resolver() ​

resolver(): BiomeResolver

Defined in: biome/BiomeSource.ts:87

Binds the source to one world's climate functions.

Returns ​

BiomeResolver

Implementation of ​

BiomeSource.resolver