summaryrefslogtreecommitdiffstats
path: root/src/Entities/ThrownEnderPearlEntity.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-04-10 17:58:39 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-04-12 23:35:07 +0200
commit3001e23e8cf517de39085f33db170da37df24b17 (patch)
treeebe073c108753ea9ea95e39406f052643a672af0 /src/Entities/ThrownEnderPearlEntity.h
parentcPlayer: move some constants out of header (diff)
downloadcuberite-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 'src/Entities/ThrownEnderPearlEntity.h')
-rw-r--r--src/Entities/ThrownEnderPearlEntity.h18
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
-
-
-
-