30 virtual void Tick(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override;
33 virtual bool IsUndead(
void)
override {
return true; }
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
unsigned int GetWitherInvulnerableTicks(void) const
bool IsArmored(void) const
Returns whether the wither is invulnerable to arrows.
virtual bool DoTakeDamage(TakeDamageInfo &a_TDI) override
Makes this entity take damage specified in the a_TDI.
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
void SetWitherInvulnerableTicks(unsigned int a_Ticks)
virtual bool IsUndead(void) override
Returns whether this mob is undead (skeleton, zombie, etc.)
virtual void KilledBy(TakeDamageInfo &a_TDI) override
Called when the health drops below zero.
unsigned int m_WitherInvulnerableTicks
The number of ticks of invulnerability left after being initially created.
#define CLASS_PROTODEF(classname)
This class bridges a vector of cItem for safe access via Lua.