diff options
author | Mattes D <github@xoft.cz> | 2013-12-22 15:45:24 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-12-22 15:45:24 +0100 |
commit | f404130e8c5f91788eec9dfc3b9d22099b8d060c (patch) | |
tree | 64e2f2959d7e560101200541b85f18357826e163 /src/Protocol/Protocol17x.cpp | |
parent | Using regular assignments. (diff) | |
parent | Fixed compiler warning. (diff) | |
download | cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.gz cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.bz2 cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.lz cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.xz cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.zst cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.zip |
Diffstat (limited to 'src/Protocol/Protocol17x.cpp')
-rw-r--r-- | src/Protocol/Protocol17x.cpp | 18 |
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 |