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
@@ -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
  {
@@ -2886,7 +2893,19 @@
2886
2893
  [
2887
2894
  {
2888
2895
  "name": "action",
2889
- "type": "varint"
2896
+ "type": [
2897
+ "mapper",
2898
+ {
2899
+ "type": "varint",
2900
+ "mappings": {
2901
+ "0": "add_player",
2902
+ "1": "update_game_mode",
2903
+ "2": "update_latency",
2904
+ "3": "update_display_name",
2905
+ "4": "remove_player"
2906
+ }
2907
+ }
2908
+ ]
2890
2909
  },
2891
2910
  {
2892
2911
  "name": "data",
@@ -2898,105 +2917,101 @@
2898
2917
  "container",
2899
2918
  [
2900
2919
  {
2901
- "name": "UUID",
2920
+ "name": "uuid",
2902
2921
  "type": "UUID"
2903
2922
  },
2904
2923
  {
2905
- "name": "name",
2906
- "type": [
2907
- "switch",
2908
- {
2909
- "compareTo": "../action",
2910
- "fields": {
2911
- "0": "string"
2912
- },
2913
- "default": "void"
2914
- }
2915
- ]
2916
- },
2917
- {
2918
- "name": "properties",
2924
+ "anon": true,
2919
2925
  "type": [
2920
2926
  "switch",
2921
2927
  {
2922
2928
  "compareTo": "../action",
2923
2929
  "fields": {
2924
- "0": [
2925
- "array",
2926
- {
2927
- "countType": "varint",
2928
- "type": [
2929
- "container",
2930
- [
2931
- {
2932
- "name": "name",
2933
- "type": "string"
2934
- },
2935
- {
2936
- "name": "value",
2937
- "type": "string"
2938
- },
2930
+ "add_player": [
2931
+ "container",
2932
+ [
2933
+ {
2934
+ "name": "name",
2935
+ "type": "string"
2936
+ },
2937
+ {
2938
+ "name": "properties",
2939
+ "type": [
2940
+ "array",
2939
2941
  {
2940
- "name": "signature",
2942
+ "countType": "varint",
2941
2943
  "type": [
2942
- "option",
2943
- "string"
2944
+ "container",
2945
+ [
2946
+ {
2947
+ "name": "name",
2948
+ "type": "string"
2949
+ },
2950
+ {
2951
+ "name": "value",
2952
+ "type": "string"
2953
+ },
2954
+ {
2955
+ "name": "signature",
2956
+ "type": [
2957
+ "option",
2958
+ "string"
2959
+ ]
2960
+ }
2961
+ ]
2944
2962
  ]
2945
2963
  }
2946
2964
  ]
2947
- ]
2948
- }
2949
- ]
2950
- },
2951
- "default": "void"
2952
- }
2953
- ]
2954
- },
2955
- {
2956
- "name": "gamemode",
2957
- "type": [
2958
- "switch",
2959
- {
2960
- "compareTo": "../action",
2961
- "fields": {
2962
- "0": "varint",
2963
- "1": "varint"
2964
- },
2965
- "default": "void"
2966
- }
2967
- ]
2968
- },
2969
- {
2970
- "name": "ping",
2971
- "type": [
2972
- "switch",
2973
- {
2974
- "compareTo": "../action",
2975
- "fields": {
2976
- "0": "varint",
2977
- "2": "varint"
2978
- },
2979
- "default": "void"
2980
- }
2981
- ]
2982
- },
2983
- {
2984
- "name": "displayName",
2985
- "type": [
2986
- "switch",
2987
- {
2988
- "compareTo": "../action",
2989
- "fields": {
2990
- "0": [
2991
- "option",
2992
- "string"
2965
+ },
2966
+ {
2967
+ "name": "gamemode",
2968
+ "type": "varint"
2969
+ },
2970
+ {
2971
+ "name": "ping",
2972
+ "type": "varint"
2973
+ },
2974
+ {
2975
+ "name": "displayName",
2976
+ "type": [
2977
+ "option",
2978
+ "string"
2979
+ ]
2980
+ }
2981
+ ]
2993
2982
  ],
2994
- "3": [
2995
- "option",
2996
- "string"
2997
- ]
2998
- },
2999
- "default": "void"
2983
+ "update_game_mode": [
2984
+ "container",
2985
+ [
2986
+ {
2987
+ "name": "gamemode",
2988
+ "type": "varint"
2989
+ }
2990
+ ]
2991
+ ],
2992
+ "update_latency": [
2993
+ "container",
2994
+ [
2995
+ {
2996
+ "name": "ping",
2997
+ "type": "varint"
2998
+ }
2999
+ ]
3000
+ ],
3001
+ "update_display_name": [
3002
+ "container",
3003
+ [
3004
+ {
3005
+ "name": "displayName",
3006
+ "type": [
3007
+ "option",
3008
+ "string"
3009
+ ]
3010
+ }
3011
+ ]
3012
+ ],
3013
+ "remove_player": "void"
3014
+ }
3000
3015
  }
3001
3016
  ]
3002
3017
  }
@@ -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 ?
@@ -920,37 +917,34 @@
920
917
  message: event ?
921
918
  if 2: string
922
919
  default: void
923
- packet_player_info:
924
- action: varint
920
+ # MC: ClientboundPlayerInfoPacket
921
+ packet_player_info:
922
+ action: varint =>
923
+ - add_player
924
+ - update_game_mode
925
+ - update_latency
926
+ - update_display_name
927
+ - remove_player
928
+ ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122
925
929
  data: []varint
926
- UUID: UUID
927
- name: ../action ?
928
- if 0: string
929
- default: void
930
- properties: ../action ?
931
- if 0: []varint
930
+ uuid: UUID
931
+ _: ../action ?
932
+ if add_player:
932
933
  name: string
933
- value: string
934
- signature?: string
935
- default: void
936
- gamemode: ../action ?
937
- if 0: varint
938
- if 1: varint
939
- default: void
940
- ping: ../action ?
941
- if 0: varint
942
- if 2: varint
943
- default: void
944
- displayName: ../action ?
945
- if 0: [
946
- "option",
947
- "string"
948
- ]
949
- if 3: [
950
- "option",
951
- "string"
952
- ]
953
- default: void
934
+ properties: []varint
935
+ name: string
936
+ value: string
937
+ signature?: string
938
+ gamemode: varint
939
+ ping: varint
940
+ displayName?: string
941
+ if update_game_mode:
942
+ gamemode: varint
943
+ if update_latency:
944
+ ping: varint
945
+ if update_display_name:
946
+ displayName?: string
947
+ if remove_player: void
954
948
  packet_position:
955
949
  x: f64
956
950
  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
  {
@@ -2890,7 +2897,19 @@
2890
2897
  [
2891
2898
  {
2892
2899
  "name": "action",
2893
- "type": "varint"
2900
+ "type": [
2901
+ "mapper",
2902
+ {
2903
+ "type": "varint",
2904
+ "mappings": {
2905
+ "0": "add_player",
2906
+ "1": "update_game_mode",
2907
+ "2": "update_latency",
2908
+ "3": "update_display_name",
2909
+ "4": "remove_player"
2910
+ }
2911
+ }
2912
+ ]
2894
2913
  },
2895
2914
  {
2896
2915
  "name": "data",
@@ -2902,105 +2921,101 @@
2902
2921
  "container",
2903
2922
  [
2904
2923
  {
2905
- "name": "UUID",
2924
+ "name": "uuid",
2906
2925
  "type": "UUID"
2907
2926
  },
2908
2927
  {
2909
- "name": "name",
2910
- "type": [
2911
- "switch",
2912
- {
2913
- "compareTo": "../action",
2914
- "fields": {
2915
- "0": "string"
2916
- },
2917
- "default": "void"
2918
- }
2919
- ]
2920
- },
2921
- {
2922
- "name": "properties",
2928
+ "anon": true,
2923
2929
  "type": [
2924
2930
  "switch",
2925
2931
  {
2926
2932
  "compareTo": "../action",
2927
2933
  "fields": {
2928
- "0": [
2929
- "array",
2930
- {
2931
- "countType": "varint",
2932
- "type": [
2933
- "container",
2934
- [
2935
- {
2936
- "name": "name",
2937
- "type": "string"
2938
- },
2939
- {
2940
- "name": "value",
2941
- "type": "string"
2942
- },
2934
+ "add_player": [
2935
+ "container",
2936
+ [
2937
+ {
2938
+ "name": "name",
2939
+ "type": "string"
2940
+ },
2941
+ {
2942
+ "name": "properties",
2943
+ "type": [
2944
+ "array",
2943
2945
  {
2944
- "name": "signature",
2946
+ "countType": "varint",
2945
2947
  "type": [
2946
- "option",
2947
- "string"
2948
+ "container",
2949
+ [
2950
+ {
2951
+ "name": "name",
2952
+ "type": "string"
2953
+ },
2954
+ {
2955
+ "name": "value",
2956
+ "type": "string"
2957
+ },
2958
+ {
2959
+ "name": "signature",
2960
+ "type": [
2961
+ "option",
2962
+ "string"
2963
+ ]
2964
+ }
2965
+ ]
2948
2966
  ]
2949
2967
  }
2950
2968
  ]
2951
- ]
2952
- }
2953
- ]
2954
- },
2955
- "default": "void"
2956
- }
2957
- ]
2958
- },
2959
- {
2960
- "name": "gamemode",
2961
- "type": [
2962
- "switch",
2963
- {
2964
- "compareTo": "../action",
2965
- "fields": {
2966
- "0": "varint",
2967
- "1": "varint"
2968
- },
2969
- "default": "void"
2970
- }
2971
- ]
2972
- },
2973
- {
2974
- "name": "ping",
2975
- "type": [
2976
- "switch",
2977
- {
2978
- "compareTo": "../action",
2979
- "fields": {
2980
- "0": "varint",
2981
- "2": "varint"
2982
- },
2983
- "default": "void"
2984
- }
2985
- ]
2986
- },
2987
- {
2988
- "name": "displayName",
2989
- "type": [
2990
- "switch",
2991
- {
2992
- "compareTo": "../action",
2993
- "fields": {
2994
- "0": [
2995
- "option",
2996
- "string"
2969
+ },
2970
+ {
2971
+ "name": "gamemode",
2972
+ "type": "varint"
2973
+ },
2974
+ {
2975
+ "name": "ping",
2976
+ "type": "varint"
2977
+ },
2978
+ {
2979
+ "name": "displayName",
2980
+ "type": [
2981
+ "option",
2982
+ "string"
2983
+ ]
2984
+ }
2985
+ ]
2997
2986
  ],
2998
- "3": [
2999
- "option",
3000
- "string"
3001
- ]
3002
- },
3003
- "default": "void"
2987
+ "update_game_mode": [
2988
+ "container",
2989
+ [
2990
+ {
2991
+ "name": "gamemode",
2992
+ "type": "varint"
2993
+ }
2994
+ ]
2995
+ ],
2996
+ "update_latency": [
2997
+ "container",
2998
+ [
2999
+ {
3000
+ "name": "ping",
3001
+ "type": "varint"
3002
+ }
3003
+ ]
3004
+ ],
3005
+ "update_display_name": [
3006
+ "container",
3007
+ [
3008
+ {
3009
+ "name": "displayName",
3010
+ "type": [
3011
+ "option",
3012
+ "string"
3013
+ ]
3014
+ }
3015
+ ]
3016
+ ],
3017
+ "remove_player": "void"
3018
+ }
3004
3019
  }
3005
3020
  ]
3006
3021
  }
@@ -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 ?
@@ -921,37 +918,34 @@
921
918
  message: event ?
922
919
  if 2: string
923
920
  default: void
924
- packet_player_info:
925
- action: varint
921
+ # MC: ClientboundPlayerInfoPacket
922
+ packet_player_info:
923
+ action: varint =>
924
+ - add_player
925
+ - update_game_mode
926
+ - update_latency
927
+ - update_display_name
928
+ - remove_player
929
+ ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122
926
930
  data: []varint
927
- UUID: UUID
928
- name: ../action ?
929
- if 0: string
930
- default: void
931
- properties: ../action ?
932
- if 0: []varint
931
+ uuid: UUID
932
+ _: ../action ?
933
+ if add_player:
933
934
  name: string
934
- value: string
935
- signature?: string
936
- default: void
937
- gamemode: ../action ?
938
- if 0: varint
939
- if 1: varint
940
- default: void
941
- ping: ../action ?
942
- if 0: varint
943
- if 2: varint
944
- default: void
945
- displayName: ../action ?
946
- if 0: [
947
- "option",
948
- "string"
949
- ]
950
- if 3: [
951
- "option",
952
- "string"
953
- ]
954
- default: void
935
+ properties: []varint
936
+ name: string
937
+ value: string
938
+ signature?: string
939
+ gamemode: varint
940
+ ping: varint
941
+ displayName?: string
942
+ if update_game_mode:
943
+ gamemode: varint
944
+ if update_latency:
945
+ ping: varint
946
+ if update_display_name:
947
+ displayName?: string
948
+ if remove_player: void
955
949
  packet_position:
956
950
  x: f64
957
951
  y: f64