minecraft-data 3.91.0 → 3.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/data.js +27 -0
  2. package/doc/history.md +4 -0
  3. package/index.d.ts +5 -2
  4. package/minecraft-data/data/dataPaths.json +27 -0
  5. package/minecraft-data/data/pc/1.10/proto.yml +29 -35
  6. package/minecraft-data/data/pc/1.10/protocol.json +101 -86
  7. package/minecraft-data/data/pc/1.10-pre1/proto.yml +29 -35
  8. package/minecraft-data/data/pc/1.10-pre1/protocol.json +101 -86
  9. package/minecraft-data/data/pc/1.11/proto.yml +29 -35
  10. package/minecraft-data/data/pc/1.11/protocol.json +101 -86
  11. package/minecraft-data/data/pc/1.12/proto.yml +29 -35
  12. package/minecraft-data/data/pc/1.12/protocol.json +101 -86
  13. package/minecraft-data/data/pc/1.12-pre4/proto.yml +29 -35
  14. package/minecraft-data/data/pc/1.12-pre4/protocol.json +101 -86
  15. package/minecraft-data/data/pc/1.12.1/proto.yml +29 -35
  16. package/minecraft-data/data/pc/1.12.1/protocol.json +101 -86
  17. package/minecraft-data/data/pc/1.12.2/proto.yml +29 -35
  18. package/minecraft-data/data/pc/1.12.2/protocol.json +101 -86
  19. package/minecraft-data/data/pc/1.13/proto.yml +29 -35
  20. package/minecraft-data/data/pc/1.13/protocol.json +101 -86
  21. package/minecraft-data/data/pc/1.13.1/proto.yml +29 -35
  22. package/minecraft-data/data/pc/1.13.1/protocol.json +101 -86
  23. package/minecraft-data/data/pc/1.13.2/proto.yml +29 -35
  24. package/minecraft-data/data/pc/1.13.2/protocol.json +101 -86
  25. package/minecraft-data/data/pc/1.13.2-pre1/proto.yml +29 -35
  26. package/minecraft-data/data/pc/1.13.2-pre1/protocol.json +101 -86
  27. package/minecraft-data/data/pc/1.13.2-pre2/proto.yml +29 -35
  28. package/minecraft-data/data/pc/1.13.2-pre2/protocol.json +101 -86
  29. package/minecraft-data/data/pc/1.14/proto.yml +29 -35
  30. package/minecraft-data/data/pc/1.14/protocol.json +101 -86
  31. package/minecraft-data/data/pc/1.14.1/proto.yml +29 -35
  32. package/minecraft-data/data/pc/1.14.1/protocol.json +101 -86
  33. package/minecraft-data/data/pc/1.14.3/proto.yml +29 -35
  34. package/minecraft-data/data/pc/1.14.3/protocol.json +101 -86
  35. package/minecraft-data/data/pc/1.14.4/proto.yml +29 -35
  36. package/minecraft-data/data/pc/1.14.4/protocol.json +101 -86
  37. package/minecraft-data/data/pc/1.15/proto.yml +29 -35
  38. package/minecraft-data/data/pc/1.15/protocol.json +101 -86
  39. package/minecraft-data/data/pc/1.15.1/proto.yml +29 -35
  40. package/minecraft-data/data/pc/1.15.1/protocol.json +101 -86
  41. package/minecraft-data/data/pc/1.15.2/proto.yml +29 -35
  42. package/minecraft-data/data/pc/1.15.2/protocol.json +101 -86
  43. package/minecraft-data/data/pc/1.16/proto.yml +29 -35
  44. package/minecraft-data/data/pc/1.16/protocol.json +101 -86
  45. package/minecraft-data/data/pc/1.16-rc1/proto.yml +29 -35
  46. package/minecraft-data/data/pc/1.16-rc1/protocol.json +101 -86
  47. package/minecraft-data/data/pc/1.16.1/proto.yml +29 -35
  48. package/minecraft-data/data/pc/1.16.1/protocol.json +101 -86
  49. package/minecraft-data/data/pc/1.16.2/proto.yml +29 -35
  50. package/minecraft-data/data/pc/1.16.2/protocol.json +101 -86
  51. package/minecraft-data/data/pc/1.17/proto.yml +30 -36
  52. package/minecraft-data/data/pc/1.17/protocol.json +102 -87
  53. package/minecraft-data/data/pc/1.17.1/proto.yml +30 -36
  54. package/minecraft-data/data/pc/1.17.1/protocol.json +102 -87
  55. package/minecraft-data/data/pc/1.18/proto.yml +30 -36
  56. package/minecraft-data/data/pc/1.18/protocol.json +102 -87
  57. package/minecraft-data/data/pc/1.18.2/proto.yml +30 -36
  58. package/minecraft-data/data/pc/1.18.2/protocol.json +102 -87
  59. package/minecraft-data/data/pc/1.19/proto.yml +34 -67
  60. package/minecraft-data/data/pc/1.19/protocol.json +123 -127
  61. package/minecraft-data/data/pc/1.19.2/proto.yml +35 -68
  62. package/minecraft-data/data/pc/1.19.2/protocol.json +123 -127
  63. package/minecraft-data/data/pc/1.19.3/proto.yml +39 -309
  64. package/minecraft-data/data/pc/1.19.3/protocol.json +65 -324
  65. package/minecraft-data/data/pc/1.19.4/proto.yml +39 -309
  66. package/minecraft-data/data/pc/1.19.4/protocol.json +65 -324
  67. package/minecraft-data/data/pc/1.20/proto.yml +40 -310
  68. package/minecraft-data/data/pc/1.20/protocol.json +65 -324
  69. package/minecraft-data/data/pc/1.20.2/proto.yml +40 -310
  70. package/minecraft-data/data/pc/1.20.2/protocol.json +65 -324
  71. package/minecraft-data/data/pc/1.20.3/proto.yml +156 -327
  72. package/minecraft-data/data/pc/1.20.3/protocol.json +186 -369
  73. package/minecraft-data/data/pc/1.20.5/proto.yml +427 -845
  74. package/minecraft-data/data/pc/1.20.5/protocol.json +669 -931
  75. package/minecraft-data/data/pc/1.21.1/proto.yml +415 -898
  76. package/minecraft-data/data/pc/1.21.1/protocol.json +585 -1058
  77. package/minecraft-data/data/pc/1.21.3/proto.yml +429 -572
  78. package/minecraft-data/data/pc/1.21.3/protocol.json +760 -920
  79. package/minecraft-data/data/pc/1.21.4/protocol.json +766 -917
  80. package/minecraft-data/data/pc/1.21.6/attributes.json +247 -0
  81. package/minecraft-data/data/pc/1.21.6/biomes.json +652 -0
  82. package/minecraft-data/data/pc/1.21.6/blockCollisionShapes.json +142541 -0
  83. package/minecraft-data/data/pc/1.21.6/blocks.json +41360 -0
  84. package/minecraft-data/data/pc/1.21.6/effects.json +236 -0
  85. package/minecraft-data/data/pc/1.21.6/enchantments.json +959 -0
  86. package/minecraft-data/data/pc/1.21.6/entities.json +1512 -0
  87. package/minecraft-data/data/pc/1.21.6/foods.json +402 -0
  88. package/minecraft-data/data/pc/1.21.6/instruments.json +94 -0
  89. package/minecraft-data/data/pc/1.21.6/items.json +9278 -0
  90. package/minecraft-data/data/pc/1.21.6/language.json +7389 -0
  91. package/minecraft-data/data/pc/1.21.6/materials.json +206 -0
  92. package/minecraft-data/data/pc/1.21.6/particles.json +458 -0
  93. package/minecraft-data/data/pc/1.21.6/recipes.json +30473 -0
  94. package/minecraft-data/data/pc/1.21.6/sounds.json +6910 -0
  95. package/minecraft-data/data/pc/1.21.6/tints.json +465 -0
  96. package/minecraft-data/data/pc/1.21.6/version.json +6 -0
  97. package/minecraft-data/data/pc/1.7/proto.yml +3 -6
  98. package/minecraft-data/data/pc/1.7/protocol.json +7 -0
  99. package/minecraft-data/data/pc/1.8/proto.yml +29 -35
  100. package/minecraft-data/data/pc/1.8/protocol.json +101 -86
  101. package/minecraft-data/data/pc/1.9/proto.yml +29 -35
  102. package/minecraft-data/data/pc/1.9/protocol.json +101 -86
  103. package/minecraft-data/data/pc/1.9.1-pre2/proto.yml +29 -35
  104. package/minecraft-data/data/pc/1.9.1-pre2/protocol.json +101 -86
  105. package/minecraft-data/data/pc/1.9.2/proto.yml +29 -35
  106. package/minecraft-data/data/pc/1.9.2/protocol.json +101 -86
  107. package/minecraft-data/data/pc/1.9.4/proto.yml +29 -35
  108. package/minecraft-data/data/pc/1.9.4/protocol.json +101 -86
  109. package/minecraft-data/data/pc/15w40b/proto.yml +29 -35
  110. package/minecraft-data/data/pc/15w40b/protocol.json +101 -86
  111. package/minecraft-data/data/pc/16w20a/proto.yml +29 -35
  112. package/minecraft-data/data/pc/16w20a/protocol.json +101 -86
  113. package/minecraft-data/data/pc/16w35a/proto.yml +29 -35
  114. package/minecraft-data/data/pc/16w35a/protocol.json +101 -86
  115. package/minecraft-data/data/pc/17w15a/proto.yml +29 -35
  116. package/minecraft-data/data/pc/17w15a/protocol.json +101 -86
  117. package/minecraft-data/data/pc/17w18b/proto.yml +29 -35
  118. package/minecraft-data/data/pc/17w18b/protocol.json +101 -86
  119. package/minecraft-data/data/pc/17w50a/proto.yml +29 -35
  120. package/minecraft-data/data/pc/17w50a/protocol.json +101 -86
  121. package/minecraft-data/data/pc/20w13b/proto.yml +29 -35
  122. package/minecraft-data/data/pc/20w13b/protocol.json +101 -86
  123. package/minecraft-data/data/pc/21w07a/proto.yml +29 -35
  124. package/minecraft-data/data/pc/21w07a/protocol.json +101 -86
  125. package/minecraft-data/data/pc/common/features.json +7 -2
  126. package/minecraft-data/data/pc/common/protocolVersions.json +9 -1
  127. package/minecraft-data/data/pc/latest/proto.yml +427 -572
  128. package/minecraft-data/doc/history.md +6 -0
  129. package/minecraft-data/doc/protocol.md +6 -4
  130. package/package.json +1 -1
  131. package/test/load.js +8 -0
