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
  {
@@ -2018,7 +2025,19 @@
2018
2025
  [
2019
2026
  {
2020
2027
  "name": "action",
2021
- "type": "varint"
2028
+ "type": [
2029
+ "mapper",
2030
+ {
2031
+ "type": "varint",
2032
+ "mappings": {
2033
+ "0": "add_player",
2034
+ "1": "update_game_mode",
2035
+ "2": "update_latency",
2036
+ "3": "update_display_name",
2037
+ "4": "remove_player"
2038
+ }
2039
+ }
2040
+ ]
2022
2041
  },
2023
2042
  {
2024
2043
  "name": "data",
@@ -2030,105 +2049,101 @@
2030
2049
  "container",
2031
2050
  [
2032
2051
  {
2033
- "name": "UUID",
2052
+ "name": "uuid",
2034
2053
  "type": "UUID"
2035
2054
  },
2036
2055
  {
2037
- "name": "name",
2056
+ "anon": true,
2038
2057
  "type": [
2039
2058
  "switch",
2040
2059
  {
2041
2060
  "compareTo": "../action",
2042
2061
  "fields": {
2043
- "0": "string"
2044
- },
2045
- "default": "void"
2046
- }
2047
- ]
2048
- },
2049
- {
2050
- "name": "properties",
2051
- "type": [
2052
- "switch",
2053
- {
2054
- "compareTo": "../action",
2055
- "fields": {
2056
- "0": [
2057
- "array",
2058
- {
2059
- "countType": "varint",
2060
- "type": [
2061
- "container",
2062
- [
2063
- {
2064
- "name": "name",
2065
- "type": "string"
2066
- },
2067
- {
2068
- "name": "value",
2069
- "type": "string"
2070
- },
2062
+ "add_player": [
2063
+ "container",
2064
+ [
2065
+ {
2066
+ "name": "name",
2067
+ "type": "string"
2068
+ },
2069
+ {
2070
+ "name": "properties",
2071
+ "type": [
2072
+ "array",
2071
2073
  {
2072
- "name": "signature",
2074
+ "countType": "varint",
2073
2075
  "type": [
2074
- "option",
2075
- "string"
2076
+ "container",
2077
+ [
2078
+ {
2079
+ "name": "name",
2080
+ "type": "string"
2081
+ },
2082
+ {
2083
+ "name": "value",
2084
+ "type": "string"
2085
+ },
2086
+ {
2087
+ "name": "signature",
2088
+ "type": [
2089
+ "option",
2090
+ "string"
2091
+ ]
2092
+ }
2093
+ ]
2076
2094
  ]
2077
2095
  }
2078
2096
  ]
2079
- ]
2080
- }
2081
- ]
2082
- },
2083
- "default": "void"
2084
- }
2085
- ]
2086
- },
2087
- {
2088
- "name": "gamemode",
2089
- "type": [
2090
- "switch",
2091
- {
2092
- "compareTo": "../action",
2093
- "fields": {
2094
- "0": "varint",
2095
- "1": "varint"
2096
- },
2097
- "default": "void"
2098
- }
2099
- ]
2100
- },
2101
- {
2102
- "name": "ping",
2103
- "type": [
2104
- "switch",
2105
- {
2106
- "compareTo": "../action",
2107
- "fields": {
2108
- "0": "varint",
2109
- "2": "varint"
2110
- },
2111
- "default": "void"
2112
- }
2113
- ]
2114
- },
2115
- {
2116
- "name": "displayName",
2117
- "type": [
2118
- "switch",
2119
- {
2120
- "compareTo": "../action",
2121
- "fields": {
2122
- "0": [
2123
- "option",
2124
- "string"
2097
+ },
2098
+ {
2099
+ "name": "gamemode",
2100
+ "type": "varint"
2101
+ },
2102
+ {
2103
+ "name": "ping",
2104
+ "type": "varint"
2105
+ },
2106
+ {
2107
+ "name": "displayName",
2108
+ "type": [
2109
+ "option",
2110
+ "string"
2111
+ ]
2112
+ }
2113
+ ]
2125
2114
  ],
2126
- "3": [
2127
- "option",
2128
- "string"
2129
- ]
2130
- },
2131
- "default": "void"
2115
+ "update_game_mode": [
2116
+ "container",
2117
+ [
2118
+ {
2119
+ "name": "gamemode",
2120
+ "type": "varint"
2121
+ }
2122
+ ]
2123
+ ],
2124
+ "update_latency": [
2125
+ "container",
2126
+ [
2127
+ {
2128
+ "name": "ping",
2129
+ "type": "varint"
2130
+ }
2131
+ ]
2132
+ ],
2133
+ "update_display_name": [
2134
+ "container",
2135
+ [
2136
+ {
2137
+ "name": "displayName",
2138
+ "type": [
2139
+ "option",
2140
+ "string"
2141
+ ]
2142
+ }
2143
+ ]
2144
+ ],
2145
+ "remove_player": "void"
2146
+ }
2132
2147
  }
2133
2148
  ]
2134
2149
  }
@@ -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,12 +26,8 @@
25
26
  restBuffer: native
26
27
  nbt: native
27
28
  optionalNbt: native
28
- string: [
29
- "pstring",
30
- {
31
- "countType": "varint"
32
- }
33
- ]
29
+ ByteArray: ["buffer", { "countType": "varint" }]
30
+ string: ["pstring", { "countType": "varint" }]
34
31
  slot:
35
32
  blockId: i16
36
33
  _: blockId ?
@@ -574,37 +571,34 @@
574
571
  message: event ?
575
572
  if 2: string
576
573
  default: void
577
- packet_player_info:
578
- action: varint
574
+ # MC: ClientboundPlayerInfoPacket
575
+ packet_player_info:
576
+ action: varint =>
577
+ - add_player
578
+ - update_game_mode
579
+ - update_latency
580
+ - update_display_name
581
+ - remove_player
582
+ ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.13.2/client/net/minecraft/network/play/server/SPacketPlayerListItem.java#L114
579
583
  data: []varint
580
- UUID: UUID
581
- name: ../action ?
582
- if 0: string
583
- default: void
584
- properties: ../action ?
585
- if 0: []varint
584
+ uuid: UUID
585
+ _: ../action ?
586
+ if add_player:
586
587
  name: string
587
- value: string
588
- signature?: string
589
- default: void
590
- gamemode: ../action ?
591
- if 0: varint
592
- if 1: varint
593
- default: void
594
- ping: ../action ?
595
- if 0: varint
596
- if 2: varint
597
- default: void
598
- displayName: ../action ?
599
- if 0: [
600
- "option",
601
- "string"
602
- ]
603
- if 3: [
604
- "option",
605
- "string"
606
- ]
607
- default: void
588
+ properties: []varint
589
+ name: string
590
+ value: string
591
+ signature?: string
592
+ gamemode: varint
593
+ ping: varint
594
+ displayName?: string
595
+ if update_game_mode:
596
+ gamemode: varint
597
+ if update_latency:
598
+ ping: varint
599
+ if update_display_name:
600
+ displayName?: string
601
+ if remove_player: void
608
602
  packet_position:
609
603
  x: f64
610
604
  y: f64
@@ -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
  {
@@ -2018,7 +2025,19 @@
2018
2025
  [
2019
2026
  {
2020
2027
  "name": "action",
2021
- "type": "varint"
2028
+ "type": [
2029
+ "mapper",
2030
+ {
2031
+ "type": "varint",
2032
+ "mappings": {
2033
+ "0": "add_player",
2034
+ "1": "update_game_mode",
2035
+ "2": "update_latency",
2036
+ "3": "update_display_name",
2037
+ "4": "remove_player"
2038
+ }
2039
+ }
2040
+ ]
2022
2041
  },
2023
2042
  {
2024
2043
  "name": "data",
@@ -2030,105 +2049,101 @@
2030
2049
  "container",
2031
2050
  [
2032
2051
  {
2033
- "name": "UUID",
2052
+ "name": "uuid",
2034
2053
  "type": "UUID"
2035
2054
  },
2036
2055
  {
2037
- "name": "name",
2056
+ "anon": true,
2038
2057
  "type": [
2039
2058
  "switch",
2040
2059
  {
2041
2060
  "compareTo": "../action",
2042
2061
  "fields": {
2043
- "0": "string"
2044
- },
2045
- "default": "void"
2046
- }
2047
- ]
2048
- },
2049
- {
2050
- "name": "properties",
2051
- "type": [
2052
- "switch",
2053
- {
2054
- "compareTo": "../action",
2055
- "fields": {
2056
- "0": [
2057
- "array",
2058
- {
2059
- "countType": "varint",
2060
- "type": [
2061
- "container",
2062
- [
2063
- {
2064
- "name": "name",
2065
- "type": "string"
2066
- },
2067
- {
2068
- "name": "value",
2069
- "type": "string"
2070
- },
2062
+ "add_player": [
2063
+ "container",
2064
+ [
2065
+ {
2066
+ "name": "name",
2067
+ "type": "string"
2068
+ },
2069
+ {
2070
+ "name": "properties",
2071
+ "type": [
2072
+ "array",
2071
2073
  {
2072
- "name": "signature",
2074
+ "countType": "varint",
2073
2075
  "type": [
2074
- "option",
2075
- "string"
2076
+ "container",
2077
+ [
2078
+ {
2079
+ "name": "name",
2080
+ "type": "string"
2081
+ },
2082
+ {
2083
+ "name": "value",
2084
+ "type": "string"
2085
+ },
2086
+ {
2087
+ "name": "signature",
2088
+ "type": [
2089
+ "option",
2090
+ "string"
2091
+ ]
2092
+ }
2093
+ ]
2076
2094
  ]
2077
2095
  }
2078
2096
  ]
2079
- ]
2080
- }
2081
- ]
2082
- },
2083
- "default": "void"
2084
- }
2085
- ]
2086
- },
2087
- {
2088
- "name": "gamemode",
2089
- "type": [
2090
- "switch",
2091
- {
2092
- "compareTo": "../action",
2093
- "fields": {
2094
- "0": "varint",
2095
- "1": "varint"
2096
- },
2097
- "default": "void"
2098
- }
2099
- ]
2100
- },
2101
- {
2102
- "name": "ping",
2103
- "type": [
2104
- "switch",
2105
- {
2106
- "compareTo": "../action",
2107
- "fields": {
2108
- "0": "varint",
2109
- "2": "varint"
2110
- },
2111
- "default": "void"
2112
- }
2113
- ]
2114
- },
2115
- {
2116
- "name": "displayName",
2117
- "type": [
2118
- "switch",
2119
- {
2120
- "compareTo": "../action",
2121
- "fields": {
2122
- "0": [
2123
- "option",
2124
- "string"
2097
+ },
2098
+ {
2099
+ "name": "gamemode",
2100
+ "type": "varint"
2101
+ },
2102
+ {
2103
+ "name": "ping",
2104
+ "type": "varint"
2105
+ },
2106
+ {
2107
+ "name": "displayName",
2108
+ "type": [
2109
+ "option",
2110
+ "string"
2111
+ ]
2112
+ }
2113
+ ]
2125
2114
  ],
2126
- "3": [
2127
- "option",
2128
- "string"
2129
- ]
2130
- },
2131
- "default": "void"
2115
+ "update_game_mode": [
2116
+ "container",
2117
+ [
2118
+ {
2119
+ "name": "gamemode",
2120
+ "type": "varint"
2121
+ }
2122
+ ]
2123
+ ],
2124
+ "update_latency": [
2125
+ "container",
2126
+ [
2127
+ {
2128
+ "name": "ping",
2129
+ "type": "varint"
2130
+ }
2131
+ ]
2132
+ ],
2133
+ "update_display_name": [
2134
+ "container",
2135
+ [
2136
+ {
2137
+ "name": "displayName",
2138
+ "type": [
2139
+ "option",
2140
+ "string"
2141
+ ]
2142
+ }
2143
+ ]
2144
+ ],
2145
+ "remove_player": "void"
2146
+ }
2132
2147
  }
2133
2148
  ]
2134
2149
  }
@@ -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,12 +26,8 @@
25
26
  restBuffer: native
26
27
  nbt: native
27
28
  optionalNbt: native
28
- string: [
29
- "pstring",
30
- {
31
- "countType": "varint"
32
- }
33
- ]
29
+ ByteArray: ["buffer", { "countType": "varint" }]
30
+ string: ["pstring", { "countType": "varint" }]
34
31
  slot:
35
32
  itemId: i16
36
33
  _: itemId ?
@@ -874,37 +871,34 @@
874
871
  message: event ?
875
872
  if 2: string
876
873
  default: void
877
- packet_player_info:
878
- action: varint
874
+ # MC: ClientboundPlayerInfoPacket
875
+ packet_player_info:
876
+ action: varint =>
877
+ - add_player
878
+ - update_game_mode
879
+ - update_latency
880
+ - update_display_name
881
+ - remove_player
882
+ ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.13.2/client/net/minecraft/network/play/server/SPacketPlayerListItem.java#L114
879
883
  data: []varint
880
- UUID: UUID
881
- name: ../action ?
882
- if 0: string
883
- default: void
884
- properties: ../action ?
885
- if 0: []varint
884
+ uuid: UUID
885
+ _: ../action ?
886
+ if add_player:
886
887
  name: string
887
- value: string
888
- signature?: string
889
- default: void
890
- gamemode: ../action ?
891
- if 0: varint
892
- if 1: varint
893
- default: void
894
- ping: ../action ?
895
- if 0: varint
896
- if 2: varint
897
- default: void
898
- displayName: ../action ?
899
- if 0: [
900
- "option",
901
- "string"
902
- ]
903
- if 3: [
904
- "option",
905
- "string"
906
- ]
907
- default: void
888
+ properties: []varint
889
+ name: string
890
+ value: string
891
+ signature?: string
892
+ gamemode: varint
893
+ ping: varint
894
+ displayName?: string
895
+ if update_game_mode:
896
+ gamemode: varint
897
+ if update_latency:
898
+ ping: varint
899
+ if update_display_name:
900
+ displayName?: string
901
+ if remove_player: void
908
902
  packet_position:
909
903
  x: f64
910
904
  y: f64