跳转到内容

WorldGens

此内容尚不支持你的语言。

Defined in: sdk/src/worldgen/worldgenPlugin.ts:257

Run-time access to the generated worlds.

new WorldGens(): WorldGens

WorldGens

diffs(world?): PlacementDiffs

Defined in: sdk/src/worldgen/worldgenPlugin.ts:277

The changes made to a world (by its name), which a save stores and reads back.

string = ...

PlacementDiffs


objectOf(id): number | null

Defined in: sdk/src/worldgen/worldgenPlugin.ts:289

The interactive entity standing for placement id, or null where its chunk is not published or the placement is removed.

string

number | null


plan(entity?): WorldPlan | null

Defined in: sdk/src/worldgen/worldgenPlugin.ts:284

A WorldGen’s plan, or the first one’s: what stands where, asked of anywhere, loaded or not. Null until it is made or if it failed.

number

WorldPlan | null


status(entity): WorldGenStatus | null

Defined in: sdk/src/worldgen/worldgenPlugin.ts:293

number

WorldGenStatus | null


zones(world?): Zones

Defined in: sdk/src/worldgen/worldgenPlugin.ts:270

The zones of a world (by its name), which a game adds to as it plans and builds. Shared by every WorldGen of that world.

string = ...

Zones