summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol18x.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-11 17:03:09 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-11 17:03:09 +0200
commit3bd3ac2200392542b111d2bcd2951bd342edf721 (patch)
tree7b7670883575c6687a219192923bc40265192eff /src/Protocol/Protocol18x.h
parent1.8: Added MultiBlockChange packet. (diff)
downloadcuberite-3bd3ac2200392542b111d2bcd2951bd342edf721.tar
cuberite-3bd3ac2200392542b111d2bcd2951bd342edf721.tar.gz
cuberite-3bd3ac2200392542b111d2bcd2951bd342edf721.tar.bz2
cuberite-3bd3ac2200392542b111d2bcd2951bd342edf721.tar.lz
cuberite-3bd3ac2200392542b111d2bcd2951bd342edf721.tar.xz
cuberite-3bd3ac2200392542b111d2bcd2951bd342edf721.tar.zst
cuberite-3bd3ac2200392542b111d2bcd2951bd342edf721.zip
Diffstat (limited to 'src/Protocol/Protocol18x.h')
-rw-r--r--src/Protocol/Protocol18x.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Protocol/Protocol18x.h b/src/Protocol/Protocol18x.h
index 33e298e48..2b3063556 100644
--- a/src/Protocol/Protocol18x.h
+++ b/src/Protocol/Protocol18x.h
@@ -96,7 +96,7 @@ public:
virtual void SendPickupSpawn (const cPickup & a_Pickup) override;
virtual void SendPlayerAbilities (void) override;
virtual void SendEntityAnimation (const cEntity & a_Entity, char a_Animation) override;
- virtual void 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) override;
+ virtual void 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_ParticleAmount) override;
virtual void SendPlayerListItem (const cPlayer & a_Player, char a_Action) override;
virtual void SendPlayerMaxSpeed (void) override;
virtual void SendPlayerMoveLook (void) override;
@@ -138,6 +138,9 @@ public:
If compression fails, the function returns false. */
static bool CompressPacket(const AString & a_Packet, AString & a_Compressed);
+ /** The 1.8 protocol use a particle id instead of a string. This function converts the name to the id. If the name is incorrect, it returns 0. */
+ static int GetParticleID(const AString & a_ParticleName);
+
protected:
/** Composes individual packets in the protocol's m_OutPacketBuffer; sends them upon being destructed */