31 virtual void Tick(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override;
#define CLASS_PROTODEF(classname)
This class bridges a vector of cItem for safe access via Lua.
void Add(const cItem &a_Item)
bool IsBegging(void) const
static bool IsCatSittingOnBlock(cWorld *a_World, Vector3d a_BlockPosition)
Returns true if there's a cat sitting above the given position.
virtual void TickFollowPlayer()
cUUID GetOwnerUUID(void) const
void SetIsTame(bool a_IsTame)
void SetOwner(const AString &a_NewOwnerName, const cUUID &a_NewOwnerUUID)
void SetIsBegging(bool a_IsBegging)
eCatType GetOcelotType(void) const
bool IsSitting(void) const override
virtual void GetBreedingItems(cItems &a_Items) override
Returns the items that make the animal breed - this is usually the same as the ones that make the ani...
void SetCatType(eCatType a_CatType)
virtual void OnRightClicked(cPlayer &a_Player) override
Called when the specified player right-clicks this entity.
int m_CheckPlayerTickCount
Only check for a nearby player holding the breeding items every 23 ticks.
AString GetOwnerName(void) const
virtual bool DoTakeDamage(TakeDamageInfo &a_TDI) override
When hit by someone, run away.
bool IsTame(void) const override
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
void SetIsSitting(bool a_IsSitting)
cPassiveMonster(const AString &a_ConfigName, eMonsterType a_MobType, const AString &a_SoundHurt, const AString &a_SoundDeath, const AString &a_SoundAmbient, float a_Width, float a_Height)