summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-01-20 18:22:08 +0100
committerdaniel0916 <theschokolps@gmail.com>2014-01-20 18:22:08 +0100
commit0c2b307eab67b7f37d82a7862a6acbcd96b45adb (patch)
tree42c46a87004237c02151454c978abaf6c36b9075 /src/Protocol
parentAPIDump: Added notes about objects across cWorld's task execution. (diff)
downloadcuberite-0c2b307eab67b7f37d82a7862a6acbcd96b45adb.tar
cuberite-0c2b307eab67b7f37d82a7862a6acbcd96b45adb.tar.gz
cuberite-0c2b307eab67b7f37d82a7862a6acbcd96b45adb.tar.bz2
cuberite-0c2b307eab67b7f37d82a7862a6acbcd96b45adb.tar.lz
cuberite-0c2b307eab67b7f37d82a7862a6acbcd96b45adb.tar.xz
cuberite-0c2b307eab67b7f37d82a7862a6acbcd96b45adb.tar.zst
cuberite-0c2b307eab67b7f37d82a7862a6acbcd96b45adb.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Protocol17x.cpp17
-rw-r--r--src/Protocol/Protocol17x.h1
2 files changed, 18 insertions, 0 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index e5a380f8a..d120d8d91 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -1143,6 +1143,7 @@ bool cProtocol172::HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketType)
case 0x0e: HandlePacketWindowClick (a_ByteBuffer); return true;
case 0x0f: // Confirm transaction - not used in MCS
case 0x10: HandlePacketCreativeInventoryAction(a_ByteBuffer); return true;
+ case 0x11: HandlePacketEnchanting (a_ByteBuffer); return true;
case 0x12: HandlePacketUpdateSign (a_ByteBuffer); return true;
case 0x13: HandlePacketPlayerAbilities (a_ByteBuffer); return true;
case 0x14: HandlePacketTabComplete (a_ByteBuffer); return true;
@@ -1545,6 +1546,22 @@ void cProtocol172::HandlePacketUseEntity(cByteBuffer & a_ByteBuffer)
+void cProtocol172::HandlePacketEnchanting(cByteBuffer & a_ByteBuffer)
+{
+ HANDLE_READ(a_ByteBuffer, ReadByte, Byte, WindowID);
+ HANDLE_READ(a_ByteBuffer, ReadByte, Byte, Enchantment);
+
+ //TODO: EnchantItem (getWindow, getItem, Enchant)
+
+
+
+ LOG("Enchantment Paket empfangen!");
+}
+
+
+
+
+
void cProtocol172::HandlePacketWindowClick(cByteBuffer & a_ByteBuffer)
{
HANDLE_READ(a_ByteBuffer, ReadChar, char, WindowID);
diff --git a/src/Protocol/Protocol17x.h b/src/Protocol/Protocol17x.h
index 3ae774c18..04d65910c 100644
--- a/src/Protocol/Protocol17x.h
+++ b/src/Protocol/Protocol17x.h
@@ -258,6 +258,7 @@ protected:
void HandlePacketTabComplete (cByteBuffer & a_ByteBuffer);
void HandlePacketUpdateSign (cByteBuffer & a_ByteBuffer);
void HandlePacketUseEntity (cByteBuffer & a_ByteBuffer);
+ void HandlePacketEnchanting (cByteBuffer & a_ByteBuffer);
void HandlePacketWindowClick (cByteBuffer & a_ByteBuffer);
void HandlePacketWindowClose (cByteBuffer & a_ByteBuffer);