实验性
只读
实验性
block只读
实验性
is只读
实验性
is只读
实验性
type静态
只读
实验性
component实验性
要设置在告示牌上的消息。若设置为字符串,则可以通过调用 getText
来读取该字符串。若设置为 RawMessage,则调用 getRawText
会返回一个 RawText。若设置为 RawText,则调用 getRawText
会返回传入的相同对象。
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. If set to a
RawText, then calling getRawText
will return the same
object that was passed in.
可选
side: SignSide要设置消息的告示牌面。若未提供,则消息将设置在告示牌正面。
The 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.
表示一个可以显示文字的方块。
Represents a block that can display text on it.
示例: addSign.ts
示例: addTwoSidedSign.ts
示例: updateSignText.ts
示例: addTranslatedSign.ts