Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / BlockEntityNbtValue

Class: BlockEntityNbtValue โ€‹

Defined in: core/values/block-entity-nbt/value.ts:7

A block entity's NBT, assembled from its schema at codegen against the target version.

Extends โ€‹

Extended by โ€‹

Constructors โ€‹

Constructor โ€‹

new BlockEntityNbtValue(schema, fields, blockEntityType?): BlockEntityNbtValue

Defined in: core/values/block-entity-nbt/value.ts:9

Parameters โ€‹

schema โ€‹

Record<string, FieldSpec<never>>

fields โ€‹

Record<string, unknown>

blockEntityType? โ€‹

string

The block_entity_type this schema curates, when it names one.

Returns โ€‹

BlockEntityNbtValue

Overrides โ€‹

NbtValue.constructor

Properties โ€‹

blockEntityType? โ€‹

readonly optional blockEntityType?: string

Defined in: core/values/block-entity-nbt/value.ts:13

The block_entity_type this schema curates, when it names one.


fields โ€‹

readonly fields: Record<string, unknown>

Defined in: core/values/block-entity-nbt/value.ts:11


lowered โ€‹

protected readonly lowered: true = true

Defined in: core/values/value.ts:14

Tells lowered values apart from plain objects (e.g. NBT compounds).

Inherited from โ€‹

NbtValue.lowered


schema โ€‹

readonly schema: Record<string, FieldSpec<never>>

Defined in: core/values/block-entity-nbt/value.ts:10


value โ€‹

readonly value: NbtInput

Defined in: core/values/nbt/snbt.ts:27

Inherited from โ€‹

NbtValue.value

Methods โ€‹

keys() โ€‹

keys(): string[] | undefined

Defined in: core/values/nbt/snbt.ts:32

The top-level keys of a compound, or undefined for raw SNBT or anything else.

Returns โ€‹

string[] | undefined

Inherited from โ€‹

NbtValue.keys

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.