Taos API Reference
    Preparing search index...

    Class ScheduledTickQueue

    Binary min-heap of scheduled block ticks, ordered by due time then insertion order (stable FIFO among same-tick entries). At most one pending tick per position — re-scheduling an already-pending block is a no-op, the way fluids and redstone want it.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    Methods

    • Schedules a tick for (x,y,z) at dueTime; ignored if one is already pending there.

      Parameters

      • x: number
      • y: number
      • z: number
      • blockId: number
      • dueTime: number

      Returns void

    • Pops and returns the earliest entry due at or before now, or undefined.

      Parameters

      • now: number

      Returns ScheduledEntry | undefined