@minecraft/server-editor
    Preparing search index...

    Class ManifestTaskPromiseBeta

    Represents a cancellable Editor task that resolves with a block utility manifest.

    Hierarchy (View Summary)

    Index

    Properties

    Methods

    Properties

    cancelled: boolean

    Whether cancellation was accepted for the task.

    progress: number

    The current normalized task progress from 0 to 1. Task groups report the average progress of their constituent tasks. Successful tasks report 1 after settlement; failed or cancelled tasks retain their last observed progress.

    promise: Promise<BlockUtilityManifest>

    The promise that resolves with the task's block utility manifest. If cancellation is accepted, the promise rejects with a TaskCancelledError.

    Methods

    • Beta

      Returns void

      Requests cancellation of the task. Calling this method more than once, or after the task has settled, has no effect.

      no-restricted-execution - This function can't be called in restricted-execution mode.