API reference / @jsprismarine/prismarine / entity/data/storeActors / StoreActors
Class: StoreActors
Defined in: packages/prismarine/src/entity/data/storeActors.ts:608
The actors of one dimension's store, one per entity.
Constructors
Constructor
new StoreActors(
options):StoreActors
Defined in: packages/prismarine/src/entity/data/storeActors.ts:613
Parameters
options
Returns
StoreActors
Accessors
droppedItemCount
Get Signature
get droppedItemCount():
number
Defined in: packages/prismarine/src/entity/data/storeActors.ts:631
How many of the actors are dropped stacks, which is how many lie in the world.
Returns
number
size
Get Signature
get size():
number
Defined in: packages/prismarine/src/entity/data/storeActors.ts:626
How many actors there are, which is what a test counts.
Returns
number
Methods
actorOf()
actorOf(
id):StoreActor|undefined
Defined in: packages/prismarine/src/entity/data/storeActors.ts:616
The actor of one store entity, or undefined when it has none.
Parameters
id
number
Returns
StoreActor | undefined
add()
add(
entity):void
Defined in: packages/prismarine/src/entity/data/storeActors.ts:639
Gives a store entity the runtime just made its actor. Clients are shown it from its entering entry in the change log.
Parameters
entity
Returns
void
all()
all():
MapIterator<StoreActor>
Defined in: packages/prismarine/src/entity/data/storeActors.ts:621
Every actor, in the order the store made them.
Returns
MapIterator<StoreActor>
clear()
clear():
void
Defined in: packages/prismarine/src/entity/data/storeActors.ts:662
Forgets every actor, for a world that is closing.
Returns
void
remove()
remove(
entity):void
Defined in: packages/prismarine/src/entity/data/storeActors.ts:655
Forgets the actor of a store entity the runtime removed. Clients are told from its leaving entry in the change log.
Parameters
entity
Returns
void