Skip to content

API reference / @jsprismarine/prismarine / block/state/BlockState

block/state/BlockState ​

Classes ​

Type Aliases ​

BlockStatePropertyType ​

BlockStatePropertyType = "byte" | "int" | "string"

Defined in: packages/prismarine/src/block/state/BlockState.ts:13

How a property is written to NBT. byte is vanilla's boolean.


BlockStateValue ​

BlockStateValue = string | number | boolean

Defined in: packages/blocks/src/hooks.ts:42

A block state value as the palette holds it; booleans travel as 0 and 1 on the wire.

References ​

blockState ​

Renames and re-exports BlockState