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
  {
@@ -1981,7 +1988,19 @@
1981
1988
  [
1982
1989
  {
1983
1990
  "name": "action",
1984
- "type": "varint"
1991
+ "type": [
1992
+ "mapper",
1993
+ {
1994
+ "type": "varint",
1995
+ "mappings": {
1996
+ "0": "add_player",
1997
+ "1": "update_game_mode",
1998
+ "2": "update_latency",
1999
+ "3": "update_display_name",
2000
+ "4": "remove_player"
2001
+ }
2002
+ }
2003
+ ]
1985
2004
  },
1986
2005
  {
1987
2006
  "name": "data",
@@ -1993,105 +2012,101 @@
1993
2012
  "container",
1994
2013
  [
1995
2014
  {
1996
- "name": "UUID",
2015
+ "name": "uuid",
1997
2016
  "type": "UUID"
1998
2017
  },
1999
2018
  {
2000
- "name": "name",
2019
+ "anon": true,
2001
2020
  "type": [
2002
2021
  "switch",
2003
2022
  {
2004
2023
  "compareTo": "../action",
2005
2024
  "fields": {
2006
- "0": "string"
2007
- },
2008
- "default": "void"
2009
- }
2010
- ]
2011
- },
2012
- {
2013
- "name": "properties",
2014
- "type": [
2015
- "switch",
2016
- {
2017
- "compareTo": "../action",
2018
- "fields": {
2019
- "0": [
2020
- "array",
2021
- {
2022
- "countType": "varint",
2023
- "type": [
2024
- "container",
2025
- [
2025
+ "add_player": [
2026
+ "container",
2027
+ [
2028
+ {
2029
+ "name": "name",
2030
+ "type": "string"
2031
+ },
2032
+ {
2033
+ "name": "properties",
2034
+ "type": [
2035
+ "array",
2026
2036
  {
2027
- "name": "name",
2028
- "type": "string"
2029
- },
2030
- {
2031
- "name": "value",
2032
- "type": "string"
2033
- },
2034
- {
2035
- "name": "signature",
2037
+ "countType": "varint",
2036
2038
  "type": [
2037
- "option",
2038
- "string"
2039
+ "container",
2040
+ [
2041
+ {
2042
+ "name": "name",
2043
+ "type": "string"
2044
+ },
2045
+ {
2046
+ "name": "value",
2047
+ "type": "string"
2048
+ },
2049
+ {
2050
+ "name": "signature",
2051
+ "type": [
2052
+ "option",
2053
+ "string"
2054
+ ]
2055
+ }
2056
+ ]
2039
2057
  ]
2040
2058
  }
2041
2059
  ]
2042
- ]
2043
- }
2044
- ]
2045
- },
2046
- "default": "void"
2047
- }
2048
- ]
2049
- },
2050
- {
2051
- "name": "gamemode",
2052
- "type": [
2053
- "switch",
2054
- {
2055
- "compareTo": "../action",
2056
- "fields": {
2057
- "0": "varint",
2058
- "1": "varint"
2059
- },
2060
- "default": "void"
2061
- }
2062
- ]
2063
- },
2064
- {
2065
- "name": "ping",
2066
- "type": [
2067
- "switch",
2068
- {
2069
- "compareTo": "../action",
2070
- "fields": {
2071
- "0": "varint",
2072
- "2": "varint"
2073
- },
2074
- "default": "void"
2075
- }
2076
- ]
2077
- },
2078
- {
2079
- "name": "displayName",
2080
- "type": [
2081
- "switch",
2082
- {
2083
- "compareTo": "../action",
2084
- "fields": {
2085
- "0": [
2086
- "option",
2087
- "string"
2060
+ },
2061
+ {
2062
+ "name": "gamemode",
2063
+ "type": "varint"
2064
+ },
2065
+ {
2066
+ "name": "ping",
2067
+ "type": "varint"
2068
+ },
2069
+ {
2070
+ "name": "displayName",
2071
+ "type": [
2072
+ "option",
2073
+ "string"
2074
+ ]
2075
+ }
2076
+ ]
2088
2077
  ],
2089
- "3": [
2090
- "option",
2091
- "string"
2092
- ]
2093
- },
2094
- "default": "void"
2078
+ "update_game_mode": [
2079
+ "container",
2080
+ [
2081
+ {
2082
+ "name": "gamemode",
2083
+ "type": "varint"
2084
+ }
2085
+ ]
2086
+ ],
2087
+ "update_latency": [
2088
+ "container",
2089
+ [
2090
+ {
2091
+ "name": "ping",
2092
+ "type": "varint"
2093
+ }
2094
+ ]
2095
+ ],
2096
+ "update_display_name": [
2097
+ "container",
2098
+ [
2099
+ {
2100
+ "name": "displayName",
2101
+ "type": [
2102
+ "option",
2103
+ "string"
2104
+ ]
2105
+ }
2106
+ ]
2107
+ ],
2108
+ "remove_player": "void"
2109
+ }
2095
2110
  }
2096
2111
  ]
2097
2112
  }
@@ -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 ?
@@ -517,37 +514,34 @@
517
514
  message: event ?
518
515
  if 2: string
519
516
  default: void
520
- packet_player_info:
521
- action: varint
517
+ # MC: ClientboundPlayerInfoPacket
518
+ packet_player_info:
519
+ action: varint =>
520
+ - add_player
521
+ - update_game_mode
522
+ - update_latency
523
+ - update_display_name
524
+ - remove_player
525
+ ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.8.9/client/net/minecraft/network/play/server/S38PacketPlayerListItem.java#L113
522
526
  data: []varint
523
- UUID: UUID
524
- name: ../action ?
525
- if 0: string
526
- default: void
527
- properties: ../action ?
528
- if 0: []varint
527
+ uuid: UUID
528
+ _: ../action ?
529
+ if add_player:
529
530
  name: string
530
- value: string
531
- signature?: string
532
- default: void
533
- gamemode: ../action ?
534
- if 0: varint
535
- if 1: varint
536
- default: void
537
- ping: ../action ?
538
- if 0: varint
539
- if 2: varint
540
- default: void
541
- displayName: ../action ?
542
- if 0: [
543
- "option",
544
- "string"
545
- ]
546
- if 3: [
547
- "option",
548
- "string"
549
- ]
550
- default: void
531
+ properties: []varint
532
+ name: string
533
+ value: string
534
+ signature?: string
535
+ gamemode: varint
536
+ ping: varint
537
+ displayName?: string
538
+ if update_game_mode:
539
+ gamemode: varint
540
+ if update_latency:
541
+ ping: varint
542
+ if update_display_name:
543
+ displayName?: string
544
+ if remove_player: void
551
545
  packet_position:
552
546
  x: f64
553
547
  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
  {
@@ -1785,7 +1792,19 @@
1785
1792
  [
1786
1793
  {
1787
1794
  "name": "action",
1788
- "type": "varint"
1795
+ "type": [
1796
+ "mapper",
1797
+ {
1798
+ "type": "varint",
1799
+ "mappings": {
1800
+ "0": "add_player",
1801
+ "1": "update_game_mode",
1802
+ "2": "update_latency",
1803
+ "3": "update_display_name",
1804
+ "4": "remove_player"
1805
+ }
1806
+ }
1807
+ ]
1789
1808
  },
1790
1809
  {
1791
1810
  "name": "data",
@@ -1797,105 +1816,101 @@
1797
1816
  "container",
1798
1817
  [
1799
1818
  {
1800
- "name": "UUID",
1819
+ "name": "uuid",
1801
1820
  "type": "UUID"
1802
1821
  },
1803
1822
  {
1804
- "name": "name",
1823
+ "anon": true,
1805
1824
  "type": [
1806
1825
  "switch",
1807
1826
  {
1808
1827
  "compareTo": "../action",
1809
1828
  "fields": {
1810
- "0": "string"
1811
- },
1812
- "default": "void"
1813
- }
1814
- ]
1815
- },
1816
- {
1817
- "name": "properties",
1818
- "type": [
1819
- "switch",
1820
- {
1821
- "compareTo": "../action",
1822
- "fields": {
1823
- "0": [
1824
- "array",
1825
- {
1826
- "countType": "varint",
1827
- "type": [
1828
- "container",
1829
- [
1829
+ "add_player": [
1830
+ "container",
1831
+ [
1832
+ {
1833
+ "name": "name",
1834
+ "type": "string"
1835
+ },
1836
+ {
1837
+ "name": "properties",
1838
+ "type": [
1839
+ "array",
1830
1840
  {
1831
- "name": "name",
1832
- "type": "string"
1833
- },
1834
- {
1835
- "name": "value",
1836
- "type": "string"
1837
- },
1838
- {
1839
- "name": "signature",
1841
+ "countType": "varint",
1840
1842
  "type": [
1841
- "option",
1842
- "string"
1843
+ "container",
1844
+ [
1845
+ {
1846
+ "name": "name",
1847
+ "type": "string"
1848
+ },
1849
+ {
1850
+ "name": "value",
1851
+ "type": "string"
1852
+ },
1853
+ {
1854
+ "name": "signature",
1855
+ "type": [
1856
+ "option",
1857
+ "string"
1858
+ ]
1859
+ }
1860
+ ]
1843
1861
  ]
1844
1862
  }
1845
1863
  ]
1846
- ]
1847
- }
1848
- ]
1849
- },
1850
- "default": "void"
1851
- }
1852
- ]
1853
- },
1854
- {
1855
- "name": "gamemode",
1856
- "type": [
1857
- "switch",
1858
- {
1859
- "compareTo": "../action",
1860
- "fields": {
1861
- "0": "varint",
1862
- "1": "varint"
1863
- },
1864
- "default": "void"
1865
- }
1866
- ]
1867
- },
1868
- {
1869
- "name": "ping",
1870
- "type": [
1871
- "switch",
1872
- {
1873
- "compareTo": "../action",
1874
- "fields": {
1875
- "0": "varint",
1876
- "2": "varint"
1877
- },
1878
- "default": "void"
1879
- }
1880
- ]
1881
- },
1882
- {
1883
- "name": "displayName",
1884
- "type": [
1885
- "switch",
1886
- {
1887
- "compareTo": "../action",
1888
- "fields": {
1889
- "0": [
1890
- "option",
1891
- "string"
1864
+ },
1865
+ {
1866
+ "name": "gamemode",
1867
+ "type": "varint"
1868
+ },
1869
+ {
1870
+ "name": "ping",
1871
+ "type": "varint"
1872
+ },
1873
+ {
1874
+ "name": "displayName",
1875
+ "type": [
1876
+ "option",
1877
+ "string"
1878
+ ]
1879
+ }
1880
+ ]
1892
1881
  ],
1893
- "3": [
1894
- "option",
1895
- "string"
1896
- ]
1897
- },
1898
- "default": "void"
1882
+ "update_game_mode": [
1883
+ "container",
1884
+ [
1885
+ {
1886
+ "name": "gamemode",
1887
+ "type": "varint"
1888
+ }
1889
+ ]
1890
+ ],
1891
+ "update_latency": [
1892
+ "container",
1893
+ [
1894
+ {
1895
+ "name": "ping",
1896
+ "type": "varint"
1897
+ }
1898
+ ]
1899
+ ],
1900
+ "update_display_name": [
1901
+ "container",
1902
+ [
1903
+ {
1904
+ "name": "displayName",
1905
+ "type": [
1906
+ "option",
1907
+ "string"
1908
+ ]
1909
+ }
1910
+ ]
1911
+ ],
1912
+ "remove_player": "void"
1913
+ }
1899
1914
  }
1900
1915
  ]
1901
1916
  }
@@ -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 ?
@@ -517,37 +514,34 @@
517
514
  message: event ?
518
515
  if 2: string
519
516
  default: void
520
- packet_player_info:
521
- action: varint
517
+ # MC: ClientboundPlayerInfoPacket
518
+ packet_player_info:
519
+ action: varint =>
520
+ - add_player
521
+ - update_game_mode
522
+ - update_latency
523
+ - update_display_name
524
+ - remove_player
525
+ ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.8.9/client/net/minecraft/network/play/server/S38PacketPlayerListItem.java#L113
522
526
  data: []varint
523
- UUID: UUID
524
- name: ../action ?
525
- if 0: string
526
- default: void
527
- properties: ../action ?
528
- if 0: []varint
527
+ uuid: UUID
528
+ _: ../action ?
529
+ if add_player:
529
530
  name: string
530
- value: string
531
- signature?: string
532
- default: void
533
- gamemode: ../action ?
534
- if 0: varint
535
- if 1: varint
536
- default: void
537
- ping: ../action ?
538
- if 0: varint
539
- if 2: varint
540
- default: void
541
- displayName: ../action ?
542
- if 0: [
543
- "option",
544
- "string"
545
- ]
546
- if 3: [
547
- "option",
548
- "string"
549
- ]
550
- default: void
531
+ properties: []varint
532
+ name: string
533
+ value: string
534
+ signature?: string
535
+ gamemode: varint
536
+ ping: varint
537
+ displayName?: string
538
+ if update_game_mode:
539
+ gamemode: varint
540
+ if update_latency:
541
+ ping: varint
542
+ if update_display_name:
543
+ displayName?: string
544
+ if remove_player: void
551
545
  packet_position:
552
546
  x: f64
553
547
  y: f64