bedrock-kit 0.0.3

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.
Files changed (79) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -0
  3. package/dist/bedrockKit.d.ts +32 -0
  4. package/dist/bedrockKit.d.ts.map +1 -0
  5. package/dist/bedrockKit.js +33 -0
  6. package/dist/bedrockKit.js.map +1 -0
  7. package/dist/internal/addon.d.ts +198 -0
  8. package/dist/internal/addon.d.ts.map +1 -0
  9. package/dist/internal/addon.js +562 -0
  10. package/dist/internal/addon.js.map +1 -0
  11. package/dist/internal/animation.d.ts +53 -0
  12. package/dist/internal/animation.d.ts.map +1 -0
  13. package/dist/internal/animation.js +47 -0
  14. package/dist/internal/animation.js.map +1 -0
  15. package/dist/internal/attachable.d.ts +31 -0
  16. package/dist/internal/attachable.d.ts.map +1 -0
  17. package/dist/internal/attachable.js +35 -0
  18. package/dist/internal/attachable.js.map +1 -0
  19. package/dist/internal/biome.d.ts +62 -0
  20. package/dist/internal/biome.d.ts.map +1 -0
  21. package/dist/internal/biome.js +75 -0
  22. package/dist/internal/biome.js.map +1 -0
  23. package/dist/internal/block.d.ts +55 -0
  24. package/dist/internal/block.d.ts.map +1 -0
  25. package/dist/internal/block.js +75 -0
  26. package/dist/internal/block.js.map +1 -0
  27. package/dist/internal/entity.d.ts +107 -0
  28. package/dist/internal/entity.d.ts.map +1 -0
  29. package/dist/internal/entity.js +148 -0
  30. package/dist/internal/entity.js.map +1 -0
  31. package/dist/internal/item.d.ts +72 -0
  32. package/dist/internal/item.d.ts.map +1 -0
  33. package/dist/internal/item.js +103 -0
  34. package/dist/internal/item.js.map +1 -0
  35. package/dist/internal/itemStack.d.ts +27 -0
  36. package/dist/internal/itemStack.d.ts.map +1 -0
  37. package/dist/internal/itemStack.js +23 -0
  38. package/dist/internal/itemStack.js.map +1 -0
  39. package/dist/internal/lootTable.d.ts +38 -0
  40. package/dist/internal/lootTable.d.ts.map +1 -0
  41. package/dist/internal/lootTable.js +57 -0
  42. package/dist/internal/lootTable.js.map +1 -0
  43. package/dist/internal/particle.d.ts +35 -0
  44. package/dist/internal/particle.d.ts.map +1 -0
  45. package/dist/internal/particle.js +42 -0
  46. package/dist/internal/particle.js.map +1 -0
  47. package/dist/internal/recipe.d.ts +89 -0
  48. package/dist/internal/recipe.d.ts.map +1 -0
  49. package/dist/internal/recipe.js +198 -0
  50. package/dist/internal/recipe.js.map +1 -0
  51. package/dist/internal/renderController.d.ts +24 -0
  52. package/dist/internal/renderController.d.ts.map +1 -0
  53. package/dist/internal/renderController.js +19 -0
  54. package/dist/internal/renderController.js.map +1 -0
  55. package/dist/internal/sound.d.ts +85 -0
  56. package/dist/internal/sound.d.ts.map +1 -0
  57. package/dist/internal/sound.js +64 -0
  58. package/dist/internal/sound.js.map +1 -0
  59. package/dist/internal/spawnRule.d.ts +44 -0
  60. package/dist/internal/spawnRule.d.ts.map +1 -0
  61. package/dist/internal/spawnRule.js +57 -0
  62. package/dist/internal/spawnRule.js.map +1 -0
  63. package/dist/internal/tag.d.ts +43 -0
  64. package/dist/internal/tag.d.ts.map +1 -0
  65. package/dist/internal/tag.js +8 -0
  66. package/dist/internal/tag.js.map +1 -0
  67. package/dist/internal/tradingTable.d.ts +34 -0
  68. package/dist/internal/tradingTable.d.ts.map +1 -0
  69. package/dist/internal/tradingTable.js +62 -0
  70. package/dist/internal/tradingTable.js.map +1 -0
  71. package/dist/internal/types.d.ts +97 -0
  72. package/dist/internal/types.d.ts.map +1 -0
  73. package/dist/internal/types.js +3 -0
  74. package/dist/internal/types.js.map +1 -0
  75. package/dist/internal/utils.d.ts +39 -0
  76. package/dist/internal/utils.d.ts.map +1 -0
  77. package/dist/internal/utils.js +137 -0
  78. package/dist/internal/utils.js.map +1 -0
  79. package/package.json +35 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Angelo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # bedrockKit
