@nodecraft/rendermite 1.11.1 → 1.11.2

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 (257) hide show
  1. package/README.md +48 -16
  2. package/assets/builtin/mobheads/items/frostbite.json +6 -0
  3. package/assets/builtin/mobheads/models/item/frostbite.json +6 -0
  4. package/assets/mod-models/README.md +24 -0
  5. package/dist/atlas/registry.d.ts +5 -6
  6. package/dist/atlas/registry.js +1 -2
  7. package/dist/atlas/sources.d.ts +2 -2
  8. package/dist/atlas/sources.js +1 -2
  9. package/dist/{atlas-pack-BUadroKy.d.ts → atlas-pack-Dxl3kwT2.d.ts} +1 -1
  10. package/dist/{biomes-BGOF6gRM.js → biomes-DTmzQfnL.js} +1 -1
  11. package/dist/{biomes-CnnhDCnk.d.ts → biomes-_HZ93QNR.d.ts} +1 -1
  12. package/dist/{blend-mJAeQB3C.d.ts → blend-DnogOnaU.d.ts} +1 -1
  13. package/dist/{block-behaviour-B5lD0RfG.d.ts → block-behaviour-D6NwU9bV.d.ts} +6 -6
  14. package/dist/{block-entities-C807EY2I.js → block-entities-Dp3rMxWq.js} +1 -1
  15. package/dist/{block-overrides-BhuJIxKC.js → block-overrides-DMzzzeq_.js} +1 -1
  16. package/dist/blocks/atlas-pack.d.ts +1 -1
  17. package/dist/blocks/atlas-pack.js +1 -2
  18. package/dist/blocks/biomes.d.ts +1 -1
  19. package/dist/blocks/biomes.js +1 -2
  20. package/dist/blocks/block-behaviour.d.ts +1 -1
  21. package/dist/blocks/block-behaviour.js +1 -2
  22. package/dist/blocks/block-entities.d.ts +12 -13
  23. package/dist/blocks/block-entities.js +1 -2
  24. package/dist/blocks/block-overrides.d.ts +7 -8
  25. package/dist/blocks/block-overrides.js +1 -2
  26. package/dist/blocks/blockstate-eval.js +1 -2
  27. package/dist/blocks/cli.d.ts +2 -3
  28. package/dist/blocks/cli.js +1 -2
  29. package/dist/blocks/datapack.d.ts +1 -1
  30. package/dist/blocks/datapack.js +1 -2
  31. package/dist/blocks/ender-storage.d.ts +4 -5
  32. package/dist/blocks/ender-storage.js +1 -2
  33. package/dist/blocks/entities.d.ts +8 -9
  34. package/dist/blocks/entities.js +1 -2
  35. package/dist/blocks/entity-geo.d.ts +4 -5
  36. package/dist/blocks/entity-geo.js +1 -2
  37. package/dist/blocks/entity-models.d.ts +8 -9
  38. package/dist/blocks/entity-models.js +1 -2
  39. package/dist/blocks/entity-sizes.d.ts +4 -4
  40. package/dist/blocks/entity-sizes.js +1 -2
  41. package/dist/blocks/export.d.ts +1 -1
  42. package/dist/blocks/export.js +1 -2
  43. package/dist/blocks/game-rules.js +1 -2
  44. package/dist/blocks/geo-blocks.d.ts +5 -6
  45. package/dist/blocks/geo-blocks.js +1 -2
  46. package/dist/blocks/item-sprites.d.ts +9 -10
  47. package/dist/blocks/item-sprites.js +1 -2
  48. package/dist/blocks/light-bytecode.d.ts +1 -1
  49. package/dist/blocks/light-bytecode.js +1 -2
  50. package/dist/blocks/light-eval.d.ts +1 -1
  51. package/dist/blocks/light-eval.js +1 -2
  52. package/dist/blocks/light.d.ts +8 -9
  53. package/dist/blocks/light.js +1 -2
  54. package/dist/blocks/names.d.ts +1 -1
  55. package/dist/blocks/names.js +1 -2
  56. package/dist/blocks/obj-mesh.d.ts +1 -1
  57. package/dist/blocks/obj-mesh.js +1 -2
  58. package/dist/blocks/pack-format.d.ts +1 -1
  59. package/dist/blocks/pack-format.js +1 -2
  60. package/dist/blocks/sprite-sheet.d.ts +11 -12
  61. package/dist/blocks/sprite-sheet.js +1 -2
  62. package/dist/blocks/states.js +1 -2
  63. package/dist/blocks/tints.d.ts +1 -1
  64. package/dist/blocks/tints.js +1 -2
  65. package/dist/{blockstate-DVb8Mhxc.js → blockstate-D5FgI-Qv.js} +3 -4
  66. package/dist/{blockstate-eval-CcgxVdKb.js → blockstate-eval-Cu-9TWH0.js} +1 -2
  67. package/dist/builtin.d.ts +5 -6
  68. package/dist/builtin.js +1 -2
  69. package/dist/{classfile-BJSs3JH0.js → classfile-YGjbyMPk.js} +3 -4
  70. package/dist/{cli-BUQzP6YF.js → cli-CeEAmdX9.js} +5 -5
  71. package/dist/cli.js +8 -8
  72. package/dist/{datapack-D6eH46ay.js → datapack-BZpO7nv-.js} +8 -9
  73. package/dist/{datapack-CmEg0Vko.d.ts → datapack-DhBAuxw5.d.ts} +1 -1
  74. package/dist/{definition-ColsvWrH.js → definition-Dab22cHd.js} +1 -1
  75. package/dist/{descriptor-Dz2cR-BH.js → descriptor-CJLtRmBc.js} +3 -3
  76. package/dist/{discovery-DWe_kX8W.d.ts → discovery-2Qk3x25z.d.ts} +1 -1
  77. package/dist/{discovery-CD0QqxSF.js → discovery-CMHJfdHQ.js} +13 -15
  78. package/dist/dynamic/generators.d.ts +1 -1
  79. package/dist/dynamic/generators.js +1 -2
  80. package/dist/{encode-TzYXOEId.js → encode-BIAWeZy2.js} +2 -3
  81. package/dist/{encode-BNEYHHR0.d.ts → encode-DZSVif8a.d.ts} +1 -1
  82. package/dist/{ender-storage-CKDiYgYc.js → ender-storage-COyXL-I4.js} +1 -1
  83. package/dist/entities/classfile.js +1 -2
  84. package/dist/entities/geo-model.d.ts +3 -4
  85. package/dist/entities/geo-model.js +1 -2
  86. package/dist/entities/inherit.d.ts +4 -5
  87. package/dist/entities/inherit.js +1 -2
  88. package/dist/entities/jar-classes.js +1 -2
  89. package/dist/entities/link.d.ts +9 -10
  90. package/dist/entities/link.js +1 -2
  91. package/dist/entities/mappings.js +1 -2
  92. package/dist/entities/merge.d.ts +7 -8
  93. package/dist/entities/merge.js +1 -2
  94. package/dist/entities/model-bytecode.d.ts +5 -6
  95. package/dist/entities/model-bytecode.js +1 -2
  96. package/dist/entities/model-code.js +1 -2
  97. package/dist/{entities-rQ4TZjEo.js → entities-4UMp3qXG.js} +4 -5
  98. package/dist/{entity-fallback-BEzCbJq0.js → entity-fallback-ZfurtmEQ.js} +9 -11
  99. package/dist/{entity-geo-DcrcN8TE.js → entity-geo-vJTSO0bB.js} +2 -2
  100. package/dist/{entity-models-D6AMLAy6.js → entity-models-CleLnlV4.js} +9 -10
  101. package/dist/{entity-sizes-Dmr4w0vu.js → entity-sizes-CC6-7DBz.js} +1 -1
  102. package/dist/{entity-textures-DG6NUNyp.js → entity-textures-BS5dI5dz.js} +15 -19
  103. package/dist/{export-CnKiSTiu.d.ts → export-BL_3VVZI.d.ts} +1 -1
  104. package/dist/{export-DE1V-ElS.js → export-BPH-b4LT.js} +25 -27
  105. package/dist/{face-uWXECGNr.d.ts → face-BOsq7v9f.d.ts} +4 -4
  106. package/dist/{face-D6SfTISC.js → face-DtbBpvbY.js} +2 -2
  107. package/dist/{game-rules-Dehe210A.js → game-rules-DrYU_6hd.js} +14 -16
  108. package/dist/{generators-D6giKoab.js → generators-7b5w6s0L.js} +1 -1
  109. package/dist/{generators-hu_vk10m.d.ts → generators-P1goUyvI.d.ts} +1 -1
  110. package/dist/{geo-BOYYFFQn.js → geo-CZHkm59F.js} +10 -12
  111. package/dist/{geo-DsWwuC5o.d.ts → geo-Ci_PGkFI.d.ts} +5 -5
  112. package/dist/{geo-blocks-BQqFfAQT.js → geo-blocks-BYSBc8uq.js} +1 -1
  113. package/dist/{geometry-bUDBhncX.js → geometry-BGTvfmbS.js} +1 -2
  114. package/dist/{geometry--UzHu1Vh.d.ts → geometry-Btiz31vH.d.ts} +1 -1
  115. package/dist/index.d.ts +21 -21
  116. package/dist/index.js +19 -19
  117. package/dist/{inherit-DJ45bOB_.js → inherit-LSSIV8N2.js} +2 -2
  118. package/dist/{item-sprites-CwiEBEAJ.js → item-sprites-Cip695Kk.js} +3 -3
  119. package/dist/{item-styles-BAeneY1R.js → item-styles-D-7N6j1i.js} +1 -1
  120. package/dist/items/blockstate.d.ts +5 -6
  121. package/dist/items/blockstate.js +1 -2
  122. package/dist/items/definition.js +1 -2
  123. package/dist/items/discovery.d.ts +1 -1
  124. package/dist/items/discovery.js +1 -2
  125. package/dist/{jar-DvofBm71.js → jar-Df0Xhw7X.js} +1 -1
  126. package/dist/{jar-4Jg7ufWK.d.ts → jar-IHoEeMdV.d.ts} +1 -1
  127. package/dist/{jar-classes-0wqWbTax.js → jar-classes-C5P3F18e.js} +1 -1
  128. package/dist/{legacy-reshape-CcdstKyI.js → legacy-reshape-ClEZFEVT.js} +6 -8
  129. package/dist/{light-c7l13kka.js → light-Bj0iD-ok.js} +19 -23
  130. package/dist/{light-bytecode-CQzTG8DJ.js → light-bytecode-B4_sP6ri.js} +3 -3
  131. package/dist/{light-eval-BuwUW4Tj.d.ts → light-eval-DJA58Kdg.d.ts} +1 -1
  132. package/dist/{lighting-3FGRC3Af.d.ts → lighting-DYkS-NlV.d.ts} +2 -2
  133. package/dist/{lighting--5myudVu.js → lighting-f_oZTiOx.js} +2 -2
  134. package/dist/{link-IDjVJ2Ij.js → link-CxzBRqeB.js} +4 -5
  135. package/dist/{loader-qOH0Jynq.js → loader-Ckhy0t8m.js} +3 -4
  136. package/dist/{loader-C4gsX_wO.d.ts → loader-CrPTL0zk.d.ts} +1 -1
  137. package/dist/{loader-BYyPIs9f.d.ts → loader-mGAKSRp6.d.ts} +2 -2
  138. package/dist/{manager-D6zXmFrO.js → manager-B1VPl4UQ.js} +4 -5
  139. package/dist/{manager-Ct0dEOMg.d.ts → manager-Ey26G_3e.d.ts} +1 -1
  140. package/dist/{model-bytecode-CXYAZ5dX.js → model-bytecode-Cp4LGfjI.js} +5 -6
  141. package/dist/{model-code-C5Au_FKU.js → model-code-B11iaTy1.js} +1 -1
  142. package/dist/models/loader.d.ts +1 -1
  143. package/dist/models/loader.js +1 -2
  144. package/dist/models/types.d.ts +1 -1
  145. package/dist/{models-BsYA-NZg.js → models-CvFehP26.js} +1 -1
  146. package/dist/mods/models.d.ts +3 -4
  147. package/dist/mods/models.js +1 -2
  148. package/dist/mods/prepare.d.ts +1 -1
  149. package/dist/mods/prepare.js +1 -2
  150. package/dist/mods/synthesize.d.ts +5 -6
  151. package/dist/mods/synthesize.js +1 -2
  152. package/dist/mods/tints.d.ts +7 -8
  153. package/dist/mods/tints.js +1 -2
  154. package/dist/{names-D1abAVIB.d.ts → names-D30ZIXkK.d.ts} +1 -1
  155. package/dist/{obj-NxBaySXt.js → obj-BWsU8pYz.js} +16 -18
  156. package/dist/{obj-mesh-BBSLG2Fv.js → obj-mesh-WShUgD4g.js} +1 -1
  157. package/dist/{obj-mesh-CzL0lOlJ.d.ts → obj-mesh-yN3ttPYf.d.ts} +2 -2
  158. package/dist/output/encode.d.ts +1 -1
  159. package/dist/output/encode.js +1 -2
  160. package/dist/output/item-styles.d.ts +3 -4
  161. package/dist/output/item-styles.js +1 -2
  162. package/dist/output/minify.js +1 -2
  163. package/dist/output/stylesheet.d.ts +1 -1
  164. package/dist/output/stylesheet.js +1 -2
  165. package/dist/pack.d.ts +5 -5
  166. package/dist/pack.js +1 -1
  167. package/dist/{pipeline-CCfkRth7.js → pipeline-DV4hIRMp.js} +12 -12
  168. package/dist/{pipeline-DuPF3sap.d.ts → pipeline-DmLQ49DB.d.ts} +4 -4
  169. package/dist/{pool-CKGp1qup.js → pool-Co7kPWwN.js} +1 -1
  170. package/dist/{prepare-DkJkZXuQ.js → prepare-BC5PYUmn.js} +7 -8
  171. package/dist/{prepare-Ce5SpR7Y.d.ts → prepare-BpwBH_m9.d.ts} +1 -1
  172. package/dist/{prepare-BPzsZI_S.d.ts → prepare-CZu44oTS.d.ts} +1 -1
  173. package/dist/{prepare-sj36BP90.js → prepare-DJnJQYtn.js} +9 -10
  174. package/dist/{rasterizer-M9Y7mn-W.js → rasterizer-B3tOyG4B.js} +5 -6
  175. package/dist/{rasterizer-DjnurUgD.d.ts → rasterizer-UBaTPhH4.d.ts} +1 -1
  176. package/dist/{registry-DafxsAhG.js → registry-CNFi94eo.js} +5 -7
  177. package/dist/render/blend.d.ts +1 -1
  178. package/dist/render/blend.js +1 -2
  179. package/dist/render/compose.d.ts +4 -5
  180. package/dist/render/compose.js +1 -2
  181. package/dist/render/entity-fallback.d.ts +12 -13
  182. package/dist/render/entity-fallback.js +1 -2
  183. package/dist/render/face.d.ts +1 -1
  184. package/dist/render/face.js +1 -2
  185. package/dist/render/fluid-bucket.d.ts +4 -5
  186. package/dist/render/fluid-bucket.js +1 -2
  187. package/dist/render/geo.d.ts +1 -1
  188. package/dist/render/geo.js +1 -2
  189. package/dist/render/geometry.d.ts +1 -1
  190. package/dist/render/geometry.js +1 -2
  191. package/dist/render/legacy-tints.d.ts +4 -5
  192. package/dist/render/legacy-tints.js +1 -2
  193. package/dist/render/lighting.d.ts +1 -1
  194. package/dist/render/lighting.js +1 -2
  195. package/dist/render/obj.d.ts +10 -10
  196. package/dist/render/obj.js +1 -2
  197. package/dist/render/pipeline.d.ts +1 -1
  198. package/dist/render/pipeline.js +1 -2
  199. package/dist/render/rasterizer.d.ts +1 -1
  200. package/dist/render/rasterizer.js +1 -2
  201. package/dist/render/renderer.d.ts +1 -1
  202. package/dist/render/renderer.js +1 -2
  203. package/dist/render/tints.d.ts +1 -1
  204. package/dist/render/tints.js +1 -2
  205. package/dist/render/vector.js +1 -2
  206. package/dist/{renderer-QgROYvPv.d.ts → renderer-DZSDiXL0.d.ts} +6 -6
  207. package/dist/resources/cache.d.ts +2 -3
  208. package/dist/resources/cache.js +1 -2
  209. package/dist/resources/cached.d.ts +3 -4
  210. package/dist/resources/cached.js +1 -2
  211. package/dist/resources/descriptor.d.ts +1 -1
  212. package/dist/resources/descriptor.js +1 -2
  213. package/dist/resources/entity-textures.d.ts +19 -20
  214. package/dist/resources/entity-textures.js +1 -2
  215. package/dist/resources/jar.d.ts +1 -1
  216. package/dist/resources/jar.js +1 -2
  217. package/dist/resources/locator.js +1 -2
  218. package/dist/resources/manager.d.ts +1 -1
  219. package/dist/resources/manager.js +1 -2
  220. package/dist/resources/read-ahead.d.ts +2 -3
  221. package/dist/resources/read-ahead.js +1 -2
  222. package/dist/resources/synthetic.d.ts +1 -1
  223. package/dist/resources/synthetic.js +1 -2
  224. package/dist/resources/zip-reader.d.ts +2 -3
  225. package/dist/resources/zip-reader.js +1 -2
  226. package/dist/{run-Bf5TLTJw.js → run-5Rc8hTHT.js} +15 -11
  227. package/dist/{run-CxB1qabg.d.ts → run-CfvR5OAR.d.ts} +3 -3
  228. package/dist/run.d.ts +1 -1
  229. package/dist/run.js +2 -2
  230. package/dist/{sources-DYY5Qu-t.js → sources-BsEa9YPc.js} +1 -1
  231. package/dist/{sources-sFtealLJ.d.ts → sources-ByuTQR_o.d.ts} +7 -3
  232. package/dist/{sprite-sheet-BWsLl0Vd.js → sprite-sheet-BQsUioOJ.js} +6 -7
  233. package/dist/{stylesheet-C61VrCAV.js → stylesheet-Cin7eCyU.js} +6 -7
  234. package/dist/{stylesheet-DxHkk4qA.d.ts → stylesheet-XJ-kH6kk.d.ts} +1 -1
  235. package/dist/{synthesize-jTjVjPAt.js → synthesize-DNvUwWhZ.js} +3 -4
  236. package/dist/{synthetic-CWtFtAkR.d.ts → synthetic-C8_0G5iP.d.ts} +1 -1
  237. package/dist/{synthetic-rc9BPT4P.js → synthetic-y9Mr-wB2.js} +0 -0
  238. package/dist/textures/loader.d.ts +1 -1
  239. package/dist/textures/loader.js +1 -2
  240. package/dist/textures/overlay.d.ts +3 -4
  241. package/dist/textures/overlay.js +1 -2
  242. package/dist/{tints-B0a1K11c.d.ts → tints-BNS9JGf7.d.ts} +2 -2
  243. package/dist/{tints-DwFmEkf3.d.ts → tints-CvHlfvDC.d.ts} +2 -2
  244. package/dist/{tints-B3WQcPtx.js → tints-Cw5okshA.js} +1 -1
  245. package/dist/{tints-CZeyKzMv.js → tints-DhSA5SCg.js} +3 -3
  246. package/dist/{types-qlp3I8_-.d.ts → types-BQQzfHEY.d.ts} +4 -0
  247. package/dist/versions/download.d.ts +2 -3
  248. package/dist/versions/download.js +1 -2
  249. package/dist/versions/legacy-reshape.d.ts +3 -4
  250. package/dist/versions/legacy-reshape.js +1 -2
  251. package/dist/versions/prepare.d.ts +1 -1
  252. package/dist/versions/prepare.js +1 -2
  253. package/dist/workers/pool.d.ts +6 -7
  254. package/dist/workers/pool.js +1 -2
  255. package/dist/workers/render-worker.d.ts +6 -7
  256. package/dist/workers/render-worker.js +2 -2
  257. package/package.json +9 -9
