diff options
author | ElNounch <ElNounch@users.noreply.github.com> | 2016-08-15 10:41:32 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-08-15 10:41:32 +0200 |
commit | 343531bafa8e7b646ec0eb8b65cae69b4abe05d9 (patch) | |
tree | daa58d267f1520856d044e382aa229005353e489 /src/World.h | |
parent | Fixed cWorld:ChunkStay bindings. (#3319) (diff) | |
download | cuberite-343531bafa8e7b646ec0eb8b65cae69b4abe05d9.tar cuberite-343531bafa8e7b646ec0eb8b65cae69b4abe05d9.tar.gz cuberite-343531bafa8e7b646ec0eb8b65cae69b4abe05d9.tar.bz2 cuberite-343531bafa8e7b646ec0eb8b65cae69b4abe05d9.tar.lz cuberite-343531bafa8e7b646ec0eb8b65cae69b4abe05d9.tar.xz cuberite-343531bafa8e7b646ec0eb8b65cae69b4abe05d9.tar.zst cuberite-343531bafa8e7b646ec0eb8b65cae69b4abe05d9.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h index fbe1f4a6d..c1794b159 100644 --- a/src/World.h +++ b/src/World.h @@ -475,6 +475,9 @@ public: bool DigBlock (int a_X, int a_Y, int a_Z); virtual void SendBlockTo(int a_X, int a_Y, int a_Z, cPlayer * a_Player) override; + /** Set default spawn at the given coordinates. */ + bool SetSpawn(double a_X, double a_Y, double a_Z); + double GetSpawnX(void) const { return m_SpawnX; } double GetSpawnY(void) const { return m_SpawnY; } double GetSpawnZ(void) const { return m_SpawnZ; } |