Skip to content

API reference / @jsprismarine/prismarine / world/mapTerrain

world/mapTerrain ​

Interfaces ​

MapWorld ​

Defined in: packages/prismarine/src/world/mapTerrain.ts:78

The world a map is drawn from.

Methods ​

getDimension() ​

getDimension(): object

Defined in: packages/prismarine/src/world/mapTerrain.ts:80

Returns ​

object

java ​

readonly java: object

java.hasCeiling ​

readonly hasCeiling: boolean

minY ​

readonly minY: number

getLoadedChunk() ​

getLoadedChunk(chunkX, chunkZ): Chunk | null

Defined in: packages/prismarine/src/world/mapTerrain.ts:79

Parameters ​
chunkX ​

number

chunkZ ​

number

Returns ​

Chunk | null

Functions ​

mapTerrainOf() ​

mapTerrainOf(world): MapTerrain

Defined in: packages/prismarine/src/world/mapTerrain.ts:84

A world's loaded chunks as a map reads them.

Parameters ​

world ​

MapWorld

Returns ​

MapTerrain