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;
19// clang-format on
20
21class ExecuteCommand : public ::Command {
22public:
23 // ExecuteCommand inner types define
24 enum class Mode : int {
25 Execute = 0,
26 Detect = 1,
27 };
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mTargets;
33 ::ll::TypedStorage<4, 16, ::CommandPositionFloat> mPosition;
34 ::ll::TypedStorage<4, 16, ::CommandPosition> mDetectPosition;
35 ::ll::TypedStorage<8, 8, ::CommandBlockName> mBlock;
36 ::ll::TypedStorage<4, 4, int> mBlockData;
37 ::ll::TypedStorage<4, 4, ::ExecuteCommand::Mode> mMode;
38 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Command>> mCommand;
39 // NOLINTEND
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
45
46 virtual ~ExecuteCommand() /*override*/ = default;
47 // NOLINTEND
48
49public:
50 // static functions
51 // NOLINTBEGIN
52 MCAPI static ::ExecuteCommandPositionData getExecutePositionData(
53 int version,
54 ::Actor& actor,
55 ::CommandPositionFloat const& commandPosition,
56 ::CommandPosition const& detectCommandPosition,
57 ::ExecuteCommand::Mode mode
58 );
59
60 MCAPI static void setup(::CommandRegistry& registry, bool isLegacyActive, int newExecuteStartVersion);
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
67
68
69 // NOLINTEND
70
71public:
72 // vftables
73 // NOLINTBEGIN
74 MCNAPI static void** $vftable();
75 // NOLINTEND
76};
Definition Actor.h:106
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandPositionFloat.h:8
Definition CommandPosition.h:15
Definition CommandRegistry.h:50
Definition Command.h:17
Definition ExecuteCommand.h:21
static MCAPI void ** $vftable()
Definition ExecuteCommandPositionData.h:8