Appearance
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 โ
Properties โ
blockEntityType? โ
readonlyoptionalblockEntityType?:string
Defined in: core/values/block-entity-nbt/value.ts:13
The block_entity_type this schema curates, when it names one.
fields โ
readonlyfields:Record<string,unknown>
Defined in: core/values/block-entity-nbt/value.ts:11
lowered โ
protectedreadonlylowered:true=true
Defined in: core/values/value.ts:14
Tells lowered values apart from plain objects (e.g. NBT compounds).
Inherited from โ
schema โ
readonlyschema:Record<string,FieldSpec<never>>
Defined in: core/values/block-entity-nbt/value.ts:10
value โ
readonlyvalue:NbtInput
Defined in: core/values/nbt/snbt.ts:27
Inherited from โ
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