summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2017-08-30 16:01:33 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2017-08-30 16:01:33 +0200
commit5d64451f74af1839177f9b93d76cd393b7a58ad1 (patch)
treea2467709cc553fa0bcaeecc5253042387577b73c /src/Entities
parentUpdate mbedtls to 2.5.1 (#3964) (diff)
downloadcuberite-5d64451f74af1839177f9b93d76cd393b7a58ad1.tar
cuberite-5d64451f74af1839177f9b93d76cd393b7a58ad1.tar.gz
cuberite-5d64451f74af1839177f9b93d76cd393b7a58ad1.tar.bz2
cuberite-5d64451f74af1839177f9b93d76cd393b7a58ad1.tar.lz
cuberite-5d64451f74af1839177f9b93d76cd393b7a58ad1.tar.xz
cuberite-5d64451f74af1839177f9b93d76cd393b7a58ad1.tar.zst
cuberite-5d64451f74af1839177f9b93d76cd393b7a58ad1.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Entity.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index d143e3814..f39039183 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -306,6 +306,10 @@ public:
/** Exported in ManualBindings */
const Vector3d & GetSpeed(void) const { return m_Speed; }
+ /** Returns the last position we sent to all the clients. Use this to
+ initialize clients with our position. */
+ Vector3d GetLastSentPos(void) const { return m_LastSentPosition; }
+
/** Destroy the entity without scheduling memory freeing. This should only be used by cChunk or cClientHandle for internal memory management. */
void DestroyNoScheduling(bool a_ShouldBroadcast);