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 // 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 bool isRawTextJsonFormat() const;
58
59 MCAPI ::ScriptModuleMinecraft::ScriptRawMessageInterface&
61
62 MCAPI ::ScriptModuleMinecraft::ScriptRawMessageInterface&
64
65 MCAPI bool operator==(::ScriptModuleMinecraft::ScriptRawMessageInterface const& other) const;
66
67 MCAPI ::Scripting::Result<::Json::Value, ::ScriptModuleMinecraft::ScriptRawMessageError>
68 resolveAsJson(::Actor& recipient, ::CurrentCmdVersion commandVersion) const;
69
70 MCAPI ::Scripting::Result<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageError>
71 resolveAsJsonString(::Actor& recipient, ::CurrentCmdVersion commandVersion) const;
72
73 MCAPI ::Json::Value toJson() const;
74
75 MCAPI ::Json::Value toRawTextJson() const;
76
77 MCAPI ::std::string toString() const;
78
79 MCAPI ~ScriptRawMessageInterface();
80 // NOLINTEND
81
82public:
83 // static functions
84 // NOLINTBEGIN
85 MCAPI static ::Scripting::InterfaceBinding bind();
86
87 MCAPI static ::ScriptModuleMinecraft::ScriptRawMessageInterface fromJSON(::Json::Value const& json);
88
89 MCAPI static ::ScriptModuleMinecraft::ScriptRawMessageInterface fromString(::std::string const& str);
90
91 MCAPI static ::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface> rawTextStringsToRawText(
92 ::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>> const&
93 rawTextWithString
94 );
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCAPI void* $ctor(::ScriptModuleMinecraft::ScriptRawMessageInterface const& other);
101 // NOLINTEND
102
103public:
104 // destructor thunk
105 // NOLINTBEGIN
106 MCAPI void $dtor();
107 // NOLINTEND
108};
109
110} // namespace ScriptModuleMinecraft
Definition Actor.h:123
Definition Value.h:16
Definition ScriptRawMessageError.h:15
Definition ScriptRawMessageInterface.h:20
Definition InterfaceBinding.h:16