@@ -21,6 +21,7 @@
21
21
  "entityMetadataLoop": "native",
22
22
  "topBitSetTerminatedArray": "native",
23
23
  "bitfield": "native",
24
+ "bitflags": "native",
24
25
  "container": "native",
25
26
  "switch": "native",
26
27
  "void": "native",
@@ -30,7 +31,6 @@
30
31
  "anonOptionalNbt": "native",
31
32
  "registryEntryHolder": "native",
32
33
  "registryEntryHolderSet": "native",
33
- "arrayWithLengthOffset": "native",
34
34
  "ByteArray": [
35
35
  "buffer",
36
36
  {
@@ -124,6 +124,7 @@
124
124
  }
125
125
  }
126
126
  ],
127
+ "ContainerID": "u8",
127
128
  "SlotComponentType": [
128
129
  "mapper",
129
130
  {
@@ -269,7 +270,7 @@
269
270
  "array",
270
271
  {
271
272
  "countType": "varint",
272
- "type": "BlockPredicate"
273
+ "type": "ItemBlockPredicate"
273
274
  }
274
275
  ]
275
276
  },
@@ -288,7 +289,7 @@
288
289
  "array",
289
290
  {
290
291
  "countType": "varint",
291
- "type": "BlockPredicate"
292
+ "type": "ItemBlockPredicate"
292
293
  }
293
294
  ]
294
295
  },
@@ -314,10 +315,6 @@
314
315
  "name": "typeId",
315
316
  "type": "varint"
316
317
  },
317
- {
318
- "name": "uniqueId",
319
- "type": "UUID"
320
- },
321
318
  {
322
319
  "name": "name",
323
320
  "type": "string"
@@ -378,7 +375,7 @@
378
375
  "repair_cost": "varint",
379
376
  "creative_slot_lock": "void",
380
377
  "enchantment_glint_override": "bool",
381
- "intangible_projectile": "void",
378
+ "intangible_projectile": "anonymousNbt",
382
379
  "food": [
383
380
  "container",
384
381
  [
@@ -441,29 +438,21 @@
441
438
  [
442
439
  {
443
440
  "name": "blocks",
444
- "type": [
445
- "array",
446
- {
447
- "countType": "varint",
448
- "type": "BlockSet"
449
- }
450
- ]
451
- },
452
- {
453
- "name": "hasSpeed",
454
- "type": "bool"
441
+ "type": "IDSet"
455
442
  },
456
443
  {
457
444
  "name": "speed",
458
- "type": "f32"
459
- },
460
- {
461
- "name": "hasCorrectDropForBlocks",
462
- "type": "bool"
445
+ "type": [
446
+ "option",
447
+ "f32"
448
+ ]
463
449
  },
464
450
  {
465
451
  "name": "correctDropForBlocks",
466
- "type": "bool"
452
+ "type": [
453
+ "option",
454
+ "bool"
455
+ ]
467
456
  }
468
457
  ]
469
458
  ]
@@ -516,7 +505,7 @@
516
505
  [
517
506
  {
518
507
  "name": "color",
519
- "type": "varint"
508
+ "type": "i32"
520
509
  },
521
510
  {
522
511
  "name": "showTooltip",
@@ -524,9 +513,9 @@
524
513
  }
525
514
  ]
526
515
  ],
527
- "map_color": "varint",
516
+ "map_color": "i32",
528
517
  "map_id": "varint",
529
- "map_decorations": "anonOptionalNbt",
518
+ "map_decorations": "anonymousNbt",
530
519
  "map_post_processing": "varint",
531
520
  "charged_projectiles": [
532
521
  "container",
@@ -561,21 +550,19 @@
561
550
  "potion_contents": [
562
551
  "container",
563
552
  [
564
- {
565
- "name": "hasPotionId",
566
- "type": "bool"
567
- },
568
553
  {
569
554
  "name": "potionId",
570
- "type": "optvarint"
571
- },
572
- {
573
- "name": "hasCustomColor",
574
- "type": "bool"
555
+ "type": [
556
+ "option",
557
+ "varint"
558
+ ]
575
559
  },
576
560
  {
577
561
  "name": "customColor",
578
- "type": "optvarint"
562
+ "type": [
563
+ "option",
564
+ "i32"
565
+ ]
579
566
  },
580
567
  {
581
568
  "name": "customEffects",
@@ -583,21 +570,16 @@
583
570
  "array",
584
571
  {
585
572
  "countType": "varint",
586
- "type": [
587
- "container",
588
- [
589
- {
590
- "name": "effect",
591
- "type": "varint"
592
- },
593
- {
594
- "name": "details",
595
- "type": "EffectDetail"
596
- }
597
- ]
598
- ]
573
+ "type": "ItemPotionEffect"
599
574
  }
600
575
  ]
576
+ },
577
+ {
578
+ "name": "customName",
579
+ "type": [
580
+ "option",
581
+ "string"
582
+ ]
601
583
  }
602
584
  ]
603
585
  ],
@@ -637,7 +619,7 @@
637
619
  "array",
638
620
  {
639
621
  "countType": "varint",
640
- "type": "BookPage"
622
+ "type": "ItemBookPage"
641
623
  }
642
624
  ]
643
625
  }
@@ -671,7 +653,7 @@
671
653
  "array",
672
654
  {
673
655
  "countType": "varint",
674
- "type": "BookPage"
656
+ "type": "ItemWrittenBookPage"
675
657
  }
676
658
  ]
677
659
  },
@@ -685,99 +667,27 @@
685
667
  "container",
