bedrock-kit
    Preparing search index...

    Class SoundDefinitionsFile

    Wraps the sounds/sound_definitions.json file.

    Access via addon.sounds.

    const entry = addon.sounds?.get("mob.zombie.say");
    console.log(entry?.category); // "mob"
    console.log(entry?.files[0].name); // "sounds/mob/zombie/say1"

    Hierarchy (View Summary)

    • Asset
      • SoundDefinitionsFile

    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