A class that provides system-level events and functions.

Hierarchy

  • System

Constructors

Properties

Methods

Constructors

  • Returns System

Properties

events: SystemEvents

Contains a set of events that are applicable for the lifecycle of items in the Minecraft system.

Methods

  • Parameters

    • callback: ((arg) => void)

      Function callback to run when the tickDelay time criteria is met.

        • (arg): void
        • Parameters

          Returns void

    Returns void

    An opaque identifier that can be used with the clearRun function to cancel the execution of this run.

    Remarks

    Runs a specified function at a future time. This is frequently used to implement delayed behaviors and game loops.