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
20class ToggleControl : public ::ScriptModuleMinecraftServerUI::IControl {
21public:
22 // member variables
23 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ToggleControl& operator=(ToggleControl const&);
32 ToggleControl(ToggleControl const&);
33 ToggleControl();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ::Scripting::Result<::Json::Value, ::ScriptModuleMinecraft::ScriptRawMessageError>
39 buildJson(::Player& forPlayer, ::CurrentCmdVersion commandVersion) const /*override*/;
40
41 virtual ~ToggleControl() /*override*/ = default;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
48 ::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface> label,
49 ::std::optional<bool> defaultValue,
50 ::std::optional<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>> tooltip
51 );
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCNAPI void* $ctor(
58 ::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface> label,
59 ::std::optional<bool> defaultValue,
60 ::std::optional<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>> tooltip
61 );
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCNAPI ::Scripting::Result<::Json::Value, ::ScriptModuleMinecraft::ScriptRawMessageError>
68 $buildJson(::Player& forPlayer, ::CurrentCmdVersion commandVersion) const;
69
70
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78};
79
80} // namespace ScriptModuleMinecraftServerUI
Definition Value.h:16
Definition Player.h:125
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 ScriptRawMessageError.h:15
Definition ScriptRawMessageInterface.h:20
Definition Alias.h:14