bedrock-kit
    Preparing search index...

    Class ClientBiome

    Represents a resource pack client biome definition file (biomes/ directory). Contains client-side biome data: fog, sky color, foliage color, ambient sounds.

    Access via biome.resource on a unified Biome.

    const biome = addon.biomes.get("tsu_nat:maple_forest");
    console.log(biome?.resource?.fog?.id); // "tsu_nat:maple_forest_fog"
    console.log(biome?.resource?.ambientSounds); // SoundEventBinding[]

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Constructors

    • Parameters

      • id: string
      • filePath: string
      • data: Record<string, unknown>
      • rawText: string
      • addon: AddOn

      Returns ClientBiome

    Properties

    data: Record<string, unknown>

    The raw parsed JSON data of the asset file.

    docstrings: CommentBlock[]

    All JSDoc-style comment blocks parsed from this asset's source file, in document order. Empty array when no /** … */ blocks are present.

    filePath: string

    Absolute path to the asset's file on disk. Empty string in browser mode.

    id: string

    The namespaced biome identifier, e.g. "tsu_nat:maple_forest".

    Accessors