Skip to content

@minecraft/server


@minecraft/server / BiomeTypes

Class: BiomeTypes ​

Defined in: @minecraft/server/index.d.ts:3759

Supports a catalog of available biome types registered within Minecraft.

Methods ​

get() ​

static get(typeName): BiomeType | undefined

Defined in: @minecraft/server/index.d.ts:3772

Parameters ​

typeName ​

string

Identifier of the biome. Generally, namespaced identifiers (e.g., minecraft:frozen_peaks) should be used.

Returns ​

BiomeType | undefined

If the biome exists, a BiomeType object is returned. If not, undefined is returned.

Remarks ​

Returns a specific biome type.


getAll() ​

static getAll(): BiomeType[]

Defined in: @minecraft/server/index.d.ts:3778

Returns ​

BiomeType[]

Remarks ​

Returns all registered biome types within Minecraft