Add packet 0x10

This commit is contained in:
Ammar Askar 2012-12-21 03:28:38 +05:00
parent 997c0ef8f6
commit 2abe34e88c
2 changed files with 6 additions and 0 deletions

View File

@ -214,6 +214,8 @@ class PacketListener(threading.Thread):
packet = PacketListenerManager.handle09(self.FileObject)
elif(response == "\x0D"):
packet = PacketListenerManager.handle0D(self.FileObject)
elif(response == "\x10"):
packet = PacketListenerManager.handle10(self.FileObject)
elif(response == "\x11"):
packet = PacketListenerManager.handle11(self.FileObject)
elif(response == "\x12"):

View File

@ -103,6 +103,10 @@ def handle0D(FileObject):
'pitch' : pitch,
'onGround' : onGround
}
def handle10(FileObject):
slotID = DataUtil.readShort(FileObject)
return {'SlotID' : slotID}
def handle11(FileObject):
EntityID = DataUtil.readInt(FileObject)