summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-14 18:03:00 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-14 18:03:00 +0100
commit37069288d5801acce0ad34878a78aa0daf004135 (patch)
tree592aa27e4f5e685c4ccf37ab90ebb62f428cb970 /src/Protocol/Protocol17x.cpp
parentMerge pull request #429 from worktycho/quickfixs (diff)
downloadcuberite-37069288d5801acce0ad34878a78aa0daf004135.tar
cuberite-37069288d5801acce0ad34878a78aa0daf004135.tar.gz
cuberite-37069288d5801acce0ad34878a78aa0daf004135.tar.bz2
cuberite-37069288d5801acce0ad34878a78aa0daf004135.tar.lz
cuberite-37069288d5801acce0ad34878a78aa0daf004135.tar.xz
cuberite-37069288d5801acce0ad34878a78aa0daf004135.tar.zst
cuberite-37069288d5801acce0ad34878a78aa0daf004135.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol17x.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index bfb38904c..a05efb562 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -236,6 +236,19 @@ void cProtocol172::SendEditSign(int a_BlockX, int a_BlockY, int a_BlockZ)
+void cProtocol172::SendEntityEffect(const cEntity & a_Entity, int a_EffectID, int a_Amplifier, short a_Duration)
+{
+ cPacketizer Pkt(*this, 0x1D); // Entity Effect packet
+ Pkt.WriteInt(a_Entity.GetUniqueID());
+ Pkt.WriteByte(a_EffectID);
+ Pkt.WriteByte(a_Amplifier);
+ Pkt.WriteShort(a_Duration);
+}
+
+
+
+
+
void cProtocol172::SendEntityEquipment(const cEntity & a_Entity, short a_SlotNum, const cItem & a_Item)
{
cPacketizer Pkt(*this, 0x04); // Entity Equipment packet
@@ -585,6 +598,17 @@ void cProtocol172::SendPlayerSpawn(const cPlayer & a_Player)
+void cProtocol172::SendRemoveEntityEffect(const cEntity & a_Entity, int a_EffectID)
+{
+ cPacketizer Pkt(*this, 0x1E);
+ Pkt.WriteInt(a_Entity.GetUniqueID());
+ Pkt.WriteByte(a_EffectID);
+}
+
+
+
+
+
void cProtocol172::SendRespawn(void)
{
cPacketizer Pkt(*this, 0x07); // Respawn packet