@minecraft
    正在准备搜索索引...

    接口 UIRawMessage实验性

    A message that can be sent to the client. This is a subset of the RawMessage type, and is used for UI messages.

    interface UIRawMessage {
        rawtext?: UIRawMessage[];
        text?: string;
        translate?: string;
        with?: string[] | UIRawMessage;
    }
    索引

    属性

    rawtext?: UIRawMessage[]

    Provides a raw-text equivalent of the current message.

    text?: string

    Provides a string literal value to use.

    translate?: string

    Provides a translation token where, if the client has an available resource in the players' language which matches the token, will get translated on the client.

    with?: string[] | UIRawMessage

    Arguments for the translation token. Can be either an array of strings or UIRawMessage containing an array of raw text objects.