Skip to content

API reference / @jsprismarine/block-behaviors / VoxelWorld

Class: VoxelWorld ​

Defined in: block-behaviors/src/voxelWorld.ts:355

A BlockWorld made of VoxelDimensions, created on first use.

Implements ​

Constructors ​

Constructor ​

new VoxelWorld(): VoxelWorld

Returns ​

VoxelWorld

Accessors ​

overworld ​

Get Signature ​

get overworld(): VoxelDimension

Defined in: block-behaviors/src/voxelWorld.ts:368

The overworld, which is the dimension a test uses unless it names another.

Returns ​

VoxelDimension

Methods ​

at() ​

at(dimension?): VoxelDimension

Defined in: block-behaviors/src/voxelWorld.ts:359

The dimension by name, created empty the first time it is asked for.

Parameters ​

dimension? ​

string = OVERWORLD

Returns ​

VoxelDimension

Implementation of ​

BlockWorld.at