BiomeTypes Class

Caution

This class is still in pre-release. Its signature may change or it may be removed in future releases.

Supports a catalog of available biome types registered within Minecraft.

Methods

get

static "get"(typeName: string): BiomeType | undefined

Returns a specific biome type.

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.

getAll

static getAll(): BiomeType[]

Returns all registered biome types within Minecraft

Returns BiomeType[]