[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/prismarine](https://jsprismarine.dev/api/@jsprismarine/prismarine/index.md) / world/WorldManager

# world/WorldManager

## Classes

- [WorldManager](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/WorldManager/classes/WorldManager.md)

## Type Aliases

### LevelOrigin

> **LevelOrigin** = `"config"` \| `"registry"`

Defined in: [packages/prismarine/src/world/WorldManager.ts:62](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldManager.ts#L62)

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](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldManager.ts#L68)

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](https://jsprismarine.dev/api/@jsprismarine/prismarine/config/JsonConfigTypes/index.md#worlddata)
