minecraft-data 3.91.0 → 3.93.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 (140) hide show
  1. package/data.js +50 -1
  2. package/doc/history.md +8 -0
  3. package/index.d.ts +5 -2
  4. package/minecraft-data/README.md +1 -1
  5. package/minecraft-data/data/bedrock/1.21.90/proto.yml +4600 -0
  6. package/minecraft-data/data/bedrock/1.21.90/types.yml +2806 -0
  7. package/minecraft-data/data/bedrock/1.21.93/protocol.json +14314 -0
  8. package/minecraft-data/data/bedrock/1.21.93/version.json +6 -0
  9. package/minecraft-data/data/bedrock/common/protocolVersions.json +6 -0
  10. package/minecraft-data/data/bedrock/common/versions.json +2 -1
  11. package/minecraft-data/data/bedrock/latest/proto.yml +1 -1
  12. package/minecraft-data/data/dataPaths.json +50 -1
  13. package/minecraft-data/data/pc/1.10/proto.yml +29 -35
  14. package/minecraft-data/data/pc/1.10/protocol.json +101 -86
  15. package/minecraft-data/data/pc/1.10-pre1/proto.yml +29 -35
  16. package/minecraft-data/data/pc/1.10-pre1/protocol.json +101 -86
  17. package/minecraft-data/data/pc/1.11/proto.yml +29 -35
  18. package/minecraft-data/data/pc/1.11/protocol.json +101 -86
  19. package/minecraft-data/data/pc/1.12/proto.yml +29 -35
  20. package/minecraft-data/data/pc/1.12/protocol.json +101 -86
  21. package/minecraft-data/data/pc/1.12-pre4/proto.yml +29 -35
  22. package/minecraft-data/data/pc/1.12-pre4/protocol.json +101 -86
  23. package/minecraft-data/data/pc/1.12.1/proto.yml +29 -35
  24. package/minecraft-data/data/pc/1.12.1/protocol.json +101 -86
  25. package/minecraft-data/data/pc/1.12.2/proto.yml +29 -35
  26. package/minecraft-data/data/pc/1.12.2/protocol.json +101 -86
  27. package/minecraft-data/data/pc/1.13/proto.yml +29 -35
  28. package/minecraft-data/data/pc/1.13/protocol.json +101 -86
  29. package/minecraft-data/data/pc/1.13.1/proto.yml +29 -35
  30. package/minecraft-data/data/pc/1.13.1/protocol.json +101 -86
  31. package/minecraft-data/data/pc/1.13.2/proto.yml +29 -35
  32. package/minecraft-data/data/pc/1.13.2/protocol.json +101 -86
  33. package/minecraft-data/data/pc/1.13.2-pre1/proto.yml +29 -35
  34. package/minecraft-data/data/pc/1.13.2-pre1/protocol.json +101 -86
  35. package/minecraft-data/data/pc/1.13.2-pre2/proto.yml +29 -35
  36. package/minecraft-data/data/pc/1.13.2-pre2/protocol.json +101 -86
  37. package/minecraft-data/data/pc/1.14/proto.yml +29 -35
  38. package/minecraft-data/data/pc/1.14/protocol.json +101 -86
  39. package/minecraft-data/data/pc/1.14.1/proto.yml +29 -35
  40. package/minecraft-data/data/pc/1.14.1/protocol.json +101 -86
  41. package/minecraft-data/data/pc/1.14.3/proto.yml +29 -35
  42. package/minecraft-data/data/pc/1.14.3/protocol.json +101 -86
  43. package/minecraft-data/data/pc/1.14.4/proto.yml +29 -35
  44. package/minecraft-data/data/pc/1.14.4/protocol.json +101 -86
  45. package/minecraft-data/data/pc/1.15/proto.yml +29 -35
  46. package/minecraft-data/data/pc/1.15/protocol.json +101 -86
  47. package/minecraft-data/data/pc/1.15.1/proto.yml +29 -35
  48. package/minecraft-data/data/pc/1.15.1/protocol.json +101 -86
  49. package/minecraft-data/data/pc/1.15.2/proto.yml +29 -35
  50. package/minecraft-data/data/pc/1.15.2/protocol.json +101 -86
  51. package/minecraft-data/data/pc/1.16/proto.yml +29 -35
  52. package/minecraft-data/data/pc/1.16/protocol.json +101 -86
  53. package/minecraft-data/data/pc/1.16-rc1/proto.yml +29 -35
  54. package/minecraft-data/data/pc/1.16-rc1/protocol.json +101 -86
  55. package/minecraft-data/data/pc/1.16.1/proto.yml +29 -35
  56. package/minecraft-data/data/pc/1.16.1/protocol.json +101 -86
  57. package/minecraft-data/data/pc/1.16.2/proto.yml +29 -35
  58. package/minecraft-data/data/pc/1.16.2/protocol.json +101 -86
  59. package/minecraft-data/data/pc/1.17/proto.yml +30 -36
  60. package/minecraft-data/data/pc/1.17/protocol.json +102 -87
  61. package/minecraft-data/data/pc/1.17.1/proto.yml +30 -36
  62. package/minecraft-data/data/pc/1.17.1/protocol.json +102 -87
  63. package/minecraft-data/data/pc/1.18/proto.yml +30 -36
  64. package/minecraft-data/data/pc/1.18/protocol.json +102 -87
  65. package/minecraft-data/data/pc/1.18.2/proto.yml +30 -36
  66. package/minecraft-data/data/pc/1.18.2/protocol.json +102 -87
  67. package/minecraft-data/data/pc/1.19/proto.yml +34 -67
  68. package/minecraft-data/data/pc/1.19/protocol.json +123 -127
  69. package/minecraft-data/data/pc/1.19.2/proto.yml +35 -68
  70. package/minecraft-data/data/pc/1.19.2/protocol.json +123 -127
  71. package/minecraft-data/data/pc/1.19.3/proto.yml +39 -309
  72. package/minecraft-data/data/pc/1.19.3/protocol.json +65 -324
  73. package/minecraft-data/data/pc/1.19.4/proto.yml +39 -309
  74. package/minecraft-data/data/pc/1.19.4/protocol.json +65 -324
  75. package/minecraft-data/data/pc/1.20/proto.yml +40 -310
  76. package/minecraft-data/data/pc/1.20/protocol.json +65 -324
  77. package/minecraft-data/data/pc/1.20.2/proto.yml +40 -310
  78. package/minecraft-data/data/pc/1.20.2/protocol.json +65 -324
  79. package/minecraft-data/data/pc/1.20.3/proto.yml +156 -327
  80. package/minecraft-data/data/pc/1.20.3/protocol.json +186 -369
  81. package/minecraft-data/data/pc/1.20.5/proto.yml +427 -845
  82. package/minecraft-data/data/pc/1.20.5/protocol.json +669 -931
  83. package/minecraft-data/data/pc/1.21.1/proto.yml +415 -898
  84. package/minecraft-data/data/pc/1.21.1/protocol.json +585 -1058
  85. package/minecraft-data/data/pc/1.21.3/proto.yml +429 -572
  86. package/minecraft-data/data/pc/1.21.3/protocol.json +760 -920
  87. package/minecraft-data/data/pc/1.21.4/materials.json +45 -45
  88. package/minecraft-data/data/pc/1.21.4/protocol.json +766 -917
  89. package/minecraft-data/data/pc/1.21.6/attributes.json +247 -0
  90. package/minecraft-data/data/pc/1.21.6/biomes.json +652 -0
  91. package/minecraft-data/data/pc/1.21.6/blockCollisionShapes.json +142541 -0
  92. package/minecraft-data/data/pc/1.21.6/blocks.json +41360 -0
  93. package/minecraft-data/data/pc/1.21.6/effects.json +236 -0
  94. package/minecraft-data/data/pc/1.21.6/enchantments.json +959 -0
  95. package/minecraft-data/data/pc/1.21.6/entities.json +1512 -0
  96. package/minecraft-data/data/pc/1.21.6/foods.json +402 -0
  97. package/minecraft-data/data/pc/1.21.6/instruments.json +94 -0
  98. package/minecraft-data/data/pc/1.21.6/items.json +9278 -0
  99. package/minecraft-data/data/pc/1.21.6/language.json +7389 -0
  100. package/minecraft-data/data/pc/1.21.6/materials.json +206 -0
  101. package/minecraft-data/data/pc/1.21.6/particles.json +458 -0
  102. package/minecraft-data/data/pc/1.21.6/recipes.json +30473 -0
  103. package/minecraft-data/data/pc/1.21.6/sounds.json +6910 -0
  104. package/minecraft-data/data/pc/1.21.6/tints.json +465 -0
  105. package/minecraft-data/data/pc/1.21.6/version.json +6 -0
  106. package/minecraft-data/data/pc/1.7/proto.yml +3 -6
  107. package/minecraft-data/data/pc/1.7/protocol.json +7 -0
  108. package/minecraft-data/data/pc/1.8/proto.yml +29 -35
  109. package/minecraft-data/data/pc/1.8/protocol.json +101 -86
  110. package/minecraft-data/data/pc/1.9/proto.yml +29 -35
  111. package/minecraft-data/data/pc/1.9/protocol.json +101 -86
  112. package/minecraft-data/data/pc/1.9.1-pre2/proto.yml +29 -35
  113. package/minecraft-data/data/pc/1.9.1-pre2/protocol.json +101 -86
  114. package/minecraft-data/data/pc/1.9.2/proto.yml +29 -35
  115. package/minecraft-data/data/pc/1.9.2/protocol.json +101 -86
  116. package/minecraft-data/data/pc/1.9.4/proto.yml +29 -35
  117. package/minecraft-data/data/pc/1.9.4/protocol.json +101 -86
  118. package/minecraft-data/data/pc/15w40b/proto.yml +29 -35
  119. package/minecraft-data/data/pc/15w40b/protocol.json +101 -86
  120. package/minecraft-data/data/pc/16w20a/proto.yml +29 -35
  121. package/minecraft-data/data/pc/16w20a/protocol.json +101 -86
  122. package/minecraft-data/data/pc/16w35a/proto.yml +29 -35
  123. package/minecraft-data/data/pc/16w35a/protocol.json +101 -86
  124. package/minecraft-data/data/pc/17w15a/proto.yml +29 -35
  125. package/minecraft-data/data/pc/17w15a/protocol.json +101 -86
  126. package/minecraft-data/data/pc/17w18b/proto.yml +29 -35
  127. package/minecraft-data/data/pc/17w18b/protocol.json +101 -86
  128. package/minecraft-data/data/pc/17w50a/proto.yml +29 -35
  129. package/minecraft-data/data/pc/17w50a/protocol.json +101 -86
  130. package/minecraft-data/data/pc/20w13b/proto.yml +29 -35
  131. package/minecraft-data/data/pc/20w13b/protocol.json +101 -86
  132. package/minecraft-data/data/pc/21w07a/proto.yml +29 -35
  133. package/minecraft-data/data/pc/21w07a/protocol.json +101 -86
  134. package/minecraft-data/data/pc/common/features.json +7 -2
  135. package/minecraft-data/data/pc/common/protocolVersions.json +9 -1
  136. package/minecraft-data/data/pc/latest/proto.yml +427 -572
  137. package/minecraft-data/doc/history.md +11 -0
  138. package/minecraft-data/doc/protocol.md +6 -4
  139. package/package.json +1 -1
  140. package/test/load.js +8 -0
