BlockRegistry
Source: registry.ts:67
Constructors
new BlockRegistry(): BlockRegistry
Returns
BlockRegistry
Static Properties
blocks: Record<string, Block>
staticreadonly
registry.ts:72block id to block
Default: {}
states: Record<string, BlockState>
staticreadonly
registry.ts:76state id to block state
Default: {}
Static Methods
getBlock(type: string): Block
static
registry.ts:101Get a block registy item
Parameters
type(string)
Returns
getState(id: string): BlockState
static
registry.ts:110Get a block state registy item
Parameters
id(string)
Returns
load(version: string): void
static
registry.ts:83Load block registry from JSON file.
Should be called once time
Parameters
version(string)
Returns
void