minecraft-data 2.221.0 → 3.0.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,3 +1,6 @@
1
+ ## 3.0.0
2
+ * update mcdata
3
+
1
4
  ## 2.221.0
2
5
  * update mcdata
3
6
 
package/index.d.ts CHANGED
@@ -979,9 +979,6 @@ declare namespace MinecraftData {
979
979
  protocol: any;
980
980
  protocolComments: any;
981
981
 
982
- findItemOrBlockById(id: number): Block | Item;
983
- findItemOrBlockByName(name: string): Block | Item;
984
-
985
982
  windows: { [id: number]: Window; };
986
983
  windowsByName: { [name: string]: Window; };
987
984
  windowsArray: Window[];
package/lib/loader.js CHANGED
@@ -82,19 +82,6 @@ function mcDataToNode (mcData) {
82
82
  mapIconsByName: indexes.mapIconsByName,
83
83
  mapIconsArray: mcData.mapIcons,
84
84
 
85
- tints: mcData.tints,
86
-
87
- findItemOrBlockById: function (id) {
88
- console.log('{mcData}.findItemOrBlockById() is deprecated, scheduled to be removed on or after April 1 2022')
89
- const item = indexes.itemsById[id]
90
- if (item !== undefined) return item
91
- return indexes.blocksById[id]
92
- },
93
- findItemOrBlockByName: function (name) {
94
- console.log('{mcData}.findItemOrBlockByName() is deprecated, scheduled to be removed on or after April 1 2022')
95
- const item = indexes.itemsByName[name]
96
- if (item !== undefined) return item
97
- return indexes.blocksByName[name]
98
- }
85
+ tints: mcData.tints
99
86
  }
100
87
  }
@@ -1,3 +1,6 @@
1
+ ## 3.0.0
2
+ * remove findItemOrBlockById and findItemOrBlockByName entirely
3
+
1
4
  ## 2.221.0
2
5
  * Add bedrock 1.18.11 data
3
6
  * Fix to 1.18.2 login packet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "2.221.0",
3
+ "version": "3.0.0",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",
@@ -135,9 +135,6 @@ export interface IndexedData {
135
135
  protocol: any;
136
136
  protocolComments: any;
137
137
 
138
- findItemOrBlockById(id: number): Block | Item;
139
- findItemOrBlockByName(name: string): Block | Item;
140
-
141
138
  windows: { [id: number]: Window; };
142
139
  windowsByName: { [name: string]: Window; };
143
140
  windowsArray: Window[];