LeviLamina
Loading...
Searching...
No Matches
MinecartCommandBlockManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/safety/RedactableString.h"
8#include "mc/world/level/BlockPos.h"
9#include "mc/world/level/block/CommandBlockMode.h"
10
11// auto generated forward declare list
12// clang-format off
14class CommandOrigin;
15class Player;
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
23 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
24 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mActorUniqueId;
25 ::ll::TypedStorage<8, 32, ::std::string> mCommand;
26 ::ll::TypedStorage<8, 32, ::std::string> mLastOutput;
27 ::ll::TypedStorage<8, 72, ::Bedrock::Safety::RedactableString> mHoverName;
28 ::ll::TypedStorage<4, 4, uint> mTickDelay;
29 ::ll::TypedStorage<1, 1, bool> mExecuteOnFirstTick;
30 ::ll::TypedStorage<1, 1, bool> mTrackOutput;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 MinecartCommandBlockManager& operator=(MinecartCommandBlockManager const&);
36 MinecartCommandBlockManager(MinecartCommandBlockManager const&);
37 MinecartCommandBlockManager();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~MinecartCommandBlockManager();
43
44 virtual void init();
45
46 virtual bool setCommand(::std::string const& command);
47
48 virtual bool setHoverName(::Bedrock::Safety::RedactableString const& name);
49
50 virtual bool setTickDelay(uint delay);
51
52 virtual bool setShouldExecuteOnFirstTick(bool shouldExecute);
53
54 virtual bool setLastOutput(::std::string const& lastOutput);
55
56 virtual bool setTrackOutput(bool trackOutput);
57
58 virtual bool setBlockTypeMode(::CommandBlockMode mode);
59
60 virtual bool setConditional(bool mode);
61
62 virtual bool setRedstone(bool mode);
63
64 virtual void saveAndExit();
65
66 virtual ::std::string const& getCommand() const;
67
68 virtual ::std::string const& getOutput() const;
69
70 virtual bool getTrackOutput() const;
71
72 virtual bool isConditionalMode() const;
73
74 virtual bool isRedstoneMode() const;
75
76 virtual bool isMinecartCommandBlock() const;
77
78 virtual ::CommandBlockMode getCommandBlockTypeMode() const;
79
80 virtual bool getLastPerformedConditionalMode();
81
82 virtual bool getLastPerformedRedstoneMode();
83
84 virtual ::CommandBlockMode getLastPerformedCBMode();
85
86 virtual ::Bedrock::Safety::RedactableString const& getHoverName() const;
87
88 virtual uint getTickDelay() const;
89
90 virtual bool shouldExecuteOnFirstTick() const;
91
92 virtual ::BaseCommandBlock* getBaseCommandBlock();
93
94 virtual ::std::unique_ptr<::CommandOrigin> getCommandOrigin() const;
95 // NOLINTEND
96
97public:
98 // member functions
99 // NOLINTBEGIN
100 MCAPI void _loadFromBaseCommandBlock();
101
102 MCAPI void _saveToBaseCommandBlock(::BaseCommandBlock& baseCommandBlock);
103 // NOLINTEND
104
105public:
106 // destructor thunk
107 // NOLINTBEGIN
108 MCAPI void $dtor();
109 // NOLINTEND
110
111public:
112 // virtual function thunks
113 // NOLINTBEGIN
114 MCAPI void $init();
115
116 MCAPI bool $setCommand(::std::string const& command);
117
118 MCAPI bool $setHoverName(::Bedrock::Safety::RedactableString const& name);
119
120 MCAPI bool $setTickDelay(uint delay);
121
122 MCAPI bool $setShouldExecuteOnFirstTick(bool shouldExecute);
123
124 MCAPI bool $setLastOutput(::std::string const& lastOutput);
125
126 MCAPI bool $setTrackOutput(bool trackOutput);
127
128 MCFOLD bool $setBlockTypeMode(::CommandBlockMode mode);
129
130 MCFOLD bool $setConditional(bool mode);
131
132 MCFOLD bool $setRedstone(bool mode);
133
134 MCAPI void $saveAndExit();
135
136 MCFOLD ::std::string const& $getCommand() const;
137
138 MCFOLD ::std::string const& $getOutput() const;
139
140 MCAPI bool $getTrackOutput() const;
141
142 MCFOLD bool $isConditionalMode() const;
143
144 MCFOLD bool $isRedstoneMode() const;
145
146 MCFOLD bool $isMinecartCommandBlock() const;
147
148 MCFOLD ::CommandBlockMode $getCommandBlockTypeMode() const;
149
150 MCFOLD bool $getLastPerformedConditionalMode();
151
152 MCFOLD bool $getLastPerformedRedstoneMode();
153
154 MCFOLD ::CommandBlockMode $getLastPerformedCBMode();
155
156 MCFOLD ::Bedrock::Safety::RedactableString const& $getHoverName() const;
157
158 MCFOLD uint $getTickDelay() const;
159
160 MCAPI bool $shouldExecuteOnFirstTick() const;
161
162 MCAPI ::BaseCommandBlock* $getBaseCommandBlock();
163
164 MCAPI ::std::unique_ptr<::CommandOrigin> $getCommandOrigin() const;
165 // NOLINTEND
166
167public:
168 // vftables
169 // NOLINTBEGIN
170 MCNAPI static void** $vftable();
171 // NOLINTEND
172};
Definition BaseCommandBlock.h:19
Definition CommandOrigin.h:32
Definition MinecartCommandBlockManager.h:5
static MCAPI void ** $vftable()
Definition Player.h:125