34class Agent :
public ::Mob {
37 enum class AnimState :
int {
47 ::ll::TypedStorage<1, 1, bool> mIsHovering;
48 ::ll::TypedStorage<4, 8, ::Vec2> mHorizontalTarget;
49 ::ll::TypedStorage<4, 4, float> mVerticalTarget;
50 ::ll::TypedStorage<4, 4, int> mSelectedSlot;
51 ::ll::TypedStorage<1, 1, bool> mHasSetName;
52 ::ll::TypedStorage<1, 1, bool> mHasFiredCreationEvent;
53 ::ll::TypedStorage<8, 16, ::AgentRenderData> mRenderData;
63 virtual ::mce::Color getNameTagTextColor()
const ;
65 virtual bool canShowNameTag()
const ;
67 virtual bool canBePulledIntoVehicle()
const ;
69 virtual bool canBeAffected(uint
id)
const ;
73 virtual void handleEntityEvent(::ActorEvent
id,
int data) ;
78 virtual bool createAIGoals() ;
80 virtual void setCarriedItem(
::ItemStack const& item) ;
82 virtual void normalTick() ;
84 virtual void baseTick() ;
87 teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int entityType,
bool keepVelocity) ;
89 virtual bool canExistWhenDisallowMob()
const ;
91 virtual bool isTargetable()
const ;
93 virtual bool isInvisible()
const ;
99 virtual ::ActorHurtResult
102 virtual ::std::unique_ptr<::BodyControl> initBodyControl() ;
114 MCAPI ::AgentTravelType checkTravelType();
116 MCAPI
void doClientTravel(
::AABB const& aabb);
118 MCAPI ::Vec3 doServerTravel(
::AABB const& aabb, ::AgentTravelType travelType);
120 MCAPI
float getMoveSpeedScalar()
const;
122 MCFOLD ::AgentRenderData& getRenderData();
124 MCFOLD
int getSelectedSlot()
const;
126 MCAPI
int getSwingAnimationDuration()
const;
128 MCAPI
void handleAnimationEvent(::AgentAnimation anim);
130 MCAPI
bool isArmSwinging()
const;
132 MCAPI
bool isIdling();
134 MCAPI
bool isShrugging()
const;
136 MCAPI
bool isValidSlotNum(
int slotNum);
138 MCAPI
void setGameType(::GameType gameType);
140 MCAPI
void setMoveTarget(
float target);
142 MCAPI
void setMoveTarget(
::Vec2 target);
144 MCAPI
void setNameTagFromOwner(
::Player const& player);
148 MCAPI
void startCommandMode();
150 MCAPI
void stopCommandMode();
152 MCAPI
void swingArm();
154 MCAPI
void tryFireCreateEvent(
::Player& player);
160 MCAPI static ::Vec3 roundTeleportPos(
::Vec3 const& pos);
162 MCAPI static ::Agent* tryGetFromEntity(
::EntityContext& entity,
bool includeRemoved);
178 MCAPI ::mce::Color $getNameTagTextColor()
const;
180 MCFOLD
bool $canShowNameTag()
const;
182 MCFOLD
bool $canBePulledIntoVehicle()
const;
184 MCFOLD
bool $canBeAffected(uint
id)
const;
188 MCAPI
void $handleEntityEvent(::ActorEvent
id,
int data);
190 MCAPI
void $initializeComponents(::ActorInitializationMethod method,
::VariantParameterList const& params);
192 MCAPI
bool $createAIGoals();
194 MCAPI
void $setCarriedItem(
::ItemStack const& item);
196 MCAPI
void $normalTick();
198 MCAPI
void $baseTick();
200 MCAPI
void $teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int entityType,
bool keepVelocity);
202 MCFOLD
bool $canExistWhenDisallowMob()
const;
204 MCFOLD
bool $isTargetable()
const;
206 MCAPI
bool $isInvisible()
const;
212 MCAPI ::ActorHurtResult $_hurt(
::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
214 MCAPI ::std::unique_ptr<::BodyControl> $initBodyControl();
222 MCAPI
static void** $vftable();
Definition BodyControl.h:13
Definition EntityContext.h:17