Class BlockState

Defines a state for a Block.

BlockState

Constructors

  • Initializes a new BlockState.

    Parameters

    • id: StateId

      The id for this block state.

    • model: BlockModel

      The model for this block state.

    • settings: any

      The settings for this block state.

    • parentBlock: Block

      The parent block for this block state.

    Returns BlockState

Properties

generateSlabs: boolean

Whether this block state generates slabs.

Memberof

BlockState

hidden: any

The id for this block state.

Memberof

BlockState

lightAttenuation: number

The light attenuation for this block state.

Memberof

BlockState

lightLevelBlue: number

The blue light level for this block state.

Memberof

BlockState

lightLevelGreen: number

The green light level for this block state.

Memberof

BlockState

lightLevelRed: number

The red light level for this block state.

Memberof

BlockState

model: BlockModel

The model for this block state.

Memberof

BlockState

opaque: boolean

Whether this block state is opaque.

Memberof

BlockState

parentBlock: Block

The parent block for this block state.

Memberof

BlockState

transparent: boolean

Whether this block state is transparent.

Memberof

BlockState

triggerSheet: TriggerSheet

The trigger sheet for this block state.

Memberof

BlockState

Methods

  • Returns the full id for this block state.

    Returns string

    Memberof

    BlockState

  • Serializes the block state into a JSON object.

    Returns any

    The serialized block state as a JSON object.

    Memberof

    BlockState

Generated using TypeDoc