Represents a block that can output a redstone signal.

Hierarchy (View Summary)

Constructors

Properties

block: Block

Block instance that this component pertains to.

isValid: boolean

Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.

power: number

Gets the power that this block outputs to circuit system. Returns error if block is no longer valid or if block doesn't have a 'minecraft:redstone_producer' component.

This property can throw when used.

InvalidBlockComponentError

typeId: string

Identifier of the component.

componentId: "minecraft:redstone_producer" = 'minecraft:redstone_producer'

Methods