Skip to content

API reference / @jsprismarine/worldgen / CheckerboardBiomeSource

Class: CheckerboardBiomeSource ​

Defined in: biome/BiomeSource.ts:96

A biome source that tiles its biomes into square columns, which is what the checkerboard world preset uses for debugging.

Implements ​

Constructors ​

Constructor ​

new CheckerboardBiomeSource(biomes, scale?): CheckerboardBiomeSource

Defined in: biome/BiomeSource.ts:99

Parameters ​

biomes ​

readonly string[]

The biomes, cycled in order.

scale? ​

number = 2

The square size, as a power of two in biome cells; Java's default is 2.

Returns ​

CheckerboardBiomeSource

Properties ​

biomes ​

readonly biomes: readonly string[]

Defined in: biome/BiomeSource.ts:101

The biomes, cycled in order.


scale ​

readonly scale: number = 2

Defined in: biome/BiomeSource.ts:103

The square size, as a power of two in biome cells; Java's default is 2.

Methods ​

possibleBiomes() ​

possibleBiomes(): readonly string[]

Defined in: biome/BiomeSource.ts:110

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:115

Binds the source to one world's climate functions.

Returns ​

BiomeResolver

Implementation of ​

BiomeSource.resolver