LeviLamina
Loading...
Searching...
No Matches
ScriptRawMessageInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/Result.h"
7#include "mc/scripting/modules/minecraft/interfaces/ScriptRawMessageScoreInterface.h"
8#include "mc/server/commands/CurrentCmdVersion.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13namespace Json { class Value; }
14namespace ScriptModuleMinecraft { struct ScriptRawMessageError; }
15namespace Scripting { struct InterfaceBinding; }
16// clang-format on
17
18namespace ScriptModuleMinecraft {
19
20struct ScriptRawMessageInterface {
21public:
22 // ScriptRawMessageInterface inner types define
23 using RawTextType = ::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface>;
24
25 using RawTextTypeWithStrings =
26 ::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>>;
27
28 using WithType = ::std::variant<::std::vector<::std::string>, ::ScriptModuleMinecraft::ScriptRawMessageInterface>;
29
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> text;
34 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> translate;
35 ::ll::TypedStorage<
36 8,
37 8,
38 ::std::unique_ptr<
39 ::std::variant<::std::vector<::std::string>, ::ScriptModuleMinecraft::ScriptRawMessageInterface>>>
40 with;
41 ::ll::TypedStorage<8, 32, ::std::optional<::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface>>>
42 rawtext;
43 ::ll::TypedStorage<8, 88, ::std::optional<::ScriptModuleMinecraft::ScriptRawMessageScoreInterface>> score;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI ScriptRawMessageInterface();
50
51 MCAPI ScriptRawMessageInterface(::ScriptModuleMinecraft::ScriptRawMessageInterface const& other);
52
53 MCAPI void buildJsonObject(::Json::Value& val) const;
54
55 MCAPI ::ScriptModuleMinecraft::ScriptRawMessageInterface&
57
58 MCAPI ::ScriptModuleMinecraft::ScriptRawMessageInterface&
60
61 MCAPI bool operator==(::ScriptModuleMinecraft::ScriptRawMessageInterface const& other) const;
62
63 MCAPI ::Scripting::Result<::Json::Value, ::ScriptModuleMinecraft::ScriptRawMessageError>
64 resolveAsJson(::Actor& recipient, ::CurrentCmdVersion commandVersion) const;
65
66 MCAPI ::Scripting::Result<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageError>
67 resolveAsJsonString(::Actor& recipient, ::CurrentCmdVersion commandVersion) const;
68
69 MCAPI ::Json::Value toJson() const;
70
71 MCAPI ::Json::Value toRawTextJson() const;
72
73 MCAPI ::std::string toString() const;
74
75 MCAPI ~ScriptRawMessageInterface();
76 // NOLINTEND
77
78public:
79 // static functions
80 // NOLINTBEGIN
81 MCAPI static ::Scripting::InterfaceBinding bind();
82
83 MCAPI static ::ScriptModuleMinecraft::ScriptRawMessageInterface fromJSON(::Json::Value const& json);
84
85 MCAPI static ::ScriptModuleMinecraft::ScriptRawMessageInterface fromString(::std::string const& str);
86
87 MCAPI static ::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface> rawTextStringsToRawText(
88 ::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>> const&
89 rawTextWithString
90 );
91 // NOLINTEND
92
93public:
94 // constructor thunks
95 // NOLINTBEGIN
96 MCAPI void* $ctor();
97
98 MCAPI void* $ctor(::ScriptModuleMinecraft::ScriptRawMessageInterface const& other);
99 // NOLINTEND
100
101public:
102 // destructor thunk
103 // NOLINTBEGIN
104 MCAPI void $dtor();
105 // NOLINTEND
106};
107
108} // namespace ScriptModuleMinecraft
Definition Actor.h:105
Definition Value.h:16
Definition ScriptRawMessageError.h:15
Definition ScriptRawMessageInterface.h:20
Definition InterfaceBinding.h:16