summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-22 14:45:25 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-22 14:45:25 +0100
commite9d1352f6e07d120253ea27ef84129ecc892c540 (patch)
tree27e52fb22ef2d6b4f3ec63732a51e0a05e27a6b5 /src/Protocol/Protocol17x.cpp
parentUsing regular assignments. (diff)
downloadcuberite-e9d1352f6e07d120253ea27ef84129ecc892c540.tar
cuberite-e9d1352f6e07d120253ea27ef84129ecc892c540.tar.gz
cuberite-e9d1352f6e07d120253ea27ef84129ecc892c540.tar.bz2
cuberite-e9d1352f6e07d120253ea27ef84129ecc892c540.tar.lz
cuberite-e9d1352f6e07d120253ea27ef84129ecc892c540.tar.xz
cuberite-e9d1352f6e07d120253ea27ef84129ecc892c540.tar.zst
cuberite-e9d1352f6e07d120253ea27ef84129ecc892c540.zip
Diffstat (limited to 'src/Protocol/Protocol17x.cpp')
-rw-r--r--src/Protocol/Protocol17x.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 161e81936..bbbd5e973 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -521,6 +521,24 @@ void cProtocol172::SendEntityAnimation(const cEntity & a_Entity, char a_Animatio
+void cProtocol172::SendParticleEffect(const AString & a_ParticleName, float a_SrcX, float a_SrcY, float a_SrcZ, float a_OffsetX, float a_OffsetY, float a_OffsetZ, float a_ParticleData, int a_ParticleAmmount)
+{
+ cPacketizer Pkt(*this, 0x2A);
+ Pkt.WriteString(a_ParticleName);
+ Pkt.WriteFloat(a_SrcX);
+ Pkt.WriteFloat(a_SrcY);
+ Pkt.WriteFloat(a_SrcZ);
+ Pkt.WriteFloat(a_OffsetX);
+ Pkt.WriteFloat(a_OffsetY);
+ Pkt.WriteFloat(a_OffsetZ);
+ Pkt.WriteFloat(a_ParticleData);
+ Pkt.WriteInt(a_ParticleAmmount);
+}
+
+
+
+
+
void cProtocol172::SendPlayerListItem(const cPlayer & a_Player, bool a_IsOnline)
{
cPacketizer Pkt(*this, 0x38); // Playerlist Item packet