24 virtual
void Tick(
std::chrono::milliseconds a_Dt,
cChunk & a_Chunk) override;
47 static std::vector<int>
Split(
int a_Reward);
std::chrono::duration< int, std::ratio_multiply< std::chrono::milliseconds::period, std::ratio< 50 >>> cTickTime
static std::vector< int > Split(int a_Reward)
Split reward into small values according to regular Minecraft rules.
virtual bool DoTakeDamage(TakeDamageInfo &a_TDI) override
Makes this entity take damage specified in the a_TDI.
void SetAge(int a_Age)
Set the number of ticks that this entity has existed.
void SetReward(int a_Reward)
Set the exp amount.
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
int GetAge(void) const
Returns the number of ticks that this entity has existed.
#define CLASS_PROTODEF(classname)
std::chrono::milliseconds m_Timer
The number of ticks that the entity has existed / timer between collect and destroy; in msec...
int GetReward(void) const
Get the exp amount.
virtual void SpawnOn(cClientHandle &a_Client) override
Descendants override this function to send a command to the specified client to spawn the entity on t...