@@ -37,7 +37,8 @@ def get_packets(context):
37
37
class KeepAlivePacket (AbstractKeepAlivePacket ):
38
38
@staticmethod
39
39
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 \
41
42
0x0F if context .protocol_version >= 471 else \
42
43
0x10 if context .protocol_version >= 464 else \
43
44
0x0E if context .protocol_version >= 389 else \
@@ -53,7 +54,8 @@ def get_id(context):
53
54
class ChatPacket (Packet ):
54
55
@staticmethod
55
56
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 \
57
59
0x02 if context .protocol_version >= 389 else \
58
60
0x01 if context .protocol_version >= 343 else \
59
61
0x02 if context .protocol_version >= 336 else \
@@ -79,7 +81,8 @@ def max_length(self):
79
81
class PositionAndLookPacket (Packet ):
80
82
@staticmethod
81
83
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 \
83
86
0x12 if context .protocol_version >= 471 else \
84
87
0x13 if context .protocol_version >= 464 else \
85
88
0x11 if context .protocol_version >= 389 else \
@@ -126,7 +129,8 @@ class TeleportConfirmPacket(Packet):
126
129
class AnimationPacket (Packet ):
127
130
@staticmethod
128
131
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 \
130
134
0x2B if context .protocol_version >= 712 else \
131
135
0x2A if context .protocol_version >= 468 else \
132
136
0x29 if context .protocol_version >= 464 else \
@@ -150,7 +154,8 @@ def get_id(context):
150
154
class ClientStatusPacket (Packet , Enum ):
151
155
@staticmethod
152
156
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 \
154
159
0x03 if context .protocol_version >= 389 else \
155
160
0x02 if context .protocol_version >= 343 else \
156
161
0x03 if context .protocol_version >= 336 else \
@@ -175,7 +180,8 @@ def get_id(context):
175
180
class PluginMessagePacket (AbstractPluginMessagePacket ):
176
181
@staticmethod
177
182
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 \
179
185
0x0A if context .protocol_version >= 389 else \
180
186
0x09 if context .protocol_version >= 345 else \
181
187
0x08 if context .protocol_version >= 343 else \
@@ -201,7 +207,8 @@ class PlayerBlockPlacementPacket(Packet):
201
207
202
208
@staticmethod
203
209
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 \
205
212
0x2D if context .protocol_version >= 712 else \
206
213
0x2C if context .protocol_version >= 468 else \
207
214
0x2B if context .protocol_version >= 464 else \
@@ -240,7 +247,8 @@ def get_definition(context):
240
247
class UseItemPacket (Packet ):
241
248
@staticmethod
242
249
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 \
244
252
0x2E if context .protocol_version >= 712 else \
245
253
0x2D if context .protocol_version >= 468 else \
246
254
0x2C if context .protocol_version >= 464 else \
@@ -261,6 +269,16 @@ def get_id(context):
261
269
Hand = RelativeHand
262
270
263
271
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
+
264
282
# PCRC SpectatePacket
265
283
class SpectatePacket (Packet ):
266
284
@staticmethod
0 commit comments