686
668
  [
687
669
  {
688
- "name": "materialType",
689
- "type": "varint"
690
- },
691
- {
692
- "anon": true,
670
+ "name": "material",
693
671
  "type": [
694
- "switch",
672
+ "registryEntryHolder",
695
673
  {
696
- "compareTo": "materialType",
697
- "fields": {
698
- "0": [
699
- "container",
700
- [
701
- {
702
- "name": "assetName",
703
- "type": "string"
704
- },
705
- {
706
- "name": "ingredientId",
707
- "type": "varint"
708
- },
709
- {
710
- "name": "itemModelIndex",
711
- "type": "f32"
712
- },
713
- {
714
- "name": "numberOfOverrides",
715
- "type": "optvarint"
716
- },
717
- {
718
- "name": "override",
719
- "type": [
720
- "array",
721
- {
722
- "countType": "varint",
723
- "type": [
724
- "container",
725
- [
726
- {
727
- "name": "armorMaterialType",
728
- "type": "varint"
729
- },
730
- {
731
- "name": "overridenAssetName",
732
- "type": "string"
733
- }
734
- ]
735
- ]
736
- }
737
- ]
738
- },
739
- {
740
- "name": "description",
741
- "type": "string"
742
- }
743
- ]
744
- ]
674
+ "baseName": "materialId",
675
+ "otherwise": {
676
+ "name": "data",
677
+ "type": "ArmorTrimMaterial"
745
678
  }
746
679
  }
747
680
  ]
748
681
  },
749
682
  {
750
- "name": "trimPatternType",
751
- "type": "varint"
752
- },
753
- {
754
- "anon": true,
683
+ "name": "pattern",
755
684
  "type": [
756
- "switch",
685
+ "registryEntryHolder",
757
686
  {
758
- "compareTo": "trimPatternType",
759
- "fields": {
760
- "0": [
761
- "container",
762
- [
763
- {
764
- "name": "assetName",
765
- "type": "string"
766
- },
767
- {
768
- "name": "templateItem",
769
- "type": "varint"
770
- },
771
- {
772
- "name": "description",
773
- "type": "string"
774
- },
775
- {
776
- "name": "decal",
777
- "type": "bool"
778
- }
779
- ]
780
- ]
687
+ "baseName": "patternId",
688
+ "otherwise": {
689
+ "name": "data",
690
+ "type": "ArmorTrimPattern"
781
691
  }
782
692
  }
783
693
  ]
@@ -793,146 +703,41 @@
793
703
  "bucket_entity_data": "anonymousNbt",
794
704
  "block_entity_data": "anonymousNbt",
795
705
  "instrument": [
796
- "container",
797
- [
798
- {
799
- "name": "instrumentType",
800
- "type": "varint"
801
- },
802
- {
803
- "anon": true,
804
- "type": [
805
- "switch",
806
- {
807
- "compareTo": "instrumentType",
808
- "fields": {
809
- "0": [
810
- "container",
811
- [
812
- {
813
- "name": "soundEvent",
814
- "type": "string"
815
- },
816
- {
817
- "name": "useDuration",
818
- "type": "f32"
819
- },
820
- {
821
- "name": "range",
822
- "type": "f32"
823
- }
824
- ]
825
- ]
826
- }
827
- }
828
- ]
706
+ "registryEntryHolder",
707
+ {
708
+ "baseName": "instrumentId",
709
+ "otherwise": {
710
+ "name": "data",
711
+ "type": "InstrumentData"
829
712
  }
830
- ]
713
+ }
831
714
  ],
832
715
  "ominous_bottle_amplifier": "varint",
833
716
  "jukebox_playable": [
834
717
  "container",
835
718
  [
836
719
  {
837
- "name": "directMode",
720
+ "name": "hasHolder",
838
721
  "type": "bool"
839
722
  },
840
723
  {
841
- "anon": true,
724
+ "name": "song",
842
725
  "type": [
843
726
  "switch",
844
727
  {
845
- "compareTo": "directMode",
728
+ "compareTo": "hasHolder",
846
729
  "fields": {
847
730
  "true": [
848
- "container",
849
- [
850
- {
851
- "name": "jukeboxSongName",
852
- "type": "string"
853
- },
854
- {
855
- "name": "jukeboxSongType",
856
- "type": "varint"
857
- },
858
- {
859
- "anon": true,
860
- "type": [
861
- "switch",
862
- {
863
- "compareTo": "jukeboxSongType",
864
- "fields": {
865
- "0": [
866
- "container",
867
- [
868
- {
869
- "name": "soundEvent",
870
- "type": [
871
- "container",
872
- [
873
- {
874
- "name": "soundEventType",
875
- "type": "varint"
876
- },
877
- {
878
- "anon": true,
879
- "type": [
880
- "switch",
881
- {
882
- "compareTo": "soundEventType",
883
- "fields": {
884
- "0": [
885
- "container",
886
- [
887
- {
888
- "name": "soundName",
889
- "type": "string"
890
- },
891
- {
892
- "name": "fixedRange",
893
- "type": [
894
- "option",
895
- "f32"
896
- ]
897
- }
898
- ]
899
- ]
900
- }
901
- }
902
- ]
903
- }
904
- ]
905
- ]
906
- }
907
- ]
908
- ]
909
- }
910
- }
911
- ]
912
- },
913
- {
914
- "name": "description",
915
- "type": "anonymousNbt"
916
- },
917
- {
918
- "name": "duration",
919
- "type": "f32"
920
- },
921
- {
922
- "name": "output",
923
- "type": "varint"
731
+ "registryEntryHolder",
732
+ {
733
+ "baseName": "songId",
734
+ "otherwise": {
735
+ "name": "data",
736
+ "type": "JukeboxSongData"
924
737
  }
925
- ]
738
+ }
926
739
  ],
927
- "false": [
928
- "container",
929
- [
930
- {
931
- "name": "songLocation",
932
- "type": "string"
933
- }
934
- ]
935
- ]
740
+ "false": "string"
936
741
  }
937
742
  }
938
743
  ]
@@ -960,7 +765,7 @@
960
765
  },
961
766
  {
962
767
  "name": "position",
963
- "type": "vec3f"
768
+ "type": "position"
964
769
  }
965
770
  ]
966
771
  ]
@@ -972,7 +777,7 @@
972
777
  }
973
778
  ]
974
779
  ],
975
- "firework_explosion": "FireworkExplosion",
780
+ "firework_explosion": "ItemFireworkExplosion",
976
781
  "fireworks": [
977
782
  "container",
978
783
  [
@@ -986,7 +791,7 @@
986
791
  "array",
987
792
  {
988
793
  "countType": "varint",
989
- "type": "FireworkExplosion"
794
+ "type": "ItemFireworkExplosion"
990
795
  }
991
796
  ]
992
797
  }
@@ -995,21 +800,19 @@
995
800
  "profile": [
996
801
  "container",
997
802
  [
998
- {
999
- "name": "hasName",
1000
- "type": "bool"
1001
- },
1002
803
  {
1003
804
  "name": "name",
1004
- "type": "string"
1005
- },
1006
- {
1007
- "name": "hasUniqueId",
1008
- "type": "bool"
805
+ "type": [
806
+ "option",
807
+ "string"
808
+ ]
1009
809
  },
1010
810
  {
1011
- "name": "uniqueId",
1012
- "type": "UUID"
811
+ "name": "uuid",
812
+ "type": [
813
+ "option",
814
+ "UUID"
815
+ ]
1013
816
  },
1014
817
  {
1015
818
  "name": "properties",
@@ -1021,20 +824,19 @@
1021
824
  "container",
1022
825
  [
1023
826
  {
1024
- "name": "property",
827
+ "name": "name",
1025
828
  "type": "string"
1026
829
  },
1027
830
  {
1028
831
  "name": "value",
1029
832
  "type": "string"
1030
833
  },
1031
- {
1032
- "name": "hasSignature",
1033
- "type": "bool"
1034
- },
1035
834
  {
1036
835
  "name": "signature",
1037
- "type": "string"
836
+ "type": [
837
+ "option",
838
+ "string"
839
+ ]
1038
840
  }
1039
841
  ]
1040
842
  ]
@@ -1053,43 +855,7 @@
1053
855
  "array",
1054
856
  {
1055
857
  "countType": "varint",
1056
- "type": [
1057
- "container",
1058
- [
1059
- {
1060
- "name": "patternType",
1061
- "type": "varint"
1062
- },
1063
- {
1064
- "anon": true,
1065
- "type": [
1066
- "switch",
1067
- {
1068
- "compareTo": "patternType",
1069
- "fields": {
1070
- "0": [
1071
- "container",
1072
- [
1073
- {
1074
- "name": "assetId",
1075
- "type": "string"
1076
- },
1077
- {
1078
- "name": "translationKey",
1079
- "type": "string"
1080
- }
1081
- ]
1082
- ]
1083
- }
1084
- }
1085
- ]
1086
- },
1087
- {
1088
- "name": "color",
1089
- "type": "varint"
1090
- }
1091
- ]
1092
- ]
858
+ "type": "BannerPatternLayer"
1093
859
  }
1094
860
  ]
1095
861
  }
@@ -1192,73 +958,33 @@
1192
958
  }
1193
959
  ]
1194
960
  ],
