summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-11-25 20:04:01 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-11-25 20:04:01 +0100
commitb93d1b5027afc55be3a5e1c882c023d400f2bbfa (patch)
tree88e014865ae23e3f95d2ed70a7dce8330ac26253 /source/Protocol/Protocol17x.cpp
parentAnvilStats: Fixed compilation. (diff)
downloadcuberite-b93d1b5027afc55be3a5e1c882c023d400f2bbfa.tar
cuberite-b93d1b5027afc55be3a5e1c882c023d400f2bbfa.tar.gz
cuberite-b93d1b5027afc55be3a5e1c882c023d400f2bbfa.tar.bz2
cuberite-b93d1b5027afc55be3a5e1c882c023d400f2bbfa.tar.lz
cuberite-b93d1b5027afc55be3a5e1c882c023d400f2bbfa.tar.xz
cuberite-b93d1b5027afc55be3a5e1c882c023d400f2bbfa.tar.zst
cuberite-b93d1b5027afc55be3a5e1c882c023d400f2bbfa.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol/Protocol17x.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/Protocol/Protocol17x.cpp b/source/Protocol/Protocol17x.cpp
index ae1df7395..cf5c84599 100644
--- a/source/Protocol/Protocol17x.cpp
+++ b/source/Protocol/Protocol17x.cpp
@@ -17,6 +17,7 @@ Implements the 1.7.x protocol classes:
#include "../World.h"
#include "../WorldStorage/FastNBT.h"
#include "../StringCompression.h"
+#include "../Entities/ExpOrb.h"
#include "../Entities/Minecart.h"
#include "../Entities/FallingBlock.h"
#include "../Entities/Pickup.h"
@@ -609,6 +610,20 @@ void cProtocol172::SendExperience (void)
+void cProtocol172::SendExperienceOrb(const cEntity & a_Entity)
+{
+ cPacketizer Pkt(*this, 0x11);
+ Pkt.WriteVarInt(a_Entity.GetUniqueID());
+ Pkt.WriteInt((int) a_Entity.GetPosX());
+ Pkt.WriteInt((int) a_Entity.GetPosY());
+ Pkt.WriteInt((int) a_Entity.GetPosZ());
+ Pkt.WriteShort(((cExpOrb &)a_Entity).GetReward());
+}
+
+
+
+
+
void cProtocol172::SendSoundEffect(const AString & a_SoundName, int a_SrcX, int a_SrcY, int a_SrcZ, float a_Volume, float a_Pitch) // a_Src coords are Block * 8
{
cPacketizer Pkt(*this, 0x29); // Sound Effect packet