mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-16 07:15:24 +01:00
Add packet 0x10
This commit is contained in:
parent
997c0ef8f6
commit
2abe34e88c
@ -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"):
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user