Skip to content

API reference Obsidian.API.Blocks

BlockUpdateFlags enum

What else happens when a block changes, like vanilla's Block.UPDATE_* flags (with vanilla's values).

public enum BlockUpdateFlags

In Obsidian.API.

Values

NameValueDescription
None 0

Only the block changes: players aren't told, and neighbours still get shape updates unless BlockUpdateFlags.KnownShape is set too.

Neighbors 1

Vanilla UPDATE_NEIGHBORS: the six neighbours hear their neighbour changed, and the block it replaced is told it was removed.

Clients 2

Vanilla UPDATE_CLIENTS: players see the change.

Invisible 4

Vanilla UPDATE_INVISIBLE: clients aren't told even when BlockUpdateFlags.Clients is set.

Immediate 8

Vanilla UPDATE_IMMEDIATE: retain immediate client-render updates, including through shape changes.

KnownShape 16

Vanilla UPDATE_KNOWN_SHAPE: neighbours don't get shape updates.

SuppressDrops 32

Vanilla UPDATE_SUPPRESS_DROPS: blocks the shape updates destroy don't drop anything.

SkipBlockEntitySideEffects 256

Vanilla UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS: a block entity the change removes keeps its contents.

SkipOnPlace 512

Vanilla UPDATE_SKIP_ON_PLACE: the new block isn't told it was placed.

All 3

Vanilla UPDATE_ALL: ordinary neighbour and client notifications.

AllImmediate 11

Vanilla UPDATE_ALL_IMMEDIATE (11), used by bucket placement and direct hand lighting.

On this page