diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-10 00:19:50 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-12 23:35:07 +0200 |
commit | 17c091a97f35ac4fceb6facea1b65588f498e3a0 (patch) | |
tree | 7a1e2eee7970abeb2794cc67b5b50497d9a9e1f1 /src/Entities/ThrownEggEntity.h | |
parent | Improve bed handling robustness (diff) | |
download | cuberite-17c091a97f35ac4fceb6facea1b65588f498e3a0.tar cuberite-17c091a97f35ac4fceb6facea1b65588f498e3a0.tar.gz cuberite-17c091a97f35ac4fceb6facea1b65588f498e3a0.tar.bz2 cuberite-17c091a97f35ac4fceb6facea1b65588f498e3a0.tar.lz cuberite-17c091a97f35ac4fceb6facea1b65588f498e3a0.tar.xz cuberite-17c091a97f35ac4fceb6facea1b65588f498e3a0.tar.zst cuberite-17c091a97f35ac4fceb6facea1b65588f498e3a0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ThrownEggEntity.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/Entities/ThrownEggEntity.h b/src/Entities/ThrownEggEntity.h index f6240a680..f20705b81 100644 --- a/src/Entities/ThrownEggEntity.h +++ b/src/Entities/ThrownEggEntity.h @@ -30,23 +30,13 @@ public: // tolua_export cThrownEggEntity(cEntity * a_Creator, Vector3d a_Pos, Vector3d a_Speed); -protected: - - // cProjectileEntity overrides: - virtual void OnHitSolidBlock(Vector3d a_HitPos, eBlockFace a_HitFace) override; - virtual void OnHitEntity(cEntity & a_EntityHit, Vector3d a_HitPos) override; - virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; +private: - // Randomly decides whether to spawn a chicken where the egg lands. + /** Randomly decides whether to spawn a chicken where the egg lands. */ void TrySpawnChicken(Vector3d a_HitPos); -private: - - /** Time in ticks to wait for the hit animation to begin before destroying */ - int m_DestroyTimer; + // cProjectileEntity overrides: + virtual void OnHitEntity(cEntity & a_EntityHit, Vector3d a_HitPos) override; + virtual void OnHitSolidBlock(Vector3d a_HitPos, eBlockFace a_HitFace) override; } ; // tolua_export - - - - |