MineJSv0.5.1

BlockState

Source: block.ts:11

Represent a state of a block


Constructors

new BlockState( owner: Block, id: string, properties: Record<string, any>, boxes: BaseAABB[], ): BlockState

Parameters

  • owner (Block)
  • id (string)
  • properties (Record<string, any>)
  • boxes (BaseAABB[])

Returns

BlockState


Properties

boxes: BaseAABB[]

id: string

owner: Block

properties: Record<string, any>

shape: VoxelShape

Methods

getFacing(): 'north' | 'south' | 'west' | 'east' | null

Returns

  • "north" | "south" | "west" | "east" | null