minecraft-data 3.54.0 → 3.56.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/doc/history.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # History
2
2
 
3
+ ## 3.56.0
4
+
5
+ * update `minecraft-data`
6
+
7
+ ## 3.55.0
8
+
9
+ * update `minecraft-data`
10
+
3
11
  ## 3.54.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 }}
@@ -4130,6 +4130,10 @@
4130
4130
  {
4131
4131
  "name": "pitch",
4132
4132
  "type": "f32"
4133
+ },
4134
+ {
4135
+ "name": "seed",
4136
+ "type": "i64"
4133
4137
  }
4134
4138
  ]
4135
4139
  ],