LeviLamina
Loading...
Searching...
No Matches
ExecuteCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7#include "mc/server/commands/CommandBlockName.h"
8#include "mc/server/commands/CommandPosition.h"
9#include "mc/server/commands/CommandPositionFloat.h"
10#include "mc/server/commands/CommandSelector.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15class CommandOrigin;
16class CommandOutput;
17class CommandRegistry;
18// clang-format on
19
20class ExecuteCommand : public ::Command {
21public:
22 // ExecuteCommand inner types define
23 enum class Mode : int {
24 Execute = 0,
25 Detect = 1,
26 };
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mTargets;
32 ::ll::TypedStorage<4, 16, ::CommandPositionFloat> mPosition;
33 ::ll::TypedStorage<4, 16, ::CommandPosition> mDetectPosition;
34 ::ll::TypedStorage<8, 8, ::CommandBlockName> mBlock;
35 ::ll::TypedStorage<4, 4, int> mBlockData;
36 ::ll::TypedStorage<4, 4, ::ExecuteCommand::Mode> mMode;
37 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Command>> mCommand;
38 // NOLINTEND
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
44 // NOLINTEND
45
46public:
47 // static functions
48 // NOLINTBEGIN
49 MCAPI static void setup(::CommandRegistry& registry, bool isLegacyActive, int newExecuteStartVersion);
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
56
57
58 // NOLINTEND
59};
Definition Actor.h:113
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Command.h:17
Definition ExecuteCommand.h:20