LeviLamina
Loading...
Searching...
No Matches
SetBlockCommand.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 SetBlockCommand : public ::Command {
19public:
20 // SetBlockCommand inner types define
21 enum class SetBlockMode : int {
22 Replace = 0,
23 Destroy = 1,
24 Keep = 2,
25 };
26
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<4, 16, ::CommandPosition> mPosition;
31 ::ll::TypedStorage<8, 8, ::CommandBlockName> mBlock;
32 ::ll::TypedStorage<8, 24, ::std::vector<::BlockStateCommandParam>> mBlockStates;
33 ::ll::TypedStorage<4, 4, int> mData;
34 ::ll::TypedStorage<4, 4, ::SetBlockCommand::SetBlockMode> mMode;
35 // NOLINTEND
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
41
42 virtual ~SetBlockCommand() /*override*/ = default;
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static void setup(::CommandRegistry& registry);
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
55
56
57 // NOLINTEND
58
59public:
60 // vftables
61 // NOLINTBEGIN
62 MCNAPI static void** $vftable();
63 // NOLINTEND
64};
Definition BlockStateCommandParam.h:16
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:50
Definition Command.h:17
Definition SetBlockCommand.h:18
static MCAPI void ** $vftable()