Skip to content

Kiln API / kiln / PendingEntity

Class: PendingEntity ​

An entity queued by commands.spawn. entity is set once commands apply at the phase boundary.

Constructors ​

Constructor ​

ts
new PendingEntity(): PendingEntity;

Returns ​

PendingEntity

Properties ​

entity ​

ts
entity: Entity | undefined = undefined;

Methods ​

get() ​

ts
get(): Entity;

The spawned entity. Throws if commands haven't applied yet.

Returns ​

Entity