5 #include "../ClientHandle.h"
23 Super(etEnderCrystal, a_Pos, 2.0f, 2.0f),
24 m_BeamTarget(a_BeamTarget),
25 m_DisplayBeam(a_DisplayBeam),
26 m_ShowBottom(a_ShowBottom)
static bool IsValidHeight(Vector3i a_BlockPosition)
Validates a height-coordinate.
void SendSpawnEntity(const cEntity &a_Entity)
void SendEntityMetadata(const cEntity &a_Entity)
void SetDisplayBeam(bool a_DisplayBeam)
virtual void KilledBy(TakeDamageInfo &a_TDI) override
Called when the health drops below zero.
void SetShowBottom(bool a_ShowBottom)
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
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...
void SetBeamTarget(Vector3i a_BeamTarget)
cEnderCrystal(Vector3d a_Pos, bool a_ShowBottom)
double GetPosX(void) const
double GetPosZ(void) const
void Destroy()
Destroys the entity, schedules it for memory freeing and broadcasts the DestroyEntity packet.
double GetPosY(void) const
float GetHeight(void) const
virtual void KilledBy(TakeDamageInfo &a_TDI)
Called when the health drops below zero.
void SetMaxHealth(float a_MaxHealth)
Sets the maximum value for the health.
const Vector3d & GetPosition(void) const
Exported in ManualBindings.
Vector3< int > Floor(void) const
Returns a new Vector3i with coords set to std::floor() of this vector's coords.
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.
virtual void BroadcastEntityMetadata(const cEntity &a_Entity, const cClientHandle *a_Exclude=nullptr) override
BLOCKTYPE GetBlock(Vector3i a_BlockPos) const
Returns the block type at the specified position.
virtual eDimension GetDimension(void) const override
void SetBlock(Vector3i a_BlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
Sets the block at the specified coords to the specified value.