@serenityjs/data 0.1.0-beta.4 → 0.1.0-beta.6

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/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ interface BlockStates {
5
5
  interface BlockTypes {
6
6
  identifier: string;
7
7
  loggable: boolean;
8
+ components: Array<string>;
8
9
  states: Array<string>;
9
10
  }
10
11
  interface BlockPermutations {
@@ -15,6 +16,10 @@ interface BlockPermutations {
15
16
  interface ItemTypes {
16
17
  identifier: string;
17
18
  }
19
+ interface EntityTypes {
20
+ identifier: string;
21
+ components: Array<string>;
22
+ }
18
23
  /**
19
24
  * Block states for all blocks in the game.
20
25
  */
@@ -31,6 +36,10 @@ declare const BLOCK_PERMUTATIONS: Array<BlockPermutations>;
31
36
  * Item types for all items in the game.
32
37
  */
33
38
  declare const ITEM_TYPES: Array<ItemTypes>;
39
+ /**
40
+ * Entity types for all entities in the game.
41
+ */
42
+ declare const ENTITY_TYPES: Array<EntityTypes>;
34
43
  /**
35
44
  * Raw NBT data for the canonical block states.
36
45
  */
@@ -48,4 +57,4 @@ declare const CREATIVE_CONTENT: Buffer;
48
57
  */
49
58
  declare const ITEMDATA: Buffer;
50
59
 
51
- export { BIOME_DEFINITION_LIST, BLOCK_PERMUTATIONS, BLOCK_STATES, BLOCK_TYPES, CANONICAL_BLOCK_STATES, CREATIVE_CONTENT, ITEMDATA, ITEM_TYPES };
60
+ export { BIOME_DEFINITION_LIST, BLOCK_PERMUTATIONS, BLOCK_STATES, BLOCK_TYPES, CANONICAL_BLOCK_STATES, CREATIVE_CONTENT, ENTITY_TYPES, ITEMDATA, ITEM_TYPES };
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ __export(src_exports, {
26
26
  BLOCK_TYPES: () => BLOCK_TYPES,
27
27
  CANONICAL_BLOCK_STATES: () => CANONICAL_BLOCK_STATES,
28
28
  CREATIVE_CONTENT: () => CREATIVE_CONTENT,
29
+ ENTITY_TYPES: () => ENTITY_TYPES,
29
30
  ITEMDATA: () => ITEMDATA,
30
31
  ITEM_TYPES: () => ITEM_TYPES
31
32
  });
@@ -45,6 +46,9 @@ var BLOCK_PERMUTATIONS = JSON.parse(
45
46
  var ITEM_TYPES = JSON.parse(
46
47
  (0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "item_types.json"), "utf8")
47
48
  );
49
+ var ENTITY_TYPES = JSON.parse(
50
+ (0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "entity_types.json"), "utf8")
51
+ );
48
52
  var CANONICAL_BLOCK_STATES = (0, import_node_fs.readFileSync)(
49
53
  (0, import_node_path.resolve)(data, "canonical_block_states.nbt")
50
54
  );
@@ -61,6 +65,7 @@ var ITEMDATA = (0, import_node_fs.readFileSync)((0, import_node_path.resolve)(da
61
65
  BLOCK_TYPES,
62
66
  CANONICAL_BLOCK_STATES,
63
67
  CREATIVE_CONTENT,
68
+ ENTITY_TYPES,
64
69
  ITEMDATA,
65
70
  ITEM_TYPES
66
71
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenityjs/data",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.6",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "repository": "https://github.com/SerenityJS/serenity",
@@ -19,9 +19,9 @@
19
19
  "preset": "@serenityjs/jest-presets/jest/node"
20
20
  },
21
21
  "devDependencies": {
22
- "@serenityjs/eslint-config": "*",
23
- "@serenityjs/jest-presets": "*",
24
- "@serenityjs/typescript-config": "*",
22
+ "@serenityjs/eslint-config": "0.1.0-beta.6",
23
+ "@serenityjs/jest-presets": "0.1.0-beta.6",
24
+ "@serenityjs/typescript-config": "0.1.0-beta.6",
25
25
  "@types/jest": "^29.5.12",
26
26
  "@types/node": "^20.11.24",
27
27
  "jest": "^29.7.0",