LeviLamina
Loading...
Searching...
No Matches
ToggleControl.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_ui/IControl.h"
8#include "mc/server/commands/CurrentCmdVersion.h"
9
10// auto generated forward declare list
11// clang-format off
12class Player;
13namespace Json { class Value; }
14namespace ScriptModuleMinecraft { struct ScriptRawMessageError; }
15namespace ScriptModuleMinecraft { struct ScriptRawMessageInterface; }
16// clang-format on
17
18namespace ScriptModuleMinecraftServerUI {
19
21public:
22 // member variables
23 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ToggleControl& operator=(ToggleControl const&);
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 // vIndex: 1
39 virtual ::Scripting::Result<::Json::Value, ::ScriptModuleMinecraft::ScriptRawMessageError>
40 buildJson(::Player& forPlayer, ::CurrentCmdVersion commandVersion) const /*override*/;
41
42 // vIndex: 0
43 virtual ~ToggleControl() /*override*/ = default;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
50 ::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface> label,
51 ::std::optional<bool> defaultValue,
52 ::std::optional<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>> tooltip
53 );
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCNAPI void* $ctor(
60 ::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface> label,
61 ::std::optional<bool> defaultValue,
62 ::std::optional<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>> tooltip
63 );
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCNAPI ::Scripting::Result<::Json::Value, ::ScriptModuleMinecraft::ScriptRawMessageError>
70 $buildJson(::Player& forPlayer, ::CurrentCmdVersion commandVersion) const;
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78};
79
80} // namespace ScriptModuleMinecraftServerUI
Definition Player.h:119
MCAPI ::Scripting::Result<::Json::Value, ::ScriptModuleMinecraft::ScriptRawMessageError > $buildJson(::Player &forPlayer, ::CurrentCmdVersion commandVersion) const
MCAPI void * $ctor(::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface > label, ::std::optional< bool > defaultValue, ::std::optional<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface > > tooltip)
MCAPI ToggleControl(::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface > label, ::std::optional< bool > defaultValue, ::std::optional<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface > > tooltip)
Definition Alias.h:14