summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-11-17 23:12:09 +0100
committerMattes D <github@xoft.cz>2013-11-17 23:12:09 +0100
commitd169a1959dc5b6faa7033c78c9afd6f4c4eae604 (patch)
tree2a233fa7dc2b9f5fd4c9a5e040850313546403e5 /source/Protocol/Protocol17x.cpp
parentLineBlockTracer: Using the coord-based block faces. (diff)
parentfix *.sdf? (diff)
downloadcuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar.gz
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar.bz2
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar.lz
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar.xz
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar.zst
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol/Protocol17x.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/Protocol/Protocol17x.cpp b/source/Protocol/Protocol17x.cpp
index 628b8e071..ae1df7395 100644
--- a/source/Protocol/Protocol17x.cpp
+++ b/source/Protocol/Protocol17x.cpp
@@ -597,6 +597,18 @@ void cProtocol172::SendRespawn(void)
+void cProtocol172::SendExperience (void)
+{
+ cPacketizer Pkt(*this, 0x1F); //Experience Packet
+ Pkt.WriteFloat(m_Client->GetPlayer()->GetXpPercentage());
+ Pkt.WriteShort(m_Client->GetPlayer()->GetXpLevel());
+ Pkt.WriteShort(m_Client->GetPlayer()->GetCurrentXp());
+}
+
+
+
+
+
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