summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-15 14:48:17 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-15 14:48:17 +0100
commitb10d0b95cbdce1d476f14415901c89bf324c0c18 (patch)
tree00aff412ae4fe7c691dc18f2fc3d6fd61dde8a60 /src/ClientHandle.cpp
parentMerge pull request #432 from mc-server/Broadcast_Effects (diff)
downloadcuberite-b10d0b95cbdce1d476f14415901c89bf324c0c18.tar
cuberite-b10d0b95cbdce1d476f14415901c89bf324c0c18.tar.gz
cuberite-b10d0b95cbdce1d476f14415901c89bf324c0c18.tar.bz2
cuberite-b10d0b95cbdce1d476f14415901c89bf324c0c18.tar.lz
cuberite-b10d0b95cbdce1d476f14415901c89bf324c0c18.tar.xz
cuberite-b10d0b95cbdce1d476f14415901c89bf324c0c18.tar.zst
cuberite-b10d0b95cbdce1d476f14415901c89bf324c0c18.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 8a92e1344..68c511d7c 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -490,6 +490,30 @@ void cClientHandle::HandleCreativeInventory(short a_SlotNum, const cItem & a_Hel
+void cClientHandle::HandlePlayerAbilities(int Flags, float FlyingSpeed, float WalkingSpeed)
+{
+ if ((Flags & 2) != 0)
+ {
+ m_Player->SetFlying(true);
+ }
+ else
+ {
+ m_Player->SetFlying(false);
+ }
+ if ((Flags & 4) != 0)
+ {
+ m_Player->SetCanFly(true);
+ }
+ else
+ {
+ m_Player->SetCanFly(false);
+ }
+}
+
+
+
+
+
void cClientHandle::HandlePlayerPos(double a_PosX, double a_PosY, double a_PosZ, double a_Stance, bool a_IsOnGround)
{
if ((m_Player == NULL) || (m_State != csPlaying))
@@ -1831,6 +1855,15 @@ void cClientHandle::SendEntityAnimation(const cEntity & a_Entity, char a_Animati
+void cClientHandle::SendPlayerAbilities()
+{
+ m_Protocol->SendPlayerAbilities();
+}
+
+
+
+
+
void cClientHandle::SendPlayerListItem(const cPlayer & a_Player, bool a_IsOnline)
{
m_Protocol->SendPlayerListItem(a_Player, a_IsOnline);