API reference / @jsprismarine/prismarine / Entities
Entities
Classes
Functions
writtenEntities()
writtenEntities():
ReadonlyMap<string,SpawnableEntityClass>
Defined in: prismarine/src/entity/Entities.ts:28
The written classes a position alone can build, by the identifier each carries.
A function rather than a constant so the map is built after every module in the import cycle has loaded, then memoized.
Returns
ReadonlyMap<string, SpawnableEntityClass>
The classes, keyed by MOB_ID.