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 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI ExecuteCommand();
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static ::ExecuteCommandPositionData getExecutePositionData(
57 int version,
58 ::Actor& actor,
59 ::CommandPositionFloat const& commandPosition,
60 ::CommandPosition const& detectCommandPosition,
61 ::ExecuteCommand::Mode mode
62 );
63
64 MCAPI static void setup(::CommandRegistry& registry, bool isLegacyActive, int newExecuteStartVersion);
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor();
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
77
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
87
88// clang-format off
89template <>
90MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::ExecuteCommand::Mode>();
91// clang-format on
Definition Actor.h:125
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandPositionFloat.h:8
Definition CommandPosition.h:15
Definition CommandRegistry.h:51
static MCAPI void ** $vftable()
Definition ExecuteCommandPositionData.h:8