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/script_core/runtime/scripting/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 // prevent constructor by default
48 ScriptRawMessageInterface();
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI ScriptRawMessageInterface(::ScriptModuleMinecraft::ScriptRawMessageInterface const& other);
54
55 MCAPI void buildJsonObject(::Json::Value& val) const;
56
57 MCAPI ::ScriptModuleMinecraft::ScriptRawMessageInterface&
59
60 MCAPI ::ScriptModuleMinecraft::ScriptRawMessageInterface&
62
63 MCAPI bool operator==(::ScriptModuleMinecraft::ScriptRawMessageInterface const& other) const;
64
65 MCAPI ::Scripting::Result<::Json::Value, ::ScriptModuleMinecraft::ScriptRawMessageError>
66 resolveAsJson(::Actor& recipient, ::CurrentCmdVersion commandVersion) const;
67
68 MCAPI ::Scripting::Result<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageError>
69 resolveAsJsonString(::Actor& recipient, ::CurrentCmdVersion commandVersion) const;
70
71 MCAPI ::Json::Value toJson() const;
72
73 MCAPI ::Json::Value toRawTextJson() const;
74
75 MCAPI ::std::string toString() const;
76
77 MCAPI ~ScriptRawMessageInterface();
78 // NOLINTEND
79
80public:
81 // static functions
82 // NOLINTBEGIN
83 MCAPI static ::Scripting::InterfaceBinding bind();
84
85 MCAPI static ::ScriptModuleMinecraft::ScriptRawMessageInterface fromJSON(::Json::Value const& json);
86
87 MCAPI static ::ScriptModuleMinecraft::ScriptRawMessageInterface fromString(::std::string const& str);
88
89 MCAPI static ::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface> rawTextStringsToRawText(
90 ::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>> const&
91 rawTextWithString
92 );
93 // NOLINTEND
94
95public:
96 // constructor thunks
97 // NOLINTBEGIN
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:114
Definition Value.h:16
Definition ScriptRawMessageError.h:15
Definition ScriptRawMessageInterface.h:20
Definition InterfaceBinding.h:10