minecraft-data 3.81.1 → 3.81.2

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.
package/doc/history.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # History
2
2
 
3
+ ## 3.81.2
4
+
5
+ * update `minecraft-data`
6
+
3
7
  ## 3.81.1
4
8
 
5
9
  * update `minecraft-data`
@@ -1591,7 +1591,7 @@
1591
1591
  "container",
1592
1592
  [
1593
1593
  {
1594
- "name": "item",
1594
+ "name": "itemId",
1595
1595
  "type": "varint"
1596
1596
  },
1597
1597
  {
@@ -6066,49 +6066,19 @@
6066
6066
  {
6067
6067
  "name": "action",
6068
6068
  "type": [
6069
- "bitfield",
6070
- [
6071
- {
6072
- "name": "unused",
6073
- "size": 1,
6074
- "signed": false
6075
- },
6076
- {
6077
- "name": "update_priority",
6078
- "size": 1,
6079
- "signed": false
6080
- },
6081
- {
6082
- "name": "update_display_name",
6083
- "size": 1,
6084
- "signed": false
6085
- },
6086
- {
6087
- "name": "update_latency",
6088
- "size": 1,
6089
- "signed": false
6090
- },
6091
- {
6092
- "name": "update_listed",
6093
- "size": 1,
6094
- "signed": false
6095
- },
6096
- {
6097
- "name": "update_game_mode",
6098
- "size": 1,
6099
- "signed": false
6100
- },
6101
- {
6102
- "name": "initialize_chat",
6103
- "size": 1,
6104
- "signed": false
6105
- },
6106
- {
6107
- "name": "add_player",
6108
- "size": 1,
6109
- "signed": false
6110
- }
6111
- ]
6069
+ "bitflags",
6070
+ {
6071
+ "type": "u8",
6072
+ "flags": [
6073
+ "add_player",
6074
+ "initialize_chat",
6075
+ "update_game_mode",
6076
+ "update_listed",
6077
+ "update_latency",
6078
+ "update_display_name",
6079
+ "update_priority"
6080
+ ]
6081
+ }
6112
6082
  ]
6113
6083
  },
6114
6084
  {
@@ -6131,7 +6101,7 @@
6131
6101
  {
6132
6102
  "compareTo": "../action/add_player",
6133
6103
  "fields": {
6134
- "1": "game_profile"
6104
+ "true": "game_profile"
6135
6105
  },
6136
6106
  "default": "void"
6137
6107
  }
@@ -6144,7 +6114,7 @@
6144
6114
  {
6145
6115
  "compareTo": "../action/initialize_chat",
6146
6116
  "fields": {
6147
- "1": "chat_session"
6117
+ "true": "chat_session"
6148
6118
  },
6149
6119
  "default": "void"
6150
6120
  }
@@ -6157,7 +6127,7 @@
6157
6127
  {
6158
6128
  "compareTo": "../action/update_game_mode",
6159
6129
  "fields": {
6160
- "1": "varint"
6130
+ "true": "varint"
6161
6131
  },
6162
6132
  "default": "void"
6163
6133
  }
@@ -6170,7 +6140,7 @@
6170
6140
  {
6171
6141
  "compareTo": "../action/update_listed",
6172
6142
  "fields": {
6173
- "1": "varint"
6143
+ "true": "varint"
6174
6144
  },
6175
6145
  "default": "void"
6176
6146
  }
@@ -6183,7 +6153,7 @@
6183
6153
  {
6184
6154
  "compareTo": "../action/update_latency",
6185
6155
  "fields": {
6186
- "1": "varint"
6156
+ "true": "varint"
6187
6157
  },
6188
6158
  "default": "void"
6189
6159
  }
@@ -6196,7 +6166,7 @@
6196
6166
  {
6197
6167
  "compareTo": "../action/update_display_name",
6198
6168
  "fields": {
6199
- "1": [
6169
+ "true": [
6200
6170
  "option",
6201
6171
  "anonymousNbt"
6202
6172
  ]
@@ -6212,7 +6182,7 @@
6212
6182
  {
6213
6183
  "compareTo": "../action/update_priority",
6214
6184
  "fields": {
6215
- "1": "varint"
6185
+ "true": "varint"
6216
6186
  },
6217
6187
  "default": "void"
6218
6188
  }
@@ -562,7 +562,7 @@
562
562
  _: itemCount ?
563
563
  if 0: void
564
564
  default:
565
- item: varint
565
+ itemId: varint
566
566
  # https://wiki.vg/Slot_Data#Structured_components
567
567
  addedComponentCount: varint
568
568
  removedComponentCount: varint
@@ -2099,39 +2099,40 @@
2099
2099
  players: UUID[]varint
2100
2100
  # MC: ClientboundPlayerInfoUpdatePacket
2101
2101
  packet_player_info:
2102
- # action is a bitfield of the above
2103
- action: ["bitfield", [
2104
- { "name": "unused", "size": 1, "signed": false },
2105
- { "name": "update_priority", "size": 1, "signed": false },
2106
- { "name": "update_display_name", "size": 1, "signed": false },
2107
- { "name": "update_latency", "size": 1, "signed": false },
2108
- { "name": "update_listed", "size": 1, "signed": false },
2109
- { "name": "update_game_mode", "size": 1, "signed": false },
2110
- { "name": "initialize_chat", "size": 1, "signed": false },
2111
- { "name": "add_player", "size": 1, "signed": false }
2112
- ]]
2102
+ action: ["bitflags", {
2103
+ "type": "u8",
2104
+ "flags": [
2105
+ "add_player",
2106
+ "initialize_chat",
2107
+ "update_game_mode",
2108
+ "update_listed",
2109
+ "update_latency",
2110
+ "update_display_name",
2111
+ "update_priority"
2112
+ ]
2113
+ }]
2113
2114
  data: []varint
2114
2115
  uuid: UUID
2115
2116
  player: ../action/add_player ?
2116
- if 1: game_profile
2117
+ if true: game_profile
2117
2118
  default: void
2118
2119
  chatSession: ../action/initialize_chat ?
2119
- if 1: chat_session
2120
+ if true: chat_session
2120
2121
  default: void
2121
2122
  gamemode: ../action/update_game_mode ?
2122
- if 1: varint
2123
+ if true: varint
2123
2124
  default: void
2124
2125
  listed: ../action/update_listed ?
2125
- if 1: varint
2126
+ if true: varint
2126
2127
  default: void
2127
2128
  latency: ../action/update_latency ?
2128
- if 1: varint
2129
+ if true: varint
2129
2130
  default: void
2130
2131
  displayName: ../action/update_display_name ?
2131
- if 1: ["option", "anonymousNbt"]
2132
+ if true: ["option", "anonymousNbt"]
2132
2133
  default: void
2133
2134
  listPriority: ../action/update_priority ?
2134
- if 1: varint
2135
+ if true: varint
2135
2136
  default: void
2136
2137
 
2137
2138
  # MC: ClientboundPlayerLookAtPacket
@@ -1,3 +1,6 @@
1
+ ## 3.81.2
2
+ * [pc1.21.3 protocol: fix slot itemId name and player_info bitfield (#963)](https://github.com/PrismarineJS/minecraft-data/commit/9de94fd41d2577d592eafb391a2bcfefd761b6fa) (thanks @extremeheat)
3
+
1
4
  ## 3.81.1
2
5
  * [Add pc 1.21.1 and 1.21.3 loginPackets (#960)](https://github.com/PrismarineJS/minecraft-data/commit/ae2828606ba66d77365fc8ccba3f1e4b56aa3be2) (thanks @extremeheat)
3
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.81.1",
3
+ "version": "3.81.2",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",