LeviLamina
Loading...
Searching...
No Matches
CloneCommand.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
10// auto generated forward declare list
11// clang-format off
13class CommandOrigin;
14class CommandOutput;
15class CommandRegistry;
16// clang-format on
17
18class CloneCommand : public ::Command {
19public:
20 // CloneCommand inner types define
21 enum class CloneMode : int {
22 Normal = 0,
23 Force = 1,
24 Move = 2,
25 };
26
27 enum class MaskMode : int {
28 Replace = 0,
29 Filtered = 1,
30 Masked = 2,
31 };
32
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<4, 16, ::CommandPosition> mBegin;
37 ::ll::TypedStorage<4, 16, ::CommandPosition> mEnd;
38 ::ll::TypedStorage<4, 16, ::CommandPosition> mDestination;
39 ::ll::TypedStorage<4, 4, ::CloneCommand::MaskMode> mMaskMode;
40 ::ll::TypedStorage<4, 4, ::CloneCommand::CloneMode> mCloneMode;
41 ::ll::TypedStorage<8, 8, ::CommandBlockName> mBlock;
42 ::ll::TypedStorage<8, 24, ::std::vector<::BlockStateCommandParam>> mBlockStates;
43 ::ll::TypedStorage<4, 4, int> mData;
44 // NOLINTEND
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
50
51 virtual ~CloneCommand() /*override*/ = default;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static void setup(::CommandRegistry& registry);
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
Definition BlockStateCommandParam.h:16
Definition CloneCommand.h:18
static MCAPI void ** $vftable()
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:50
Definition Command.h:17