LeviLamina
Loading...
Searching...
No Matches
AgentCommand.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;
13class Player;
14namespace AgentCommands { class Command; }
15// clang-format on
16
17class AgentCommand : public ::Command {
18public:
19 // AgentCommand inner types declare
20 // clang-format off
21 struct CommandInfo;
22 // clang-format on
23
24 // AgentCommand inner types define
25 enum class FacingResult : int {
26 HaveFacing = 0,
27 NoFacing = 1,
28 Error = 2,
29 };
30
31 enum class Mode : int {
32 Attack = 0,
33 Collect = 1,
34 Create = 2,
35 Detect = 3,
36 DetectRedstone = 4,
37 Drop = 5,
38 DropAll = 6,
39 GetItemCount = 7,
40 GetItemDetail = 8,
41 GetItemSpace = 9,
42 GetPosition = 10,
43 InspectData = 11,
44 Move = 12,
45 Place = 13,
46 SetItem = 14,
47 Till = 15,
48 Tp = 16,
49 Transfer = 17,
50 Turn = 18,
51 };
52
53 struct CommandInfo {
54 public:
55 // member variables
56 // NOLINTBEGIN
60 // NOLINTEND
61
62 public:
63 // prevent constructor by default
64 CommandInfo& operator=(CommandInfo const&);
65 CommandInfo(CommandInfo const&);
66 CommandInfo();
67 };
68
69public:
70 // member variables
71 // NOLINTBEGIN
86 // NOLINTEND
87
88public:
89 // prevent constructor by default
90 AgentCommand& operator=(AgentCommand const&);
91 AgentCommand(AgentCommand const&);
92 AgentCommand();
93
94public:
95 // virtual functions
96 // NOLINTBEGIN
97 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
98
99 virtual ~AgentCommand() /*override*/ = default;
100 // NOLINTEND
101
102public:
103 // member functions
104 // NOLINTBEGIN
105 MCAPI void collect(::CommandOrigin const& origin, ::CommandOutput& output) const;
106
107 MCAPI void createAgent(::Player& player, ::CommandOrigin const& origin, ::CommandOutput& output) const;
108
109 MCAPI void createAgentOutputSuccess(::CommandOutput& output, bool wasSpawned) const;
110
111 MCAPI void directionCommand(::CommandOrigin const& origin, ::CommandOutput& output) const;
112
113 MCAPI void drop(::CommandOrigin const& origin, ::CommandOutput& output) const;
114
115 MCAPI void getPosition(::CommandOrigin const& origin, ::CommandOutput& output) const;
116
117 MCAPI void itemCommand(::CommandOrigin const& origin, ::CommandOutput& output) const;
118
119 MCAPI void place(::CommandOrigin const& origin, ::CommandOutput& output) const;
120
121 MCAPI void reportSuccess(bool success, ::CommandOutput& output) const;
122
123 MCAPI void setItem(::CommandOrigin const& origin, ::CommandOutput& output) const;
124
125 MCAPI void tpAgent(::Player& player, ::CommandOrigin const& origin, ::CommandOutput& output) const;
126
127 MCAPI void transfer(::CommandOrigin const& origin, ::CommandOutput& output) const;
128 // NOLINTEND
129
130public:
131 // static functions
132 // NOLINTBEGIN
133 MCAPI static void setup(::CommandRegistry& registry);
134 // NOLINTEND
135
136public:
137 // virtual function thunks
138 // NOLINTBEGIN
139 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
140
141
142 // NOLINTEND
143
144public:
145 // vftables
146 // NOLINTBEGIN
147 MCNAPI static void** $vftable();
148 // NOLINTEND
149};
static MCAPI void ** $vftable()
Definition Command.h:18
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:47
Definition Command.h:17
Definition Player.h:125
Definition AgentCommand.h:53
Definition Alias.h:14