Skip to content

API reference / @jsprismarine/prismarine / world/WorldManager

world/WorldManager ​

Classes ​

Type Aliases ​

LevelOrigin ​

LevelOrigin = "config" | "registry"

Defined in: packages/prismarine/src/world/WorldManager.ts:62

Where a level comes from: the config's worlds, or levels.json, which records the ones created at runtime.


LevelState ​

LevelState = "attaching" | "attached" | "detaching"

Defined in: packages/prismarine/src/world/WorldManager.ts:68

Where a level is in its lifecycle. A level the manager has no state for is detached: not loaded, its files left as they were.

References ​

WorldData ​

Re-exports WorldData