11 super(pkEgg, a_Creator, a_Pos, 0.25, 0.25),
78 if (Random.RandBool(0.125))
82 else if (Random.RandBool(1.0 / 33.0))
virtual UInt32 SpawnMob(double a_PosX, double a_PosY, double a_PosZ, eMonsterType a_MonsterType, bool a_Baby=false) override
Spawns a mob of the specified type.
MTRand & GetRandomProvider()
Returns the current thread's random number source.
bool IsEnderCrystal(void) const
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
void TrySpawnChicken(Vector3d a_HitPos)
virtual void Destroy(bool a_ShouldBroadcast=true)
Destroys the entity and schedules it for memory freeing; if a_ShouldBroadcast is set to true...
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.
void SetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ)
Sets the speed of the entity, measured in m / sec.
cThrownEggEntity(cEntity *a_Creator, Vector3d a_Pos, Vector3d a_Speed)
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
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...