LeviLamina
Loading...
Searching...
No Matches
ReplaceItemCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7
8// auto generated forward declare list
9// clang-format off
10class CommandOrigin;
11class CommandOutput;
12class CommandRegistry;
13namespace Util { struct ReplacementResults; }
14// clang-format on
15
16class ReplaceItemCommand : public ::Command {
17public:
18 // ReplaceItemCommand inner types define
19 enum class ReplaceMode : int {
20 Destroy = 0,
21 Keep = 1,
22 };
23
24 enum class TargetType : int {
25 Block = 0,
26 Entity = 1,
27 Undefined = 2,
28 };
29
30public:
31 // member variables
32 // NOLINTBEGIN
45 // NOLINTEND
46
47public:
48 // prevent constructor by default
49 ReplaceItemCommand& operator=(ReplaceItemCommand const&);
50 ReplaceItemCommand(ReplaceItemCommand const&);
51 ReplaceItemCommand();
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
57
58 virtual ~ReplaceItemCommand() /*override*/ = default;
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI void
65 _outputError(::CommandOutput& output, ::Util::ReplacementResults errorDetails, ::std::string const& itemName) const;
66 // NOLINTEND
67
68public:
69 // static functions
70 // NOLINTBEGIN
71 MCAPI static void setup(::CommandRegistry& registry);
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
78
79
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition Block.h:43
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:47
Definition Command.h:17
static MCAPI void ** $vftable()
Definition ReplacementResults.h:7
Definition Alias.h:14