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
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&);
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 // vIndex: 2
57 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
58
59 // vIndex: 0
60 virtual ~ReplaceItemCommand() /*override*/ = default;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI void
67 _outputError(::CommandOutput& output, ::Util::ReplacementResults errorDetails, ::std::string const& itemName) const;
68 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCAPI static void setup(::CommandRegistry& registry);
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition Block.h:38
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:45
Definition Command.h:17
Definition ReplaceItemCommand.h:16
static MCAPI void ** $vftable()
Definition ReplacementResults.h:7
Definition Alias.h:14