@minecraft/server-ui / UIRawMessage
Interface: UIRawMessage
Defined in: @minecraft/server-ui/index.d.ts:1851
A message that can be sent to the client. This is a subset of the RawMessage type, and is used for UI messages.
Properties
rawtext?
optionalrawtext?:UIRawMessage[]
Defined in: @minecraft/server-ui/index.d.ts:1857
Remarks
Provides a raw-text equivalent of the current message.
text?
optionaltext?:string
Defined in: @minecraft/server-ui/index.d.ts:1863
Remarks
Provides a string literal value to use.
translate?
optionaltranslate?:string
Defined in: @minecraft/server-ui/index.d.ts:1871
Remarks
Provides a localization string where, if the client has an available resource in the players' language which matches the localization string, will get translated on the client.
with?
optionalwith?:UIRawMessage|string[]
Defined in: @minecraft/server-ui/index.d.ts:1879
Remarks
Arguments for the localization string. Can be either an array of strings or UIRawMessage containing an array of raw text objects.