The BlockSignComponent class in @minecraft/server.
Class in @minecraft/server
Extends BlockComponent
import { BlockSignComponent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”isWaxed
Section titled “isWaxed”read-only
readonly isWaxed: boolean;componentId
Section titled “componentId”static read-only
static readonly componentId = 'minecraft:sign';Methods
Section titled “Methods”getRawText
Section titled “getRawText”getRawText(side?: SignSide): RawText | undefined;Parameters
sideoptionalSignSide
Returns
RawText | undefinedgetText
Section titled “getText”getText(side?: SignSide): string | undefined;Parameters
sideoptionalSignSide
Returns
string | undefinedTypes
getTextDyeColor
Section titled “getTextDyeColor”getTextDyeColor(side?: SignSide): DyeColor | undefined;Parameters
sideoptionalSignSide
Returns
DyeColor | undefinedsetText
Section titled “setText”setText(message: RawMessage | string, side?: SignSide): void;Parameters
messageRawMessage | stringsideoptionalSignSide
Types
setTextDyeColor
Section titled “setTextDyeColor”setTextDyeColor(color?: DyeColor, side?: SignSide): void;Parameters
coloroptionalDyeColorsideoptionalSignSide
setWaxed
Section titled “setWaxed”setWaxed(waxed: boolean): void;Parameters
waxedboolean
Inherited
Section titled “Inherited”From BlockComponent: block