bedrock-kit
    Preparing search index...

    Class SoundsFile

    Represents the parsed sounds.json file. Used internally to resolve sound events for entities and blocks. Not exposed directly on the addon surface — access events via entity.soundEvents or block.soundEvents.

    Hierarchy (View Summary)

    Index

    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

    • get blockShortnames(): string[]

      All block shortnames that have sound events defined.

      Returns string[]

    • get entityShortnames(): string[]

      All entity shortnames that have sound events defined.

      Returns string[]

    Methods