summaryrefslogtreecommitdiffstats
path: root/source/Protocol132.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-23 17:57:25 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-23 17:57:25 +0200
commit60c29274d38c652d26b5c71955daef7d66114c7b (patch)
treefe2ba84e095c5249234451767a0e99f77e672829 /source/Protocol132.cpp
parentProtoProxy: added the PACKET_PLAYER_ABILITIES packet parsing for client-side (diff)
downloadcuberite-60c29274d38c652d26b5c71955daef7d66114c7b.tar
cuberite-60c29274d38c652d26b5c71955daef7d66114c7b.tar.gz
cuberite-60c29274d38c652d26b5c71955daef7d66114c7b.tar.bz2
cuberite-60c29274d38c652d26b5c71955daef7d66114c7b.tar.lz
cuberite-60c29274d38c652d26b5c71955daef7d66114c7b.tar.xz
cuberite-60c29274d38c652d26b5c71955daef7d66114c7b.tar.zst
cuberite-60c29274d38c652d26b5c71955daef7d66114c7b.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol132.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/Protocol132.cpp b/source/Protocol132.cpp
index 32fd4b63c..2b8d4c19c 100644
--- a/source/Protocol132.cpp
+++ b/source/Protocol132.cpp
@@ -53,6 +53,7 @@ enum
{
PACKET_KEEP_ALIVE = 0x00,
PACKET_LOGIN = 0x01,
+ PACKET_ENTITY_EQUIPMENT = 0x05,
PACKET_COMPASS = 0x06,
PACKET_PLAYER_SPAWN = 0x14,
PACKET_SPAWN_MOB = 0x18,
@@ -256,6 +257,20 @@ void cProtocol132::SendDestroyEntity(const cEntity & a_Entity)
+void cProtocol132::SendEntityEquipment(const cEntity & a_Entity, short a_SlotNum, const cItem & a_Item)
+{
+ cCSLock Lock(m_CSPacket);
+ WriteByte (PACKET_ENTITY_EQUIPMENT);
+ WriteInt (a_Entity.GetUniqueID());
+ WriteShort(a_SlotNum);
+ WriteItem (a_Item);
+ Flush();
+}
+
+
+
+
+
void cProtocol132::SendKeepAlive(int a_PingID)
{
cCSLock Lock(m_CSPacket);