Skip to content

Commit ddff866

Browse files
committed
add missing file
1 parent 0708f4a commit ddff866

File tree

1 file changed

+26
-8
lines changed
  • utils/pycraft/networking/packets/serverbound/play

1 file changed

+26
-8
lines changed

utils/pycraft/networking/packets/serverbound/play/__init__.py

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def get_packets(context):
3737
class KeepAlivePacket(AbstractKeepAlivePacket):
3838
@staticmethod
3939
def get_id(context):
40-
return 0x10 if context.protocol_version >= 712 else \
40+
return 0x0F if context.protocol_version >= 756 else \
41+
0x10 if context.protocol_version >= 712 else \
4142
0x0F if context.protocol_version >= 471 else \
4243
0x10 if context.protocol_version >= 464 else \
4344
0x0E if context.protocol_version >= 389 else \
@@ -53,7 +54,8 @@ def get_id(context):
5354
class ChatPacket(Packet):
5455
@staticmethod
5556
def get_id(context):
56-
return 0x03 if context.protocol_version >= 464 else \
57+
return 0x03 if context.protocol_version >= 756 else \
58+
0x03 if context.protocol_version >= 464 else \
5759
0x02 if context.protocol_version >= 389 else \
5860
0x01 if context.protocol_version >= 343 else \
5961
0x02 if context.protocol_version >= 336 else \
@@ -79,7 +81,8 @@ def max_length(self):
7981
class PositionAndLookPacket(Packet):
8082
@staticmethod
8183
def get_id(context):
82-
return 0x13 if context.protocol_version >= 712 else \
84+
return 0x12 if context.protocol_version >= 756 else \
85+
0x13 if context.protocol_version >= 712 else \
8386
0x12 if context.protocol_version >= 471 else \
8487
0x13 if context.protocol_version >= 464 else \
8588
0x11 if context.protocol_version >= 389 else \
@@ -126,7 +129,8 @@ class TeleportConfirmPacket(Packet):
126129
class AnimationPacket(Packet):
127130
@staticmethod
128131
def get_id(context):
129-
return 0x2C if context.protocol_version >= 738 else \
132+
return 0x2C if context.protocol_version >= 756 else\
133+
0x2C if context.protocol_version >= 738 else \
130134
0x2B if context.protocol_version >= 712 else \
131135
0x2A if context.protocol_version >= 468 else \
132136
0x29 if context.protocol_version >= 464 else \
@@ -150,7 +154,8 @@ def get_id(context):
150154
class ClientStatusPacket(Packet, Enum):
151155
@staticmethod
152156
def get_id(context):
153-
return 0x04 if context.protocol_version >= 464 else \
157+
return 0x04 if context.protocol_version >= 756 else \
158+
0x04 if context.protocol_version >= 464 else \
154159
0x03 if context.protocol_version >= 389 else \
155160
0x02 if context.protocol_version >= 343 else \
156161
0x03 if context.protocol_version >= 336 else \
@@ -175,7 +180,8 @@ def get_id(context):
175180
class PluginMessagePacket(AbstractPluginMessagePacket):
176181
@staticmethod
177182
def get_id(context):
178-
return 0x0B if context.protocol_version >= 464 else \
183+
return 0x0A if context.protocol_version >= 756 else \
184+
0x0B if context.protocol_version >= 464 else \
179185
0x0A if context.protocol_version >= 389 else \
180186
0x09 if context.protocol_version >= 345 else \
181187
0x08 if context.protocol_version >= 343 else \
@@ -201,7 +207,8 @@ class PlayerBlockPlacementPacket(Packet):
201207

202208
@staticmethod
203209
def get_id(context):
204-
return 0x2E if context.protocol_version >= 738 else \
210+
return 0x2E if context.protocol_version >= 756 else \
211+
0x2E if context.protocol_version >= 738 else \
205212
0x2D if context.protocol_version >= 712 else \
206213
0x2C if context.protocol_version >= 468 else \
207214
0x2B if context.protocol_version >= 464 else \
@@ -240,7 +247,8 @@ def get_definition(context):
240247
class UseItemPacket(Packet):
241248
@staticmethod
242249
def get_id(context):
243-
return 0x2F if context.protocol_version >= 738 else \
250+
return 0x2F if context.protocol_version >= 756 else \
251+
0x2F if context.protocol_version >= 738 else \
244252
0x2E if context.protocol_version >= 712 else \
245253
0x2D if context.protocol_version >= 468 else \
246254
0x2C if context.protocol_version >= 464 else \
@@ -261,6 +269,16 @@ def get_id(context):
261269
Hand = RelativeHand
262270

263271

272+
class ResourcePackStatusPacket(Packet):
273+
@staticmethod
274+
def get_id(context):
275+
return 0x21
276+
packet_name = "resource pask status"
277+
definition = [
278+
{"result": VarInt}
279+
]
280+
281+
264282
# PCRC SpectatePacket
265283
class SpectatePacket(Packet):
266284
@staticmethod

0 commit comments

Comments
 (0)