LeviLamina
Loading...
Searching...
No Matches
Agent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ActorEvent.h"
7#include "mc/world/actor/ActorInitializationMethod.h"
8#include "mc/world/actor/Mob.h"
9#include "mc/world/actor/agent/AgentAnimation.h"
10#include "mc/world/actor/agent/AgentTravelType.h"
11
12// auto generated forward declare list
13// clang-format off
14class AABB;
15class Actor;
18class BodyControl;
19class EntityContext;
20class ItemStack;
21class Player;
22class Vec3;
24struct ActorUniqueID;
26namespace mce { class Color; }
27// clang-format on
28
29class Agent : public ::Mob {
30public:
31 // Agent inner types define
32 enum class AnimState : int {
33 Idle = 0,
34 Moving = 1,
35 ArmSwing = 2,
36 Shrug = 3,
37 };
38
39public:
40 // member variables
41 // NOLINTBEGIN
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 Agent& operator=(Agent const&);
54 Agent(Agent const&);
55 Agent();
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 // vIndex: 34
61 virtual ::mce::Color getNameTagTextColor() const /*override*/;
62
63 // vIndex: 32
64 virtual bool canShowNameTag() const /*override*/;
65
66 // vIndex: 96
67 virtual bool canBePulledIntoVehicle() const /*override*/;
68
69 // vIndex: 105
70 virtual bool canBeAffected(uint id) const /*override*/;
71
72 // vIndex: 138
73 virtual void knockback(::Actor*, int, float, float, float, float, float) /*override*/;
74
75 // vIndex: 69
76 virtual void handleEntityEvent(::ActorEvent eventId, int data) /*override*/;
77
78 // vIndex: 4
79 virtual void
80 initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
81
82 // vIndex: 167
83 virtual bool createAIGoals() /*override*/;
84
85 // vIndex: 77
86 virtual void setCarriedItem(::ItemStack const& item) /*override*/;
87
88 // vIndex: 24
89 virtual void normalTick() /*override*/;
90
91 // vIndex: 25
92 virtual void baseTick() /*override*/;
93
94 // vIndex: 21
95 virtual void
96 teleportTo(::Vec3 const& pos, bool shouldStopRiding, int cause, int entityType, bool keepVelocity) /*override*/;
97
98 // vIndex: 172
99 virtual bool canExistWhenDisallowMob() const /*override*/;
100
101 // vIndex: 50
102 virtual bool isTargetable() const /*override*/;
103
104 // vIndex: 31
105 virtual bool isInvisible() const /*override*/;
106
107 // vIndex: 122
108 virtual void kill() /*override*/;
109
110 // vIndex: 55
111 virtual void setOwner(::ActorUniqueID const id) /*override*/;
112
113 // vIndex: 135
114 virtual bool _hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite) /*override*/;
115
116 // vIndex: 174
117 virtual ::std::unique_ptr<::BodyControl> initBodyControl() /*override*/;
118
119 // vIndex: 8
120 virtual ~Agent() /*override*/ = default;
121 // NOLINTEND
122
123public:
124 // member functions
125 // NOLINTBEGIN
126 MCAPI Agent(
127 ::ActorDefinitionGroup* definitions,
128 ::ActorDefinitionIdentifier const& definitionName,
129 ::EntityContext& entityContext
130 );
131
132 MCAPI bool _isOnGround(::AABB const& aabb);
133
134 MCAPI ::Vec3 doServerTravel(::AABB const& aabb, ::AgentTravelType travelType);
135
136 MCAPI float getMoveSpeedScalar() const;
137
138 MCAPI int getSwingAnimationDuration() const;
139
140 MCAPI void handleAnimationEvent(::AgentAnimation anim);
141
142 MCAPI bool isArmSwinging() const;
143
144 MCAPI bool isShrugging() const;
145
146 MCAPI void setNameTagFromOwner(::Player const& player);
147
148 MCAPI void shrug();
149
150 MCAPI void swingArm();
151
152 MCAPI void tryFireCreateEvent(::Player& player);
153 // NOLINTEND
154
155public:
156 // static functions
157 // NOLINTBEGIN
158 MCAPI static ::Agent* tryGetFromEntity(::EntityContext& entity, bool includeRemoved);
159 // NOLINTEND
160
161public:
162 // constructor thunks
163 // NOLINTBEGIN
164 MCAPI void* $ctor(
165 ::ActorDefinitionGroup* definitions,
166 ::ActorDefinitionIdentifier const& definitionName,
167 ::EntityContext& entityContext
168 );
169 // NOLINTEND
170
171public:
172 // destructor thunk
173 // NOLINTBEGIN
174
175 // NOLINTEND
176
177public:
178 // virtual function thunks
179 // NOLINTBEGIN
180 MCAPI ::mce::Color $getNameTagTextColor() const;
181
182 MCFOLD bool $canShowNameTag() const;
183
184 MCFOLD bool $canBePulledIntoVehicle() const;
185
186 MCFOLD bool $canBeAffected(uint id) const;
187
188 MCFOLD void $knockback(::Actor*, int, float, float, float, float, float);
189
190 MCAPI void $initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params);
191
192 MCAPI bool $createAIGoals();
193
194 MCAPI void $setCarriedItem(::ItemStack const& item);
195
196 MCAPI void $normalTick();
197
198 MCAPI void $baseTick();
199
200 MCAPI void $teleportTo(::Vec3 const& pos, bool shouldStopRiding, int cause, int entityType, bool keepVelocity);
201
202 MCFOLD bool $canExistWhenDisallowMob() const;
203
204 MCFOLD bool $isTargetable() const;
205
206 MCAPI bool $isInvisible() const;
207
208 MCAPI void $kill();
209
210 MCAPI void $setOwner(::ActorUniqueID const id);
211
212 MCAPI bool $_hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite);
213
214 MCAPI ::std::unique_ptr<::BodyControl> $initBodyControl();
215 // NOLINTEND
216
217public:
218 // vftables
219 // NOLINTBEGIN
220 MCAPI static void** $vftable();
221 // NOLINTEND
222};
Definition AABB.h:16
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:27
Definition Actor.h:104
Definition Agent.h:29
Definition BodyControl.h:13
Definition EntityContext.h:16
Definition ItemStack.h:25
Definition Mob.h:47
Definition Player.h:119
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:13
Definition ActorUniqueID.h:5
Definition VariantParameterList.h:5
Definition Alias.h:14