31class Agent :
public ::Mob {
34 enum class AnimState :
int {
44 ::ll::TypedStorage<1, 1, bool> mIsHovering;
45 ::ll::TypedStorage<4, 8, ::Vec2> mHorizontalTarget;
46 ::ll::TypedStorage<4, 4, float> mVerticalTarget;
47 ::ll::TypedStorage<4, 4, int> mSelectedSlot;
48 ::ll::TypedStorage<1, 1, bool> mHasSetName;
49 ::ll::TypedStorage<1, 1, bool> mHasFiredCreationEvent;
50 ::ll::TypedStorage<8, 16, ::AgentRenderData> mRenderData;
60 virtual ::mce::Color getNameTagTextColor()
const ;
62 virtual bool canShowNameTag()
const ;
64 virtual bool canBePulledIntoVehicle()
const ;
66 virtual bool canBeAffected(uint
id)
const ;
68 virtual void knockback(::Actor*,
int,
float,
float,
float,
float,
float) ;
70 virtual void handleEntityEvent(::ActorEvent
id,
int data) ;
75 virtual bool createAIGoals() ;
77 virtual void setCarriedItem(
::ItemStack const& item) ;
79 virtual void normalTick() ;
81 virtual void baseTick() ;
84 teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int entityType,
bool keepVelocity) ;
86 virtual bool canExistWhenDisallowMob()
const ;
88 virtual bool isTargetable()
const ;
90 virtual bool isInvisible()
const ;
96 virtual ::ActorHurtResult
99 virtual ::std::unique_ptr<::BodyControl> initBodyControl() ;
101 virtual ~Agent() =
default;
113 MCAPI
bool _isOnGround(
::AABB const& aabb);
115 MCAPI
float getMoveSpeedScalar()
const;
117 MCAPI
int getSwingAnimationDuration()
const;
119 MCAPI
void handleAnimationEvent(::AgentAnimation anim);
121 MCAPI
bool isArmSwinging()
const;
123 MCAPI
bool isEmoting()
const;
125 MCAPI
bool isShrugging()
const;
127 MCAPI
void setNameTagFromOwner(
::Player const& player);
131 MCAPI
void swingArm();
133 MCAPI
void tryFireCreateEvent(
::Player& player);
149 MCAPI ::mce::Color $getNameTagTextColor()
const;
151 MCFOLD
bool $canShowNameTag()
const;
153 MCFOLD
bool $canBePulledIntoVehicle()
const;
155 MCFOLD
bool $canBeAffected(uint
id)
const;
157 MCFOLD
void $knockback(::Actor*,
int,
float,
float,
float,
float,
float);
159 MCAPI
void $handleEntityEvent(::ActorEvent
id,
int data);
161 MCAPI
void $initializeComponents(::ActorInitializationMethod method,
::VariantParameterList const& params);
163 MCAPI
bool $createAIGoals();
165 MCAPI
void $setCarriedItem(
::ItemStack const& item);
167 MCAPI
void $normalTick();
169 MCAPI
void $baseTick();
171 MCAPI
void $teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int entityType,
bool keepVelocity);
173 MCFOLD
bool $canExistWhenDisallowMob()
const;
175 MCFOLD
bool $isTargetable()
const;
177 MCAPI
bool $isInvisible()
const;
183 MCAPI ::ActorHurtResult $_hurt(
::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
185 MCAPI ::std::unique_ptr<::BodyControl> $initBodyControl();
193 MCAPI
static void** $vftable();
Definition BodyControl.h:13
Definition EntityContext.h:16