LeviLamina
Loading...
Searching...
No Matches
CommandBlockScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/screens/IntellisenseHandler.h"
8#include "mc/client/gui/screens/controllers/BlockScreenController.h"
9#include "mc/deps/core/utility/pub_sub/Subscription.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockPos;
16class Player;
17struct ActorUniqueID;
19// clang-format on
20
22public:
23 // CommandBlockScreenController inner types define
24 enum class CommandBlockColorContext : int {
25 DropDown = 0,
26 Dialog = 1,
27 };
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecartCommandBlockManager>> mCBManager;
33 ::ll::TypedStorage<8, 104, ::IntellisenseHandler> mIntellisense;
34 ::ll::TypedStorage<1, 1, bool> mOutputWasTracked;
35 ::ll::TypedStorage<1, 1, bool> mBlockTypeDropDownActive;
36 ::ll::TypedStorage<1, 1, bool> mConditionDropDownActive;
37 ::ll::TypedStorage<1, 1, bool> mRedstoneDropDownActive;
38 ::ll::TypedStorage<1, 1, bool> mIsInputMaximized;
39 ::ll::TypedStorage<1, 1, bool> mModified;
40 ::ll::TypedStorage<1, 1, bool> mUpdateIntellisense;
41 ::ll::TypedStorage<1, 1, bool> mTextBoxEditing;
42 ::ll::TypedStorage<1, 1, bool> mShouldUseFilteredMessage;
43 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mProfanityToggleSubscription;
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
48 CommandBlockScreenController();
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 virtual ~CommandBlockScreenController() /*override*/;
54
55 virtual void onOpen() /*override*/;
56
57 virtual ::ui::DirtyFlag tick() /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI CommandBlockScreenController(
64 ::std::shared_ptr<::ClientInstanceScreenModel> model,
65 ::Player& player,
66 ::BlockPos const& pos,
67 ::ActorUniqueID uniqueId
68 );
69
70 MCAPI ::std::string _getLastPerformedCommandBlockConditionalModeString() const;
71
72 MCAPI ::std::string _getLastPerformedCommandBlockRedstoneModeString() const;
73
74 MCAPI ::std::string _getLastPerformedCommandBlockTypeModeString() const;
75
76 MCAPI ::std::string _getOutputText() const;
77
78 MCAPI int _getTextEditValueAsInt(::TextEditScreenEventData& textEditEvent) const;
79
80 MCAPI void _registerBindings();
81
82 MCAPI void _registerBlockTypeDropdown();
83
84 MCAPI void _registerConditionDropdown();
85
86 MCAPI void _registerEventHandlers();
87
88 MCAPI void _registerRedstoneDropdown();
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94 MCAPI void* $ctor(
95 ::std::shared_ptr<::ClientInstanceScreenModel> model,
96 ::Player& player,
97 ::BlockPos const& pos,
98 ::ActorUniqueID uniqueId
99 );
100 // NOLINTEND
101
102public:
103 // destructor thunk
104 // NOLINTBEGIN
105 MCAPI void $dtor();
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCAPI void $onOpen();
112
113 MCAPI ::ui::DirtyFlag $tick();
114 // NOLINTEND
115
116public:
117 // vftables
118 // NOLINTBEGIN
119 MCNAPI static void** $vftableForScreenController();
120
122 // NOLINTEND
123};
Definition BlockPos.h:21
Definition BlockScreenController.h:5
Definition ClientInstanceScreenModel.h:5
Definition CommandBlockScreenController.h:5
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition MinecartCommandBlockManager.h:5
Definition Player.h:137
Definition ActorUniqueID.h:10
Definition TextEditScreenEventData.h:5