@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,2 +1 @@
1
- import { n as harvestTintOverrides, t as curatedTintOverrides } from "../tints-CZeyKzMv.js";
2
- export { curatedTintOverrides, harvestTintOverrides };
1
+ export { t as curatedTintOverrides, n as harvestTintOverrides } from "../tints-DhSA5SCg.js";
@@ -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/names.d.ts
3
3
  /** `names.json`: display names by id, one table per registry. */
4
4
  interface NamePack {
@@ -1,13 +1,13 @@
1
1
  import { n as ResourceLocator } from "./locator-COMEtEn9.js";
2
2
  import { l as toFloatTexture, n as cloneFloatTexture, r as darkenTexture, s as tintTexture, t as blendPixel } from "./blend-KXMclcHk.js";
3
3
  import { c as normalize, g as transformVector, m as sub, n as displayMatrix, o as identity, r as dot, s as multiply, t as cross } from "./vector-CCxLae_T.js";
4
- import { c as lightsForProfile } from "./lighting--5myudVu.js";
5
- import { a as drawTexturedTriangle, i as createFaceBuffer, n as clearFaceBuffer, o as phpRound, t as RowCursor } from "./rasterizer-M9Y7mn-W.js";
4
+ import { c as lightsForProfile } from "./lighting-f_oZTiOx.js";
5
+ import { a as drawTexturedTriangle, i as createFaceBuffer, n as clearFaceBuffer, o as phpRound, t as RowCursor } from "./rasterizer-B3tOyG4B.js";
6
6
  import { t as combineFaceBuffers } from "./compose-CuIKcRpx.js";
7
- import { n as faceMaxZ, r as renderFace, t as createShadeCache } from "./face-D6SfTISC.js";
7
+ import { n as faceMaxZ, r as renderFace, t as createShadeCache } from "./face-DtbBpvbY.js";
8
8
  import { t as paintBucketFluid } from "./fluid-bucket-B-I4ZYHl.js";
9
- import { r as buildElementFaces } from "./geometry-bUDBhncX.js";
10
- import { i as resolveTexture } from "./loader-qOH0Jynq.js";
9
+ import { r as buildElementFaces } from "./geometry-BGTvfmbS.js";
10
+ import { i as resolveTexture } from "./loader-Ckhy0t8m.js";
11
11
  //#region src/render/renderer.ts
12
12
  /**
13
13
  * Item rendering entry: flat generated items (2D layer compositing) and 3D
@@ -119,10 +119,9 @@ function evenlySpacedTicks(ticks, maxFrames) {
119
119
  let previous = -1;
120
120
  for (let index = 0; index < count; index++) {
121
121
  const tick = Math.floor(index * ticks / count);
122
- if (tick !== previous) {
123
- sampled.push(tick);
124
- previous = tick;
125
- }
122
+ if (tick === previous) continue;
123
+ sampled.push(tick);
124
+ previous = tick;
126
125
  }
127
126
  return sampled;
128
127
  }
@@ -654,15 +653,14 @@ async function renderObjModel(model, resources, textures, options) {
654
653
  const offset = pixel * 4;
655
654
  const alpha = scratch.colors[offset + 3];
656
655
  if (alpha <= 0) continue;
657
- if (scratch.depths[pixel] >= out.depths[pixel] || out.colors[offset + 3] === 0) {
658
- if (alpha >= 1 || out.colors[offset + 3] === 0) {
659
- out.colors[offset] = scratch.colors[offset];
660
- out.colors[offset + 1] = scratch.colors[offset + 1];
661
- out.colors[offset + 2] = scratch.colors[offset + 2];
662
- out.colors[offset + 3] = alpha;
663
- } else blendPixel(out.colors, offset, scratch.colors[offset], scratch.colors[offset + 1], scratch.colors[offset + 2], alpha);
664
- out.depths[pixel] = Math.max(out.depths[pixel], scratch.depths[pixel]);
665
- }
656
+ if (!(scratch.depths[pixel] >= out.depths[pixel] || out.colors[offset + 3] === 0)) continue;
657
+ if (alpha >= 1 || out.colors[offset + 3] === 0) {
658
+ out.colors[offset] = scratch.colors[offset];
659
+ out.colors[offset + 1] = scratch.colors[offset + 1];
660
+ out.colors[offset + 2] = scratch.colors[offset + 2];
661
+ out.colors[offset + 3] = alpha;
662
+ } else blendPixel(out.colors, offset, scratch.colors[offset], scratch.colors[offset + 1], scratch.colors[offset + 2], alpha);
663
+ out.depths[pixel] = Math.max(out.depths[pixel], scratch.depths[pixel]);
666
664
  }
667
665
  }
668
666
  return {
@@ -1,5 +1,5 @@
1
1
  import { n as ResourceLocator } from "./locator-COMEtEn9.js";
2
- import { n as parseMtl, r as parseObj, t as materialTexture } from "./obj-NxBaySXt.js";
2
+ import { n as parseMtl, r as parseObj, t as materialTexture } from "./obj-BWsU8pYz.js";
3
3
  //#region src/blocks/obj-mesh.ts
4
4
  /**
5
5
  * OBJ geometry as pack data.
@@ -1,5 +1,5 @@
1
- import { a as ResourceManager } from "./manager-Ct0dEOMg.js";
2
- import { r as ResolvedModel } from "./loader-BYyPIs9f.js";
1
+ import { a as ResourceManager } from "./manager-Ey26G_3e.js";
2
+ import { r as ResolvedModel } from "./loader-mGAKSRp6.js";
3
3
  //#region src/blocks/obj-mesh.d.ts
4
4
  interface MeshGroup {
5
5
  /** Sprite every triangle in this group samples. */
@@ -1,2 +1,2 @@
1
- import { a as RasterAssetFormat, c as encodeRasterAsset, i as EncodedIcon, n as EncodeOptions, o as encodeAnimatedIcon, r as EncodedAnimatedIcon, s as encodeIcon, t as AnimatedEncodeOptions } from "../encode-BNEYHHR0.js";
1
+ import { a as RasterAssetFormat, c as encodeRasterAsset, i as EncodedIcon, n as EncodeOptions, o as encodeAnimatedIcon, r as EncodedAnimatedIcon, s as encodeIcon, t as AnimatedEncodeOptions } from "../encode-DZSVif8a.js";
2
2
  export { AnimatedEncodeOptions, EncodeOptions, EncodedAnimatedIcon, EncodedIcon, RasterAssetFormat, encodeAnimatedIcon, encodeIcon, encodeRasterAsset };
@@ -1,2 +1 @@
1
- import { n as encodeIcon, r as encodeRasterAsset, t as encodeAnimatedIcon } from "../encode-TzYXOEId.js";
2
- export { encodeAnimatedIcon, encodeIcon, encodeRasterAsset };
1
+ export { t as encodeAnimatedIcon, n as encodeIcon, r as encodeRasterAsset } from "../encode-BIAWeZy2.js";
@@ -1,10 +1,9 @@
1
- import { t as ItemStyle } from "../stylesheet-DxHkk4qA.js";
1
+ import { t as ItemStyle } from "../stylesheet-XJ-kH6kk.js";
2
2
  //#region src/output/item-styles.d.ts
3
3
  /**
4
4
  * Build the ItemStyle for a rendered item. `renderedIds` gates variant rules to
5
5
  * images that exist. Returns null for internal layer-source items (rc_*),
6
6
  * which get no rules of their own.
7
7
  */
8
- declare function classifyItemStyle(id: string, renderedIds: ReadonlySet<string>): ItemStyle | null;
9
- //#endregion
10
- export { classifyItemStyle };
8
+ export declare function classifyItemStyle(id: string, renderedIds: ReadonlySet<string>): ItemStyle | null;
9
+ //#endregion
@@ -1,2 +1 @@
1
- import { t as classifyItemStyle } from "../item-styles-BAeneY1R.js";
2
- export { classifyItemStyle };
1
+ export { t as classifyItemStyle } from "../item-styles-D-7N6j1i.js";
@@ -1,2 +1 @@
1
- import { t as minifyStylesheet } from "../minify-bjMRmr5J.js";
2
- export { minifyStylesheet };
1
+ export { t as minifyStylesheet } from "../minify-bjMRmr5J.js";
@@ -1,2 +1,2 @@
1
- import { i as itemClass, n as StylesheetOptions, r as generateStylesheet, t as ItemStyle } from "../stylesheet-DxHkk4qA.js";
1
+ import { i as itemClass, n as StylesheetOptions, r as generateStylesheet, t as ItemStyle } from "../stylesheet-XJ-kH6kk.js";
2
2
  export { ItemStyle, StylesheetOptions, generateStylesheet, itemClass };
@@ -1,2 +1 @@
1
- import { n as itemClass, t as generateStylesheet } from "../stylesheet-C61VrCAV.js";
2
- export { generateStylesheet, itemClass };
1
+ export { t as generateStylesheet, n as itemClass } from "../stylesheet-Cin7eCyU.js";
package/dist/pack.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { n as BiomeClimatePack, t as BiomeClimate } from "./biomes-CnnhDCnk.js";
1
+ import { n as BiomeClimatePack, t as BiomeClimate } from "./biomes-_HZ93QNR.js";
2
2
  import { a as BlockStateMultipartCase, d as matchesCondition, n as BlockProperties, o as BlockStateVariantCase, p as weightedVariantIndex, r as BlockStateDefinition, s as MultipartCondition, t as BlockModelVariant, u as evaluateBlockState } from "./blockstate-eval-C-ZSx78w.js";
3
3
  import { t as GameRule } from "./game-rules-ThvdDG3B.js";
4
- import { n as ObjMesh, t as MeshGroup } from "./obj-mesh-CzL0lOlJ.js";
5
- import { n as BlockTintPack, t as BlockTint } from "./tints-DwFmEkf3.js";
6
- import { B as BlockPackStatesFile, C as BlockPackBlockState, F as BlockPackModelsFile, H as BlockPackTintsFile, I as BlockPackNamesFile, L as BlockPackRenderLayer, M as BlockPackLightFile, N as BlockPackMetaFile, O as BlockPackFace, P as BlockPackModel, R as BlockPackSprite, S as BlockPackBiomesFile, T as BlockPackElement, U as BlockPackVariant, V as BlockPackTagsFile, b as BlockPackAtlasPage, j as BlockPackLight, k as BlockPackGameRulesFile, n as PushReactionName, t as BlockBehaviour, v as BlockPackAdvancementsFile, w as BlockPackBlockStatesFile, x as BlockPackBehaviourFile, y as BlockPackAtlasFile, z as BlockPackSpriteFrame } from "./block-behaviour-B5lD0RfG.js";
7
- import { t as blockLightLevel } from "./light-eval-BuwUW4Tj.js";
4
+ import { n as ObjMesh, t as MeshGroup } from "./obj-mesh-yN3ttPYf.js";
5
+ import { n as BlockTintPack, t as BlockTint } from "./tints-CvHlfvDC.js";
6
+ import { B as BlockPackStatesFile, C as BlockPackBlockState, F as BlockPackModelsFile, H as BlockPackTintsFile, I as BlockPackNamesFile, L as BlockPackRenderLayer, M as BlockPackLightFile, N as BlockPackMetaFile, O as BlockPackFace, P as BlockPackModel, R as BlockPackSprite, S as BlockPackBiomesFile, T as BlockPackElement, U as BlockPackVariant, V as BlockPackTagsFile, b as BlockPackAtlasPage, j as BlockPackLight, k as BlockPackGameRulesFile, n as PushReactionName, t as BlockBehaviour, v as BlockPackAdvancementsFile, w as BlockPackBlockStatesFile, x as BlockPackBehaviourFile, y as BlockPackAtlasFile, z as BlockPackSpriteFrame } from "./block-behaviour-D6NwU9bV.js";
7
+ import { t as blockLightLevel } from "./light-eval-DJA58Kdg.js";
8
8
  export { type BiomeClimate, type BiomeClimatePack, type BlockBehaviour, type BlockModelVariant, type BlockPackAdvancementsFile, type BlockPackAtlasFile, type BlockPackAtlasPage, type BlockPackBehaviourFile, type BlockPackBiomesFile, type BlockPackBlockState, type BlockPackBlockStatesFile, type BlockPackElement, type BlockPackFace, type BlockPackGameRulesFile, type BlockPackLight, type BlockPackLightFile, type BlockPackMetaFile, type BlockPackModel, type BlockPackModelsFile, type BlockPackNamesFile, type BlockPackRenderLayer, type BlockPackSprite, type BlockPackSpriteFrame, type BlockPackStatesFile, type BlockPackTagsFile, type BlockPackTintsFile, type BlockPackVariant, type BlockProperties, type BlockStateDefinition, type BlockStateMultipartCase, type BlockStateVariantCase, type BlockTint, type BlockTintPack, type GameRule, type MeshGroup, type MultipartCondition, type ObjMesh, type PushReactionName, blockLightLevel, evaluateBlockState, matchesCondition, weightedVariantIndex };
package/dist/pack.js CHANGED
@@ -1,3 +1,3 @@
1
- import { i as matchesCondition, o as weightedVariantIndex, r as evaluateBlockState } from "./blockstate-eval-CcgxVdKb.js";
1
+ import { i as matchesCondition, o as weightedVariantIndex, r as evaluateBlockState } from "./blockstate-eval-Cu-9TWH0.js";
2
2
  import { t as blockLightLevel } from "./light-eval-BsJJoSv4.js";
3
3
  export { blockLightLevel, evaluateBlockState, matchesCondition, weightedVariantIndex };
@@ -1,20 +1,20 @@
1
1
  import { n as ResourceLocator } from "./locator-COMEtEn9.js";
2
- import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-D6zXmFrO.js";
2
+ import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
3
3
  import { l as toFloatTexture, t as blendPixel } from "./blend-KXMclcHk.js";
4
- import { t as ModelLoader } from "./loader-qOH0Jynq.js";
5
- import { c as renderModel, l as renderModelFrames, o as boxDownscale, s as pointResize } from "./obj-NxBaySXt.js";
6
- import { a as renderGeo, t as findGeoForItem } from "./geo-BOYYFFQn.js";
7
- import { a as defaultProperties } from "./definition-ColsvWrH.js";
8
- import { i as resolveItem } from "./discovery-CD0QqxSF.js";
9
- import { a as resolveTints } from "./tints-B3WQcPtx.js";
10
- import { t as loadAtlasResolver } from "./registry-DafxsAhG.js";
4
+ import { t as ModelLoader } from "./loader-Ckhy0t8m.js";
5
+ import { c as renderModel, l as renderModelFrames, o as boxDownscale, s as pointResize } from "./obj-BWsU8pYz.js";
6
+ import { a as renderGeo, t as findGeoForItem } from "./geo-CZHkm59F.js";
7
+ import { a as defaultProperties } from "./definition-Dab22cHd.js";
8
+ import { i as resolveItem } from "./discovery-CMHJfdHQ.js";
9
+ import { a as resolveTints } from "./tints-Cw5okshA.js";
10
+ import { t as loadAtlasResolver } from "./registry-CNFi94eo.js";
11
11
  import { t as CachedListingResourceManager } from "./cached-BOX3n1Dl.js";
12
12
  import { n as TextureLoader } from "./loader-CsgtBuBo.js";
13
- import { t as encodeAnimatedIcon } from "./encode-TzYXOEId.js";
14
- import { a as builtinDynamicResources } from "./generators-D6giKoab.js";
15
- import { a as spawnEggTints, i as renderEntityFallback, n as dyedVariantTint, r as renderDyedVariantFallback, t as dyeVariantName } from "./entity-fallback-BEzCbJq0.js";
13
+ import { t as encodeAnimatedIcon } from "./encode-BIAWeZy2.js";
14
+ import { a as builtinDynamicResources } from "./generators-7b5w6s0L.js";
15
+ import { a as spawnEggTints, i as renderEntityFallback, n as dyedVariantTint, r as renderDyedVariantFallback, t as dyeVariantName } from "./entity-fallback-ZfurtmEQ.js";
16
16
  import { t as legacyTintsForChain } from "./legacy-tints-l-541wgI.js";
17
- import { n as defaultBlockStateModel, t as blockStateTransform } from "./blockstate-DVb8Mhxc.js";
17
+ import { n as defaultBlockStateModel, t as blockStateTransform } from "./blockstate-D5FgI-Qv.js";
18
18
  import path from "node:path";
19
19
  import { mkdir, writeFile } from "node:fs/promises";
20
20
  //#region src/render/pipeline.ts
@@ -1,7 +1,7 @@
1
- import { a as ResourceManager } from "./manager-Ct0dEOMg.js";
2
- import { n as FloatTexture } from "./blend-mJAeQB3C.js";
3
- import { a as LightingProfileName } from "./lighting-3FGRC3Af.js";
4
- import { n as AnimationLimits } from "./renderer-QgROYvPv.js";
1
+ import { a as ResourceManager } from "./manager-Ey26G_3e.js";
2
+ import { n as FloatTexture } from "./blend-DnogOnaU.js";
3
+ import { a as LightingProfileName } from "./lighting-DYkS-NlV.js";
4
+ import { n as AnimationLimits } from "./renderer-DZSDiXL0.js";
5
5
  //#region src/render/pipeline.d.ts
6
6
  interface PipelineSettings {
7
7
  builtin?: string;
@@ -2,7 +2,7 @@ import { Worker } from "node:worker_threads";
2
2
  //#region src/workers/pool.ts
3
3
  /**
4
4
  * Worker-thread pool for parallel item rendering. Design goals born from the
5
- * PHP tool's failure modes (docs/research/mod-failure-taxonomy.md): errors
5
+ * PHP tool's failure modes (docs/mod-coverage.md): errors
6
6
  * cross the worker boundary as structured data, a dead worker's in-flight items
7
7
  * are reported rather than orphaned, and results stream back so output lands
8
8
  * incrementally.
@@ -1,8 +1,8 @@
1
1
  import { n as ResourceLocator } from "./locator-COMEtEn9.js";
2
- import { n as MapResourceManager, t as KindFilteredResourceManager } from "./synthetic-rc9BPT4P.js";
3
- import { t as reshapeLegacyAssets } from "./legacy-reshape-CcdstKyI.js";
4
- import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-D6zXmFrO.js";
5
- import { t as JarResourceManager } from "./jar-DvofBm71.js";
2
+ import { n as MapResourceManager, t as KindFilteredResourceManager } from "./synthetic-y9Mr-wB2.js";
3
+ import { t as reshapeLegacyAssets } from "./legacy-reshape-ClEZFEVT.js";
4
+ import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
5
+ import { t as JarResourceManager } from "./jar-Df0Xhw7X.js";
6
6
  //#region src/versions/prepare.ts
7
7
  /**
8
8
  * Version-era detection and asset preparation, replacing the file-tree surgery
@@ -101,10 +101,9 @@ async function prepareVersionResources(options) {
101
101
  const base = new LayeredResourceManager(layers);
102
102
  for (const [modern, legacy] of MOVED_TEXTURES) {
103
103
  const modernLocator = ResourceLocator.parse(modern);
104
- if (!await base.hasResource("texture", modernLocator)) {
105
- const legacyContent = await base.getResource("texture", ResourceLocator.parse(legacy));
106
- if (legacyContent) shims.set("texture", modern, legacyContent);
107
- }
104
+ if (await base.hasResource("texture", modernLocator)) continue;
105
+ const legacyContent = await base.getResource("texture", ResourceLocator.parse(legacy));
106
+ if (legacyContent) shims.set("texture", modern, legacyContent);
108
107
  }
109
108
  return new LayeredResourceManager([shims, base]);
110
109
  }
@@ -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/versions/prepare.d.ts
3
3
  /** Dotted-numeric compare handling both `1.21.8` and the `26.2` scheme. */
4
4
  declare function compareVersions(left: string, right: string): number;
@@ -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/mods/prepare.d.ts
3
3
  /** Loader-owned namespaces that never contain renderable mod items. */
4
4
  declare const LOADER_NAMESPACES: Set<string>;
@@ -1,8 +1,8 @@
1
- import { n as LayeredResourceManager } from "./manager-D6zXmFrO.js";
2
- import { n as UnsafeJarError, t as JarResourceManager } from "./jar-DvofBm71.js";
3
- import { t as curatedModelOverrides } from "./models-BsYA-NZg.js";
4
- import { t as synthesizeItemModels } from "./synthesize-jTjVjPAt.js";
5
- import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-CZeyKzMv.js";
1
+ import { n as LayeredResourceManager } from "./manager-B1VPl4UQ.js";
2
+ import { n as UnsafeJarError, t as JarResourceManager } from "./jar-Df0Xhw7X.js";
3
+ import { t as curatedModelOverrides } from "./models-CvFehP26.js";
4
+ import { t as synthesizeItemModels } from "./synthesize-DNvUwWhZ.js";
5
+ import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-DhSA5SCg.js";
6
6
  //#region src/mods/prepare.ts
7
7
  /**
8
8
  * Mod asset composition: mod jars layered under the vanilla base (vanilla wins
@@ -58,11 +58,10 @@ async function prepareModResources(options) {
58
58
  if (!await hasItemContent(base, namespace)) continue;
59
59
  namespaces.push(namespace);
60
60
  const result = await synthesizeItemModels(base, namespace);
61
- if (result.synthesized > 0) {
62
- synthesized += result.synthesized;
63
- synthLayers.push(result.models);
64
- options.onProgress?.(`Synthesized ${result.synthesized} item models for ${namespace}`);
65
- }
61
+ if (result.synthesized <= 0) continue;
62
+ synthesized += result.synthesized;
63
+ synthLayers.push(result.models);
64
+ options.onProgress?.(`Synthesized ${result.synthesized} item models for ${namespace}`);
66
65
  }
67
66
  let tintOverrides = 0;
68
67
  const tintLayers = [];
@@ -3,7 +3,7 @@ import { o as shadeTexel } from "./blend-KXMclcHk.js";
3
3
  /**
4
4
  * Faithful port of renderchest's TriangleRasterizer (scanline, nearest-neighbour
5
5
  * sampling by truncation, 0.3 sub-texel start bias, 1px color overdraw with
6
- * depth written only inside the span). See docs/research/renderchest-spec.md §4.4.
6
+ * depth written only inside the span). See docs/renderchest-spec.md §4.4.
7
7
  */
8
8
  function createFaceBuffer(width, height) {
9
9
  return {
@@ -206,11 +206,10 @@ function drawTexturedTriangle(p1in, p2in, p3in, buffer, texture, cursor = new Ro
206
206
  buffer.colors[dst + 3] = texture.data[src + 3];
207
207
  } else shadeTexel(buffer.colors, dst, texture.data, src, shading, texX, texY);
208
208
  }
209
- if (x >= startX && x < endX && x >= 0 && x < width) {
210
- const clamped = currentDepth < 0 ? 0 : Math.min(currentDepth, 1);
211
- buffer.depths[rowOffset + x] = Math.round(clamped * 65535) / 65535;
212
- textureX += textureStep;
213
- }
209
+ if (x < startX || x >= endX || x < 0 || x >= width) continue;
210
+ const clamped = currentDepth < 0 ? 0 : Math.min(currentDepth, 1);
211
+ buffer.depths[rowOffset + x] = Math.round(clamped * 65535) / 65535;
212
+ textureX += textureStep;
214
213
  }
215
214
  cursor.next();
216
215
  }
@@ -1,4 +1,4 @@
1
- import { n as FloatTexture, t as FaceShading } from "./blend-mJAeQB3C.js";
1
+ import { n as FloatTexture, t as FaceShading } from "./blend-DnogOnaU.js";
2
2
  //#region src/render/rasterizer.d.ts
3
3
  /** The rectangle of a buffer written since it was last cleared. */
4
4
  interface DirtyRect {
@@ -1,5 +1,5 @@
1
1
  import { n as ResourceLocator } from "./locator-COMEtEn9.js";
2
- import { o as createAtlasResolver, r as PalettedPermutationsSource, s as parseAtlasSources } from "./sources-DYY5Qu-t.js";
2
+ import { o as createAtlasResolver, r as PalettedPermutationsSource, s as parseAtlasSources } from "./sources-BsEa9YPc.js";
3
3
  //#region src/atlas/registry.ts
4
4
  /**
5
5
  * Collects every `atlases/*.json` across namespaces into one resolver.
@@ -35,12 +35,10 @@ var InferredItemTrimSource = class {
35
35
  const key = await this.firstTexture([new ResourceLocator(locator.namespace, "trims/color_palettes/trim_palette"), ResourceLocator.parse("minecraft:trims/color_palettes/trim_palette")]);
36
36
  const separator = variant.indexOf("-");
37
37
  const namespaced = (await this.resources.listNamespaces()).filter((namespace) => variant.startsWith(`${namespace}_`)).map((namespace) => new ResourceLocator(namespace, `trims/color_palettes/${variant.slice(namespace.length + 1)}`));
38
- const palette = await this.firstTexture([
39
- new ResourceLocator(locator.namespace, `trims/color_palettes/${variant}`),
40
- ResourceLocator.parse(`minecraft:trims/color_palettes/${variant}`),
41
- ...separator > 0 ? [new ResourceLocator(variant.slice(0, separator), `trims/color_palettes/${variant.slice(separator + 1)}`)] : [],
42
- ...namespaced
43
- ]);
38
+ const candidates = [new ResourceLocator(locator.namespace, `trims/color_palettes/${variant}`), ResourceLocator.parse(`minecraft:trims/color_palettes/${variant}`)];
39
+ if (separator > 0) candidates.push(new ResourceLocator(variant.slice(0, separator), `trims/color_palettes/${variant.slice(separator + 1)}`));
40
+ candidates.push(...namespaced);
41
+ const palette = await this.firstTexture(candidates);
44
42
  if (!key || !palette) return null;
45
43
  return new PalettedPermutationsSource({
46
44
  textures: [base.toString()],
@@ -1,2 +1,2 @@
1
- import { a as darkenTexture, c as shadeTexel, d as toFloatTexture, f as uvWindow, i as cloneFloatTexture, l as tintTexture, n as FloatTexture, o as q16, r as blendPixel, s as scaleTextureAlpha, t as FaceShading, u as toByteTexture } from "../blend-mJAeQB3C.js";
1
+ import { a as darkenTexture, c as shadeTexel, d as toFloatTexture, f as uvWindow, i as cloneFloatTexture, l as tintTexture, n as FloatTexture, o as q16, r as blendPixel, s as scaleTextureAlpha, t as FaceShading, u as toByteTexture } from "../blend-DnogOnaU.js";
2
2
  export { FaceShading, FloatTexture, blendPixel, cloneFloatTexture, darkenTexture, q16, scaleTextureAlpha, shadeTexel, tintTexture, toByteTexture, toFloatTexture, uvWindow };
@@ -1,2 +1 @@
1
- import { a as scaleTextureAlpha, c as toByteTexture, i as q16, l as toFloatTexture, n as cloneFloatTexture, o as shadeTexel, r as darkenTexture, s as tintTexture, t as blendPixel, u as uvWindow } from "../blend-KXMclcHk.js";
2
- export { blendPixel, cloneFloatTexture, darkenTexture, q16, scaleTextureAlpha, shadeTexel, tintTexture, toByteTexture, toFloatTexture, uvWindow };
1
+ export { t as blendPixel, n as cloneFloatTexture, r as darkenTexture, i as q16, a as scaleTextureAlpha, o as shadeTexel, s as tintTexture, c as toByteTexture, l as toFloatTexture, u as uvWindow } from "../blend-KXMclcHk.js";
@@ -1,6 +1,5 @@
1
- import { n as FloatTexture } from "../blend-mJAeQB3C.js";
2
- import { n as FaceBuffer } from "../rasterizer-DjnurUgD.js";
1
+ import { n as FloatTexture } from "../blend-DnogOnaU.js";
2
+ import { n as FaceBuffer } from "../rasterizer-UBaTPhH4.js";
3
3
  //#region src/render/compose.d.ts
4
- declare function combineFaceBuffers(width: number, height: number, faces: FaceBuffer[]): FloatTexture;
5
- //#endregion
6
- export { combineFaceBuffers };
4
+ export declare function combineFaceBuffers(width: number, height: number, faces: FaceBuffer[]): FloatTexture;
5
+ //#endregion
@@ -1,2 +1 @@
1
- import { t as combineFaceBuffers } from "../compose-CuIKcRpx.js";
2
- export { combineFaceBuffers };
1
+ export { t as combineFaceBuffers } from "../compose-CuIKcRpx.js";
@@ -1,12 +1,12 @@
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 { n as FloatTexture } from "../blend-mJAeQB3C.js";
5
- import { r as TintColor } from "../face-uWXECGNr.js";
6
- import { i as RenderOptions } from "../renderer-QgROYvPv.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 { n as FloatTexture } from "../blend-DnogOnaU.js";
5
+ import { r as TintColor } from "../face-BOsq7v9f.js";
6
+ import { i as RenderOptions } from "../renderer-DZSDiXL0.js";
7
7
  //#region src/render/entity-fallback.d.ts
8
8
  /** The dye name a `<dye>_<thing>` mod item is prefixed with, or null. */
9
- declare function dyeVariantName(id: string): string | null;
9
+ export declare function dyeVariantName(id: string): string | null;
10
10
  /**
11
11
  * The dye color a `<dye>_<thing>` item name implies, or null. Mods that name
12
12
  * variants after dyes sometimes register the matching DyeColor as the tint in
@@ -18,14 +18,14 @@ declare function dyeVariantName(id: string): string | null;
18
18
  * again multiplies the dye in — chipped's blue_paper_lantern came out near
19
19
  * black. Callers must check the model's textures; see `dyeVariantName`.
20
20
  */
21
- declare function dyedVariantTint(id: string): TintColor | null;
21
+ export declare function dyedVariantTint(id: string): TintColor | null;
22
22
  /**
23
23
  * Dyed variants of vanilla items whose models mods generate at runtime (quark's
24
24
  * `black_frame_empty` parents a block model that exists nowhere on disk): render
25
25
  * the vanilla base item tinted with the dye color. Suffixes like `_empty`/`_map`
26
26
  * are state variants of the same icon.
27
27
  */
28
- declare function renderDyedVariantFallback(id: string, models: ModelLoader, textures: TextureLoader, options: RenderOptions): Promise<FloatTexture | null>;
28
+ export declare function renderDyedVariantFallback(id: string, models: ModelLoader, textures: TextureLoader, options: RenderOptions): Promise<FloatTexture | null>;
29
29
  /**
30
30
  * Derive spawn-egg tints from the mob's entity texture. Mod egg colors live
31
31
  * in item-registration code, so the two dominant colors of the entity skin
@@ -33,12 +33,11 @@ declare function renderDyedVariantFallback(id: string, models: ModelLoader, text
33
33
  * visually distinct from it. Returns null when no entity texture matches —
34
34
  * the egg then renders untinted, as before.
35
35
  */
36
- declare function spawnEggTints(id: string, resources: ResourceManager, textures: TextureLoader): Promise<TintColor[] | null>;
36
+ export declare function spawnEggTints(id: string, resources: ResourceManager, textures: TextureLoader): Promise<TintColor[] | null>;
37
37
  /**
38
38
  * Render a code-rendered (builtin/entity) item through builtin geometry when
39
39
  * its name identifies the kind. Returns null when no heuristic applies —
40
40
  * this must never guess across kinds.
41
41
  */
42
- declare function renderEntityFallback(id: string, models: ModelLoader, textures: TextureLoader, resources: ResourceManager, options: RenderOptions): Promise<FloatTexture | null>;
43
- //#endregion
44
- export { dyeVariantName, dyedVariantTint, renderDyedVariantFallback, renderEntityFallback, spawnEggTints };
42
+ export declare function renderEntityFallback(id: string, models: ModelLoader, textures: TextureLoader, resources: ResourceManager, options: RenderOptions): Promise<FloatTexture | null>;
43
+ //#endregion
@@ -1,2 +1 @@
1
- import { a as spawnEggTints, i as renderEntityFallback, n as dyedVariantTint, r as renderDyedVariantFallback, t as dyeVariantName } from "../entity-fallback-BEzCbJq0.js";
2
- export { dyeVariantName, dyedVariantTint, renderDyedVariantFallback, renderEntityFallback, spawnEggTints };
1
+ export { t as dyeVariantName, n as dyedVariantTint, r as renderDyedVariantFallback, i as renderEntityFallback, a as spawnEggTints } from "../entity-fallback-ZfurtmEQ.js";
@@ -1,2 +1,2 @@
1
- import { a as faceMaxZ, i as createShadeCache, n as RenderableFace, o as renderFace, r as TintColor, t as FaceShadeCache } from "../face-uWXECGNr.js";
1
+ import { a as faceMaxZ, i as createShadeCache, n as RenderableFace, o as renderFace, r as TintColor, t as FaceShadeCache } from "../face-BOsq7v9f.js";
2
2
  export { FaceShadeCache, RenderableFace, TintColor, createShadeCache, faceMaxZ, renderFace };
@@ -1,2 +1 @@
1
- import { n as faceMaxZ, r as renderFace, t as createShadeCache } from "../face-D6SfTISC.js";
2
- export { createShadeCache, faceMaxZ, renderFace };
1
+ export { t as createShadeCache, n as faceMaxZ, r as renderFace } from "../face-DtbBpvbY.js";
@@ -1,5 +1,5 @@
1
- import { a as ResourceManager } from "../manager-Ct0dEOMg.js";
2
- import { i as TextureLoader, r as Texture } from "../loader-C4gsX_wO.js";
1
+ import { a as ResourceManager } from "../manager-Ey26G_3e.js";
2
+ import { i as TextureLoader, r as Texture } from "../loader-CrPTL0zk.js";
3
3
  //#region src/render/fluid-bucket.d.ts
4
4
  /**
5
5
  * Paint the fluid into a bucket sprite IN PLACE (pass a copy, never a cached
@@ -9,6 +9,5 @@ import { i as TextureLoader, r as Texture } from "../loader-C4gsX_wO.js";
9
9
  * touches. Returns false when the fluid can't be resolved — the plain bucket
10
10
  * stays, which is the old behavior.
11
11
  */
12
- declare function paintBucketFluid(bucket: Texture, fluid: string, textures: TextureLoader, resources?: ResourceManager): Promise<boolean>;
13
- //#endregion
14
- export { paintBucketFluid };
12
+ export declare function paintBucketFluid(bucket: Texture, fluid: string, textures: TextureLoader, resources?: ResourceManager): Promise<boolean>;
13
+ //#endregion
@@ -1,2 +1 @@
1
- import { t as paintBucketFluid } from "../fluid-bucket-B-I4ZYHl.js";
2
- export { paintBucketFluid };
1
+ export { t as paintBucketFluid } from "../fluid-bucket-B-I4ZYHl.js";
@@ -1,2 +1,2 @@
1
- import { a as parseGeo, i as nameTokens, n as findGeoForItem, o as renderGeo, r as geoToFaces, t as ParsedGeo } from "../geo-DsWwuC5o.js";
1
+ import { a as parseGeo, i as nameTokens, n as findGeoForItem, o as renderGeo, r as geoToFaces, t as ParsedGeo } from "../geo-Ci_PGkFI.js";
2
2
  export { ParsedGeo, findGeoForItem, geoToFaces, nameTokens, parseGeo, renderGeo };
@@ -1,2 +1 @@
1
- import { a as renderGeo, i as parseGeo, n as geoToFaces, r as nameTokens, t as findGeoForItem } from "../geo-BOYYFFQn.js";
2
- export { findGeoForItem, geoToFaces, nameTokens, parseGeo, renderGeo };
1
+ export { t as findGeoForItem, n as geoToFaces, r as nameTokens, i as parseGeo, a as renderGeo } from "../geo-CZHkm59F.js";
@@ -1,2 +1,2 @@
1
- import { i as buildElementFaces, n as FaceGeometry, r as applyElementRotation, t as FACE_NORMALS } from "../geometry--UzHu1Vh.js";
1
+ import { i as buildElementFaces, n as FaceGeometry, r as applyElementRotation, t as FACE_NORMALS } from "../geometry-Btiz31vH.js";
2
2
  export { FACE_NORMALS, FaceGeometry, applyElementRotation, buildElementFaces };
@@ -1,2 +1 @@
1
- import { n as applyElementRotation, r as buildElementFaces, t as FACE_NORMALS } from "../geometry-bUDBhncX.js";
2
- export { FACE_NORMALS, applyElementRotation, buildElementFaces };
1
+ export { t as FACE_NORMALS, n as applyElementRotation, r as buildElementFaces } from "../geometry-BGTvfmbS.js";
@@ -1,5 +1,5 @@
1
- import { i as TextureLoader } from "../loader-C4gsX_wO.js";
2
- import { r as TintColor } from "../face-uWXECGNr.js";
1
+ import { i as TextureLoader } from "../loader-CrPTL0zk.js";
2
+ import { r as TintColor } from "../face-BOsq7v9f.js";
3
3
  //#region src/render/legacy-tints.d.ts
4
4
  /**
5
5
  * Tints for a model rendered without an item definition (pre-1.21.4 eras and
@@ -7,6 +7,5 @@ import { r as TintColor } from "../face-uWXECGNr.js";
7
7
  * item model beats the block model it parents, matching upstream's per-model
8
8
  * binding. Returns null when nothing in the chain is tinted.
9
9
  */
10
- declare function legacyTintsForChain(chain: string[], textures: TextureLoader): Promise<Array<TintColor | null> | null>;
11
- //#endregion
12
- export { legacyTintsForChain };
10
+ export declare function legacyTintsForChain(chain: string[], textures: TextureLoader): Promise<Array<TintColor | null> | null>;
11
+ //#endregion
@@ -1,2 +1 @@
1
- import { t as legacyTintsForChain } from "../legacy-tints-l-541wgI.js";
2
- export { legacyTintsForChain };
1
+ export { t as legacyTintsForChain } from "../legacy-tints-l-541wgI.js";
@@ -1,2 +1,2 @@
1
- import { a as LightingProfileName, c as legacyFrontLight, i as LightingProfile, l as legacySideLight, n as LegacyLightSource, o as guiFrontLight, r as LightSource, s as guiSideLight, t as DiffuseLightSource, u as lightsForProfile } from "../lighting-3FGRC3Af.js";
1
+ import { a as LightingProfileName, c as legacyFrontLight, i as LightingProfile, l as legacySideLight, n as LegacyLightSource, o as guiFrontLight, r as LightSource, s as guiSideLight, t as DiffuseLightSource, u as lightsForProfile } from "../lighting-DYkS-NlV.js";
2
2
  export { DiffuseLightSource, LegacyLightSource, LightSource, LightingProfile, LightingProfileName, guiFrontLight, guiSideLight, legacyFrontLight, legacySideLight, lightsForProfile };
@@ -1,2 +1 @@
1
- import { a as guiSideLight, c as lightsForProfile, i as guiFrontLight, n as LegacyLightSource, o as legacyFrontLight, r as LightingProfile, s as legacySideLight, t as DiffuseLightSource } from "../lighting--5myudVu.js";
2
- export { DiffuseLightSource, LegacyLightSource, LightingProfile, guiFrontLight, guiSideLight, legacyFrontLight, legacySideLight, lightsForProfile };
1
+ export { t as DiffuseLightSource, n as LegacyLightSource, r as LightingProfile, i as guiFrontLight, a as guiSideLight, o as legacyFrontLight, s as legacySideLight, c as lightsForProfile } from "../lighting-f_oZTiOx.js";
@@ -1,10 +1,10 @@
1
1
  import { n as ResourceLocator } from "../locator-jDbdUeTd.js";
2
- import { a as ResourceManager } from "../manager-Ct0dEOMg.js";
3
- import { i as TextureLoader } from "../loader-C4gsX_wO.js";
4
- import { r as ResolvedModel } from "../loader-BYyPIs9f.js";
5
- import { n as FloatTexture } from "../blend-mJAeQB3C.js";
2
+ import { a as ResourceManager } from "../manager-Ey26G_3e.js";
3
+ import { i as TextureLoader } from "../loader-CrPTL0zk.js";
4
+ import { r as ResolvedModel } from "../loader-mGAKSRp6.js";
5
+ import { n as FloatTexture } from "../blend-DnogOnaU.js";
6
6
  import { n as Vec3 } from "../vector-DRKRi4--.js";
7
- import { i as RenderOptions } from "../renderer-QgROYvPv.js";
7
+ import { i as RenderOptions } from "../renderer-DZSDiXL0.js";
8
8
  //#region src/render/obj.d.ts
9
9
  interface ObjTriangle {
10
10
  positions: [Vec3, Vec3, Vec3];
@@ -19,15 +19,15 @@ interface ParsedObj {
19
19
  materialLibs: string[];
20
20
  }
21
21
  /** Parse OBJ text into triangles (polygon faces are fan-triangulated). */
22
- declare function parseObj(text: string, flipV: boolean): ParsedObj;
22
+ export declare function parseObj(text: string, flipV: boolean): ParsedObj;
23
23
  /** map_Kd texture per material name out of an MTL library. */
24
- declare function parseMtl(text: string): Map<string, string>;
24
+ export declare function parseMtl(text: string): Map<string, string>;
25
25
  /**
26
26
  * Resolve a material name to a texture locator: `#key` and MTL map_Kd values
27
27
  * go through the model's texture map (Forge binds materials that way); bare
28
28
  * names fall back to a direct locator.
29
29
  */
30
- declare function materialTexture(model: ResolvedModel, materials: Map<string, string>, material: string): ResourceLocator | null;
31
- declare function renderObjModel(model: ResolvedModel, resources: ResourceManager, textures: TextureLoader, options: RenderOptions): Promise<FloatTexture>;
30
+ export declare function materialTexture(model: ResolvedModel, materials: Map<string, string>, material: string): ResourceLocator | null;
31
+ export declare function renderObjModel(model: ResolvedModel, resources: ResourceManager, textures: TextureLoader, options: RenderOptions): Promise<FloatTexture>;
32
32
  //#endregion
33
- export { materialTexture, parseMtl, parseObj, renderObjModel };
33
+ export {};
@@ -1,2 +1 @@
1
- import { i as renderObjModel, n as parseMtl, r as parseObj, t as materialTexture } from "../obj-NxBaySXt.js";
2
- export { materialTexture, parseMtl, parseObj, renderObjModel };
1
+ export { t as materialTexture, n as parseMtl, r as parseObj, i as renderObjModel } from "../obj-BWsU8pYz.js";
@@ -1,2 +1,2 @@
1
- import { i as RenderedFrames, n as ItemRenderOutcome, r as PipelineSettings, t as ItemPipeline } from "../pipeline-DuPF3sap.js";
1
+ import { i as RenderedFrames, n as ItemRenderOutcome, r as PipelineSettings, t as ItemPipeline } from "../pipeline-DmLQ49DB.js";
2
2
  export { ItemPipeline, ItemRenderOutcome, PipelineSettings, RenderedFrames };
@@ -1,2 +1 @@
1
- import { t as ItemPipeline } from "../pipeline-CCfkRth7.js";
2
- export { ItemPipeline };
1
+ export { t as ItemPipeline } from "../pipeline-DV4hIRMp.js";
@@ -1,2 +1,2 @@
1
- import { a as clearFaceBuffer, c as drawTexturedTriangle, i as RowCursor, l as phpRound, n as FaceBuffer, o as compactFaceBuffer, r as RasterPoint, s as createFaceBuffer, t as DirtyRect } from "../rasterizer-DjnurUgD.js";
1
+ import { a as clearFaceBuffer, c as drawTexturedTriangle, i as RowCursor, l as phpRound, n as FaceBuffer, o as compactFaceBuffer, r as RasterPoint, s as createFaceBuffer, t as DirtyRect } from "../rasterizer-UBaTPhH4.js";
2
2
  export { DirtyRect, FaceBuffer, RasterPoint, RowCursor, clearFaceBuffer, compactFaceBuffer, createFaceBuffer, drawTexturedTriangle, phpRound };