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

helix / IdentifiedEntityNbt

Interface: IdentifiedEntityNbt โ€‹

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

An EntityNbtValue whose schema named its entity, so summon can infer the type.

Extends โ€‹

Properties โ€‹

entity โ€‹

readonly entity: string

Defined in: core/values/entity-nbt/define.ts:12

The entity this schema curates, when it names one - summon infers the type from it.

Overrides โ€‹

EntityNbtValue.entity


fields โ€‹

readonly fields: Record<string, unknown>

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

Inherited from โ€‹

IdentifiedEntityNbt.fields


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 โ€‹

EntityNbtValue.lowered


schema โ€‹

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

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

Inherited from โ€‹

IdentifiedEntityNbt.schema


value โ€‹

readonly value: NbtInput

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

Inherited from โ€‹

EntityNbtValue.value


withId โ€‹

readonly withId: boolean = false

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

Whether to write the entity's own id key - see asPassenger.

Inherited from โ€‹

IdentifiedEntityNbt.withId

Methods โ€‹

asPassenger() โ€‹

asPassenger<T>(this): T

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

A copy that also writes its own id, for nested entities like Passengers.

Type Parameters โ€‹

T โ€‹

T extends EntityNbtValue

Parameters โ€‹

this โ€‹

T

Returns โ€‹

T

Inherited from โ€‹

EntityNbtValue.asPassenger


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 โ€‹

EntityNbtValue.keys


tagged() โ€‹

tagged<T>(this, ...names): T

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

A copy with extra Tags appended, so a caller can find what it summoned.

Type Parameters โ€‹

T โ€‹

T extends EntityNbtValue

Parameters โ€‹

this โ€‹

T

names โ€‹

...string[]

Returns โ€‹

T

Inherited from โ€‹

EntityNbtValue.tagged

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