Appearance
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 โ
readonlyentity: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 โ
fields โ
readonlyfields:Record<string,unknown>
Defined in: core/values/entity-nbt/value.ts:10
Inherited from โ
IdentifiedEntityNbt.fields
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/entity-nbt/value.ts:9
Inherited from โ
IdentifiedEntityNbt.schema
value โ
readonlyvalue:NbtInput
Defined in: core/values/nbt/snbt.ts:27
Inherited from โ
withId โ
readonlywithId: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 โ
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 โ
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