5 #include "../ClientHandle.h" 14 super(etEnderCrystal, a_Pos, 1.0, 1.0)
double GetPosY(void) const
double GetPitch(void) const
double GetPosX(void) const
virtual void KilledBy(TakeDamageInfo &a_TDI)
Called when the health drops below zero.
virtual void KilledBy(TakeDamageInfo &a_TDI) override
Called when the health drops below zero.
void SendSpawnObject(const cEntity &a_Entity, char a_ObjectType, int a_ObjectData, Byte a_Yaw, Byte a_Pitch)
virtual void Destroy(bool a_ShouldBroadcast=true)
Destroys the entity and schedules it for memory freeing; if a_ShouldBroadcast is set to true...
void SetMaxHealth(float a_MaxHealth)
Sets the maximum value for the health.
virtual void SpawnOn(cClientHandle &a_ClientHandle) override
Descendants override this function to send a command to the specified client to spawn the entity on t...
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
double GetYaw(void) const
cEnderCrystal(Vector3d a_Pos)
virtual void DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_BlockY, double a_BlockZ, bool a_CanCauseFire, eExplosionSource a_Source, void *a_SourceData) override
Does an explosion with the specified strength at the specified coordinates.
double GetPosZ(void) const
void SetBlock(Vector3i a_BlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
Sets the block at the specified coords to the specified value.