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

# world/BlockUpdateScheduler

## Classes

- [BlockUpdateScheduler](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/BlockUpdateScheduler/classes/BlockUpdateScheduler.md)

## Interfaces

### BlockUpdate

Defined in: [packages/prismarine/src/world/BlockUpdateScheduler.ts:38](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/BlockUpdateScheduler.ts#L38)

Integer world coordinates queued for a block-physics check.

#### Properties

##### x

> **x**: `number`

Defined in: [packages/prismarine/src/world/BlockUpdateScheduler.ts:39](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/BlockUpdateScheduler.ts#L39)

##### y

> **y**: `number`

Defined in: [packages/prismarine/src/world/BlockUpdateScheduler.ts:40](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/BlockUpdateScheduler.ts#L40)

##### z

> **z**: `number`

Defined in: [packages/prismarine/src/world/BlockUpdateScheduler.ts:41](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/BlockUpdateScheduler.ts#L41)

## Type Aliases

### BlockUpdateObserver

> **BlockUpdateObserver** = (`x`, `y`, `z`, `before`, `after`) => `void`

Defined in: [packages/prismarine/src/world/BlockUpdateScheduler.ts:48](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/BlockUpdateScheduler.ts#L48)

Hears one change to the queue: a position queued, moved to an earlier tick or taken off. The
due tick before and after, null for no update at the position.

#### Parameters

##### x

`number`

##### y

`number`

##### z

`number`

##### before

`number` \| `null`

##### after

`number` \| `null`

#### Returns

`void`

## Variables

### BLOCK\_UPDATE\_BUDGET\_PER\_TICK

> `const` **BLOCK\_UPDATE\_BUDGET\_PER\_TICK**: `4096` = `4096`

Defined in: [packages/prismarine/src/world/BlockUpdateScheduler.ts:30](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/BlockUpdateScheduler.ts#L30)

How many updates one tick may process before leaving the rest for the next.

A count and nothing else, so the same queue drains the same way on every host. A host too slow
to run this many in a tick's period ticks slower and does not process fewer.

## References

### blockUpdateScheduler

Renames and re-exports [BlockUpdateScheduler](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/BlockUpdateScheduler/classes/BlockUpdateScheduler.md)
