Blockbench Reference Docs
    Preparing search index...

    Keyframe class

    BBKeyframe is an alias for Keyframe. Blockbench's Keyframe class conflicts with libdom's Keyframe type with its own Keyframe Class, but TypeScript doesn't include a way to overwrite UMD global types.

    You can use BBKeyframe to get around the Typescript conflict, or use Keyframe.

    Index

    Constructors

    Methods

    • Parameters

      • Optionaldata_point: number

      Returns (string | number)[]

    • Parameters

      • Optionaldata_point: number
      • Optionalget_quaternion: boolean

      Returns Vector3 | Euler | Quaternion

    Properties

    animator: GeneralAnimator
    bezier_left_time: ArrayVector3
    bezier_left_value: ArrayVector3
    bezier_linked: boolean
    bezier_right_time: ArrayVector3
    bezier_right_value: ArrayVector3
    channel: string
    color: number
    cooldown?: boolean
    data_points: KeyframeDataPoint[]
    has_expressions: boolean
    interpolation: string
    selected: boolean
    time: number
    transform: boolean
    uniform: boolean
    uuid: string
    selected: BBKeyframe[]