20struct ScriptRawMessageInterface {
23 using RawTextType = ::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface>;
25 using RawTextTypeWithStrings =
26 ::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>>;
33 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> text;
34 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> translate;
41 ::ll::TypedStorage<8, 32, ::std::optional<::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface>>>
43 ::ll::TypedStorage<8, 88, ::std::optional<::ScriptModuleMinecraft::ScriptRawMessageScoreInterface>> score;
48 ScriptRawMessageInterface();
57 MCAPI
bool isRawTextJsonFormat()
const;
59 MCAPI ::ScriptModuleMinecraft::ScriptRawMessageInterface&
62 MCAPI ::ScriptModuleMinecraft::ScriptRawMessageInterface&
67 MCAPI ::Scripting::Result<::Json::Value, ::ScriptModuleMinecraft::ScriptRawMessageError>
68 resolveAsJson(
::Actor& recipient, ::CurrentCmdVersion commandVersion)
const;
70 MCAPI ::Scripting::Result<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageError>
71 resolveAsJsonString(
::Actor& recipient, ::CurrentCmdVersion commandVersion)
const;
73 MCAPI ::Json::Value toJson()
const;
75 MCAPI ::Json::Value toRawTextJson()
const;
77 MCAPI ::std::string toString()
const;
79 MCAPI ~ScriptRawMessageInterface();
85 MCAPI static ::Scripting::InterfaceBinding bind();
87 MCAPI static ::ScriptModuleMinecraft::ScriptRawMessageInterface fromJSON(
::Json::Value const& json);
89 MCAPI static ::ScriptModuleMinecraft::ScriptRawMessageInterface fromString(::std::string
const& str);
91 MCAPI static ::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface> rawTextStringsToRawText(
92 ::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>>
const&