Skip to main content

Class: BlockStates

Enumerates all BlockStateTypes.

Constructors

new BlockStates()

private new BlockStates(): BlockStates

Returns

BlockStates

Methods

get()

static get(stateName): BlockStateType

Parameters

ParameterType
stateNamestring

Returns

BlockStateType

Returns the Block state instance if it is found. If the block state instance is not found returns undefined.

Remarks

Retrieves a specific block state instance.


getAll()

static getAll(): BlockStateType[]

Returns

BlockStateType[]

Remarks

Retrieves a set of all available block states.