跳转到内容

makePage

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

makePage(source, x0, z0, size, repaint?): PageImage | Promise<PageImage>

Defined in: sdk/src/terrain/pages.ts:44

Samples a node’s page from source: square (x0, z0) to (x0 + size, z0 + size) in the terrain’s space. Heights are encoded over the source’s range. Off an area’s edge the ground is its nearest edge’s, so the pages there are whole. A source that samples regions (a provider) is asked for the page’s whole grid at once, and may answer later. repaint, given, has the last word on each sample’s paint (a world’s biomes), from the paint the source gave it.

TerrainSource

number

number

number

Repaint

PageImage | Promise<PageImage>