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