mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2025-02-16 11:51:52 +01:00
commit
99a97df753
@ -150,7 +150,7 @@ class SetCompressionPacket(Packet):
|
||||
def get_id(context):
|
||||
return 0x03 if context.protocol_later_eq(755) else \
|
||||
0x46
|
||||
|
||||
|
||||
packet_name = "set compression"
|
||||
definition = [
|
||||
{'threshold': VarInt}]
|
||||
@ -374,6 +374,7 @@ class EntityLookPacket(Packet):
|
||||
{'on_ground': Boolean}
|
||||
]
|
||||
|
||||
|
||||
class ResourcePackSendPacket(Packet):
|
||||
@staticmethod
|
||||
def get_id(context):
|
||||
@ -384,4 +385,4 @@ class ResourcePackSendPacket(Packet):
|
||||
definition = [
|
||||
{"url": String},
|
||||
{"hash": String}
|
||||
]
|
||||
]
|
||||
|
@ -34,7 +34,7 @@ class PlayerPositionAndLookPacket(Packet, BitFieldEnum):
|
||||
{'pitch': Float},
|
||||
{'flags': Byte},
|
||||
{'teleport_id': VarInt} if context.protocol_later_eq(107) else {},
|
||||
{'dismount_vehicle':Boolean} if context.protocol_later_eq(755) else {},
|
||||
{'dismount_vehicle': Boolean} if context.protocol_later_eq(755) else {},
|
||||
])
|
||||
|
||||
# Access the 'x', 'y', 'z' fields as a Vector tuple.
|
||||
|
@ -268,6 +268,7 @@ class UseItemPacket(Packet):
|
||||
|
||||
Hand = RelativeHand
|
||||
|
||||
|
||||
class ResourcePackStatusPacket(Packet):
|
||||
@staticmethod
|
||||
def get_id(context):
|
||||
@ -275,4 +276,4 @@ class ResourcePackStatusPacket(Packet):
|
||||
packet_name = "resource pask status"
|
||||
definition = [
|
||||
{"result": VarInt}
|
||||
]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user