@@ -356,6 +356,7 @@ public void reload() {
356
356
new PacketMapping (0x04 , ProtocolVersion .MINECRAFT_1_16 , true ),
357
357
new PacketMapping (0x02 , ProtocolVersion .MINECRAFT_1_19 , true ),
358
358
new PacketMapping (0x03 , ProtocolVersion .MINECRAFT_1_19_4 , true ),
359
+ // There is no SpawnPlayer packet since Minecraft 1.20.2
359
360
})
360
361
.registerPacket (PacketDirection .CLIENTBOUND , CloseContainer .class , CloseContainer ::new , new PacketMapping []{
361
362
new PacketMapping (0x2E , ProtocolVersion .MINECRAFT_1_8 , true ),
@@ -368,6 +369,7 @@ public void reload() {
368
369
new PacketMapping (0x10 , ProtocolVersion .MINECRAFT_1_19 , true ),
369
370
new PacketMapping (0x0F , ProtocolVersion .MINECRAFT_1_19_3 , true ),
370
371
new PacketMapping (0x11 , ProtocolVersion .MINECRAFT_1_19_4 , true ),
372
+ new PacketMapping (0x12 , ProtocolVersion .MINECRAFT_1_20_2 , true ),
371
373
})
372
374
.registerPacket (PacketDirection .CLIENTBOUND , SetContainerContent .class , SetContainerContent ::new , new PacketMapping []{
373
375
new PacketMapping (0x30 , ProtocolVersion .MINECRAFT_1_8 , true ),
@@ -381,6 +383,7 @@ public void reload() {
381
383
new PacketMapping (0x11 , ProtocolVersion .MINECRAFT_1_19 , true ),
382
384
new PacketMapping (0x10 , ProtocolVersion .MINECRAFT_1_19_3 , true ),
383
385
new PacketMapping (0x12 , ProtocolVersion .MINECRAFT_1_19_4 , true ),
386
+ new PacketMapping (0x13 , ProtocolVersion .MINECRAFT_1_20_2 , true ),
384
387
})
385
388
.registerPacket (PacketDirection .CLIENTBOUND , SetContainerSlot .class , SetContainerSlot ::new , new PacketMapping []{
386
389
new PacketMapping (0x2F , ProtocolVersion .MINECRAFT_1_8 , true ),
@@ -394,6 +397,7 @@ public void reload() {
394
397
new PacketMapping (0x13 , ProtocolVersion .MINECRAFT_1_19 , true ),
395
398
new PacketMapping (0x12 , ProtocolVersion .MINECRAFT_1_19_3 , true ),
396
399
new PacketMapping (0x14 , ProtocolVersion .MINECRAFT_1_19_4 , true ),
400
+ new PacketMapping (0x15 , ProtocolVersion .MINECRAFT_1_20_2 , true ),
397
401
})
398
402
.registerPacket (PacketDirection .CLIENTBOUND , OpenScreen .class , OpenScreen ::new , new PacketMapping []{
399
403
new PacketMapping (0x2D , ProtocolVersion .MINECRAFT_1_8 , true ),
@@ -408,6 +412,7 @@ public void reload() {
408
412
new PacketMapping (0x2D , ProtocolVersion .MINECRAFT_1_19_1 , true ),
409
413
new PacketMapping (0x2C , ProtocolVersion .MINECRAFT_1_19_3 , true ),
410
414
new PacketMapping (0x30 , ProtocolVersion .MINECRAFT_1_19_4 , true ),
415
+ new PacketMapping (0x31 , ProtocolVersion .MINECRAFT_1_20_2 , true ),
411
416
})
412
417
.registerPacket (PacketDirection .CLIENTBOUND , SetHeadRotation .class , SetHeadRotation ::new , new PacketMapping []{
413
418
new PacketMapping (0x19 , ProtocolVersion .MINECRAFT_1_8 , true ),
@@ -424,6 +429,7 @@ public void reload() {
424
429
new PacketMapping (0x3F , ProtocolVersion .MINECRAFT_1_19_1 , true ),
425
430
new PacketMapping (0x3E , ProtocolVersion .MINECRAFT_1_19_3 , true ),
426
431
new PacketMapping (0x42 , ProtocolVersion .MINECRAFT_1_19_4 , true ),
432
+ new PacketMapping (0x44 , ProtocolVersion .MINECRAFT_1_20_2 , true ),
427
433
})
428
434
.registerPacket (PacketDirection .CLIENTBOUND , DisplayObjective .class , DisplayObjective ::new , new PacketMapping []{
429
435
new PacketMapping (0x3D , ProtocolVersion .MINECRAFT_1_8 , true ),
@@ -437,6 +443,7 @@ public void reload() {
437
443
new PacketMapping (0x4F , ProtocolVersion .MINECRAFT_1_19_1 , true ),
438
444
new PacketMapping (0x4D , ProtocolVersion .MINECRAFT_1_19_3 , true ),
439
445
new PacketMapping (0x51 , ProtocolVersion .MINECRAFT_1_19_4 , true ),
446
+ new PacketMapping (0x53 , ProtocolVersion .MINECRAFT_1_20_2 , true ),
440
447
})
441
448
.registerPacket (PacketDirection .CLIENTBOUND , SetEntityMetadata .class , SetEntityMetadata ::new , new PacketMapping []{
442
449
new PacketMapping (0x1C , ProtocolVersion .MINECRAFT_1_8 , true ),
@@ -450,6 +457,7 @@ public void reload() {
450
457
new PacketMapping (0x50 , ProtocolVersion .MINECRAFT_1_19_1 , true ),
451
458
new PacketMapping (0x4E , ProtocolVersion .MINECRAFT_1_19_3 , true ),
452
459
new PacketMapping (0x52 , ProtocolVersion .MINECRAFT_1_19_4 , true ),
460
+ new PacketMapping (0x54 , ProtocolVersion .MINECRAFT_1_20_2 , true ),
453
461
})
454
462
.registerPacket (PacketDirection .CLIENTBOUND , UpdateObjectives .class , UpdateObjectives ::new , new PacketMapping []{
455
463
new PacketMapping (0x3B , ProtocolVersion .MINECRAFT_1_8 , true ),
@@ -463,6 +471,7 @@ public void reload() {
463
471
new PacketMapping (0x56 , ProtocolVersion .MINECRAFT_1_19_1 , true ),
464
472
new PacketMapping (0x54 , ProtocolVersion .MINECRAFT_1_19_3 , true ),
465
473
new PacketMapping (0x58 , ProtocolVersion .MINECRAFT_1_19_4 , true ),
474
+ new PacketMapping (0x5A , ProtocolVersion .MINECRAFT_1_20_2 , true ),
466
475
})
467
476
.registerPacket (PacketDirection .CLIENTBOUND , ScoreboardTeam .class , ScoreboardTeam ::new , new PacketMapping []{
468
477
new PacketMapping (0x3E , ProtocolVersion .MINECRAFT_1_8 , true ),
@@ -476,6 +485,7 @@ public void reload() {
476
485
new PacketMapping (0x58 , ProtocolVersion .MINECRAFT_1_19_1 , true ),
477
486
new PacketMapping (0x56 , ProtocolVersion .MINECRAFT_1_19_3 , true ),
478
487
new PacketMapping (0x5A , ProtocolVersion .MINECRAFT_1_19_4 , true ),
488
+ new PacketMapping (0x5C , ProtocolVersion .MINECRAFT_1_20_2 , true ),
479
489
})
480
490
.registerPacket (PacketDirection .CLIENTBOUND , UpdateScore .class , UpdateScore ::new , new PacketMapping []{
481
491
new PacketMapping (0x3C , ProtocolVersion .MINECRAFT_1_8 , true ),
@@ -489,6 +499,7 @@ public void reload() {
489
499
new PacketMapping (0x59 , ProtocolVersion .MINECRAFT_1_19_1 , true ),
490
500
new PacketMapping (0x57 , ProtocolVersion .MINECRAFT_1_19_3 , true ),
491
501
new PacketMapping (0x5B , ProtocolVersion .MINECRAFT_1_19_4 , true ),
502
+ new PacketMapping (0x5D , ProtocolVersion .MINECRAFT_1_20_2 , true ),
492
503
})
493
504
.registerPacket (PacketDirection .SERVERBOUND , Interact .class , Interact ::new , new PacketMapping []{
494
505
new PacketMapping (0x02 , ProtocolVersion .MINECRAFT_1_8 , false ),
@@ -502,6 +513,7 @@ public void reload() {
502
513
new PacketMapping (0x10 , ProtocolVersion .MINECRAFT_1_19_1 , false ),
503
514
new PacketMapping (0x0F , ProtocolVersion .MINECRAFT_1_19_3 , false ),
504
515
new PacketMapping (0x10 , ProtocolVersion .MINECRAFT_1_19_4 , false ),
516
+ new PacketMapping (0x12 , ProtocolVersion .MINECRAFT_1_20_2 , true ),
505
517
})
506
518
.registerPacket (PacketDirection .SERVERBOUND , ClickContainer .class , ClickContainer ::new , new PacketMapping []{
507
519
new PacketMapping (0x0E , ProtocolVersion .MINECRAFT_1_8 , false ),
@@ -515,6 +527,7 @@ public void reload() {
515
527
new PacketMapping (0x0B , ProtocolVersion .MINECRAFT_1_19_1 , false ),
516
528
new PacketMapping (0x0A , ProtocolVersion .MINECRAFT_1_19_3 , false ),
517
529
new PacketMapping (0x0B , ProtocolVersion .MINECRAFT_1_19_4 , false ),
530
+ new PacketMapping (0x0D , ProtocolVersion .MINECRAFT_1_20_2 , true ),
518
531
});
519
532
520
533
this .commands .clear ();
0 commit comments