bedrock-kit
    Preparing search index...

    Class Fog

    Represents a fog settings definition from the resource pack's fogs/ directory.

    Access via addon.fogs.get(id), or through biome.fog / clientBiome.fog.

    const fog = addon.fogs.get("minecraft:fog_bamboo_jungle");
    console.log(fog?.data); // raw fog settings JSON

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Parameters

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

      Returns Fog

    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 fog identifier, e.g. "minecraft:fog_bamboo_jungle".