Skip to content

Class: Biomes ​

Defined in: packages/minerender/src/assets/Biomes.ts:22

Resolves biome colors through the selected version's registry and resource-pack colormaps.

Constructors ​

Constructor ​

ts
new Biomes(): Biomes;

Returns ​

Biomes

Methods ​

get() ​

ts
static get(id, origin?): Promise<Biome | undefined>;

Defined in: packages/minerender/src/assets/Biomes.ts:25

Loads a biome registry entry, or returns undefined when no source provides it.

Parameters ​

ParameterType
idstring
origin?AssetKey

Returns ​

Promise<Biome | undefined>


getColor() ​

ts
static getColor(
   id, 
   kind, 
   origin?, 
   x?, 
   z?
): Promise<number | undefined>;

Defined in: packages/minerender/src/assets/Biomes.ts:53

Returns packed sRGB, or undefined when the biome or requested water color is missing.

Parameters ​

ParameterTypeDefault value
idstringundefined
kindBiomeColorKindundefined
origin?AssetKeyundefined
x?number0
z?number0

Returns ​

Promise<number | undefined>