WorldGens
此内容尚不支持你的语言。
Defined in: sdk/src/worldgen/worldgenPlugin.ts:257
Run-time access to the generated worlds.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WorldGens():
WorldGens
Returns
Section titled “Returns”WorldGens
Methods
Section titled “Methods”diffs()
Section titled “diffs()”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.
Parameters
Section titled “Parameters”world?
Section titled “world?”string = ...
Returns
Section titled “Returns”objectOf()
Section titled “objectOf()”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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”number | null
plan()
Section titled “plan()”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.
Parameters
Section titled “Parameters”entity?
Section titled “entity?”number
Returns
Section titled “Returns”WorldPlan | null
status()
Section titled “status()”status(
entity):WorldGenStatus|null
Defined in: sdk/src/worldgen/worldgenPlugin.ts:293
Parameters
Section titled “Parameters”entity
Section titled “entity”number
Returns
Section titled “Returns”WorldGenStatus | null
zones()
Section titled “zones()”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.
Parameters
Section titled “Parameters”world?
Section titled “world?”string = ...