summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-03-30 21:35:37 +0200
committerGitHub <noreply@github.com>2020-03-30 21:35:37 +0200
commit5eb1ba3bcc3983f936ef1d0a7701f19152d0dd81 (patch)
tree5c887139d79edcfb97af78c6575ec3de23bb3051 /src/Entities/Player.h
parentSend experience on respawn (#4586) (diff)
downloadcuberite-5eb1ba3bcc3983f936ef1d0a7701f19152d0dd81.tar
cuberite-5eb1ba3bcc3983f936ef1d0a7701f19152d0dd81.tar.gz
cuberite-5eb1ba3bcc3983f936ef1d0a7701f19152d0dd81.tar.bz2
cuberite-5eb1ba3bcc3983f936ef1d0a7701f19152d0dd81.tar.lz
cuberite-5eb1ba3bcc3983f936ef1d0a7701f19152d0dd81.tar.xz
cuberite-5eb1ba3bcc3983f936ef1d0a7701f19152d0dd81.tar.zst
cuberite-5eb1ba3bcc3983f936ef1d0a7701f19152d0dd81.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 1ce2c5d9d..bea6e98f6 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -166,6 +166,9 @@ public:
*/
void SendRotation(double a_YawDegrees, double a_PitchDegrees);
+ /** Spectates the target entity. If a_Target is nullptr or a pointer to self, end spectation. */
+ void SpectateEntity(cEntity * a_Target);
+
/** Returns the position where projectiles thrown by this player should start, player eye position + adjustment */
Vector3d GetThrowStartPos(void) const;