Home Reference Source
public class | source

BlockBuilder

Extends:

AbstractServiceAbstractBlockBuilder → BlockBuilder

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

Returns an AbstractBlock child class instance according to the nodeTypeName or an AbstractBlock as default.

Inherited Summary

From class AbstractService
public
public
public

checkDependencies(dependencies: *[])

public

getService(serviceName: *): *

public

hasService(serviceName: *): *

public

init()

From class AbstractBlockBuilder
public

async getBlockInstance(blockType: String): AbstractBlock | null

Returns an AbstractBlock child class instance according to the nodeTypeName or an AbstractBlock as default.

Public Constructors

public constructor() source

Override:

AbstractService#constructor

Public Methods

public async getBlockInstance(blockType: String): AbstractBlock source

Returns an AbstractBlock child class instance according to the nodeTypeName or an AbstractBlock as default.

Comment out the default case if you don’t want a default block to be instantiated for each block.

Override:

AbstractBlockBuilder#getBlockInstance

Params:

NameTypeAttributeDescription
blockType String

Return:

AbstractBlock