add QueryBlockNBTPacket

This commit is contained in:
Brian Merriam 2023-03-23 20:01:39 +00:00
parent e919adf9f3
commit 66f8d5ea0d
1 changed files with 14 additions and 1 deletions

View File

@ -27,7 +27,8 @@ def get_packets(context):
PluginMessagePacket,
PlayerBlockPlacementPacket,
UseEntityPacket,
VehicleMovePacket
VehicleMovePacket,
QueryBlockNBTPacket
}
if context.protocol_later_eq(69):
packets |= {
@ -326,3 +327,15 @@ class ResourcePackStatusPacket(Packet):
definition = [
{"result": VarInt}
]
class QueryBlockNBTPacket(Packet):
@staticmethod
def get_id(context):
return 0x01
packet_name = "query block nbt"
definition = [
{"transaction_id": VarInt},
{"location": Position}
]