Private
constructorReadonly
blockThis property can't be read in early-execution mode.
Readonly
isReturns 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.
This property can't be read in early-execution mode.
Readonly
isWhether or not players can edit the sign. This happens if a
sign has had a honeycomb used on it or setWaxed
was called
on the sign.
This property can't be read in early-execution mode.
Readonly
typeThis property can't be read in early-execution mode.
Static
Readonly
componentOptional
side: SignSideThe side of the sign to read the message from. If not provided, this will return the message from the front side of the sign. Defaults to: 0
Returns the RawText of the sign if setText
was called with
a RawMessage or a RawText object, otherwise returns
undefined.
This function can't be called in early-execution mode.
Optional
side: SignSideThe side of the sign to read the message from. If not provided, this will return the message from the front side of the sign. Defaults to: 0
Returns the text of the sign if setText
was called with a
string, otherwise returns undefined.
This function can't be called in early-execution mode.
Optional
side: SignSideThe side of the sign to read the dye from. If not provided, this will return the dye on the front side of the sign. Defaults to: 0
This function can't be called in early-execution mode.
The message to set on the sign. If set to a string, then
call getText
to read that string. If set to a RawMessage,
then calling getRawText
will return a RawText.
Optional
side: SignSideThe side of the sign the message will be set on. If not provided, the message will be set on the front side of the sign. Defaults to: 0
This function can't be called in read-only mode.
This function can't be called in early-execution mode.
This function can't be called in read-only mode.
This function can't be called in early-execution mode.
This function can't be called in read-only mode.
This function can't be called in early-execution mode.
Represents a block that can display text on it.
Example: addSign.ts
Example: addTwoSidedSign.ts
Example: updateSignText.ts
Example: addTranslatedSign.ts