12 super(pkEnderPearl, a_Creator, a_Pos, 0.25, 0.25),
80 a_Entity.TeleportToCoords(a_HitPos.x, a_HitPos.y + 0.2, a_HitPos.z);
81 a_Entity.TakeDamage(dtEnderPearl, this, 5, 0);
virtual void OnHitSolidBlock(Vector3d a_HitPos, eBlockFace a_HitFace) override
Called by the physics blocktracer when the entity hits a solid block, the hit position and the face h...
CreatorData m_CreatorData
The structure for containing the entity ID and name who has created this projectile The ID and / or n...
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
cThrownEnderPearlEntity(cEntity *a_Creator, Vector3d a_Pos, Vector3d a_Speed)
virtual void Destroy(bool a_ShouldBroadcast=true)
Destroys the entity and schedules it for memory freeing; if a_ShouldBroadcast is set to true...
void TeleportCreator(Vector3d a_HitPos)
Teleports the creator where the ender pearl lands.
int m_DestroyTimer
Time in ticks to wait for the hit animation to begin before destroying.
virtual void OnHitEntity(cEntity &a_EntityHit, Vector3d a_HitPos) override
Called by the physics blocktracer when the entity hits another entity.
bool FindAndDoWithPlayer(const AString &a_PlayerNameHint, cPlayerListCallback a_Callback)
Finds a player from a partial or complete player name and calls the callback - case-insensitive.
void SetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ)
Sets the speed of the entity, measured in m / sec.
void TakeDamage(cEntity &a_Attacker)
Makes this pawn take damage from an attack by a_Attacker.
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
cWorld * GetWorld(void) const