@@ -1,11 +1,10 @@
1
- import { a as ResourceManager } from "../manager-Ct0dEOMg.js";
2
- import { P as BlockPackModel } from "../block-behaviour-B5lD0RfG.js";
1
+ import { a as ResourceManager } from "../manager-Ey26G_3e.js";
2
+ import { P as BlockPackModel } from "../block-behaviour-D6NwU9bV.js";
3
3
  //#region src/blocks/geo-blocks.d.ts
4
- interface GeoBlockOverride {
4
+ export interface GeoBlockOverride {
5
5
  model: BlockPackModel;
6
6
  javaFacing: boolean;
7
7
  }
8
8
  /** Converts a Java-rendered Gecko block into a world-scale 0–16 triangle mesh. */
9
- declare function geoBlockModel(blockId: string, resources: ResourceManager): Promise<GeoBlockOverride | null>;
10
- //#endregion
11
- export { GeoBlockOverride, geoBlockModel };
9
+ export declare function geoBlockModel(blockId: string, resources: ResourceManager): Promise<GeoBlockOverride | null>;
10
+ //#endregion
@@ -1,2 +1 @@
1
- import { t as geoBlockModel } from "../geo-blocks-BQqFfAQT.js";
2
- export { geoBlockModel };
1
+ export { t as geoBlockModel } from "../geo-blocks-BYSBc8uq.js";
@@ -1,20 +1,20 @@
1
- import { a as ResourceManager } from "../manager-Ct0dEOMg.js";
2
- import { i as TextureLoader } from "../loader-C4gsX_wO.js";
3
- import { t as ModelLoader } from "../loader-BYyPIs9f.js";
4
- import { Q as ItemPackEntry } from "../block-behaviour-B5lD0RfG.js";
1
+ import { a as ResourceManager } from "../manager-Ey26G_3e.js";
2
+ import { i as TextureLoader } from "../loader-CrPTL0zk.js";
3
+ import { t as ModelLoader } from "../loader-mGAKSRp6.js";
4
+ import { Q as ItemPackEntry } from "../block-behaviour-D6NwU9bV.js";
5
5
  //#region src/blocks/item-sprites.d.ts
6
- interface ItemSpriteFailure {
6
+ export interface ItemSpriteFailure {
7
7
  id: string;
8
8
  reason: string;
9
9
  }
10
- interface ItemSpriteResult {
10
+ export interface ItemSpriteResult {
11
11
  /** Flat items only, by item id; anything absent is the consumer's block-model job. */
12
12
  items: Record<string, ItemPackEntry>;
13
13
  /** Sprite ids to pack, which is every layer of every entry. */
14
14
  spriteIds: Set<string>;
15
15
  failures: ItemSpriteFailure[];
16
16
  }
17
- interface CollectItemSpritesOptions {
17
+ export interface CollectItemSpritesOptions {
18
18
  resources: ResourceManager;
19
19
  models: ModelLoader;
20
20
  textures: TextureLoader;
@@ -29,6 +29,5 @@ interface CollectItemSpritesOptions {
29
29
  itemIds: readonly string[];
30
30
  onProgress?: (done: number, total: number) => void;
31
31
  }
32
- declare function collectItemSprites(options: CollectItemSpritesOptions): Promise<ItemSpriteResult>;
33
- //#endregion
34
- export { CollectItemSpritesOptions, ItemSpriteFailure, ItemSpriteResult, collectItemSprites };
32
+ export declare function collectItemSprites(options: CollectItemSpritesOptions): Promise<ItemSpriteResult>;
33
+ //#endregion
@@ -1,2 +1 @@
1
- import { t as collectItemSprites } from "../item-sprites-CwiEBEAJ.js";
2
- export { collectItemSprites };
1
+ export { t as collectItemSprites } from "../item-sprites-Cip695Kk.js";
@@ -1,2 +1,2 @@
1
- import { _ as extractBlockLight, a as Handle, c as LightExtraction, d as MemberReference, f as PropertyDomain, g as Value, h as StateProbe, l as LightGetter, m as Registration, o as LambdaValue, p as PropsCall, s as LightCodeSource, u as LightSpec } from "../block-behaviour-B5lD0RfG.js";
1
+ import { _ as extractBlockLight, a as Handle, c as LightExtraction, d as MemberReference, f as PropertyDomain, g as Value, h as StateProbe, l as LightGetter, m as Registration, o as LambdaValue, p as PropsCall, s as LightCodeSource, u as LightSpec } from "../block-behaviour-D6NwU9bV.js";
2
2
  export { Handle, LambdaValue, LightCodeSource, LightExtraction, LightGetter, LightSpec, MemberReference, PropertyDomain, PropsCall, Registration, StateProbe, Value, extractBlockLight };
@@ -1,2 +1 @@
1
- import { t as extractBlockLight } from "../light-bytecode-CQzTG8DJ.js";
2
- export { extractBlockLight };
1
+ export { t as extractBlockLight } from "../light-bytecode-B4_sP6ri.js";
@@ -1,2 +1,2 @@
1
- import { t as blockLightLevel } from "../light-eval-BuwUW4Tj.js";
1
+ import { t as blockLightLevel } from "../light-eval-DJA58Kdg.js";
2
2
  export { blockLightLevel };
@@ -1,2 +1 @@
1
- import { t as blockLightLevel } from "../light-eval-BsJJoSv4.js";
2
- export { blockLightLevel };
1
+ export { t as blockLightLevel } from "../light-eval-BsJJoSv4.js";
@@ -1,7 +1,7 @@
1
1
  import { t as ClassSource } from "../jar-classes-CSRrPAUy.js";
2
- import { j as BlockPackLight, t as BlockBehaviour } from "../block-behaviour-B5lD0RfG.js";
2
+ import { j as BlockPackLight, t as BlockBehaviour } from "../block-behaviour-D6NwU9bV.js";
3
3
  //#region src/blocks/light.d.ts
4
- interface CollectBlockLightOptions {
4
+ export interface CollectBlockLightOptions {
5
5
  version: string;
6
6
  /** Where mappings cache; the jar cache directory. */
7
7
  cacheDir: string;
@@ -14,7 +14,7 @@ interface CollectBlockLightOptions {
14
14
  trace?: readonly string[];
15
15
  onProgress?: (done: number, total: number) => void;
16
16
  }
17
- interface BlockLightResult {
17
+ export interface BlockLightResult {
18
18
  /** Only the blocks that emit; absent is 0. */
19
19
  light: Record<string, BlockPackLight>;
20
20
  /**
@@ -38,8 +38,8 @@ interface BlockLightResult {
38
38
  * Blockstate files that describe no block. The item frames are entities whose model the game looks up
39
39
  * through a blockstate, so they have no registration to find and emit nothing.
40
40
  */
41
- declare const NOT_BLOCKS: ReadonlySet<string>;
42
- declare function collectBlockLight(options: CollectBlockLightOptions): Promise<BlockLightResult>;
41
+ export declare const NOT_BLOCKS: ReadonlySet<string>;
42
+ export declare function collectBlockLight(options: CollectBlockLightOptions): Promise<BlockLightResult>;
43
43
  /**
44
44
  * Vanilla's emitters, transcribed from `Blocks.java` across 1.13 → 26.2 and checked against the wiki.
45
45
  *
@@ -48,8 +48,7 @@ declare function collectBlockLight(options: CollectBlockLightOptions): Promise<B
48
48
  * the extractor emits — the commonest level as `default`, the rest as the fewest properties that
49
49
  * decide them — so the two can be compared directly.
50
50
  */
51
- declare const VANILLA_LIGHT: Record<string, BlockPackLight>;
51
+ export declare const VANILLA_LIGHT: Record<string, BlockPackLight>;
52
52
  /** The vanilla table as it stood at a version: `VANILLA_LIGHT` with the history applied. */
53
- declare function vanillaLightAt(version: string): Record<string, BlockPackLight>;
54
- //#endregion
55
- export { BlockLightResult, CollectBlockLightOptions, NOT_BLOCKS, VANILLA_LIGHT, collectBlockLight, vanillaLightAt };
53
+ export declare function vanillaLightAt(version: string): Record<string, BlockPackLight>;
54
+ //#endregion
@@ -1,2 +1 @@
1
- import { i as vanillaLightAt, n as VANILLA_LIGHT, r as collectBlockLight, t as NOT_BLOCKS } from "../light-c7l13kka.js";
2
- export { NOT_BLOCKS, VANILLA_LIGHT, collectBlockLight, vanillaLightAt };
1
+ export { t as NOT_BLOCKS, n as VANILLA_LIGHT, r as collectBlockLight, i as vanillaLightAt } from "../light-Bj0iD-ok.js";
@@ -1,2 +1,2 @@
1
- import { n as collectNames, t as NamePack } from "../names-D1abAVIB.js";
1
+ import { n as collectNames, t as NamePack } from "../names-D30ZIXkK.js";
2
2
  export { NamePack, collectNames };
@@ -1,2 +1 @@
1
- import { t as collectNames } from "../names-GLa5TyL7.js";
2
- export { collectNames };
1
+ export { t as collectNames } from "../names-GLa5TyL7.js";
@@ -1,2 +1,2 @@
1
- import { i as buildObjMesh, n as ObjMesh, r as ObjMeshError, t as MeshGroup } from "../obj-mesh-CzL0lOlJ.js";
1
+ import { i as buildObjMesh, n as ObjMesh, r as ObjMeshError, t as MeshGroup } from "../obj-mesh-yN3ttPYf.js";
2
2
  export { MeshGroup, ObjMesh, ObjMeshError, buildObjMesh };
@@ -1,2 +1 @@
1
- import { n as buildObjMesh, t as ObjMeshError } from "../obj-mesh-BBSLG2Fv.js";
2
- export { ObjMeshError, buildObjMesh };
1
+ export { t as ObjMeshError, n as buildObjMesh } from "../obj-mesh-WShUgD4g.js";
@@ -1,2 +1,2 @@
1
- import { $ as ItemPackLayer, A as BlockPackItemsFile, B as BlockPackStatesFile, C as BlockPackBlockState, D as BlockPackEntityModelsFile, E as BlockPackEntitiesFile, F as BlockPackModelsFile, G as EntityPackCube, H as BlockPackTintsFile, I as BlockPackNamesFile, J as EntityPackModel, K as EntityPackCubeFace, L as BlockPackRenderLayer, M as BlockPackLightFile, N as BlockPackMetaFile, O as BlockPackFace, P as BlockPackModel, Q as ItemPackEntry, R as BlockPackSprite, S as BlockPackBiomesFile, T as BlockPackElement, U as BlockPackVariant, V as BlockPackTagsFile, W as EQUIPMENT_SLOTS, X as EquipmentPack, Y as EntityPackPart, Z as EquipmentSlot, b as BlockPackAtlasPage, j as BlockPackLight, k as BlockPackGameRulesFile, q as EntityPackEntry, v as BlockPackAdvancementsFile, w as BlockPackBlockStatesFile, x as BlockPackBehaviourFile, y as BlockPackAtlasFile, z as BlockPackSpriteFrame } from "../block-behaviour-B5lD0RfG.js";
1
+ import { $ as ItemPackLayer, A as BlockPackItemsFile, B as BlockPackStatesFile, C as BlockPackBlockState, D as BlockPackEntityModelsFile, E as BlockPackEntitiesFile, F as BlockPackModelsFile, G as EntityPackCube, H as BlockPackTintsFile, I as BlockPackNamesFile, J as EntityPackModel, K as EntityPackCubeFace, L as BlockPackRenderLayer, M as BlockPackLightFile, N as BlockPackMetaFile, O as BlockPackFace, P as BlockPackModel, Q as ItemPackEntry, R as BlockPackSprite, S as BlockPackBiomesFile, T as BlockPackElement, U as BlockPackVariant, V as BlockPackTagsFile, W as EQUIPMENT_SLOTS, X as EquipmentPack, Y as EntityPackPart, Z as EquipmentSlot, b as BlockPackAtlasPage, j as BlockPackLight, k as BlockPackGameRulesFile, q as EntityPackEntry, v as BlockPackAdvancementsFile, w as BlockPackBlockStatesFile, x as BlockPackBehaviourFile, y as BlockPackAtlasFile, z as BlockPackSpriteFrame } from "../block-behaviour-D6NwU9bV.js";
2
2
  export { BlockPackAdvancementsFile, BlockPackAtlasFile, BlockPackAtlasPage, BlockPackBehaviourFile, BlockPackBiomesFile, BlockPackBlockState, BlockPackBlockStatesFile, BlockPackElement, BlockPackEntitiesFile, BlockPackEntityModelsFile, BlockPackFace, BlockPackGameRulesFile, BlockPackItemsFile, BlockPackLight, BlockPackLightFile, BlockPackMetaFile, BlockPackModel, BlockPackModelsFile, BlockPackNamesFile, BlockPackRenderLayer, BlockPackSprite, BlockPackSpriteFrame, BlockPackStatesFile, BlockPackTagsFile, BlockPackTintsFile, BlockPackVariant, EQUIPMENT_SLOTS, EntityPackCube, EntityPackCubeFace, EntityPackEntry, EntityPackModel, EntityPackPart, EquipmentPack, EquipmentSlot, ItemPackEntry, ItemPackLayer };
@@ -1,2 +1 @@
1
- import { t as EQUIPMENT_SLOTS } from "../pack-format-BP5dJMYY.js";
2
- export { EQUIPMENT_SLOTS };
1
+ export { t as EQUIPMENT_SLOTS } from "../pack-format-BP5dJMYY.js";
@@ -1,6 +1,6 @@
1
- import { i as TextureLoader, r as Texture } from "../loader-C4gsX_wO.js";
2
- import { i as PackedPage } from "../atlas-pack-BUadroKy.js";
3
- import { L as BlockPackRenderLayer, R as BlockPackSprite } from "../block-behaviour-B5lD0RfG.js";
1
+ import { i as TextureLoader, r as Texture } from "../loader-CrPTL0zk.js";
2
+ import { i as PackedPage } from "../atlas-pack-Dxl3kwT2.js";
3
+ import { L as BlockPackRenderLayer, R as BlockPackSprite } from "../block-behaviour-D6NwU9bV.js";
4
4
  //#region src/blocks/sprite-sheet.d.ts
5
5
  /**
6
6
  * Vanilla's own id for the missing-texture sprite. A face whose texture does
@@ -10,20 +10,20 @@ import { L as BlockPackRenderLayer, R as BlockPackSprite } from "../block-behavi
10
10
  * put holes in geometry the player can see, and would read as our bug rather
11
11
  * than the mod's.
12
12
  */
13
- declare const MISSING_SPRITE = "minecraft:missingno";
13
+ export declare const MISSING_SPRITE = "minecraft:missingno";
14
14
  /** `MissingTextureAtlasSprite`: 16x16, black and magenta in 8px quarters. */
15
- declare function missingTexture(): Texture;
15
+ export declare function missingTexture(): Texture;
16
16
  /**
17
17
  * Alpha decides the render layer: vanilla assets do not state cutout versus
18
18
  * translucent (`render_type` is a loader extension adopted only recently), and
19
19
  * inferring it covers mods for free.
20
20
  */
21
- declare function inferRenderLayer(frames: Texture[]): BlockPackRenderLayer;
22
- interface SpriteSheetFailure {
21
+ export declare function inferRenderLayer(frames: Texture[]): BlockPackRenderLayer;
22
+ export interface SpriteSheetFailure {
23
23
  id: string;
24
24
  reason: string;
25
25
  }
26
- interface BuildSpriteSheetOptions {
26
+ export interface BuildSpriteSheetOptions {
27
27
  /** Edge-extended border per sprite side (default 4). */
28
28
  padding?: number;
29
29
  /** Ceiling on a page's dimensions (default 4096). */
@@ -36,7 +36,7 @@ interface BuildSpriteSheetOptions {
36
36
  includeMissing?: boolean;
37
37
  onProgress?: (done: number, total: number) => void;
38
38
  }
39
- interface SpriteSheet {
39
+ export interface SpriteSheet {
40
40
  pages: PackedPage[];
41
41
  /** Ready for `atlas.json`, unsorted — the caller decides the key order. */
42
42
  sprites: Record<string, BlockPackSprite>;
@@ -54,6 +54,5 @@ interface SpriteSheet {
54
54
  * did not make it. Ids are packed in sorted order so an unchanged input produces
55
55
  * a byte-identical atlas.
56
56
  */
57
- declare function buildSpriteSheet(ids: Iterable<string>, textures: TextureLoader, options?: BuildSpriteSheetOptions): Promise<SpriteSheet>;
58
- //#endregion
59
- export { BuildSpriteSheetOptions, MISSING_SPRITE, SpriteSheet, SpriteSheetFailure, buildSpriteSheet, inferRenderLayer, missingTexture };
57
+ export declare function buildSpriteSheet(ids: Iterable<string>, textures: TextureLoader, options?: BuildSpriteSheetOptions): Promise<SpriteSheet>;
58
+ //#endregion
@@ -1,2 +1 @@
1
- import { i as missingTexture, n as buildSpriteSheet, r as inferRenderLayer, t as MISSING_SPRITE } from "../sprite-sheet-BWsLl0Vd.js";
2
- export { MISSING_SPRITE, buildSpriteSheet, inferRenderLayer, missingTexture };
1
+ export { t as MISSING_SPRITE, n as buildSpriteSheet, r as inferRenderLayer, i as missingTexture } from "../sprite-sheet-BQsUioOJ.js";
@@ -1,2 +1 @@
1
- import { t as readBlockStates } from "../states-BvoZA-ql.js";
2
- export { readBlockStates };
1
+ export { t as readBlockStates } from "../states-BvoZA-ql.js";
@@ -1,2 +1,2 @@
1
- import { a as buildBlockTints, i as UNREGISTERED_TINTS, n as BlockTintPack, r as BuiltBlockTints, t as BlockTint } from "../tints-DwFmEkf3.js";
1
+ import { a as buildBlockTints, i as UNREGISTERED_TINTS, n as BlockTintPack, r as BuiltBlockTints, t as BlockTint } from "../tints-CvHlfvDC.js";
2
2
  export { BlockTint, BlockTintPack, BuiltBlockTints, UNREGISTERED_TINTS, buildBlockTints };
@@ -1,2 +1 @@
1
- import { n as buildBlockTints, t as UNREGISTERED_TINTS } from "../tints-Cl0r-Ol3.js";
2
- export { UNREGISTERED_TINTS, buildBlockTints };
1
+ export { t as UNREGISTERED_TINTS, n as buildBlockTints } from "../tints-Cl0r-Ol3.js";
@@ -69,10 +69,9 @@ async function defaultBlockStateModel(resources, id) {
69
69
  const variant = firstOf(value);
70
70
  if (!variant) continue;
71
71
  const score = scoreVariant(key, variant);
72
- if (score > bestScore) {
73
- best = variant;
74
- bestScore = score;
75
- }
72
+ if (score <= bestScore) continue;
73
+ best = variant;
74
+ bestScore = score;
76
75
  }
77
76
  if (!best) {
78
77
  for (const part of json.multipart ?? []) if (part.when === void 0) {
@@ -96,8 +96,7 @@ function parseCondition(raw, context) {
96
96
  * `base_model` is what the block looks like before whatever the loader does at
97
97
  * runtime — for FramedBlocks' 233 camouflage blocks, the uncamouflaged cube.
98
98
  */
99
- function parseDefinitionLoader(namespace, json, context) {
100
- const entries = json;
99
+ function parseDefinitionLoader(namespace, entries, context) {
101
100
  const loader = Object.entries(entries).find(([name]) => name === "definition_type" || name.endsWith(":definition_type"))?.[1];
102
101
  if (typeof loader !== "string") return null;
103
102
  const base = entries.base_model;
package/dist/builtin.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  //#region src/builtin.d.ts
2
- declare function builtinPackPath(era: 'modern' | 'legacy'): string;
3
- declare function bedCompatPath(): string;
2
+ export declare function builtinPackPath(era: 'modern' | 'legacy'): string;
3
+ export declare function bedCompatPath(): string;
4
4
  /** Curated tint overrides for mod items that register their colors in code. */
5
- declare function modTintPackPath(): string;
5
+ export declare function modTintPackPath(): string;
6
6
  /** Curated geometry for mod items the game draws in code (builtin/entity). */
7
- declare function modModelPackPath(): string;
8
- //#endregion
9
- export { bedCompatPath, builtinPackPath, modModelPackPath, modTintPackPath };
7
+ export declare function modModelPackPath(): string;
8
+ //#endregion
package/dist/builtin.js CHANGED
@@ -1,2 +1 @@
1
- import { i as modTintPackPath, n as builtinPackPath, r as modModelPackPath, t as bedCompatPath } from "./builtin-WkWjATeh.js";
2
- export { bedCompatPath, builtinPackPath, modModelPackPath, modTintPackPath };
1
+ export { t as bedCompatPath, n as builtinPackPath, r as modModelPackPath, i as modTintPackPath } from "./builtin-WkWjATeh.js";
@@ -278,10 +278,9 @@ function parseClassFile(bytes) {
278
278
  if (!row) return null;
279
279
  for (const argument of row.argumentIndexes) {
280
280
  const handle = constants[argument];
281
- if (handle?.tag === "methodHandle" && handle.referenceIndex !== void 0) {
282
- const target = reference(handle.referenceIndex);
283
- if (target) return target;
284
- }
281
+ if (handle?.tag !== "methodHandle" || handle.referenceIndex === void 0) continue;
282
+ const target = reference(handle.referenceIndex);
283
+ if (target) return target;
285
284
  }
286
285
  return null;
287
286
  };
@@ -1,9 +1,9 @@
1
1
  import { n as builtinPackPath } from "./builtin-WkWjATeh.js";
2
- import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-D6zXmFrO.js";
3
- import { a as prepareVersionResources, r as compareVersions } from "./prepare-DkJkZXuQ.js";
4
- import { t as exportBlockPack } from "./export-DE1V-ElS.js";
5
- import { n as layeredClasses, t as JarClassReader } from "./jar-classes-0wqWbTax.js";
6
- import { n as prepareModResources } from "./prepare-sj36BP90.js";
2
+ import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
3
+ import { a as prepareVersionResources, r as compareVersions } from "./prepare-BC5PYUmn.js";
4
+ import { t as exportBlockPack } from "./export-BPH-b4LT.js";
5
+ import { n as layeredClasses, t as JarClassReader } from "./jar-classes-C5P3F18e.js";
6
+ import { n as prepareModResources } from "./prepare-DJnJQYtn.js";
7
7
  import { t as downloadClientJar } from "./download-1wAfrGKx.js";
8
8
  import path from "node:path";
9
9
  import os from "node:os";
package/dist/cli.js CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as builtinPackPath, t as bedCompatPath } from "./builtin-WkWjATeh.js";
3
- import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-D6zXmFrO.js";
4
- import { t as JarResourceManager } from "./jar-DvofBm71.js";
5
- import { a as prepareVersionResources, i as eraForVersion, n as GEOMETRY_DONOR_VERSIONS } from "./prepare-DkJkZXuQ.js";
6
- import { t as curatedModelOverrides } from "./models-BsYA-NZg.js";
7
- import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-CZeyKzMv.js";
3
+ import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
4
+ import { t as JarResourceManager } from "./jar-Df0Xhw7X.js";
5
+ import { a as prepareVersionResources, i as eraForVersion, n as GEOMETRY_DONOR_VERSIONS } from "./prepare-BC5PYUmn.js";
6
+ import { t as curatedModelOverrides } from "./models-CvFehP26.js";
7
+ import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-DhSA5SCg.js";
8
8
  import { t as downloadClientJar } from "./download-1wAfrGKx.js";
9
- import { t as runBlocksCli } from "./cli-BUQzP6YF.js";
10
- import { t as run } from "./run-Bf5TLTJw.js";
9
+ import { t as runBlocksCli } from "./cli-CeEAmdX9.js";
10
+ import { t as run } from "./run-5Rc8hTHT.js";
11
11
  import path from "node:path";
12
12
  import os from "node:os";
13
13
  import { parseArgs } from "node:util";
@@ -126,7 +126,7 @@ Options:
126
126
  --gif also emit animated GIFs for legacy browsers
127
127
  --avif also emit AVIF
128
128
  -i, --item-list write the rendered item id list JSON
129
- --lighting-profile modern (default) | legacy (matches published corpus)
129
+ --lighting-profile modern (default) | legacy (matches renderchest v2.5.2-v5.1.0)
130
130
  --builtin <dir> override the builtin pack (defaults per era)
131
131
  --cache-dir <dir> jar download cache (default ~/.rendermite)
132
132
  --concurrency <n> in-flight items per thread (default 8)
@@ -49,16 +49,15 @@ async function collectDatapack(resources, namespaces) {
49
49
  tags[registry][`${namespace}:${split[2]}`] = values;
50
50
  continue;
51
51
  }
52
- if (ADVANCEMENT_FOLDER.test(locator.path)) {
53
- const name = locator.path.replace(ADVANCEMENT_FOLDER, "");
54
- if (name.startsWith("recipes/")) continue;
55
- const json = await readJson(resources, locator);
56
- if (typeof json?.criteria !== "object" || json.criteria === null) {
57
- unreadable.push(locator.toString());
58
- continue;
59
- }
60
- advancements[`${namespace}:${name}`] = Object.keys(json.criteria);
52
+ if (!ADVANCEMENT_FOLDER.test(locator.path)) continue;
53
+ const name = locator.path.replace(ADVANCEMENT_FOLDER, "");
54
+ if (name.startsWith("recipes/")) continue;
55
+ const json = await readJson(resources, locator);
56
+ if (typeof json?.criteria !== "object" || json.criteria === null) {
57
+ unreadable.push(locator.toString());
58
+ continue;
61
59
  }
60
+ advancements[`${namespace}:${name}`] = Object.keys(json.criteria);
62
61
  }
63
62
  }
64
63
  return {
@@ -1,4 +1,4 @@
1
- import { a as ResourceManager } from "./manager-Ct0dEOMg.js";
1
+ import { a as ResourceManager } from "./manager-Ey26G_3e.js";
2
2
  //#region src/blocks/datapack.d.ts
3
3
  /** `tags.json`: registry (`block`, `item`, `worldgen/biome`, …) → tag id → its values, unexpanded. */
4
4
  type TagPack = Record<string, Record<string, string[]>>;
@@ -3,7 +3,7 @@ import { i as fromItemTransform, o as identity, s as multiply } from "./vector-C
3
3
  /**
4
4
  * 1.21.4+ item-definition (`assets/<ns>/items/*.json`) evaluation for a static
5
5
  * GUI icon, mirroring upstream's Item classes and property defaults
6
- * (docs/research/renderchest-spec.md §3).
6
+ * (docs/renderchest-spec.md §3).
7
7
  */
8
8
  var InvalidItemDefinitionError = class extends Error {};
9
9
  /**
@@ -1,6 +1,6 @@
1
- import { n as MapResourceManager, t as KindFilteredResourceManager } from "./synthetic-rc9BPT4P.js";
2
- import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-D6zXmFrO.js";
3
- import { t as JarResourceManager } from "./jar-DvofBm71.js";
1
+ import { n as MapResourceManager, t as KindFilteredResourceManager } from "./synthetic-y9Mr-wB2.js";
2
+ import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
3
+ import { t as JarResourceManager } from "./jar-Df0Xhw7X.js";
4
4
  //#region src/resources/descriptor.ts
5
5
  /**
6
6
  * Serializable descriptions of a resource tree, so the same layered tree can be
@@ -1,4 +1,4 @@
1
- import { a as ResourceManager } from "./manager-Ct0dEOMg.js";
1
+ import { a as ResourceManager } from "./manager-Ey26G_3e.js";
2
2
  import { i as ItemRenderInstruction, r as ItemProperties } from "./definition-ricL7Jqf.js";
3
3
  //#region src/items/discovery.d.ts
4
4
  declare class ItemResolutionError extends Error {}
@@ -1,6 +1,6 @@
1
1
  import { n as ResourceLocator } from "./locator-COMEtEn9.js";
2
2
  import { o as identity } from "./vector-CCxLae_T.js";
3
- import { n as InvalidItemDefinitionError, o as evaluateItemModel } from "./definition-ColsvWrH.js";
3
+ import { n as InvalidItemDefinitionError, o as evaluateItemModel } from "./definition-Dab22cHd.js";
4
4
  //#region src/items/discovery.ts
5
5
  /**
6
6
  * Era-adaptive item discovery — the piece no single renderchest tag has:
@@ -14,13 +14,12 @@ async function discoverItems(resources, namespace, options = {}) {
14
14
  const items = [];
15
15
  for (const locator of await resources.listResources("itemDefinition", namespace)) {
16
16
  const id = locator.toString();
17
- if (!seen.has(id)) {
18
- seen.add(id);
19
- items.push({
20
- id,
21
- source: "definition"
22
- });
23
- }
17
+ if (seen.has(id)) continue;
18
+ seen.add(id);
19
+ items.push({
20
+ id,
21
+ source: "definition"
22
+ });
24
23
  }
25
24
  const filterUntranslated = options.filterUntranslatedModels ?? true;
26
25
  const registered = namespace === "minecraft" || !filterUntranslated ? null : await langRegistry(resources, namespace);
@@ -29,13 +28,12 @@ async function discoverItems(resources, namespace, options = {}) {
29
28
  const name = locator.path.slice(5);
30
29
  if (registered && !registered.has(name.replaceAll("/", ".")) && !name.endsWith("_trim")) continue;
31
30
  const id = new ResourceLocator(locator.namespace, name).toString();
32
- if (!seen.has(id)) {
33
- seen.add(id);
34
- items.push({
35
- id,
36
- source: "model"
37
- });
38
- }
31
+ if (seen.has(id)) continue;
32
+ seen.add(id);
33
+ items.push({
34
+ id,
35
+ source: "model"
36
+ });
39
37
  }
40
38
  return items;
41
39
  }
@@ -1,2 +1,2 @@
1
- import { a as TRIM_DARKER_MATERIALS, i as POTTERY_SHERDS, n as DynamicItem, o as TRIM_MATERIALS, r as DynamicResources, s as builtinDynamicResources, t as ARMOR_ITEM_TYPES } from "../generators-hu_vk10m.js";
1
+ import { a as TRIM_DARKER_MATERIALS, i as POTTERY_SHERDS, n as DynamicItem, o as TRIM_MATERIALS, r as DynamicResources, s as builtinDynamicResources, t as ARMOR_ITEM_TYPES } from "../generators-P1goUyvI.js";
2
2
  export { ARMOR_ITEM_TYPES, DynamicItem, DynamicResources, POTTERY_SHERDS, TRIM_DARKER_MATERIALS, TRIM_MATERIALS, builtinDynamicResources };
@@ -1,2 +1 @@
1
- import { a as builtinDynamicResources, i as TRIM_MATERIALS, n as POTTERY_SHERDS, r as TRIM_DARKER_MATERIALS, t as ARMOR_ITEM_TYPES } from "../generators-D6giKoab.js";
2
- export { ARMOR_ITEM_TYPES, POTTERY_SHERDS, TRIM_DARKER_MATERIALS, TRIM_MATERIALS, builtinDynamicResources };
1
+ export { t as ARMOR_ITEM_TYPES, n as POTTERY_SHERDS, r as TRIM_DARKER_MATERIALS, i as TRIM_MATERIALS, a as builtinDynamicResources } from "../generators-7b5w6s0L.js";
@@ -2,9 +2,8 @@ import { c as toByteTexture } from "./blend-KXMclcHk.js";
2
2
  import sharp from "sharp";
3
3
  //#region src/output/encode.ts
4
4
  /**
5
- * Icon encoding via sharp. Defaults reproduce the ui pipeline's post-pass so no
6
- * separate optimization step is needed: lossless everywhere, strictly-smaller
7
- * candidates only.
5
+ * Icon encoding via sharp. Defaults are tuned so no separate optimization step
6
+ * is needed: lossless everywhere, strictly-smaller candidates only.
8
7
  */
9
8
  /**
10
9
  * Lossless WebP effort for single-frame icons. Measured across 1.12.2–1.21.8
@@ -1,4 +1,4 @@
1
- import { n as FloatTexture } from "./blend-mJAeQB3C.js";
1
+ import { n as FloatTexture } from "./blend-DnogOnaU.js";
2
2
  //#region src/output/encode.d.ts
3
3
  interface EncodedIcon {
4
4
  png: Buffer;
@@ -1,5 +1,5 @@
1
1
  import { n as ResourceLocator } from "./locator-COMEtEn9.js";
2
- import { r as parseObj } from "./obj-NxBaySXt.js";
2
+ import { r as parseObj } from "./obj-BWsU8pYz.js";
3
3
  //#region src/blocks/ender-storage.ts
4
4
  /** Geometry for Ender Storage blocks whose shipped JSON model is only an empty Java-renderer hook. */
5
5
  const BLOCK_UNITS = 16;
@@ -1,2 +1 @@
1
- import { t as parseClassFile } from "../classfile-BJSs3JH0.js";
2
- export { parseClassFile };
1
+ export { t as parseClassFile } from "../classfile-YGjbyMPk.js";
@@ -1,5 +1,5 @@
1
1
  import { r as ExtractedModel } from "../model-PnQ4gV0-.js";
2
- import { t as ParsedGeo } from "../geo-DsWwuC5o.js";
2
+ import { t as ParsedGeo } from "../geo-Ci_PGkFI.js";
3
3
  //#region src/entities/geo-model.d.ts
4
4
  /**
5
5
  * Converts one parsed `.geo.json` into a model.
@@ -8,6 +8,5 @@ import { t as ParsedGeo } from "../geo-DsWwuC5o.js";
8
8
  * missing becomes a root rather than being dropped, and a cube carrying its own rotation becomes a part
9
9
  * of its own: `Cube` has nowhere to put a rotation, and 18% of the corpus's cubes have one.
10
10
  */
11
- declare function geoToModel(geo: ParsedGeo): ExtractedModel;
12
- //#endregion
13
- export { geoToModel };
11
+ export declare function geoToModel(geo: ParsedGeo): ExtractedModel;
12
+ //#endregion
@@ -1,2 +1 @@
1
- import { t as geoToModel } from "../geo-model-Bo1gpEwX.js";
2
- export { geoToModel };
1
+ export { t as geoToModel } from "../geo-model-Bo1gpEwX.js";
@@ -2,7 +2,7 @@ import { t as ClassFile } from "../classfile-Dzn0gW9M.js";
2
2
  import { r as ExtractedModel } from "../model-PnQ4gV0-.js";
3
3
  import { t as ModelCode } from "../model-code-BclYt1do.js";
4
4
  //#region src/entities/inherit.d.ts
5
- interface Ancestry {
5
+ export interface Ancestry {
6
6
  /** The class and its ancestors by internal name, parsed. */
7
7
  ancestors: Map<string, ClassFile>;
8
8
  /** The same classes, most derived first, with the bytes to interpret. */
@@ -12,7 +12,7 @@ interface Ancestry {
12
12
  }>;
13
13
  }
14
14
  /** Reads a class and everything it inherits from that the jar still holds. */
15
- declare function ancestryOf(internalName: string, read: (internalName: string) => Promise<Uint8Array | null>): Promise<Ancestry>;
15
+ export declare function ancestryOf(internalName: string, read: (internalName: string) => Promise<Uint8Array | null>): Promise<Ancestry>;
16
16
  /**
17
17
  * Geometry for one class, with the code it builds on available and its ancestors' parts filled in.
18
18
  *
@@ -24,6 +24,5 @@ declare function ancestryOf(internalName: string, read: (internalName: string) =
24
24
  * several ways: 1.16.5's sheep overrides a head in `SheepFurModel` and takes its legs from
25
25
  * `QuadrupedModel` two hops up.
26
26
  */
27
- declare function extractInheritedModel(internalName: string, read: (internalName: string) => Promise<Uint8Array | null>, code?: ModelCode): Promise<ExtractedModel | null>;
28
- //#endregion
29
- export { Ancestry, ancestryOf, extractInheritedModel };
27
+ export declare function extractInheritedModel(internalName: string, read: (internalName: string) => Promise<Uint8Array | null>, code?: ModelCode): Promise<ExtractedModel | null>;
28
+ //#endregion
@@ -1,2 +1 @@
1
- import { n as extractInheritedModel, t as ancestryOf } from "../inherit-DJ45bOB_.js";
2
- export { ancestryOf, extractInheritedModel };
1
+ export { t as ancestryOf, n as extractInheritedModel } from "../inherit-LSSIV8N2.js";
@@ -1,2 +1 @@
1
- import { n as layeredClasses, t as JarClassReader } from "../jar-classes-0wqWbTax.js";
2
- export { JarClassReader, layeredClasses };
1
+ export { t as JarClassReader, n as layeredClasses } from "../jar-classes-C5P3F18e.js";