API reference / @jsprismarine/worldgen / MultiNoiseBiomeSource
Class: MultiNoiseBiomeSource
Defined in: biome/BiomeSource.ts:128
The climate-driven biome source every vanilla overworld and nether uses.
Each biome owns one or more boxes in seven-dimensional climate space, and a cell takes the biome of the nearest box. The vanilla overworld list holds 7594 boxes over 56 biomes, which is why the lookup goes through ClimateParameterList's search tree.
Implements
Constructors
Constructor
new MultiNoiseBiomeSource(
parameters):MultiNoiseBiomeSource
Defined in: biome/BiomeSource.ts:129
Parameters
parameters
ClimateParameterIndex<string>
The boxes and the biome each claims.
Returns
MultiNoiseBiomeSource
Properties
parameters
readonlyparameters:ClimateParameterIndex<string>
Defined in: biome/BiomeSource.ts:131
The boxes and the biome each claims.
Methods
possibleBiomes()
possibleBiomes(): readonly
string[]
Defined in: biome/BiomeSource.ts:167
Every biome this source can produce, which the surface pass uses to prune rules.
Returns
readonly string[]
Implementation of
resolver()
resolver(
sampler):BiomeResolver
Defined in: biome/BiomeSource.ts:172
Binds the source to one world's climate functions.
Parameters
sampler
Returns
Implementation of
fromJson()
staticfromJson(source,path?):MultiNoiseBiomeSource
Defined in: biome/BiomeSource.ts:140
Reads a worldgen/multi_noise_biome_source_parameter_list document, or the biomes list a multi_noise biome source carries inline.
Parameters
source
unknown
path?
string = '<multi_noise>'
Returns
MultiNoiseBiomeSource
Throws
When an entry is missing its biome or parameters field.