1195
- "Slot": [
961
+ "ItemSoundEvent": [
1196
962
  "container",
1197
963
  [
1198
964
  {
1199
- "name": "itemCount",
1200
- "type": "i8"
965
+ "name": "soundName",
966
+ "type": "string"
1201
967
  },
1202
968
  {
1203
- "anon": true,
969
+ "name": "fixedRange",
1204
970
  "type": [
1205
- "switch",
1206
- {
1207
- "compareTo": "itemCount",
1208
- "fields": {
1209
- "0": "void"
1210
- },
1211
- "default": [
1212
- "container",
1213
- [
1214
- {
1215
- "name": "itemId",
1216
- "type": "varint"
1217
- },
1218
- {
1219
- "name": "addedComponentCount",
1220
- "type": "varint"
1221
- },
1222
- {
1223
- "name": "removedComponentCount",
1224
- "type": "varint"
1225
- },
1226
- {
1227
- "name": "components",
1228
- "type": [
1229
- "array",
1230
- {
1231
- "count": "addedComponentCount",
1232
- "type": "SlotComponent"
1233
- }
1234
- ]
1235
- },
1236
- {
1237
- "name": "removeComponents",
1238
- "type": [
1239
- "array",
1240
- {
1241
- "count": "removedComponentCount",
1242
- "type": [
1243
- "container",
1244
- [
1245
- {
1246
- "name": "type",
1247
- "type": "SlotComponentType"
1248
- }
1249
- ]
1250
- ]
1251
- }
1252
- ]
1253
- }
1254
- ]
1255
- ]
1256
- }
971
+ "option",
972
+ "f32"
1257
973
  ]
1258
974
  }
1259
975
  ]
1260
976
  ],
1261
- "FireworkExplosion": [
977
+ "ItemSoundHolder": [
978
+ "registryEntryHolder",
979
+ {
980
+ "baseName": "soundId",
981
+ "otherwise": {
982
+ "name": "data",
983
+ "type": "ItemSoundEvent"
984
+ }
985
+ }
986
+ ],
987
+ "ItemFireworkExplosion": [
1262
988
  "container",
1263
989
  [
1264
990
  {
@@ -1307,23 +1033,7 @@
1307
1033
  }
1308
1034
  ]
1309
1035
  ],
1310
- "BookPage": [
1311
- "container",
1312
- [
1313
- {
1314
- "name": "content",
1315
- "type": "string"
1316
- },
1317
- {
1318
- "name": "filteredContent",
1319
- "type": [
1320
- "option",
1321
- "string"
1322
- ]
1323
- }
1324
- ]
1325
- ],
1326
- "EffectDetail": [
1036
+ "ItemEffectDetail": [
1327
1037
  "container",
1328
1038
  [
1329
1039
  {
@@ -1350,54 +1060,25 @@
1350
1060
  "name": "hiddenEffect",
1351
1061
  "type": [
1352
1062
  "option",
1353
- "EffectDetail"
1063
+ "ItemEffectDetail"
1354
1064
  ]
1355
1065
  }
1356
1066
  ]
1357
1067
  ],
1358
- "BlockSet": [
1068
+ "ItemPotionEffect": [
1359
1069
  "container",
1360
1070
  [
1361
1071
  {
1362
- "name": "type",
1072
+ "name": "id",
1363
1073
  "type": "varint"
1364
1074
  },
1365
1075
  {
1366
- "name": "name",
1367
- "type": [
1368
- "switch",
1369
- {
1370
- "compareTo": "type",
1371
- "fields": {
1372
- "0": "string"
1373
- },
1374
- "default": "void"
1375
- }
1376
- ]
1377
- },
1378
- {
1379
- "name": "blockIds",
1380
- "type": [
1381
- "switch",
1382
- {
1383
- "compareTo": "type",
1384
- "fields": {
1385
- "0": "void"
1386
- },
1387
- "default": [
1388
- "arrayWithLengthOffset",
1389
- {
1390
- "count": "type",
1391
- "type": "varint",
1392
- "lengthOffset": -1
1393
- }
1394
- ]
1395
- }
1396
- ]
1076
+ "name": "details",
1077
+ "type": "ItemEffectDetail"
1397
1078
  }
1398
1079
  ]
1399
1080
  ],
1400
- "BlockProperty": [
1081
+ "ItemBlockProperty": [
1401
1082
  "container",
1402
1083
  [
1403
1084
  {
@@ -1409,29 +1090,41 @@
1409
1090
  "type": "bool"
1410
1091
  },
1411
1092
  {
1412
- "name": "exactValue",
1413
- "type": [
1414
- "option",
1415
- "string"
1416
- ]
1417
- },
1418
- {
1419
- "name": "minValue",
1420
- "type": [
1421
- "option",
1422
- "string"
1423
- ]
1424
- },
1425
- {
1426
- "name": "maxValue",
1093
+ "name": "value",
1427
1094
  "type": [
1428
- "option",
1429
- "string"
1095
+ "switch",
1096
+ {
1097
+ "compareTo": "isExactMatch",
1098
+ "fields": {
1099
+ "true": [
1100
+ "container",
1101
+ [
1102
+ {
1103
+ "name": "exactValue",
1104
+ "type": "string"
1105
+ }
1106
+ ]
1107
+ ],
1108
+ "false": [
1109
+ "container",
1110
+ [
1111
+ {
1112
+ "name": "minValue",
1113
+ "type": "string"
1114
+ },
1115
+ {
1116
+ "name": "maxValue",
1117
+ "type": "string"
1118
+ }
1119
+ ]
1120
+ ]
1121
+ }
1122
+ }
1430
1123
  ]
1431
1124
  }
1432
1125
  ]
1433
1126
  ],
1434
- "BlockPredicate": [
1127
+ "ItemBlockPredicate": [
1435
1128
  "container",
1436
1129
  [
1437
1130
  {
@@ -1439,10 +1132,16 @@
1439
1132
  "type": [
1440
1133
  "option",
1441
1134
  [
1442
- "array",
1135
+ "registryEntryHolderSet",
1443
1136
  {
1444
- "countType": "varint",
1445
- "type": "BlockSet"
1137
+ "base": {
1138
+ "name": "name",
1139
+ "type": "string"
1140
+ },
1141
+ "otherwise": {
1142
+ "name": "blockIds",
1143
+ "type": "varint"
1144
+ }
1446
1145
  }
1447
1146
  ]
1448
1147
  ]
@@ -1455,14 +1154,246 @@
1455
1154
  "array",
1456
1155
  {
1457
1156
  "countType": "varint",
1458
- "type": "BlockProperty"
1157
+ "type": "ItemBlockProperty"
1158
+ }
1159
+ ]
1160
+ ]
1161
+ },
1162
+ {
1163
+ "name": "nbt",
1164
+ "type": "anonOptionalNbt"
1165
+ }
1166
+ ]
1167
+ ],
1168
+ "ItemBookPage": [
1169
+ "container",
1170
+ [
1171
+ {
1172
+ "name": "content",
1173
+ "type": "string"
1174
+ },
1175
+ {
1176
+ "name": "filteredContent",
1177
+ "type": [
1178
+ "option",
1179
+ "string"
1180
+ ]
1181
+ }
1182
+ ]
1183
+ ],
1184
+ "ItemWrittenBookPage": [
1185
+ "container",
1186
+ [
1187
+ {
1188
+ "name": "content",
1189
+ "type": "anonymousNbt"
1190
+ },
1191
+ {
1192
+ "name": "filteredContent",
1193
+ "type": "anonOptionalNbt"
1194
+ }
1195
+ ]
1196
+ ],
1197
+ "ArmorTrimMaterial": [
1198
+ "container",
1199
+ [
1200
+ {
1201
+ "name": "assetName",
1202
+ "type": "string"
1203
+ },
1204
+ {
1205
+ "name": "ingredientId",
1206
+ "type": "varint"
1207
+ },
1208
+ {
1209
+ "name": "overrideArmorAssets",
1210
+ "type": [
1211
+ "array",
1212
+ {
1213
+ "countType": "varint",
1214
+ "type": [
1215
+ "container",
1216
+ [
1217
+ {
1218
+ "name": "key",
1219
+ "type": "string"
1220
+ },
1221
+ {
1222
+ "name": "value",
1223
+ "type": "string"
1224
+ }
1225
+ ]
1226
+ ]
1227
+ }
1228
+ ]
1229
+ },
1230
+ {
1231
+ "name": "description",
1232
+ "type": "anonymousNbt"
1233
+ }
1234
+ ]
1235
+ ],
1236
+ "ArmorTrimPattern": [
1237
+ "container",
1238
+ [
1239
+ {
1240
+ "name": "assetId",
1241
+ "type": "string"
1242
+ },
1243
+ {
1244
+ "name": "templateItemId",
1245
+ "type": "varint"
1246
+ },
1247
+ {
1248
+ "name": "description",
1249
+ "type": "anonymousNbt"
1250
+ },
1251
+ {
1252
+ "name": "decal",
1253
+ "type": "bool"
1254
+ }
1255
+ ]
1256
+ ],
1257
+ "InstrumentData": [
1258
+ "container",
1259
+ [
1260
+ {
1261
+ "name": "soundEvent",
1262
+ "type": "ItemSoundHolder"
1263
+ },
1264
+ {
1265
+ "name": "useDuration",
1266
+ "type": "f32"
1267
+ },
1268
+ {
1269
+ "name": "range",
1270
+ "type": "f32"
1271
+ },
1272
+ {
1273
+ "name": "description",
1274
+ "type": "anonymousNbt"
1275
+ }
1276
+ ]
1277
+ ],
1278
+ "JukeboxSongData": [
1279
+ "container",
1280
+ [
1281
+ {
1282
+ "name": "soundEvent",
1283
+ "type": "ItemSoundHolder"
1284
+ },
1285
+ {
1286
+ "name": "description",
1287
+ "type": "anonymousNbt"
1288
+ },
1289
+ {
1290
+ "name": "lengthInSeconds",
1291
+ "type": "f32"
1292
+ },
1293
+ {
1294
+ "name": "comparatorOutput",
1295
+ "type": "varint"
1296
+ }
1297
+ ]
1298
+ ],
1299
+ "BannerPattern": [
1300
+ "container",
1301
+ [
1302
+ {
1303
+ "name": "assetId",
1304
+ "type": "string"
1305
+ },
1306
+ {
1307
+ "name": "translationKey",
1308
+ "type": "string"
1309
+ }
1310
+ ]
1311
+ ],
1312
+ "BannerPatternLayer": [
1313
+ "container",
1314
+ [
1315
+ {
1316
+ "name": "pattern",
1317
+ "type": [
1318
+ "registryEntryHolder",
1319
+ {
1320
+ "baseName": "patternId",
1321
+ "otherwise": {
1322
+ "name": "data",
1323
+ "type": "BannerPattern"
1459
1324
  }
1460
- ]
1325
+ }
1461
1326
  ]
1462
1327
  },
1463
1328
  {
1464
- "name": "nbt",
1465
- "type": "anonOptionalNbt"
1329
+ "name": "colorId",
1330
+ "type": "varint"
1331
+ }
1332
+ ]
1333
+ ],
1334
+ "Slot": [
1335
+ "container",
1336
+ [
1337
+ {
1338
+ "name": "itemCount",
1339
+ "type": "varint"
1340
+ },
1341
+ {
1342
+ "anon": true,
1343
+ "type": [
1344
+ "switch",
1345
+ {
1346
+ "compareTo": "itemCount",
1347
+ "fields": {
1348
+ "0": "void"
1349
+ },
1350
+ "default": [
1351
+ "container",
1352
+ [
1353
+ {
1354
+ "name": "itemId",
1355
+ "type": "varint"
1356
+ },
1357
+ {
1358
+ "name": "addedComponentCount",
1359
+ "type": "varint"
1360
+ },
1361
+ {
1362
+ "name": "removedComponentCount",
1363
+ "type": "varint"
1364
+ },
1365
+ {
1366
+ "name": "components",
1367
+ "type": [
1368
+ "array",
1369
+ {
1370
+ "count": "addedComponentCount",
1371
+ "type": "SlotComponent"
1372
+ }
1373
+ ]
1374
+ },
1375
+ {
1376
+ "name": "removeComponents",
1377
+ "type": [
1378
+ "array",
1379
+ {
1380
+ "count": "removedComponentCount",
1381
+ "type": [
1382
+ "container",
1383
+ [
1384
+ {
1385
+ "name": "type",
1386
+ "type": "SlotComponentType"
1387
+ }
1388
+ ]
1389
+ ]
1390
+ }
1391
+ ]
1392
+ }
1393
+ ]
1394
+ ]
1395
+ }
1396
+ ]
1466
1397
  }
1467
1398
  ]
1468
1399
  ],
@@ -1662,7 +1593,7 @@
1662
1593
  "container",
1663
1594
  [
1664
1595
  {
1665
- "name": "position_type",
1596
+ "name": "positionType",
1666
1597
  "type": [
1667
1598
  "mapper",
1668
1599
  {
@@ -1679,7 +1610,7 @@
1679
1610
  "type": [
1680
1611
  "switch",
1681
1612
  {
1682
- "compareTo": "position_type",
1613
+ "compareTo": "positionType",
1683
1614
  "fields": {
1684
1615
  "block": "position",
1685
1616
  "entity": [
@@ -1690,7 +1621,7 @@
1690
1621
  "type": "varint"
1691
1622
  },
1692
1623
  {
1693
- "name": "entity_eye_height",
1624
+ "name": "entityEyeHeight",
1694
1625
  "type": "f32"
1695
1626
  }
1696
1627
  ]
@@ -1944,21 +1875,14 @@
1944
1875
  "string"
1945
1876
  ],
1946
1877
  "painting_variant": [
1947
- "container",
1948
- [
1949
- {
1950
- "name": "width",
1951
- "type": "varint"
1952
- },
1953
- {
1954
- "name": "height",
1955
- "type": "varint"
1956
- },
1957
- {
1958
- "name": "assetId",
1959
- "type": "string"
1878
+ "registryEntryHolder",
1879
+ {
1880
+ "baseName": "variantId",
1881
+ "otherwise": {
1882
+ "name": "variantData",
1883
+ "type": "EntityMetadataPaintingVariant"
1960
1884
  }
1961
- ]
1885
+ }
1962
1886
  ],
1963
1887
  "sniffer_state": "varint",
1964
1888
  "armadillo_state": "varint",
@@ -1970,6 +1894,37 @@
1970
1894
  }
1971
1895
  ]
1972
1896
  ],
1897
+ "EntityMetadataPaintingVariant": [
1898
+ "container",
1899
+ [
1900
+ {
1901
+ "name": "width",
1902
+ "type": "i32"
1903
+ },
1904
+ {
1905
+ "name": "height",
1906
+ "type": "i32"
1907
+ },
1908
+ {
1909
+ "name": "assetId",
1910
+ "type": "string"
1911
+ },
1912
+ {
1913
+ "name": "title",
1914
+ "type": [
1915
+ "option",
1916
+ "anonymousNbt"
1917
+ ]
1918
+ },
1919
+ {
1920
+ "name": "author",
1921
+ "type": [
1922
+ "option",
1923
+ "anonymousNbt"
1924
+ ]
1925
+ }
1926
+ ]
1927
+ ],
1973
1928
  "EntityMetadataWolfVariant": [
1974
1929
  "container",
1975
1930
  [
@@ -2155,7 +2110,7 @@
2155
2110
  "container",
2156
2111
  [
2157
2112
  {
2158
- "name": "key",
2113
+ "name": "name",
2159
2114
  "type": "string"
2160
2115
  },
2161
2116
  {
@@ -2699,6 +2654,43 @@
2699
2654
  }
2700
2655
  ]
2701
2656
  ],
2657
+ "packet_common_settings": [
2658
+ "container",
2659
+ [
2660
+ {
2661
+ "name": "locale",
2662
+ "type": "string"
2663
+ },
2664
+ {
2665
+ "name": "viewDistance",
2666
+ "type": "i8"
2667
+ },
2668
+ {
2669
+ "name": "chatFlags",
2670
+ "type": "varint"
2671
+ },
2672
+ {
2673
+ "name": "chatColors",
2674
+ "type": "bool"
2675
+ },
2676
+ {
2677
+ "name": "skinParts",
2678
+ "type": "u8"
2679
+ },
2680
+ {
2681
+ "name": "mainHand",
2682
+ "type": "varint"
2683
+ },
2684
+ {
2685
+ "name": "enableTextFiltering",
2686
+ "type": "bool"
2687
+ },
2688
+ {
2689
+ "name": "enableServerListing",
2690
+ "type": "bool"
2691
+ }
2692
+ ]
2693
+ ],
2702
2694
  "packet_common_cookie_request": [
2703
2695
  "container",
2704
2696
  [
@@ -2778,6 +2770,46 @@
2778
2770
  }
2779
2771
  ]
2780
2772
  ],
2773
+ "packet_common_remove_resource_pack": [
2774
+ "container",
2775
+ [
2776
+ {
2777
+ "name": "uuid",
2778
+ "type": [
2779
+ "option",
2780
+ "UUID"
2781
+ ]
2782
+ }
2783
+ ]
2784
+ ],
2785
+ "packet_common_add_resource_pack": [
2786
+ "container",
2787
+ [
2788
+ {
2789
+ "name": "uuid",
2790
+ "type": "UUID"
2791
+ },
2792
+ {
2793
+ "name": "url",
2794
+ "type": "string"
2795
+ },
2796
+ {
2797
+ "name": "hash",
2798
+ "type": "string"
2799
+ },
2800
+ {
2801
+ "name": "forced",
2802
+ "type": "bool"
2803
+ },
2804
+ {
2805
+ "name": "promptMessage",
2806
+ "type": [
2807
+ "option",
2808
+ "anonymousNbt"
2809
+ ]
2810
+ }
2811
+ ]
2812
+ ],
2781
2813
  "packet_common_custom_report_details": [
2782
2814
  "container",
2783
2815
  [
@@ -3413,46 +3445,6 @@
3413
3445
  }
3414
3446
  ]
3415
3447
  ],
3416
- "packet_remove_resource_pack": [
3417
- "container",
3418
- [
3419
- {
3420
- "name": "uuid",
3421
- "type": [
3422
- "option",
3423
- "UUID"
3424
- ]
3425
- }
3426
- ]
3427
- ],
3428
- "packet_add_resource_pack": [
3429
- "container",
3430
- [
3431
- {
3432
- "name": "uuid",
3433
- "type": "UUID"
3434
- },
3435
- {
3436
- "name": "url",
3437
- "type": "string"
3438
- },
3439
- {
3440
- "name": "hash",
3441
- "type": "string"
3442
- },
3443
- {
3444
- "name": "forced",
3445
- "type": "bool"
3446
- },
3447
- {
3448
- "name": "promptMessage",
3449
- "type": [
3450
- "option",
3451
- "anonymousNbt"
3452
- ]
3453
- }
3454
- ]
3455
- ],
3456
3448
  "packet_feature_flags": [
3457
3449
  "container",
3458
3450
  [
@@ -3541,8 +3533,8 @@
3541
3533
  "ping": "packet_ping",
3542
3534
  "reset_chat": "packet_reset_chat",
3543
3535
  "registry_data": "packet_registry_data",
3544
- "remove_resource_pack": "packet_remove_resource_pack",
3545
- "add_resource_pack": "packet_add_resource_pack",
3536
+ "remove_resource_pack": "packet_common_remove_resource_pack",
3537
+ "add_resource_pack": "packet_common_add_resource_pack",
3546
3538
  "store_cookie": "packet_common_store_cookie",
3547
3539
  "transfer": "packet_common_transfer",
3548
3540
  "feature_flags": "packet_feature_flags",
@@ -3560,43 +3552,6 @@
3560
3552
  },
3561
3553
  "toServer": {
3562
3554
  "types": {
3563
- "packet_settings": [
3564
- "container",
3565
- [
3566
- {
3567
- "name": "locale",
3568
- "type": "string"
3569
- },
3570
- {
3571
- "name": "viewDistance",
3572
- "type": "i8"
3573
- },
3574
- {
3575
- "name": "chatFlags",
3576
- "type": "varint"
3577
- },
3578
- {
3579
- "name": "chatColors",
3580
- "type": "bool"
3581
- },
3582
- {
3583
- "name": "skinParts",
3584
- "type": "u8"
3585
- },
3586
- {
3587
- "name": "mainHand",
3588
- "type": "varint"
3589
- },
3590
- {
3591
- "name": "enableTextFiltering",
3592
- "type": "bool"
3593
- },
3594
- {
3595
- "name": "enableServerListing",
3596
- "type": "bool"
3597
- }
3598
- ]
3599
- ],
3600
3555
  "packet_custom_payload": [
3601
3556
  "container",
3602
3557
  [
@@ -3676,7 +3631,7 @@
3676
3631
  {
3677
3632
  "compareTo": "name",
3678
3633
  "fields": {
3679
- "settings": "packet_settings",
3634
+ "settings": "packet_common_settings",
3680
3635
  "cookie_response": "packet_common_cookie_response",
3681
3636
  "custom_payload": "packet_custom_payload",
3682
3637
  "finish_configuration": "packet_finish_configuration",
@@ -4179,7 +4134,7 @@
4179
4134
  [
4180
4135
  {
4181
4136
  "name": "windowId",
4182
- "type": "u8"
4137
+ "type": "ContainerID"
4183
4138
  }
4184
4139
  ]
4185
4140
  ],
@@ -4188,7 +4143,7 @@
4188
4143
  [
4189
4144
  {
4190
4145
  "name": "windowId",
4191
- "type": "u8"
4146
+ "type": "ContainerID"
4192
4147
  },
4193
4148
  {
4194
4149
  "name": "stateId",
@@ -4215,7 +4170,7 @@
4215
4170
  [
4216
4171
  {
4217
4172
  "name": "windowId",
4218
- "type": "u8"
4173
+ "type": "ContainerID"
4219
4174
  },
4220
4175
  {
4221
4176
  "name": "property",
@@ -4232,7 +4187,7 @@
4232
4187
  [
4233
4188
  {
4234
4189
  "name": "windowId",
4235
- "type": "i8"
4190
+ "type": "ContainerID"
4236
4191
  },
4237
4192
  {
4238
4193
  "name": "stateId",
@@ -4414,36 +4369,25 @@
4414
4369
  "container",
4415
4370
  [
4416
4371
  {
4417
- "name": "registryIndex",
4418
- "type": "varint"
4372
+ "name": "chat",
4373
+ "type": "ChatType"
4419
4374
  },
4420
- {
4421
- "anon": true,
4422
- "type": [
4423
- "switch",
4424
- {
4425
- "compareTo": "registryIndex",
4426
- "fields": {
4427
- "0": [
4428
- "container",
4429
- [
4430
- {
4431
- "name": "chat",
4432
- "type": "ChatType"
4433
- },
4434
- {
4435
- "name": "narration",
4436
- "type": "ChatType"
4437
- }
4438
- ]
4439
- ]
4440
- },
4441
- "default": "void"
4442
- }
4443
- ]
4375
+ {
4376
+ "name": "narration",
4377
+ "type": "ChatType"
4444
4378
  }
4445
4379
  ]
4446
4380
  ],
4381
+ "ChatTypesHolder": [
4382
+ "registryEntryHolder",
4383
+ {
4384
+ "baseName": "chatType",
4385
+ "otherwise": {
4386
+ "name": "data",
4387
+ "type": "ChatTypes"
4388
+ }
4389
+ }
4390
+ ],
4447
4391
  "packet_profileless_chat": [
4448
4392
  "container",
4449
4393
  [
@@ -4453,7 +4397,7 @@
4453
4397
  },
4454
4398
  {
4455
4399
  "name": "type",
4456
- "type": "ChatTypes"
4400
+ "type": "ChatTypesHolder"
4457
4401
  },
4458
4402
  {
4459
4403
  "name": "name",
@@ -4551,39 +4495,8 @@
4551
4495
  "type": "Particle"
4552
4496
  },
4553
4497
  {
4554
- "name": "soundId",
4555
- "type": "varint"
4556
- },
4557
- {
4558
- "anon": true,
4559
- "type": [
4560
- "switch",
4561
- {
4562
- "compareTo": "soundId",
4563
- "fields": {
4564
- "0": [
4565
- "container",
4566
- [
4567
- {
4568
- "name": "soundName",
4569
- "type": "string"
4570
- },
4571
- {
4572
- "name": "range",
4573
- "type": [
4574
- "option",
4575
- "f32"
4576
- ]
4577
- }
4578
- ]
4579
- ]
4580
- },
4581
- "default": [
4582
- "container",
4583
- []
4584
- ]
4585
- }
4586
- ]
4498
+ "name": "sound",
4499
+ "type": "ItemSoundHolder"
4587
4500
  }
4588
4501
  ]
4589
4502
  ],
@@ -4618,7 +4531,7 @@
4618
4531
  [
4619
4532
  {
4620
4533
  "name": "windowId",
4621
- "type": "u8"
4534
+ "type": "ContainerID"
4622
4535
  },
4623
4536
  {
4624
4537
  "name": "nbSlots",
@@ -5126,7 +5039,7 @@
5126
5039
  [
5127
5040
  {
5128
5041
  "name": "windowId",
5129
- "type": "varint"
5042
+ "type": "ContainerID"
5130
5043
  },
5131
5044
  {
5132
5045
  "name": "trades",
@@ -5421,7 +5334,7 @@
5421
5334
  [
5422
5335
  {
5423
5336
  "name": "windowId",
5424
- "type": "i8"
5337
+ "type": "ContainerID"
5425
5338
  },
5426
5339
  {
5427
5340
  "name": "recipe",
@@ -5517,7 +5430,7 @@
5517
5430
  },
5518
5431
  {
5519
5432
  "name": "type",
5520
- "type": "ChatTypes"
5433
+ "type": "ChatTypesHolder"
5521
5434
  },
5522
5435
  {
5523
5436
  "name": "networkName",
@@ -5578,7 +5491,20 @@
5578
5491
  [
5579
5492
  {
5580
5493
  "name": "action",
5581
- "type": "i8"
5494
+ "type": [
5495
+ "bitflags",
5496
+ {
5497
+ "type": "u8",
5498
+ "flags": [
5499
+ "add_player",
5500
+ "initialize_chat",
5501
+ "update_game_mode",
5502
+ "update_listed",
5503
+ "update_latency",
5504
+ "update_display_name"
5505
+ ]
5506
+ }
5507
+ ]
5582
5508
  },
5583
5509
  {
5584
5510
  "name": "data",
@@ -5598,40 +5524,9 @@
5598
5524
  "type": [
5599
5525
  "switch",
5600
5526
  {
5601
- "compareTo": "../action",
5527
+ "compareTo": "../action/add_player",
5602
5528
  "fields": {
5603
- "1": "game_profile",
5604
- "3": "game_profile",
5605
- "5": "game_profile",
5606
- "7": "game_profile",
5607
- "9": "game_profile",
5608
- "11": "game_profile",
5609
- "13": "game_profile",
5610
- "15": "game_profile",
5611
- "17": "game_profile",
5612
- "19": "game_profile",
5613
- "21": "game_profile",
5614
- "23": "game_profile",
5615
- "25": "game_profile",
5616
- "27": "game_profile",
5617
- "29": "game_profile",
5618
- "31": "game_profile",
5619
- "33": "game_profile",
5620
- "35": "game_profile",
5621
- "37": "game_profile",
5622
- "39": "game_profile",
5623
- "41": "game_profile",
5624
- "43": "game_profile",
5625
- "45": "game_profile",
5626
- "47": "game_profile",
5627
- "49": "game_profile",
5628
- "51": "game_profile",
5629
- "53": "game_profile",
5630
- "55": "game_profile",
5631
- "57": "game_profile",
5632
- "59": "game_profile",
5633
- "61": "game_profile",
5634
- "63": "game_profile"
5529
+ "true": "game_profile"
5635
5530
  },
5636
5531
  "default": "void"
5637
5532
  }
@@ -5642,40 +5537,9 @@
5642
5537
  "type": [
5643
5538
  "switch",
5644
5539
  {
5645
- "compareTo": "../action",
5540
+ "compareTo": "../action/initialize_chat",
5646
5541
  "fields": {
5647
- "2": "chat_session",
5648
- "3": "chat_session",
5649
- "6": "chat_session",
5650
- "7": "chat_session",
5651
- "10": "chat_session",
5652
- "11": "chat_session",
5653
- "14": "chat_session",
5654
- "15": "chat_session",
5655
- "18": "chat_session",
5656
- "19": "chat_session",
5657
- "22": "chat_session",
5658
- "23": "chat_session",
5659
- "26": "chat_session",
5660
- "27": "chat_session",
5661
- "30": "chat_session",
5662
- "31": "chat_session",
5663
- "34": "chat_session",
5664
- "35": "chat_session",
5665
- "38": "chat_session",
5666
- "39": "chat_session",
5667
- "42": "chat_session",
5668
- "43": "chat_session",
5669
- "46": "chat_session",
5670
- "47": "chat_session",
5671
- "50": "chat_session",
5672
- "51": "chat_session",
5673
- "54": "chat_session",
5674
- "55": "chat_session",
5675
- "58": "chat_session",
5676
- "59": "chat_session",
5677
- "62": "chat_session",
5678
- "63": "chat_session"
5542
+ "true": "chat_session"
5679
5543
  },
5680
5544
  "default": "void"
5681
5545
  }
@@ -5686,40 +5550,9 @@
5686
5550
  "type": [
5687
5551
  "switch",
5688
5552
  {
5689
- "compareTo": "../action",
5553
+ "compareTo": "../action/update_game_mode",
5690
5554
  "fields": {
5691
- "4": "varint",
5692
- "5": "varint",
5693
- "6": "varint",
5694
- "7": "varint",
5695
- "12": "varint",
5696
- "13": "varint",
5697
- "14": "varint",
5698
- "15": "varint",
5699
- "20": "varint",
5700
- "21": "varint",
5701
- "22": "varint",
5702
- "23": "varint",
5703
- "28": "varint",
5704
- "29": "varint",
5705
- "30": "varint",
5706
- "31": "varint",
5707
- "36": "varint",
5708
- "37": "varint",
5709
- "38": "varint",
5710
- "39": "varint",
5711
- "44": "varint",
5712
- "45": "varint",
5713
- "46": "varint",
5714
- "47": "varint",
5715
- "52": "varint",
5716
- "53": "varint",
5717
- "54": "varint",
5718
- "55": "varint",
5719
- "60": "varint",
5720
- "61": "varint",
5721
- "62": "varint",
5722
- "63": "varint"
5555
+ "true": "varint"
5723
5556
  },
5724
5557
  "default": "void"
5725
5558
  }
@@ -5730,40 +5563,9 @@
5730
5563
  "type": [
5731
5564
  "switch",
5732
5565
  {
5733
- "compareTo": "../action",
5566
+ "compareTo": "../action/update_listed",
5734
5567
  "fields": {
5735
- "8": "bool",
5736
- "9": "bool",
5737
- "10": "bool",
5738
- "11": "bool",
5739
- "12": "bool",
5740
- "13": "bool",
5741
- "14": "bool",
5742
- "15": "bool",
5743
- "24": "bool",
5744
- "25": "bool",
5745
- "26": "bool",
5746
- "27": "bool",
5747
- "28": "bool",
5748
- "29": "bool",
5749
- "30": "bool",
5750
- "31": "bool",
5751
- "40": "bool",
5752
- "41": "bool",
5753
- "42": "bool",
5754
- "43": "bool",
5755
- "44": "bool",
5756
- "45": "bool",
5757
- "46": "bool",
5758
- "47": "bool",
5759
- "56": "bool",
5760
- "57": "bool",
5761
- "58": "bool",
5762
- "59": "bool",
5763
- "60": "bool",
5764
- "61": "bool",
5765
- "62": "bool",
5766
- "63": "bool"
5568
+ "true": "varint"
5767
5569
  },
5768
5570
  "default": "void"
5769
5571
  }
@@ -5774,40 +5576,9 @@
5774
5576
  "type": [
5775
5577
  "switch",
5776
5578
  {
5777
- "compareTo": "../action",
5579
+ "compareTo": "../action/update_latency",
5778
5580
  "fields": {
5779
- "16": "varint",
5780
- "17": "varint",
5781
- "18": "varint",
5782
- "19": "varint",
5783
- "20": "varint",
5784
- "21": "varint",
5785
- "22": "varint",
5786
- "23": "varint",
5787
- "24": "varint",
5788
- "25": "varint",
5789
- "26": "varint",
5790
- "27": "varint",
5791
- "28": "varint",
5792
- "29": "varint",
5793
- "30": "varint",
5794
- "31": "varint",
5795
- "48": "varint",
5796
- "49": "varint",
5797
- "50": "varint",
5798
- "51": "varint",
5799
- "52": "varint",
5800
- "53": "varint",
5801
- "54": "varint",
5802
- "55": "varint",
5803
- "56": "varint",
5804
- "57": "varint",
5805
- "58": "varint",
5806
- "59": "varint",
5807
- "60": "varint",
5808
- "61": "varint",
5809
- "62": "varint",
5810
- "63": "varint"
5581
+ "true": "varint"
5811
5582
  },
5812
5583
  "default": "void"
5813
5584
  }
@@ -5818,133 +5589,9 @@
5818
5589
  "type": [
5819
5590
  "switch",
5820
5591
  {
5821
- "compareTo": "../action",
5592
+ "compareTo": "../action/update_display_name",
5822
5593
  "fields": {
5823
- "32": [
5824
- "option",
5825
- "anonymousNbt"
5826
- ],
5827
- "33": [
5828
- "option",
5829
- "anonymousNbt"
5830
- ],
5831
- "34": [
5832
- "option",
5833
- "anonymousNbt"
5834
- ],
5835
- "35": [
5836
- "option",
5837
- "anonymousNbt"
5838
- ],
5839
- "36": [
5840
- "option",
5841
- "anonymousNbt"
5842
- ],
5843
- "37": [
5844
- "option",
5845
- "anonymousNbt"
5846
- ],
5847
- "38": [
5848
- "option",
5849
- "anonymousNbt"
5850
- ],
5851
- "39": [
5852
- "option",
5853
- "anonymousNbt"
5854
- ],
5855
- "40": [
5856
- "option",
5857
- "anonymousNbt"
5858
- ],
5859
- "41": [
5860
- "option",
5861
- "anonymousNbt"
5862
- ],
5863
- "42": [
5864
- "option",
5865
- "anonymousNbt"
5866
- ],
5867
- "43": [
5868
- "option",
5869
- "anonymousNbt"
5870
- ],
5871
- "44": [
5872
- "option",
5873
- "anonymousNbt"
5874
- ],
5875
- "45": [
5876
- "option",
5877
- "anonymousNbt"
5878
- ],
5879
- "46": [
5880
- "option",
5881
- "anonymousNbt"
5882
- ],
5883
- "47": [
5884
- "option",
5885
- "anonymousNbt"
5886
- ],
5887
- "48": [
5888
- "option",
5889
- "anonymousNbt"
5890
- ],
5891
- "49": [
5892
- "option",
5893
- "anonymousNbt"
5894
- ],
5895
- "50": [
5896
- "option",
5897
- "anonymousNbt"
5898
- ],
5899
- "51": [
5900
- "option",
5901
- "anonymousNbt"
5902
- ],
5903
- "52": [
5904
- "option",
5905
- "anonymousNbt"
5906
- ],
5907
- "53": [
5908
- "option",
5909
- "anonymousNbt"
5910
- ],
5911
- "54": [
5912
- "option",
5913
- "anonymousNbt"
5914
- ],
5915
- "55": [
5916
- "option",
5917
- "anonymousNbt"
5918
- ],
5919
- "56": [
5920
- "option",
5921
- "anonymousNbt"
5922
- ],
5923
- "57": [
5924
- "option",
5925
- "anonymousNbt"
5926
- ],
5927
- "58": [
5928
- "option",
5929
- "anonymousNbt"
5930
- ],
5931
- "59": [
5932
- "option",
5933
- "anonymousNbt"
5934
- ],
5935
- "60": [
5936
- "option",
5937
- "anonymousNbt"
5938
- ],
5939
- "61": [
5940
- "option",
5941
- "anonymousNbt"
5942
- ],
5943
- "62": [
5944
- "option",
5945
- "anonymousNbt"
5946
- ],
5947
- "63": [
5594
+ "true": [
5948
5595
  "option",
5949
5596
  "anonymousNbt"
5950
5597
  ]
@@ -6011,6 +5658,19 @@
6011
5658
  }
6012
5659
  ]
6013
5660
  ],
5661
+ "PositionUpdateRelatives": [
5662
+ "bitflags",
5663
+ {
5664
+ "type": "u8",
5665
+ "flags": [
5666
+ "x",
5667
+ "y",
5668
+ "z",
5669
+ "yaw",
5670
+ "pitch"
5671
+ ]
5672
+ }
5673
+ ],
6014
5674
  "packet_position": [
6015
5675
  "container",
6016
5676
  [
@@ -6036,7 +5696,7 @@
6036
5696
  },
6037
5697
  {
6038
5698
  "name": "flags",
6039
- "type": "i8"
5699
+ "type": "PositionUpdateRelatives"
6040
5700
  },
6041
5701
  {
6042
5702
  "name": "teleportId",
@@ -6158,46 +5818,6 @@
6158
5818
  }
6159
5819
  ]
6160
5820
  ],
6161
- "packet_remove_resource_pack": [
6162
- "container",
6163
- [
6164
- {
6165
- "name": "uuid",
6166
- "type": [
6167
- "option",
6168
- "UUID"
6169
- ]
6170
- }
6171
- ]
6172
- ],
6173
- "packet_add_resource_pack": [
6174
- "container",
6175
- [
6176
- {
6177
- "name": "uuid",
6178
- "type": "UUID"
6179
- },
6180
- {
6181
- "name": "url",
6182
- "type": "string"
6183
- },
6184
- {
6185
- "name": "hash",
6186
- "type": "string"
6187
- },
6188
- {
6189
- "name": "forced",
6190
- "type": "bool"
6191
- },
6192
- {
6193
- "name": "promptMessage",
6194
- "type": [
6195
- "option",
6196
- "anonymousNbt"
6197
- ]
6198
- }
6199
- ]
6200
- ],
6201
5821
  "packet_respawn": [
6202
5822
  "container",
6203
5823
  [
@@ -6897,36 +6517,8 @@
6897
6517
  "container",
6898
6518
  [
6899
6519
  {
6900
- "name": "soundId",
6901
- "type": "varint"
6902
- },
6903
- {
6904
- "name": "soundEvent",
6905
- "type": [
6906
- "switch",
6907
- {
6908
- "compareTo": "soundId",
6909
- "fields": {
6910
- "0": [
6911
- "container",
6912
- [
6913
- {
6914
- "name": "resource",
6915
- "type": "string"
6916
- },
6917
- {
6918
- "name": "range",
6919
- "type": [
6920
- "option",
6921
- "f32"
6922
- ]
6923
- }
6924
- ]
6925
- ]
6926
- },
6927
- "default": "void"
6928
- }
6929
- ]
6520
+ "name": "sound",
6521
+ "type": "ItemSoundHolder"
6930
6522
  },
6931
6523
  {
6932
6524
  "name": "soundCategory",
@@ -6954,36 +6546,8 @@
6954
6546
  "container",
6955
6547
  [
6956
6548
  {
6957
- "name": "soundId",
6958
- "type": "varint"
6959
- },
6960
- {
6961
- "name": "soundEvent",
6962
- "type": [
6963
- "switch",
6964
- {
6965
- "compareTo": "soundId",
6966
- "fields": {
6967
- "0": [
6968
- "container",
6969
- [
6970
- {
6971
- "name": "resource",
6972
- "type": "string"
6973
- },
6974
- {
6975
- "name": "range",
6976
- "type": [
6977
- "option",
6978
- "f32"
6979
- ]
6980
- }
6981
- ]
6982
- ]
6983
- },
6984
- "default": "void"
6985
- }
6986
- ]
6549
+ "name": "sound",
6550
+ "type": "ItemSoundHolder"
6987
6551
  },
6988
6552
  {
6989
6553
  "name": "soundCategory",
@@ -7565,11 +7129,11 @@
7565
7129
  "type": "varint"
7566
7130
  },
7567
7131
  {
7568
- "name": "width",
7132
+ "name": "gridWidth",
7569
7133
  "type": "varint"
7570
7134
  },
7571
7135
  {
7572
- "name": "height",
7136
+ "name": "gridHeight",
7573
7137
  "type": "varint"
7574
7138
  },
7575
7139
  {
@@ -7577,11 +7141,11 @@
7577
7141
  "type": [
7578
7142
  "array",
7579
7143
  {
7580
- "count": "width",
7144
+ "count": "gridWidth",
7581
7145
  "type": [
7582
7146
  "array",
7583
7147
  {
7584
- "count": "height",
7148
+ "count": "gridHeight",
7585
7149
  "type": "ingredient"
7586
7150
  }
7587
7151
  ]
@@ -7934,8 +7498,8 @@
7934
7498
  "entity_destroy": "packet_entity_destroy",
7935
7499
  "remove_entity_effect": "packet_remove_entity_effect",
7936
7500
  "reset_score": "packet_reset_score",
7937
- "remove_resource_pack": "packet_remove_resource_pack",
7938
- "add_resource_pack": "packet_add_resource_pack",
7501
+ "remove_resource_pack": "packet_common_remove_resource_pack",
7502
+ "add_resource_pack": "packet_common_add_resource_pack",
7939
7503
  "respawn": "packet_respawn",
7940
7504
  "entity_head_rotation": "packet_entity_head_rotation",
7941
7505
  "multi_block_change": "packet_multi_block_change",
@@ -8183,43 +7747,6 @@
8183
7747
  }
8184
7748
  ]
8185
7749
  ],
8186
- "packet_settings": [
8187
- "container",
8188
- [
8189
- {
8190
- "name": "locale",
8191
- "type": "string"
8192
- },
8193
- {
8194
- "name": "viewDistance",
8195
- "type": "i8"
8196
- },
8197
- {
8198
- "name": "chatFlags",
8199
- "type": "varint"
8200
- },
8201
- {
8202
- "name": "chatColors",
8203
- "type": "bool"
8204
- },
8205
- {
8206
- "name": "skinParts",
8207
- "type": "u8"
8208
- },
8209
- {
8210
- "name": "mainHand",
8211
- "type": "varint"
8212
- },
8213
- {
8214
- "name": "enableTextFiltering",
8215
- "type": "bool"
8216
- },
8217
- {
8218
- "name": "enableServerListing",
8219
- "type": "bool"
8220
- }
8221
- ]
8222
- ],
8223
7750
  "packet_tab_complete": [
8224
7751
  "container",
8225
7752
  [
@@ -8242,7 +7769,7 @@
8242
7769
  [
8243
7770
  {
8244
7771
  "name": "windowId",
8245
- "type": "i8"
7772
+ "type": "ContainerID"
8246
7773
  },
8247
7774
  {
8248
7775
  "name": "enchantment",
@@ -8255,7 +7782,7 @@
8255
7782
  [
8256
7783
  {
8257
7784
  "name": "windowId",
8258
- "type": "u8"
7785
+ "type": "ContainerID"
8259
7786
  },
8260
7787
  {
8261
7788
  "name": "stateId",
@@ -8306,7 +7833,7 @@
8306
7833
  [
8307
7834
  {
8308
7835
  "name": "windowId",
8309
- "type": "u8"
7836
+ "type": "ContainerID"
8310
7837
  }
8311
7838
  ]
8312
7839
  ],
@@ -8630,7 +8157,7 @@
8630
8157
  [
8631
8158
  {
8632
8159
  "name": "windowId",
8633
- "type": "i8"
8160
+ "type": "ContainerID"
8634
8161
  },
8635
8162
  {
8636
8163
  "name": "recipe",
@@ -9169,7 +8696,7 @@
9169
8696
  "chat_session_update": "packet_chat_session_update",
9170
8697
  "chunk_batch_received": "packet_chunk_batch_received",
9171
8698
  "client_command": "packet_client_command",
9172
- "settings": "packet_settings",
8699
+ "settings": "packet_common_settings",
9173
8700
  "tab_complete": "packet_tab_complete",
9174
8701
  "configuration_acknowledged": "packet_configuration_acknowledged",
9175
8702
  "enchant_item": "packet_enchant_item",