2
+
3
+ > ⚠️ **Experimental:** Version 0.x.x is under active development. APIs may change between patch releases. Pin your version if stability matters.
4
+
5
+ A library for navigating Minecraft Bedrock addon files programmatically.
6
+ Works in Deno, Node.js, and browsers.
7
+ ...
8
+
9
+ ## Documentation
10
+
11
+ Full API documentation is available at [yourwebsite.com/docs](https://yourwebsite.com/docs).
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ npm install bedrock-kit
17
+ ```
18
+
19
+ ## Quick Start
20
+
21
+ ```ts
22
+ import { AddOn } from "bedrock-kit";
23
+
24
+ const addon = new AddOn("./behavior_pack", "./resource_pack");
25
+
26
+ const zombie = addon.getEntity("minecraft:zombie");
27
+ console.log(zombie?.getLootTables());
28
+ ```
29
+
30
+ ## License
31
+
32
+ MIT
@@ -0,0 +1,32 @@
1
+ /**
2
+ * bedrockKit
3
+ *
4
+ * A library for navigating Minecraft Bedrock addon files programmatically.
5
+ * Works in Deno, Node.js, and browsers.
6
+ *
7
+ * - Deno / Node.js: `new AddOn(behaviorPackPath, resourcePackPath)`
8
+ * - Browser: `await AddOn.fromFileList(bpFiles, rpFiles)`
9
+ *
10
+ * @module
11
+ */
12
+ export { AddOn } from "./internal/addon.js";
13
+ export type { PackData } from "./internal/addon.js";
14
+ export type { ItemTextureMap, TerrainTextureMap, RecipeType, LootEntry, LootPool, TradeItem, Trade, TradeTier, SoundFile, } from "./internal/types.js";
15
+ export { Tag } from "./internal/tag.js";
16
+ export type { Ingredient, ShapelessIngredient, FurnaceResolved, BrewingResolved, } from "./internal/tag.js";
17
+ export { LootTable } from "./internal/lootTable.js";
18
+ export { SpawnRule } from "./internal/spawnRule.js";
19
+ export { TradingTable } from "./internal/tradingTable.js";
20
+ export { Item } from "./internal/item.js";
21
+ export { ItemStack } from "./internal/itemStack.js";
22
+ export { Block } from "./internal/block.js";
23
+ export { Biome } from "./internal/biome.js";
24
+ export { Entity } from "./internal/entity.js";
25
+ export { Recipe } from "./internal/recipe.js";
26
+ export { Animation, AnimationController } from "./internal/animation.js";
27
+ export { RenderController } from "./internal/renderController.js";
28
+ export { Particle } from "./internal/particle.js";
29
+ export { Attachable } from "./internal/attachable.js";
30
+ export { SoundDefinition, MusicDefinition } from "./internal/sound.js";
31
+ export type { SoundEvent } from "./internal/sound.js";
32
+ //# sourceMappingURL=bedrockKit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bedrockKit.d.ts","sourceRoot":"","sources":["../src/bedrockKit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGpD,YAAY,EACV,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,SAAS,GACV,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,YAAY,EACV,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGtD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACvE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * bedrockKit
3
+ *
4
+ * A library for navigating Minecraft Bedrock addon files programmatically.
5
+ * Works in Deno, Node.js, and browsers.
6
+ *
7
+ * - Deno / Node.js: `new AddOn(behaviorPackPath, resourcePackPath)`
8
+ * - Browser: `await AddOn.fromFileList(bpFiles, rpFiles)`
9
+ *
10
+ * @module
11
+ */
12
+ // Core
13
+ export { AddOn } from "./internal/addon.js";
14
+ // Tag and recipe ingredient types
15
+ export { Tag } from "./internal/tag.js";
16
+ // Game classes — behavior pack
17
+ export { LootTable } from "./internal/lootTable.js";
18
+ export { SpawnRule } from "./internal/spawnRule.js";
19
+ export { TradingTable } from "./internal/tradingTable.js";
20
+ export { Item } from "./internal/item.js";
21
+ export { ItemStack } from "./internal/itemStack.js";
22
+ export { Block } from "./internal/block.js";
23
+ export { Biome } from "./internal/biome.js";
24
+ export { Entity } from "./internal/entity.js";
25
+ export { Recipe } from "./internal/recipe.js";
26
+ // Game classes — resource pack
27
+ export { Animation, AnimationController } from "./internal/animation.js";
28
+ export { RenderController } from "./internal/renderController.js";
29
+ export { Particle } from "./internal/particle.js";
30
+ export { Attachable } from "./internal/attachable.js";
31
+ // Sound
32
+ export { SoundDefinition, MusicDefinition } from "./internal/sound.js";
33
+ //# sourceMappingURL=bedrockKit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bedrockKit.js","sourceRoot":"","sources":["../src/bedrockKit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO;AACP,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAgB5C,kCAAkC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,+BAA+B;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,+BAA+B;AAC/B,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,QAAQ;AACR,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,198 @@
1
+ import { PackData } from "./utils.js";
2
+ import type { ItemTextureMap, TerrainTextureMap } from "./types.js";
3
+ import { Item } from "./item.js";
4
+ import { Block } from "./block.js";
5
+ import { Entity } from "./entity.js";
6
+ import { Recipe } from "./recipe.js";
7
+ import { LootTable } from "./lootTable.js";
8
+ import { SpawnRule } from "./spawnRule.js";
9
+ import { Biome } from "./biome.js";
10
+ import { Animation, AnimationController } from "./animation.js";
11
+ import { RenderController } from "./renderController.js";
12
+ import { Particle } from "./particle.js";
13
+ import { Attachable } from "./attachable.js";
14
+ import { TradingTable } from "./tradingTable.js";
15
+ import { SoundDefinition, SoundEvent, MusicDefinition } from "./sound.js";
16
+ export type { PackData };
17
+ /**
18
+ * The main entry point for bedrockKit. Represents a Minecraft Bedrock addon
19
+ * consisting of a behavior pack and a resource pack.
20
+ *
21
+ * **Deno / Node.js** — synchronous, reads from disk:
22
+ * ```ts
23
+ * const addon = new AddOn("./vanilla_behavior_pack", "./vanilla_resource_pack");
24
+ * ```
25
+ *
26
+ * **Browser** — async, reads from `File[]` supplied by a folder picker:
27
+ * ```ts
28
+ * const addon = await AddOn.fromFileList(
29
+ * Array.from(bpInput.files!),
30
+ * Array.from(rpInput.files!),
31
+ * );
32
+ * ```
33
+ *
34
+ * Collections are lazy-loaded on first access and cached for subsequent calls.
35
+ * Connective tissue files (texture maps, sound definitions, music definitions, sound events)
36
+ * are loaded eagerly at construction time.
37
+ */
38
+ export declare class AddOn {
39
+ /**
40
+ * Resolved absolute path to the behavior pack directory.
41
+ * Empty string when constructed from browser `File[]`.
42
+ */
43
+ readonly behaviorPackPath: string;
44
+ /**
45
+ * Resolved absolute path to the resource pack directory.
46
+ * Empty string when constructed from browser `File[]`.
47
+ */
48
+ readonly resourcePackPath: string;
49
+ private _items;
50
+ private _blocks;
51
+ private _entities;
52
+ private _recipes;
53
+ private _lootTables;
54
+ private _spawnRules;
55
+ private _biomes;
56
+ private _animations;
57
+ private _animationControllers;
58
+ private _renderControllers;
59
+ private _particles;
60
+ private _attachables;
61
+ private _tradingTables;
62
+ /** The parsed `item_texture.json` from the resource pack. Null if missing. */
63
+ readonly itemTextures: ItemTextureMap | null;
64
+ /** The parsed `terrain_texture.json` from the resource pack. Null if missing. */
65
+ readonly terrainTextures: TerrainTextureMap | null;
66
+ /** All sound definitions from `sounds/sound_definitions.json`, keyed by event ID. */
67
+ readonly soundDefinitions: Map<string, SoundDefinition>;
68
+ /** All music definitions from `sounds/music_definitions.json`, keyed by context key. */
69
+ readonly musicDefinitions: Map<string, MusicDefinition>;
70
+ /** All entity sound event mappings from `sounds.json`, keyed by entity shortname. */
71
+ readonly entitySoundEvents: Map<string, SoundEvent[]>;
72
+ /** All block sound event mappings from `sounds.json`, keyed by block shortname. */
73
+ readonly blockSoundEvents: Map<string, SoundEvent[]>;
74
+ private _bpData;
75
+ private _rpData;
76
+ /**
77
+ * Creates a new AddOn instance that reads from disk.
78
+ * Works in Deno and Node.js. Paths are resolved to absolute on construction.
79
+ * Connective tissue files are loaded immediately; everything else is lazy.
80
+ */
81
+ constructor(behaviorPackPath: string, resourcePackPath: string);
82
+ /** Internal factory used by `fromFileList`. Bypasses disk I/O entirely. */
83
+ private static _fromPackData;
84
+ /**
85
+ * Creates an AddOn from two `File[]` arrays for browser folder pickers.
86
+ *
87
+ * @example
88
+ * ```ts
89
+ * const addon = await AddOn.fromFileList(
90
+ * Array.from(bpInput.files!),
91
+ * Array.from(rpInput.files!),
92
+ * );
93
+ * ```
94
+ */
95
+ static fromFileList(bpFiles: File[], rpFiles: File[]): Promise<AddOn>;
96
+ private get _isBrowser();
97
+ private _bpEntries;
98
+ private _rpEntries;
99
+ /** Returns the item with the given namespaced identifier, or null if not found. */
100
+ getItem(identifier: string): Item | null;
101
+ /** Returns all items loaded from the behavior pack's `items/` directory. */
102
+ getAllItems(): Item[];
103
+ private get _itemStore();
104
+ /** Returns the block with the given namespaced identifier, or null if not found. */
105
+ getBlock(identifier: string): Block | null;
106
+ /** Returns all blocks loaded from the behavior pack's `blocks/` directory. */
107
+ getAllBlocks(): Block[];
108
+ private get _blockStore();
109
+ /** Returns the entity with the given namespaced identifier, or null if not found. */
110
+ getEntity(identifier: string): Entity | null;
111
+ /** Returns all entities found across both packs, merged by identifier. */
112
+ getAllEntities(): Entity[];
113
+ private get _entityStore();
114
+ /** Returns all recipes that produce the given item identifier. */
115
+ getRecipesFor(identifier: string): Recipe[];
116
+ /** Returns all recipes that use the given item identifier as an ingredient. */
117
+ getRecipesUsingItem(identifier: string): Recipe[];
118
+ /** Returns all recipes that use the given tag id as an ingredient. */
119
+ getRecipesUsingTag(tagId: string): Recipe[];
120
+ /** Returns all recipes loaded from the behavior pack's `recipes/` directory. */
121
+ getAllRecipes(): Recipe[];
122
+ private get _recipeStore();
123
+ /**
124
+ * Returns the loot table at the given path relative to the behavior pack root.
125
+ * Normalises backslashes automatically.
126
+ */
127
+ getLootTableByPath(relativePath: string): LootTable | null;
128
+ /** Returns all loot tables loaded from the behavior pack's `loot_tables/` directory. */
129
+ getAllLootTables(): LootTable[];
130
+ private get _lootStore();
131
+ /** Returns the spawn rule for the given entity identifier, or null if none exists. */
132
+ getSpawnRule(identifier: string): SpawnRule | null;
133
+ /** Returns all spawn rules loaded from the behavior pack's `spawn_rules/` directory. */
134
+ getAllSpawnRules(): SpawnRule[];
135
+ private get _spawnStore();
136
+ /** Returns the biome with the given namespaced identifier, or null if not found. */
137
+ getBiome(identifier: string): Biome | null;
138
+ /** Returns all biomes loaded from the behavior pack's `biomes/` directory. */
139
+ getAllBiomes(): Biome[];
140
+ private get _biomeStore();
141
+ /** Returns the animation with the given full ID, or null if not found. */
142
+ getAnimation(id: string): Animation | null;
143
+ /** Returns all animations loaded from the resource pack's `animations/` directory. */
144
+ getAllAnimations(): Animation[];
145
+ private get _animStore();
146
+ /** Returns the animation controller with the given full ID, or null if not found. */
147
+ getAnimationController(id: string): AnimationController | null;
148
+ /** Returns all animation controllers from the resource pack's `animation_controllers/` directory. */
149
+ getAllAnimationControllers(): AnimationController[];
150
+ private get _animCtrlStore();
151
+ /** Returns the render controller with the given full ID, or null if not found. */
152
+ getRenderController(id: string): RenderController | null;
153
+ /** Returns all render controllers from the resource pack's `render_controllers/` directory. */
154
+ getAllRenderControllers(): RenderController[];
155
+ private get _renderCtrlStore();
156
+ /** Returns the particle effect with the given namespaced identifier, or null if not found. */
157
+ getParticle(identifier: string): Particle | null;
158
+ /** Returns all particle effects loaded from the resource pack's `particles/` directory. */
159
+ getAllParticles(): Particle[];
160
+ private get _particleStore();
161
+ /** Returns the attachable for the given item identifier, or null if none exists. */
162
+ getAttachable(identifier: string): Attachable | null;
163
+ /** Returns all attachables loaded from the resource pack's `attachables/` directory. */
164
+ getAllAttachables(): Attachable[];
165
+ private get _attachableStore();
166
+ /** Returns the trading table with the given name (filename without extension), or null. */
167
+ getTradingTable(name: string): TradingTable | null;
168
+ /** Returns all trading tables loaded from the behavior pack's `trading/` directory. */
169
+ getAllTradingTables(): TradingTable[];
170
+ private get _tradingStore();
171
+ /** Returns the sound definition with the given event ID, or null if not found. */
172
+ getSoundDefinition(id: string): SoundDefinition | null;
173
+ /** Returns the music definition for the given context key, or null if not found. */
174
+ getMusicDefinition(id: string): MusicDefinition | null;
175
+ /** Returns the sound events for the given entity shortname, or an empty array. */
176
+ getEntitySoundEvents(shortname: string): SoundEvent[];
177
+ /** Returns the sound events for the given block shortname, or an empty array. */
178
+ getBlockSoundEvents(shortname: string): SoundEvent[];
179
+ private _loadItems;
180
+ private _loadBlocks;
181
+ private _loadEntities;
182
+ private _loadRecipes;
183
+ private _loadLootTables;
184
+ private _loadSpawnRules;
185
+ private _loadBiomes;
186
+ private _loadAnimations;
187
+ private _loadAnimationControllers;
188
+ private _loadRenderControllers;
189
+ private _loadParticles;
190
+ private _loadAttachables;
191
+ private _loadTradingTables;
192
+ private _loadSoundDefinitions;
193
+ private _loadMusicDefinitions;
194
+ private _loadEntitySoundEvents;
195
+ private _loadBlockSoundEvents;
196
+ private _parseSoundEventMap;
197
+ }
198
+ //# sourceMappingURL=addon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addon.d.ts","sourceRoot":"","sources":["../../src/internal/addon.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAOT,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAA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