diff options
author | peterbell10 <peterbell10@live.co.uk> | 2018-04-11 09:39:24 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2018-04-11 09:39:24 +0200 |
commit | 4bf160d596d8b9d0bfb3904470560b492453e5e4 (patch) | |
tree | a1a47c413cefc21279361121000e47c16a3c6c5b /src/Entities/Entity.h | |
parent | Smelting Gives Experience (#4094) (diff) | |
download | cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar.gz cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar.bz2 cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar.lz cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar.xz cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar.zst cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 5b993ac96..9abf75968 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -666,6 +666,10 @@ protected: m_IsHeadInWater */ virtual void SetSwimState(cChunk & a_Chunk); + /** Set the entities position and last sent position. + Only to be used when the caller will broadcast a teleport or equivalent to clients. */ + void ResetPosition(Vector3d a_NewPos); + private: /** Whether the entity is ticking or not. If not, it is scheduled for removal or world-teleportation. */ |