diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-10 17:58:39 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-12 23:35:07 +0200 |
commit | 3001e23e8cf517de39085f33db170da37df24b17 (patch) | |
tree | ebe073c108753ea9ea95e39406f052643a672af0 /src/Entities/ThrownEnderPearlEntity.h | |
parent | cPlayer: move some constants out of header (diff) | |
download | cuberite-3001e23e8cf517de39085f33db170da37df24b17.tar cuberite-3001e23e8cf517de39085f33db170da37df24b17.tar.gz cuberite-3001e23e8cf517de39085f33db170da37df24b17.tar.bz2 cuberite-3001e23e8cf517de39085f33db170da37df24b17.tar.lz cuberite-3001e23e8cf517de39085f33db170da37df24b17.tar.xz cuberite-3001e23e8cf517de39085f33db170da37df24b17.tar.zst cuberite-3001e23e8cf517de39085f33db170da37df24b17.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ThrownEnderPearlEntity.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/Entities/ThrownEnderPearlEntity.h b/src/Entities/ThrownEnderPearlEntity.h index c61b20401..f503c5398 100644 --- a/src/Entities/ThrownEnderPearlEntity.h +++ b/src/Entities/ThrownEnderPearlEntity.h @@ -30,23 +30,13 @@ public: // tolua_export cThrownEnderPearlEntity(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: /** Teleports the creator where the ender pearl lands */ void TeleportCreator(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 - - - - |