[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/prismarine](https://jsprismarine.dev/api/@jsprismarine/prismarine/index.md) / world/changelog/TickHeader

# world/changelog/TickHeader

## Type Aliases

### Plain

> **Plain**\<`Shape`\> = `Shape`

Defined in: [packages/prismarine/src/world/changelog/TickHeader.ts:4](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/changelog/TickHeader.ts#L4)

A shape checked to be plain data where it is declared.

#### Type Parameters

##### Shape

`Shape` *extends* [`PlainRecord`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/changelog/PlainData/index.md#plainrecord)

***

### TickHeader

> **TickHeader** = [`Plain`](#plain)\<\{ `gameRules`: readonly (readonly \[`string`, readonly \[`boolean` \| `number`, `boolean`\]\])[]; `pendingChunkLoads`: readonly (readonly \[`number`, `string`\])[]; `pendingLighting`: [`Plain`](#plain)\<\{ `deferred`: `number`; `queued`: `number`; \}\>; `randomTickState`: `number`; `settlingChunks`: readonly `number`[]; `tick`: `number`; `weather`: [`Plain`](#plain)\<\{ `clearWeatherTime`: `number`; `raining`: `boolean`; `rainTime`: `number`; `thundering`: `boolean`; `thunderTime`: `number`; \}\>; \}\>

Defined in: [packages/prismarine/src/world/changelog/TickHeader.ts:24](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/changelog/TickHeader.ts#L24)

What a world's own clocks and the work it has in flight were as a tick sealed: the part of the
replay digest that no entry of the change log carries
([ADR 0012](https://jsprismarine.dev/adr/0012-the-change-log-is-the-history.md)).

Each of these moves every tick whether or not anything was written, so an entry for each would
break the rule that an idle world appends nothing. The sealed tick carries them once instead,
which is how a snapshot plus the log reaches a later tick's digest without running the tick.

- The level clock, the weather cycle and the random tick generator advance on every tick.
- The game rules belong to the level, which every world of it shares, so no one world's log owns
  a change to them.
- The light queue is work derived from block writes, and only a tick drains it.
- The chunk loads in flight are requests whose completions arrive as inputs
  ([ADR 0009](https://jsprismarine.dev/adr/0009-external-inputs-enter-once-per-tick.md)).
- The chunks still settling decide whether what the world destroys drops, and a chunk stops
  settling on a tick that writes nothing.
