30class Agent :
public ::Mob {
33 enum class AnimState :
int {
43 ::ll::TypedStorage<1, 1, bool> mIsHovering;
44 ::ll::TypedStorage<4, 8, ::Vec2> mHorizontalTarget;
45 ::ll::TypedStorage<4, 4, float> mVerticalTarget;
46 ::ll::TypedStorage<4, 4, int> mSelectedSlot;
47 ::ll::TypedStorage<1, 1, bool> mHasSetName;
48 ::ll::TypedStorage<1, 1, bool> mHasFiredCreationEvent;
49 ::ll::TypedStorage<8, 16, ::AgentRenderData> mRenderData;
59 virtual ::mce::Color getNameTagTextColor()
const ;
61 virtual bool canShowNameTag()
const ;
63 virtual bool canBePulledIntoVehicle()
const ;
65 virtual bool canBeAffected(uint
id)
const ;
67 virtual void knockback(::Actor*,
int,
float,
float,
float,
float,
float) ;
69 virtual void handleEntityEvent(::ActorEvent eventId,
int data) ;
74 virtual bool createAIGoals() ;
76 virtual void setCarriedItem(
::ItemStack const& item) ;
78 virtual void normalTick() ;
80 virtual void baseTick() ;
83 teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int entityType,
bool keepVelocity) ;
85 virtual bool canExistWhenDisallowMob()
const ;
87 virtual bool isTargetable()
const ;
89 virtual bool isInvisible()
const ;
95 virtual bool _hurt(
::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite) ;
97 virtual ::std::unique_ptr<::BodyControl> initBodyControl() ;
99 virtual ~Agent() =
default;
111 MCAPI
bool _isOnGround(
::AABB const& aabb);
113 MCAPI
float getMoveSpeedScalar()
const;
115 MCAPI
int getSwingAnimationDuration()
const;
117 MCAPI
void handleAnimationEvent(::AgentAnimation anim);
119 MCAPI
bool isArmSwinging()
const;
121 MCAPI
bool isEmoting()
const;
123 MCAPI
bool isShrugging()
const;
125 MCAPI
void setNameTagFromOwner(
::Player const& player);
129 MCAPI
void swingArm();
131 MCAPI
void tryFireCreateEvent(
::Player& player);
137 MCAPI static ::Agent* tryGetFromEntity(
::EntityContext& entity,
bool includeRemoved);
153 MCAPI ::mce::Color $getNameTagTextColor()
const;
155 MCFOLD
bool $canShowNameTag()
const;
157 MCFOLD
bool $canBePulledIntoVehicle()
const;
159 MCFOLD
bool $canBeAffected(uint
id)
const;
161 MCFOLD
void $knockback(::Actor*,
int,
float,
float,
float,
float,
float);
163 MCAPI
void $handleEntityEvent(::ActorEvent eventId,
int data);
165 MCAPI
void $initializeComponents(::ActorInitializationMethod method,
::VariantParameterList const& params);
167 MCAPI
bool $createAIGoals();
169 MCAPI
void $setCarriedItem(
::ItemStack const& item);
171 MCAPI
void $normalTick();
173 MCAPI
void $baseTick();
175 MCAPI
void $teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int entityType,
bool keepVelocity);
177 MCFOLD
bool $canExistWhenDisallowMob()
const;
179 MCFOLD
bool $isTargetable()
const;
181 MCAPI
bool $isInvisible()
const;
187 MCAPI
bool $_hurt(
::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
189 MCAPI ::std::unique_ptr<::BodyControl> $initBodyControl();
Definition BodyControl.h:13
Definition EntityContext.h:16