summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-14 10:24:34 +0200
committermadmaxoft <github@xoft.cz>2013-08-14 10:24:34 +0200
commit8c3837987bd5f74563790c15a1d52755383135ae (patch)
treeb91188a05d3a3053d5ad08cd7bb550c9d4b5518b /source/ClientHandle.h
parentExported cWorld:BroadcastChat() to the Lua API; used in the Core. (diff)
downloadcuberite-8c3837987bd5f74563790c15a1d52755383135ae.tar
cuberite-8c3837987bd5f74563790c15a1d52755383135ae.tar.gz
cuberite-8c3837987bd5f74563790c15a1d52755383135ae.tar.bz2
cuberite-8c3837987bd5f74563790c15a1d52755383135ae.tar.lz
cuberite-8c3837987bd5f74563790c15a1d52755383135ae.tar.xz
cuberite-8c3837987bd5f74563790c15a1d52755383135ae.tar.zst
cuberite-8c3837987bd5f74563790c15a1d52755383135ae.zip
Diffstat (limited to 'source/ClientHandle.h')
-rw-r--r--source/ClientHandle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/ClientHandle.h b/source/ClientHandle.h
index 1f40cc8d2..4dcb188b3 100644
--- a/source/ClientHandle.h
+++ b/source/ClientHandle.h
@@ -32,6 +32,7 @@ class cRedstone;
class cWindow;
class cFallingBlock;
class cItemHandler;
+class cWorld;
@@ -194,6 +195,9 @@ public:
void SendData(const char * a_Data, int a_Size);
+ /// Called when the player moves into a different world; queues sreaming the new chunks
+ void MoveToWorld(cWorld & a_World, bool a_SendRespawnPacket);
+
private:
int m_ViewDistance; // Number of chunks the player can see in each direction; 4 is the minimum ( http://wiki.vg/Protocol_FAQ#.E2.80.A6all_connecting_clients_spasm_and_jerk_uncontrollably.21 )