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/shared_types/legacy/actor/ActorLocation.h"
7#include "mc/server/commands/Command.h"
8#include "mc/server/commands/CommandBlockName.h"
9#include "mc/server/commands/CommandChainedSubcommand.h"
10#include "mc/server/commands/CommandCompareOperator.h"
11#include "mc/server/commands/CommandIntegerRange.h"
12#include "mc/server/commands/CommandPosition.h"
13#include "mc/server/commands/CommandPositionFloat.h"
14#include "mc/server/commands/CommandSelector.h"
15#include "mc/server/commands/RelativeFloat.h"
16#include "mc/world/level/dimension/DimensionType.h"
17
18// auto generated forward declare list
19// clang-format off
20class Actor;
22class CommandOrigin;
23class CommandOutput;
24class CommandRegistry;
25class Scoreboard;
26struct ScoreInfo;
27// clang-format on
28
30public:
31 // NewExecuteCommand inner types declare
32 // clang-format off
34 // clang-format on
35
36 // NewExecuteCommand inner types define
38 public:
39 // ExecuteChainedSubcommand inner types define
40 enum class ConditionSubcommand : int {
41 None = 0,
42 Block = 1,
43 Blocks = 2,
44 Entity = 3,
45 Score = 4,
46 };
47
48 enum class ScanMode : int {
49 All = 0,
50 Masked = 1,
51 };
52
53 enum class ScoreRangeMode : int {
54 Off = 0,
55 On = 1,
56 };
57
58 enum class Subcommand : int {
59 None = 0,
60 As = 1,
61 At = 2,
62 In = 3,
63 Positioned = 4,
64 Rotated = 5,
65 Facing = 6,
66 Entity = 7,
67 Align = 8,
68 Anchored = 9,
69 If = 10,
70 Unless = 11,
71 Run = 12,
72 };
73
74 public:
75 // virtual functions
76 // NOLINTBEGIN
77 virtual ::std::string getCommandName() const /*override*/;
78 // NOLINTEND
79
80 public:
81 // static functions
82 // NOLINTBEGIN
83 MCAPI static void setup(::CommandRegistry& registry);
84 // NOLINTEND
85
86 public:
87 // static variables
88 // NOLINTBEGIN
89 MCAPI static char const*& SUBCOMMAND_ALIGN();
90
91 MCAPI static char const*& SUBCOMMAND_ANCHORED();
92
93 MCAPI static char const*& SUBCOMMAND_AS();
94
95 MCAPI static char const*& SUBCOMMAND_AT();
96
97 MCAPI static char const*& SUBCOMMAND_FACING();
98
99 MCAPI static char const*& SUBCOMMAND_IF();
100
101 MCAPI static char const*& SUBCOMMAND_IN();
102
103 MCAPI static char const*& SUBCOMMAND_OPTION_ALIGN();
104
105 MCAPI static char const*& SUBCOMMAND_OPTION_ANCHORED();
106
107 MCAPI static char const*& SUBCOMMAND_OPTION_AS();
108
109 MCAPI static char const*& SUBCOMMAND_OPTION_AT();
110
111 MCAPI static char const*& SUBCOMMAND_OPTION_FACING();
112
113 MCAPI static char const*& SUBCOMMAND_OPTION_IF_UNLESS();
114
115 MCAPI static char const*& SUBCOMMAND_OPTION_IN();
116
117 MCAPI static char const*& SUBCOMMAND_OPTION_POSITIONED();
118
119 MCAPI static char const*& SUBCOMMAND_OPTION_ROTATED();
120
121 MCAPI static char const*& SUBCOMMAND_OPTION_RUN();
122
123 MCAPI static char const*& SUBCOMMAND_POSITIONED();
124
125 MCAPI static char const*& SUBCOMMAND_ROTATED();
126
127 MCAPI static char const*& SUBCOMMAND_RUN();
128
129 MCAPI static char const*& SUBCOMMAND_UNLESS();
130 // NOLINTEND
131
132 public:
133 // virtual function thunks
134 // NOLINTBEGIN
135 MCAPI ::std::string $getCommandName() const;
136
137
138 // NOLINTEND
139 };
140
141public:
142 // member variables
143 // NOLINTBEGIN
144 ::ll::TypedStorage<4, 4, ::NewExecuteCommand::ExecuteChainedSubcommand::Subcommand> mSubcommandOption;
145 ::ll::TypedStorage<4, 4, ::NewExecuteCommand::ExecuteChainedSubcommand::Subcommand> mSecondarySubcommandOption;
146 ::ll::TypedStorage<4, 4, ::NewExecuteCommand::ExecuteChainedSubcommand::ConditionSubcommand>
147 mConditionSubcommandOption;
148 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mTargets;
149 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mSources;
150 ::ll::TypedStorage<8, 32, ::std::string> mAxesAlignment;
151 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::ActorLocation> mActorLocation;
152 ::ll::TypedStorage<4, 16, ::CommandPositionFloat> mPosition;
153 ::ll::TypedStorage<4, 16, ::CommandPosition> mBlockPosition;
154 ::ll::TypedStorage<4, 16, ::CommandPosition> mEndPosition;
155 ::ll::TypedStorage<4, 16, ::CommandPosition> mDestination;
156 ::ll::TypedStorage<4, 8, ::RelativeFloat> mRotationX;
157 ::ll::TypedStorage<4, 8, ::RelativeFloat> mRotationY;
158 ::ll::TypedStorage<4, 4, ::DimensionType> mTargetDimension;
159 ::ll::TypedStorage<8, 8, ::CommandBlockName> mBlock;
160 ::ll::TypedStorage<8, 24, ::std::vector<::BlockStateCommandParam>> mBlockStates;
161 ::ll::TypedStorage<4, 4, int> mBlockData;
162 ::ll::TypedStorage<4, 4, ::NewExecuteCommand::ExecuteChainedSubcommand::ScanMode> mScanMode;
163 ::ll::TypedStorage<8, 32, ::std::string> mTargetScoreObjective;
164 ::ll::TypedStorage<8, 32, ::std::string> mSourceScoreObjective;
165 ::ll::TypedStorage<1, 1, ::CommandCompareOperator> mCompareOperator;
166 ::ll::TypedStorage<4, 4, ::NewExecuteCommand::ExecuteChainedSubcommand::ScoreRangeMode> mRangeMode;
167 ::ll::TypedStorage<4, 12, ::CommandIntegerRange> mRange;
168 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Command>> mCommand;
169 ::ll::TypedStorage<8, 16, ::NewExecuteCommand::ExecuteChainedSubcommand> mChainedCommand;
170 // NOLINTEND
171
172public:
173 // virtual functions
174 // NOLINTBEGIN
175 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
176 // NOLINTEND
177
178public:
179 // member functions
180 // NOLINTBEGIN
181 MCAPI ::std::optional<::ScoreInfo> _getScoreFromSelectorOnObjective(
182 ::Scoreboard const& scoreboard,
183 ::CommandSelector<::Actor> const& selector,
184 ::std::string const& objectiveName,
185 ::CommandOrigin const& origin,
186 ::CommandOutput& output
187 ) const;
188 // NOLINTEND
189
190public:
191 // static functions
192 // NOLINTBEGIN
193 MCAPI static void setup(::CommandRegistry& registry, int newExecuteStartVersion);
194 // NOLINTEND
195
196public:
197 // virtual function thunks
198 // NOLINTBEGIN
199 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
200
201
202 // NOLINTEND
203};
Definition Actor.h:114
Definition BlockStateCommandParam.h:15
Definition Block.h:41
Definition CommandChainedSubcommand.h:10
Definition CommandOrigin.h:31
Definition CommandOutput.h:20
Definition CommandRegistry.h:49
Definition CommandSelector.h:15
Definition Command.h:17
Definition NewExecuteCommand.h:37
Definition NewExecuteCommand.h:29
Definition Scoreboard.h:32
Definition ScoreInfo.h:10