bedrock-kit
    Preparing search index...

    Class Animation

    Represents a single animation definition loaded from a resource pack animation file. Multiple animations are defined per file; each is keyed by its full identifier.

    Access via addon.animations.get(id) or through entity.resource.animations.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Parameters

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

      Returns Animation

    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 full animation identifier, e.g. "animation.humanoid.move".