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
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