LeviLamina
Loading...
Searching...
No Matches
NewExecuteCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/AutomaticID.h"
7#include "mc/deps/shared_types/legacy/actor/ActorLocation.h"
8#include "mc/server/commands/Command.h"
9#include "mc/server/commands/CommandBlockName.h"
10#include "mc/server/commands/CommandChainedSubcommand.h"
11#include "mc/server/commands/CommandCompareOperator.h"
12#include "mc/server/commands/CommandIntegerRange.h"
13#include "mc/server/commands/CommandPosition.h"
14#include "mc/server/commands/CommandPositionFloat.h"
15#include "mc/server/commands/CommandSelector.h"
16#include "mc/server/commands/RelativeFloat.h"
17
18// auto generated forward declare list
19// clang-format off
20class Actor;
22class CommandOrigin;
23class CommandOutput;
24class CommandRegistry;
25class Dimension;
26class Scoreboard;
27struct ScoreInfo;
28struct ScoreboardId;
29// clang-format on
30
32public:
33 // NewExecuteCommand inner types declare
34 // clang-format off
36 // clang-format on
37
38 // NewExecuteCommand inner types define
40 public:
41 // ExecuteChainedSubcommand inner types define
42 enum class Subcommand : uint {};
43
44 enum class ConditionSubcommand : uint {};
45
46 enum class ScanMode : uint {};
47
48 enum class ScoreRangeMode : uint {};
49
50 public:
51 // virtual functions
52 // NOLINTBEGIN
53 // vIndex: 1
54 virtual ::std::string getCommandName() const /*override*/;
55
56 // vIndex: 0
57 virtual ~ExecuteChainedSubcommand() /*override*/ = default;
58 // NOLINTEND
59
60 public:
61 // static functions
62 // NOLINTBEGIN
63 MCNAPI static ::std::string
64 getSubcommandName(::NewExecuteCommand::ExecuteChainedSubcommand::Subcommand subcommand);
65
66 MCNAPI static void setup(::CommandRegistry& registry);
67 // NOLINTEND
68
69 public:
70 // static variables
71 // NOLINTBEGIN
72 MCNAPI static char const*& CHAINED_OPTION_0();
73
74 MCNAPI static char const*& CONDITION_SUBCOMMAND_OPTION_BLOCK();
75
76 MCNAPI static char const*& CONDITION_SUBCOMMAND_OPTION_BLOCKS();
77
78 MCNAPI static char const*& CONDITION_SUBCOMMAND_OPTION_ENTITY();
79
80 MCNAPI static char const*& CONDITION_SUBCOMMAND_OPTION_SCORE();
81
82 MCNAPI static char const*& SUBCOMMAND_ALIGN();
83
84 MCNAPI static char const*& SUBCOMMAND_ANCHORED();
85
86 MCNAPI static char const*& SUBCOMMAND_AS();
87
88 MCNAPI static char const*& SUBCOMMAND_AT();
89
90 MCNAPI static char const*& SUBCOMMAND_BLOCK();
91
92 MCNAPI static char const*& SUBCOMMAND_BLOCKS();
93
94 MCNAPI static char const*& SUBCOMMAND_ENTITY();
95
96 MCNAPI static char const*& SUBCOMMAND_FACING();
97
98 MCNAPI static char const*& SUBCOMMAND_IF();
99
100 MCNAPI static char const*& SUBCOMMAND_IN();
101
102 MCNAPI static char const*& SUBCOMMAND_OPTION_ALIGN();
103
104 MCNAPI static char const*& SUBCOMMAND_OPTION_ANCHORED();
105
106 MCNAPI static char const*& SUBCOMMAND_OPTION_AS();
107
108 MCNAPI static char const*& SUBCOMMAND_OPTION_AT();
109
110 MCNAPI static char const*& SUBCOMMAND_OPTION_ENTITY();
111
112 MCNAPI static char const*& SUBCOMMAND_OPTION_FACING();
113
114 MCNAPI static char const*& SUBCOMMAND_OPTION_IF_UNLESS();
115
116 MCNAPI static char const*& SUBCOMMAND_OPTION_IN();
117
118 MCNAPI static char const*& SUBCOMMAND_OPTION_POSITIONED();
119
120 MCNAPI static char const*& SUBCOMMAND_OPTION_ROTATED();
121
122 MCNAPI static char const*& SUBCOMMAND_OPTION_RUN();
123
124 MCNAPI static char const*& SUBCOMMAND_POSITIONED();
125
126 MCNAPI static char const*& SUBCOMMAND_ROTATED();
127
128 MCNAPI static char const*& SUBCOMMAND_RUN();
129
130 MCNAPI static char const*& SUBCOMMAND_SCORE();
131
132 MCNAPI static char const*& SUBCOMMAND_UNLESS();
133 // NOLINTEND
134
135 public:
136 // virtual function thunks
137 // NOLINTBEGIN
138 MCNAPI ::std::string $getCommandName() const;
139 // NOLINTEND
140
141 public:
142 // vftables
143 // NOLINTBEGIN
144 MCNAPI static void** $vftable();
145 // NOLINTEND
146 };
147
148public:
149 // member variables
150 // NOLINTBEGIN
151 ::ll::TypedStorage<4, 4, ::NewExecuteCommand::ExecuteChainedSubcommand::Subcommand> mSubcommandOption;
152 ::ll::TypedStorage<4, 4, ::NewExecuteCommand::ExecuteChainedSubcommand::Subcommand> mSecondarySubcommandOption;
153 ::ll::TypedStorage<4, 4, ::NewExecuteCommand::ExecuteChainedSubcommand::ConditionSubcommand>
154 mConditionSubcommandOption;
155 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mTargets;
156 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mSources;
157 ::ll::TypedStorage<8, 32, ::std::string> mAxesAlignment;
158 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::ActorLocation> mActorLocation;
159 ::ll::TypedStorage<4, 16, ::CommandPositionFloat> mPosition;
160 ::ll::TypedStorage<4, 16, ::CommandPosition> mBlockPosition;
161 ::ll::TypedStorage<4, 16, ::CommandPosition> mEndPosition;
162 ::ll::TypedStorage<4, 16, ::CommandPosition> mDestination;
163 ::ll::TypedStorage<4, 8, ::RelativeFloat> mRotationX;
164 ::ll::TypedStorage<4, 8, ::RelativeFloat> mRotationY;
165 ::ll::TypedStorage<4, 4, ::DimensionType> mTargetDimension;
166 ::ll::TypedStorage<8, 8, ::CommandBlockName> mBlock;
167 ::ll::TypedStorage<8, 24, ::std::vector<::BlockStateCommandParam>> mBlockStates;
168 ::ll::TypedStorage<4, 4, int> mBlockData;
169 ::ll::TypedStorage<4, 4, ::NewExecuteCommand::ExecuteChainedSubcommand::ScanMode> mScanMode;
170 ::ll::TypedStorage<8, 32, ::std::string> mTargetScoreObjective;
171 ::ll::TypedStorage<8, 32, ::std::string> mSourceScoreObjective;
172 ::ll::TypedStorage<1, 1, ::CommandCompareOperator> mCompareOperator;
173 ::ll::TypedStorage<4, 4, ::NewExecuteCommand::ExecuteChainedSubcommand::ScoreRangeMode> mRangeMode;
174 ::ll::TypedStorage<4, 12, ::CommandIntegerRange> mRange;
175 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Command>> mCommand;
176 ::ll::TypedStorage<8, 16, ::NewExecuteCommand::ExecuteChainedSubcommand> mChainedCommand;
177 // NOLINTEND
178
179public:
180 // virtual functions
181 // NOLINTBEGIN
182 // vIndex: 2
183 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
184
185 // vIndex: 0
186 virtual ~NewExecuteCommand() /*override*/;
187 // NOLINTEND
188
189public:
190 // member functions
191 // NOLINTBEGIN
192 MCAPI NewExecuteCommand();
193
194 MCAPI void _commandOutputFail(::CommandOutput& output, ::std::optional<int> const& testPassCount) const;
195
196 MCAPI void _commandOutputSuccess(::CommandOutput& output, ::std::optional<int> const& testPassCount) const;
197
198 MCAPI bool _detectConditionSubcommand(
199 ::CommandOrigin const& origin,
200 ::CommandOutput& output,
201 ::std::optional<int>& testPassCount
202 ) const;
203
204 MCAPI ::std::optional<::ScoreInfo> _getScoreFromSelectorOnObjective(
205 ::Scoreboard const& scoreboard,
206 ::CommandSelector<::Actor> const& selector,
207 ::std::string const& objectiveName,
208 ::CommandOrigin const& origin,
209 ::CommandOutput& output
210 ) const;
211
212 MCAPI ::std::optional<::ScoreboardId> _getScoreboardIdForSelector(
213 ::Scoreboard const& scoreboard,
214 ::CommandSelector<::Actor> const& selector,
215 ::CommandOrigin const& origin,
216 ::CommandOutput& output
217 ) const;
218 // NOLINTEND
219
220public:
221 // static functions
222 // NOLINTBEGIN
223 MCAPI static void setup(::CommandRegistry& registry, int newExecuteStartVersion);
224 // NOLINTEND
225
226public:
227 // constructor thunks
228 // NOLINTBEGIN
229 MCAPI void* $ctor();
230 // NOLINTEND
231
232public:
233 // destructor thunk
234 // NOLINTBEGIN
235 MCAPI void $dtor();
236 // NOLINTEND
237
238public:
239 // virtual function thunks
240 // NOLINTBEGIN
241 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
242 // NOLINTEND
243
244public:
245 // vftables
246 // NOLINTBEGIN
247 MCNAPI static void** $vftable();
248 // NOLINTEND
249};
Definition Actor.h:102
Definition BlockStateCommandParam.h:14
Definition CommandChainedSubcommand.h:10
Definition CommandOrigin.h:30
Definition CommandOutput.h:17
Definition CommandRegistry.h:34
Definition CommandSelector.h:6
Definition Command.h:17
Definition Dimension.h:85
Definition NewExecuteCommand.h:39
static MCAPI char const *& SUBCOMMAND_OPTION_ANCHORED()
static MCAPI char const *& SUBCOMMAND_BLOCK()
static MCAPI char const *& SUBCOMMAND_ANCHORED()
static MCAPI char const *& SUBCOMMAND_RUN()
static MCAPI char const *& SUBCOMMAND_ROTATED()
static MCAPI char const *& CONDITION_SUBCOMMAND_OPTION_SCORE()
static MCAPI char const *& SUBCOMMAND_IN()
static MCAPI char const *& CHAINED_OPTION_0()
static MCAPI char const *& SUBCOMMAND_OPTION_ENTITY()
static MCAPI char const *& CONDITION_SUBCOMMAND_OPTION_BLOCK()
static MCAPI ::std::string getSubcommandName(::NewExecuteCommand::ExecuteChainedSubcommand::Subcommand subcommand)
static MCAPI char const *& SUBCOMMAND_OPTION_ALIGN()
static MCAPI char const *& SUBCOMMAND_UNLESS()
static MCAPI void setup(::CommandRegistry &registry)
static MCAPI char const *& SUBCOMMAND_SCORE()
static MCAPI char const *& SUBCOMMAND_OPTION_AT()
static MCAPI char const *& SUBCOMMAND_OPTION_IN()
static MCAPI char const *& SUBCOMMAND_AT()
static MCAPI char const *& SUBCOMMAND_ENTITY()
static MCAPI char const *& SUBCOMMAND_OPTION_RUN()
static MCAPI char const *& SUBCOMMAND_OPTION_IF_UNLESS()
static MCAPI char const *& SUBCOMMAND_OPTION_ROTATED()
static MCAPI char const *& SUBCOMMAND_POSITIONED()
static MCAPI char const *& SUBCOMMAND_OPTION_POSITIONED()
static MCAPI char const *& SUBCOMMAND_OPTION_AS()
static MCAPI char const *& CONDITION_SUBCOMMAND_OPTION_BLOCKS()
static MCAPI char const *& CONDITION_SUBCOMMAND_OPTION_ENTITY()
static MCAPI char const *& SUBCOMMAND_ALIGN()
static MCAPI char const *& SUBCOMMAND_BLOCKS()
static MCAPI char const *& SUBCOMMAND_FACING()
static MCAPI char const *& SUBCOMMAND_AS()
static MCAPI char const *& SUBCOMMAND_IF()
MCAPI::std::string $getCommandName() const
static MCAPI char const *& SUBCOMMAND_OPTION_FACING()
Definition NewExecuteCommand.h:31
static MCAPI void ** $vftable()
Definition Scoreboard.h:34
Definition ScoreInfo.h:10
Definition ScoreboardId.h:10