@@ -17,6 +17,7 @@
17
17
  "option": "native",
18
18
  "entityMetadataLoop": "native",
19
19
  "bitfield": "native",
20
+ "bitflags": "native",
20
21
  "container": "native",
21
22
  "switch": "native",
22
23
  "void": "native",
@@ -24,6 +25,12 @@
24
25
  "restBuffer": "native",
25
26
  "nbt": "native",
26
27
  "optionalNbt": "native",
28
+ "ByteArray": [
29
+ "buffer",
30
+ {
31
+ "countType": "varint"
32
+ }
33
+ ],
27
34
  "string": [
28
35
  "pstring",
29
36
  {
@@ -2363,7 +2370,19 @@
2363
2370
  [
2364
2371
  {
2365
2372
  "name": "action",
2366
- "type": "varint"
2373
+ "type": [
2374
+ "mapper",
2375
+ {
2376
+ "type": "varint",
2377
+ "mappings": {
2378
+ "0": "add_player",
2379
+ "1": "update_game_mode",
2380
+ "2": "update_latency",
2381
+ "3": "update_display_name",
2382
+ "4": "remove_player"
2383
+ }
2384
+ }
2385
+ ]
2367
2386
  },
2368
2387
  {
2369
2388
  "name": "data",
@@ -2375,105 +2394,101 @@
2375
2394
  "container",
2376
2395
  [
2377
2396
  {
2378
- "name": "UUID",
2397
+ "name": "uuid",
2379
2398
  "type": "UUID"
2380
2399
  },
2381
2400
  {
2382
- "name": "name",
2383
- "type": [
2384
- "switch",
2385
- {
2386
- "compareTo": "../action",
2387
- "fields": {
2388
- "0": "string"
2389
- },
2390
- "default": "void"
2391
- }
2392
- ]
2393
- },
2394
- {
2395
- "name": "properties",
2401
+ "anon": true,
2396
2402
  "type": [
2397
2403
  "switch",
2398
2404
  {
2399
2405
  "compareTo": "../action",
2400
2406
  "fields": {
2401
- "0": [
2402
- "array",
2403
- {
2404
- "countType": "varint",
2405
- "type": [
2406
- "container",
2407
- [
2408
- {
2409
- "name": "name",
2410
- "type": "string"
2411
- },
2412
- {
2413
- "name": "value",
2414
- "type": "string"
2415
- },
2407
+ "add_player": [
2408
+ "container",
2409
+ [
2410
+ {
2411
+ "name": "name",
2412
+ "type": "string"
2413
+ },
2414
+ {
2415
+ "name": "properties",
2416
+ "type": [
2417
+ "array",
2416
2418
  {
2417
- "name": "signature",
2419
+ "countType": "varint",
2418
2420
  "type": [
2419
- "option",
2420
- "string"
2421
+ "container",
2422
+ [
2423
+ {
2424
+ "name": "name",
2425
+ "type": "string"
2426
+ },
2427
+ {
2428
+ "name": "value",
2429
+ "type": "string"
2430
+ },
2431
+ {
2432
+ "name": "signature",
2433
+ "type": [
2434
+ "option",
2435
+ "string"
2436
+ ]
2437
+ }
2438
+ ]
2421
2439
  ]
2422
2440
  }
2423
2441
  ]
2424
- ]
2425
- }
2426
- ]
2427
- },
2428
- "default": "void"
2429
- }
2430
- ]
2431
- },
2432
- {
2433
- "name": "gamemode",
2434
- "type": [
2435
- "switch",
2436
- {
2437
- "compareTo": "../action",
2438
- "fields": {
2439
- "0": "varint",
2440
- "1": "varint"
2441
- },
2442
- "default": "void"
2443
- }
2444
- ]
2445
- },
2446
- {
2447
- "name": "ping",
2448
- "type": [
2449
- "switch",
2450
- {
2451
- "compareTo": "../action",
2452
- "fields": {
2453
- "0": "varint",
2454
- "2": "varint"
2455
- },
2456
- "default": "void"
2457
- }
2458
- ]
2459
- },
2460
- {
2461
- "name": "displayName",
2462
- "type": [
2463
- "switch",
2464
- {
2465
- "compareTo": "../action",
2466
- "fields": {
2467
- "0": [
2468
- "option",
2469
- "string"
2442
+ },
2443
+ {
2444
+ "name": "gamemode",
2445
+ "type": "varint"
2446
+ },
2447
+ {
2448
+ "name": "ping",
2449
+ "type": "varint"
2450
+ },
2451
+ {
2452
+ "name": "displayName",
2453
+ "type": [
2454
+ "option",
2455
+ "string"
2456
+ ]
2457
+ }
2458
+ ]
2470
2459
  ],
2471
- "3": [
2472
- "option",
2473
- "string"
2474
- ]
2475
- },
2476
- "default": "void"
2460
+ "update_game_mode": [
2461
+ "container",
2462
+ [
2463
+ {
2464
+ "name": "gamemode",
2465
+ "type": "varint"
2466
+ }
2467
+ ]
2468
+ ],
2469
+ "update_latency": [
2470
+ "container",
2471
+ [
2472
+ {
2473
+ "name": "ping",
2474
+ "type": "varint"
2475
+ }
2476
+ ]
2477
+ ],
2478
+ "update_display_name": [
2479
+ "container",
2480
+ [
2481
+ {
2482
+ "name": "displayName",
2483
+ "type": [
2484
+ "option",
2485
+ "string"
2486
+ ]
2487
+ }
2488
+ ]
2489
+ ],
2490
+ "remove_player": "void"
2491
+ }
2477
2492
  }
2478
2493
  ]
2479
2494
  }
@@ -19,6 +19,7 @@
19
19
  option: native
20
20
  entityMetadataLoop: native
21
21
  bitfield: native
22
+ bitflags: native
22
23
  container: native
23
24
  switch: native
24
25
  void: native
@@ -26,12 +27,8 @@
26
27
  restBuffer: native
27
28
  nbt: native
28
29
  optionalNbt: native
29
- string: [
30
- "pstring",
31
- {
32
- "countType": "varint"
33
- }
34
- ]
30
+ ByteArray: ["buffer", { "countType": "varint" }]
31
+ string: ["pstring", { "countType": "varint" }]
35
32
  slot:
36
33
  present: bool
37
34
  _: present ?
@@ -915,37 +912,34 @@
915
912
  message: event ?
916
913
  if 2: string
917
914
  default: void
918
- packet_player_info:
919
- action: varint
915
+ # MC: ClientboundPlayerInfoPacket
916
+ packet_player_info:
917
+ action: varint =>
918
+ - add_player
919
+ - update_game_mode
920
+ - update_latency
921
+ - update_display_name
922
+ - remove_player
923
+ ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122
920
924
  data: []varint
921
- UUID: UUID
922
- name: ../action ?
923
- if 0: string
924
- default: void
925
- properties: ../action ?
926
- if 0: []varint
925
+ uuid: UUID
926
+ _: ../action ?
927
+ if add_player:
927
928
  name: string
928
- value: string
929
- signature?: string
930
- default: void
931
- gamemode: ../action ?
932
- if 0: varint
933
- if 1: varint
934
- default: void
935
- ping: ../action ?
936
- if 0: varint
937
- if 2: varint
938
- default: void
939
- displayName: ../action ?
940
- if 0: [
941
- "option",
942
- "string"
943
- ]
944
- if 3: [
945
- "option",
946
- "string"
947
- ]
948
- default: void
929
+ properties: []varint
930
+ name: string
931
+ value: string
932
+ signature?: string
933
+ gamemode: varint
934
+ ping: varint
935
+ displayName?: string
936
+ if update_game_mode:
937
+ gamemode: varint
938
+ if update_latency:
939
+ ping: varint
940
+ if update_display_name:
941
+ displayName?: string
942
+ if remove_player: void
949
943
  packet_position:
950
944
  x: f64
951
945
  y: f64
@@ -18,6 +18,7 @@
18
18
  "option": "native",
19
19
  "entityMetadataLoop": "native",
20
20
  "bitfield": "native",
21
+ "bitflags": "native",
21
22
  "container": "native",
22
23
  "switch": "native",
23
24
  "void": "native",
@@ -25,6 +26,12 @@
25
26
  "restBuffer": "native",
26
27
  "nbt": "native",
27
28
  "optionalNbt": "native",
29
+ "ByteArray": [
30
+ "buffer",
31
+ {
32
+ "countType": "varint"
33
+ }
34
+ ],
28
35
  "string": [
29
36
  "pstring",
30
37
  {
@@ -2863,7 +2870,19 @@
2863
2870
  [
2864
2871
  {
2865
2872
  "name": "action",
2866
- "type": "varint"
2873
+ "type": [
2874
+ "mapper",
2875
+ {
2876
+ "type": "varint",
2877
+ "mappings": {
2878
+ "0": "add_player",
2879
+ "1": "update_game_mode",
2880
+ "2": "update_latency",
2881
+ "3": "update_display_name",
2882
+ "4": "remove_player"
2883
+ }
2884
+ }
2885
+ ]
2867
2886
  },
2868
2887
  {
2869
2888
  "name": "data",
@@ -2875,105 +2894,101 @@
2875
2894
  "container",
2876
2895
  [
2877
2896
  {
2878
- "name": "UUID",
2897
+ "name": "uuid",
2879
2898
  "type": "UUID"
2880
2899
  },
2881
2900
  {
2882
- "name": "name",
2883
- "type": [
2884
- "switch",
2885
- {
2886
- "compareTo": "../action",
2887
- "fields": {
2888
- "0": "string"
2889
- },
2890
- "default": "void"
2891
- }
2892
- ]
2893
- },
2894
- {
2895
- "name": "properties",
2901
+ "anon": true,
2896
2902
  "type": [
2897
2903
  "switch",
2898
2904
  {
2899
2905
  "compareTo": "../action",
2900
2906
  "fields": {
2901
- "0": [
2902
- "array",
2903
- {
2904
- "countType": "varint",
2905
- "type": [
2906
- "container",
2907
- [
2908
- {
2909
- "name": "name",
2910
- "type": "string"
2911
- },
2912
- {
2913
- "name": "value",
2914
- "type": "string"
2915
- },
2907
+ "add_player": [
2908
+ "container",
2909
+ [
2910
+ {
2911
+ "name": "name",
2912
+ "type": "string"
2913
+ },
2914
+ {
2915
+ "name": "properties",
2916
+ "type": [
2917
+ "array",
2916
2918
  {
2917
- "name": "signature",
2919
+ "countType": "varint",
2918
2920
  "type": [
2919
- "option",
2920
- "string"
2921
+ "container",
2922
+ [
2923
+ {
2924
+ "name": "name",
2925
+ "type": "string"
2926
+ },
2927
+ {
2928
+ "name": "value",
2929
+ "type": "string"
2930
+ },
2931
+ {
2932
+ "name": "signature",
2933
+ "type": [
2934
+ "option",
2935
+ "string"
2936
+ ]
2937
+ }
2938
+ ]
2921
2939
  ]
2922
2940
  }
2923
2941
  ]
2924
- ]
2925
- }
2926
- ]
2927
- },
2928
- "default": "void"
2929
- }
2930
- ]
2931
- },
2932
- {
2933
- "name": "gamemode",
2934
- "type": [
2935
- "switch",
2936
- {
2937
- "compareTo": "../action",
2938
- "fields": {
2939
- "0": "varint",
2940
- "1": "varint"
2941
- },
2942
- "default": "void"
2943
- }
2944
- ]
2945
- },
2946
- {
2947
- "name": "ping",
2948
- "type": [
2949
- "switch",
2950
- {
2951
- "compareTo": "../action",
2952
- "fields": {
2953
- "0": "varint",
2954
- "2": "varint"
2955
- },
2956
- "default": "void"
2957
- }
2958
- ]
2959
- },
2960
- {
2961
- "name": "displayName",
2962
- "type": [
2963
- "switch",
2964
- {
2965
- "compareTo": "../action",
2966
- "fields": {
2967
- "0": [
2968
- "option",
2969
- "string"
2942
+ },
2943
+ {
2944
+ "name": "gamemode",
2945
+ "type": "varint"
2946
+ },
2947
+ {
2948
+ "name": "ping",
2949
+ "type": "varint"
2950
+ },
2951
+ {
2952
+ "name": "displayName",
2953
+ "type": [
2954
+ "option",
2955
+ "string"
2956
+ ]
2957
+ }
2958
+ ]
2970
2959
  ],
2971
- "3": [
2972
- "option",
2973
- "string"
2974
- ]
2975
- },
2976
- "default": "void"
2960
+ "update_game_mode": [
2961
+ "container",
2962
+ [
2963
+ {
2964
+ "name": "gamemode",
2965
+ "type": "varint"
2966
+ }
2967
+ ]
2968
+ ],
2969
+ "update_latency": [
2970
+ "container",
2971
+ [
2972
+ {
2973
+ "name": "ping",
2974
+ "type": "varint"
2975
+ }
2976
+ ]
2977
+ ],
2978
+ "update_display_name": [
2979
+ "container",
2980
+ [
2981
+ {
2982
+ "name": "displayName",
2983
+ "type": [
2984
+ "option",
2985
+ "string"
2986
+ ]
2987
+ }
2988
+ ]
2989
+ ],
2990
+ "remove_player": "void"
2991
+ }
2977
2992
  }
2978
2993
  ]
2979
2994
  }
@@ -20,6 +20,7 @@
20
20
  entityMetadataLoop: native
21
21
  topBitSetTerminatedArray: native
22
22
  bitfield: native
23
+ bitflags: native
23
24
  container: native
24
25
  switch: native
25
26
  void: native
@@ -27,12 +28,8 @@
27
28
  restBuffer: native
28
29
  nbt: native
29
30
  optionalNbt: native
30
- string: [
31
- "pstring",
32
- {
33
- "countType": "varint"
34
- }
35
- ]
31
+ ByteArray: ["buffer", { "countType": "varint" }]
32
+ string: ["pstring", { "countType": "varint" }]
36
33
  slot:
37
34
  present: bool
38
35
  _: present ?
@@ -931,37 +928,34 @@
931
928
  message: event ?
932
929
  if 2: string
933
930
  default: void
934
- packet_player_info:
935
- action: varint
931
+ # MC: ClientboundPlayerInfoPacket
932
+ packet_player_info:
933
+ action: varint =>
934
+ - add_player
935
+ - update_game_mode
936
+ - update_latency
937
+ - update_display_name
938
+ - remove_player
939
+ ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122
936
940
  data: []varint
937
- UUID: UUID
938
- name: ../action ?
939
- if 0: string
940
- default: void
941
- properties: ../action ?
942
- if 0: []varint
941
+ uuid: UUID
942
+ _: ../action ?
943
+ if add_player:
943
944
  name: string
944
- value: string
945
- signature?: string
946
- default: void
947
- gamemode: ../action ?
948
- if 0: varint
949
- if 1: varint
950
- default: void
951
- ping: ../action ?
952
- if 0: varint
953
- if 2: varint
954
- default: void
955
- displayName: ../action ?
956
- if 0: [
957
- "option",
958
- "string"
959
- ]
960
- if 3: [
961
- "option",
962
- "string"
963
- ]
964
- default: void
945
+ properties: []varint
946
+ name: string
947
+ value: string
948
+ signature?: string
949
+ gamemode: varint
950
+ ping: varint
951
+ displayName?: string
952
+ if update_game_mode:
953
+ gamemode: varint
954
+ if update_latency:
955
+ ping: varint
956
+ if update_display_name:
957
+ displayName?: string
958
+ if remove_player: void
965
959
  packet_position:
966
960
  x: f64
967
961
  y: f64