minecraft-data 3.55.0 → 3.57.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.
package/data.js CHANGED
@@ -1222,7 +1222,7 @@ module.exports =
1222
1222
  get particles () { return require("./minecraft-data/data/pc/1.20/particles.json") },
1223
1223
  get blockLoot () { return require("./minecraft-data/data/pc/1.20/blockLoot.json") },
1224
1224
  get entityLoot () { return require("./minecraft-data/data/pc/1.20/entityLoot.json") },
1225
- get loginPacket () { return require("./minecraft-data/data/pc/1.19.2/loginPacket.json") },
1225
+ get loginPacket () { return require("./minecraft-data/data/pc/1.20/loginPacket.json") },
1226
1226
  get tints () { return require("./minecraft-data/data/pc/1.20/tints.json") },
1227
1227
  get mapIcons () { return require("./minecraft-data/data/pc/1.16/mapIcons.json") }
1228
1228
  },
@@ -1246,7 +1246,7 @@ module.exports =
1246
1246
  get particles () { return require("./minecraft-data/data/pc/1.20/particles.json") },
1247
1247
  get blockLoot () { return require("./minecraft-data/data/pc/1.20/blockLoot.json") },
1248
1248
  get entityLoot () { return require("./minecraft-data/data/pc/1.20/entityLoot.json") },
1249
- get loginPacket () { return require("./minecraft-data/data/pc/1.19.2/loginPacket.json") },
1249
+ get loginPacket () { return require("./minecraft-data/data/pc/1.20/loginPacket.json") },
1250
1250
  get tints () { return require("./minecraft-data/data/pc/1.20/tints.json") },
1251
1251
  get mapIcons () { return require("./minecraft-data/data/pc/1.16/mapIcons.json") }
1252
1252
  },
package/doc/history.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # History
2
2
 
3
+ ## 3.57.0
4
+
5
+ * update `minecraft-data`
6
+
7
+ ## 3.56.0
8
+
9
+ * update `minecraft-data`
10
+
3
11
  ## 3.55.0
4
12
 
5
13
  * update `minecraft-data`
package/index.d.ts CHANGED
@@ -1321,6 +1321,10 @@ declare namespace MinecraftData {
1321
1321
  // Returns true if the current version is equal to the `other` version's dataVersion
1322
1322
  ['=='](other: string): boolean
1323
1323
  type: 'pc' | 'bedrock'
1324
+ version?: number
1325
+ dataVersion?: number
1326
+ majorVersion?: string
1327
+ minecraftVersion?: string
1324
1328
  }
1325
1329
 
1326
1330
  export interface VersionSet {
@@ -1505,7 +1509,7 @@ declare namespace MinecraftData {
1505
1509
  }
1506
1510
 
1507
1511
  const versions: {
1508
- [key in keyof SupportedVersions]: Version[]
1512
+ [key in keyof SupportedVersions]: ProtocolVersions
1509
1513
  }
1510
1514
  const versionsByMinecraftVersion: VersionSet
1511
1515
  const preNettyVersionsByProtocolVersion: VersionSet
@@ -12,30 +12,42 @@ jobs:
12
12
  timeout-minutes: 14
13
13
 
14
14
  steps:
15
- - name: Use Node.js 14.x
15
+ - name: Use Node.js 18.x
16
16
  uses: actions/setup-node@v1
17
17
  with:
18
- node-version: 14.x
19
- - uses: actions/checkout@v2
18
+ node-version: 18.x
19
+ - name: Checkout node-minecraft-data
20
+ uses: actions/checkout@v2
20
21
  with:
21
22
  repository: PrismarineJS/node-minecraft-data
22
23
  submodules: recursive
23
24
  path: node-mcdata
24
- - run: rm -rf minecraft-data
25
- - uses: actions/checkout@v2
25
+ # Erase the submodule for minecraft-data with a checkout of the current minecraft-data repo
26
+ - run: rm -rf node-mcdata/minecraft-data
27
+ - name: Checkout minecraft-data
28
+ uses: actions/checkout@v2
26
29
  with:
27
30
  path: node-mcdata/minecraft-data
28
- - uses: actions/checkout@v2
31
+ # Now install local node-minecraft-data. Running "prepare" should gen data and types
32
+ - name: Install minecraft-data
33
+ run: |
34
+ cd node-mcdata
35
+ npm install
36
+ npm run prepare
37
+ npm link
38
+ - name: Checkout bedrock-protocol
39
+ uses: actions/checkout@v2
29
40
  with:
30
41
  repository: PrismarineJS/bedrock-protocol
31
42
  path: bedrock-protocol
32
43
  - run: ls -R .
33
- - run: |
44
+ # I forget the correct install order, do both
45
+ - name: Install bedrock-protocol
46
+ run: |
34
47
  cd bedrock-protocol
35
- npm uninstall minecraft-data
36
48
  npm install ../node-mcdata
37
49
  npm i
38
- cd ../node-mcdata
39
- npm run generate:data
40
- - run: npm test
50
+ npm install ../node-mcdata
51
+ - name: Running bedrock-protocol tests
52
+ run: npm test
41
53
  working-directory: bedrock-protocol
@@ -13,7 +13,7 @@ jobs:
13
13
 
14
14
  strategy:
15
15
  matrix:
16
- node-version: [14.x]
16
+ node-version: [18.x]
17
17
 
18
18
  steps:
19
19
  - uses: actions/checkout@v2
@@ -23,7 +23,7 @@ jobs:
23
23
  node-version: ${{ matrix.node-version }}
24
24
  - run: npm install
25
25
  working-directory: tools/js
26
- - run: npm build
26
+ - run: npm run build
27
27
  working-directory: tools/js
28
28
  - run: npm test
29
29
  working-directory: tools/js
@@ -22,4 +22,4 @@ jobs:
22
22
  - name: Runs helper
23
23
  run: cd .github/helper-bot && node index.js
24
24
  env:
25
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1221,7 +1221,7 @@
1221
1221
  "particles": "pc/1.20",
1222
1222
  "blockLoot": "pc/1.20",
1223
1223
  "entityLoot": "pc/1.20",
1224
- "loginPacket": "pc/1.19.2",
1224
+ "loginPacket": "pc/1.20",
1225
1225
  "tints": "pc/1.20",
1226
1226
  "mapIcons": "pc/1.16"
1227
1227
  },
@@ -1245,7 +1245,7 @@
1245
1245
  "particles": "pc/1.20",
1246
1246
  "blockLoot": "pc/1.20",
1247
1247
  "entityLoot": "pc/1.20",
1248
- "loginPacket": "pc/1.19.2",
1248
+ "loginPacket": "pc/1.20",
1249
1249
  "tints": "pc/1.20",
1250
1250
  "mapIcons": "pc/1.16"
1251
1251
  },