The BlockRedstoneProducerComponent class in @minecraft/server.
Class in @minecraft/server
Extends BlockComponent
import { BlockRedstoneProducerComponent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”read-only
readonly power: number;componentId
Section titled “componentId”static read-only
static readonly componentId = 'minecraft:redstone_producer';Methods
Section titled “Methods”getConnectedFaces
Section titled “getConnectedFaces”getConnectedFaces(): Direction[];Returns
Direction[]Types
getStronglyPoweredFace
Section titled “getStronglyPoweredFace”getStronglyPoweredFace(): Direction | undefined;Returns
Direction | undefinedTypes
Inherited
Section titled “Inherited”From BlockComponent: block