bedrock-kit
    Preparing search index...

    Class MusicDefinitionsFile

    Wraps the sounds/music_definitions.json file.

    Access via addon.music.

    const entry = addon.music?.get("bamboo_jungle");
    console.log(entry?.eventName); // "music.overworld.bamboo_jungle"

    Hierarchy (View Summary)

    • Asset
      • MusicDefinitionsFile

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    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.

    Accessors

    Methods