@nodecraft/rendermite 1.11.1 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -16
- package/assets/builtin/mobheads/items/frostbite.json +6 -0
- package/assets/builtin/mobheads/models/item/frostbite.json +6 -0
- package/assets/mod-models/README.md +24 -0
- package/dist/atlas/registry.d.ts +5 -6
- package/dist/atlas/registry.js +1 -2
- package/dist/atlas/sources.d.ts +2 -2
- package/dist/atlas/sources.js +1 -2
- package/dist/{atlas-pack-BUadroKy.d.ts → atlas-pack-Dxl3kwT2.d.ts} +1 -1
- package/dist/{biomes-BGOF6gRM.js → biomes-DTmzQfnL.js} +1 -1
- package/dist/{biomes-CnnhDCnk.d.ts → biomes-_HZ93QNR.d.ts} +1 -1
- package/dist/{blend-mJAeQB3C.d.ts → blend-DnogOnaU.d.ts} +1 -1
- package/dist/{block-behaviour-B5lD0RfG.d.ts → block-behaviour-D6NwU9bV.d.ts} +6 -6
- package/dist/{block-entities-C807EY2I.js → block-entities-Dp3rMxWq.js} +1 -1
- package/dist/{block-overrides-BhuJIxKC.js → block-overrides-DMzzzeq_.js} +1 -1
- package/dist/blocks/atlas-pack.d.ts +1 -1
- package/dist/blocks/atlas-pack.js +1 -2
- package/dist/blocks/biomes.d.ts +1 -1
- package/dist/blocks/biomes.js +1 -2
- package/dist/blocks/block-behaviour.d.ts +1 -1
- package/dist/blocks/block-behaviour.js +1 -2
- package/dist/blocks/block-entities.d.ts +12 -13
- package/dist/blocks/block-entities.js +1 -2
- package/dist/blocks/block-overrides.d.ts +7 -8
- package/dist/blocks/block-overrides.js +1 -2
- package/dist/blocks/blockstate-eval.js +1 -2
- package/dist/blocks/cli.d.ts +2 -3
- package/dist/blocks/cli.js +1 -2
- package/dist/blocks/datapack.d.ts +1 -1
- package/dist/blocks/datapack.js +1 -2
- package/dist/blocks/ender-storage.d.ts +4 -5
- package/dist/blocks/ender-storage.js +1 -2
- package/dist/blocks/entities.d.ts +8 -9
- package/dist/blocks/entities.js +1 -2
- package/dist/blocks/entity-geo.d.ts +4 -5
- package/dist/blocks/entity-geo.js +1 -2
- package/dist/blocks/entity-models.d.ts +8 -9
- package/dist/blocks/entity-models.js +1 -2
- package/dist/blocks/entity-sizes.d.ts +4 -4
- package/dist/blocks/entity-sizes.js +1 -2
- package/dist/blocks/export.d.ts +1 -1
- package/dist/blocks/export.js +1 -2
- package/dist/blocks/game-rules.js +1 -2
- package/dist/blocks/geo-blocks.d.ts +5 -6
- package/dist/blocks/geo-blocks.js +1 -2
- package/dist/blocks/item-sprites.d.ts +9 -10
- package/dist/blocks/item-sprites.js +1 -2
- package/dist/blocks/light-bytecode.d.ts +1 -1
- package/dist/blocks/light-bytecode.js +1 -2
- package/dist/blocks/light-eval.d.ts +1 -1
- package/dist/blocks/light-eval.js +1 -2
- package/dist/blocks/light.d.ts +8 -9
- package/dist/blocks/light.js +1 -2
- package/dist/blocks/names.d.ts +1 -1
- package/dist/blocks/names.js +1 -2
- package/dist/blocks/obj-mesh.d.ts +1 -1
- package/dist/blocks/obj-mesh.js +1 -2
- package/dist/blocks/pack-format.d.ts +1 -1
- package/dist/blocks/pack-format.js +1 -2
- package/dist/blocks/sprite-sheet.d.ts +11 -12
- package/dist/blocks/sprite-sheet.js +1 -2
- package/dist/blocks/states.js +1 -2
- package/dist/blocks/tints.d.ts +1 -1
- package/dist/blocks/tints.js +1 -2
- package/dist/{blockstate-DVb8Mhxc.js → blockstate-D5FgI-Qv.js} +3 -4
- package/dist/{blockstate-eval-CcgxVdKb.js → blockstate-eval-Cu-9TWH0.js} +1 -2
- package/dist/builtin.d.ts +5 -6
- package/dist/builtin.js +1 -2
- package/dist/{classfile-BJSs3JH0.js → classfile-YGjbyMPk.js} +3 -4
- package/dist/{cli-BUQzP6YF.js → cli-CeEAmdX9.js} +5 -5
- package/dist/cli.js +8 -8
- package/dist/{datapack-D6eH46ay.js → datapack-BZpO7nv-.js} +8 -9
- package/dist/{datapack-CmEg0Vko.d.ts → datapack-DhBAuxw5.d.ts} +1 -1
- package/dist/{definition-ColsvWrH.js → definition-Dab22cHd.js} +1 -1
- package/dist/{descriptor-Dz2cR-BH.js → descriptor-CJLtRmBc.js} +3 -3
- package/dist/{discovery-DWe_kX8W.d.ts → discovery-2Qk3x25z.d.ts} +1 -1
- package/dist/{discovery-CD0QqxSF.js → discovery-CMHJfdHQ.js} +13 -15
- package/dist/dynamic/generators.d.ts +1 -1
- package/dist/dynamic/generators.js +1 -2
- package/dist/{encode-TzYXOEId.js → encode-BIAWeZy2.js} +2 -3
- package/dist/{encode-BNEYHHR0.d.ts → encode-DZSVif8a.d.ts} +1 -1
- package/dist/{ender-storage-CKDiYgYc.js → ender-storage-COyXL-I4.js} +1 -1
- package/dist/entities/classfile.js +1 -2
- package/dist/entities/geo-model.d.ts +3 -4
- package/dist/entities/geo-model.js +1 -2
- package/dist/entities/inherit.d.ts +4 -5
- package/dist/entities/inherit.js +1 -2
- package/dist/entities/jar-classes.js +1 -2
- package/dist/entities/link.d.ts +9 -10
- package/dist/entities/link.js +1 -2
- package/dist/entities/mappings.js +1 -2
- package/dist/entities/merge.d.ts +7 -8
- package/dist/entities/merge.js +1 -2
- package/dist/entities/model-bytecode.d.ts +5 -6
- package/dist/entities/model-bytecode.js +1 -2
- package/dist/entities/model-code.js +1 -2
- package/dist/{entities-rQ4TZjEo.js → entities-4UMp3qXG.js} +4 -5
- package/dist/{entity-fallback-BEzCbJq0.js → entity-fallback-ZfurtmEQ.js} +9 -11
- package/dist/{entity-geo-DcrcN8TE.js → entity-geo-vJTSO0bB.js} +2 -2
- package/dist/{entity-models-D6AMLAy6.js → entity-models-CleLnlV4.js} +9 -10
- package/dist/{entity-sizes-Dmr4w0vu.js → entity-sizes-CC6-7DBz.js} +1 -1
- package/dist/{entity-textures-DG6NUNyp.js → entity-textures-BS5dI5dz.js} +15 -19
- package/dist/{export-CnKiSTiu.d.ts → export-BL_3VVZI.d.ts} +1 -1
- package/dist/{export-DE1V-ElS.js → export-BPH-b4LT.js} +25 -27
- package/dist/{face-uWXECGNr.d.ts → face-BOsq7v9f.d.ts} +4 -4
- package/dist/{face-D6SfTISC.js → face-DtbBpvbY.js} +2 -2
- package/dist/{game-rules-Dehe210A.js → game-rules-DrYU_6hd.js} +14 -16
- package/dist/{generators-D6giKoab.js → generators-7b5w6s0L.js} +1 -1
- package/dist/{generators-hu_vk10m.d.ts → generators-P1goUyvI.d.ts} +1 -1
- package/dist/{geo-BOYYFFQn.js → geo-CZHkm59F.js} +10 -12
- package/dist/{geo-DsWwuC5o.d.ts → geo-Ci_PGkFI.d.ts} +5 -5
- package/dist/{geo-blocks-BQqFfAQT.js → geo-blocks-BYSBc8uq.js} +1 -1
- package/dist/{geometry-bUDBhncX.js → geometry-BGTvfmbS.js} +1 -2
- package/dist/{geometry--UzHu1Vh.d.ts → geometry-Btiz31vH.d.ts} +1 -1
- package/dist/index.d.ts +21 -21
- package/dist/index.js +19 -19
- package/dist/{inherit-DJ45bOB_.js → inherit-LSSIV8N2.js} +2 -2
- package/dist/{item-sprites-CwiEBEAJ.js → item-sprites-Cip695Kk.js} +3 -3
- package/dist/{item-styles-BAeneY1R.js → item-styles-D-7N6j1i.js} +1 -1
- package/dist/items/blockstate.d.ts +5 -6
- package/dist/items/blockstate.js +1 -2
- package/dist/items/definition.js +1 -2
- package/dist/items/discovery.d.ts +1 -1
- package/dist/items/discovery.js +1 -2
- package/dist/{jar-DvofBm71.js → jar-Df0Xhw7X.js} +1 -1
- package/dist/{jar-4Jg7ufWK.d.ts → jar-IHoEeMdV.d.ts} +1 -1
- package/dist/{jar-classes-0wqWbTax.js → jar-classes-C5P3F18e.js} +1 -1
- package/dist/{legacy-reshape-CcdstKyI.js → legacy-reshape-ClEZFEVT.js} +6 -8
- package/dist/{light-c7l13kka.js → light-Bj0iD-ok.js} +19 -23
- package/dist/{light-bytecode-CQzTG8DJ.js → light-bytecode-B4_sP6ri.js} +3 -3
- package/dist/{light-eval-BuwUW4Tj.d.ts → light-eval-DJA58Kdg.d.ts} +1 -1
- package/dist/{lighting-3FGRC3Af.d.ts → lighting-DYkS-NlV.d.ts} +2 -2
- package/dist/{lighting--5myudVu.js → lighting-f_oZTiOx.js} +2 -2
- package/dist/{link-IDjVJ2Ij.js → link-CxzBRqeB.js} +4 -5
- package/dist/{loader-qOH0Jynq.js → loader-Ckhy0t8m.js} +3 -4
- package/dist/{loader-C4gsX_wO.d.ts → loader-CrPTL0zk.d.ts} +1 -1
- package/dist/{loader-BYyPIs9f.d.ts → loader-mGAKSRp6.d.ts} +2 -2
- package/dist/{manager-D6zXmFrO.js → manager-B1VPl4UQ.js} +4 -5
- package/dist/{manager-Ct0dEOMg.d.ts → manager-Ey26G_3e.d.ts} +1 -1
- package/dist/{model-bytecode-CXYAZ5dX.js → model-bytecode-Cp4LGfjI.js} +5 -6
- package/dist/{model-code-C5Au_FKU.js → model-code-B11iaTy1.js} +1 -1
- package/dist/models/loader.d.ts +1 -1
- package/dist/models/loader.js +1 -2
- package/dist/models/types.d.ts +1 -1
- package/dist/{models-BsYA-NZg.js → models-CvFehP26.js} +1 -1
- package/dist/mods/models.d.ts +3 -4
- package/dist/mods/models.js +1 -2
- package/dist/mods/prepare.d.ts +1 -1
- package/dist/mods/prepare.js +1 -2
- package/dist/mods/synthesize.d.ts +5 -6
- package/dist/mods/synthesize.js +1 -2
- package/dist/mods/tints.d.ts +7 -8
- package/dist/mods/tints.js +1 -2
- package/dist/{names-D1abAVIB.d.ts → names-D30ZIXkK.d.ts} +1 -1
- package/dist/{obj-NxBaySXt.js → obj-BWsU8pYz.js} +16 -18
- package/dist/{obj-mesh-BBSLG2Fv.js → obj-mesh-WShUgD4g.js} +1 -1
- package/dist/{obj-mesh-CzL0lOlJ.d.ts → obj-mesh-yN3ttPYf.d.ts} +2 -2
- package/dist/output/encode.d.ts +1 -1
- package/dist/output/encode.js +1 -2
- package/dist/output/item-styles.d.ts +3 -4
- package/dist/output/item-styles.js +1 -2
- package/dist/output/minify.js +1 -2
- package/dist/output/stylesheet.d.ts +1 -1
- package/dist/output/stylesheet.js +1 -2
- package/dist/pack.d.ts +5 -5
- package/dist/pack.js +1 -1
- package/dist/{pipeline-CCfkRth7.js → pipeline-DV4hIRMp.js} +12 -12
- package/dist/{pipeline-DuPF3sap.d.ts → pipeline-DmLQ49DB.d.ts} +4 -4
- package/dist/{pool-CKGp1qup.js → pool-Co7kPWwN.js} +1 -1
- package/dist/{prepare-DkJkZXuQ.js → prepare-BC5PYUmn.js} +7 -8
- package/dist/{prepare-Ce5SpR7Y.d.ts → prepare-BpwBH_m9.d.ts} +1 -1
- package/dist/{prepare-BPzsZI_S.d.ts → prepare-CZu44oTS.d.ts} +1 -1
- package/dist/{prepare-sj36BP90.js → prepare-DJnJQYtn.js} +9 -10
- package/dist/{rasterizer-M9Y7mn-W.js → rasterizer-B3tOyG4B.js} +5 -6
- package/dist/{rasterizer-DjnurUgD.d.ts → rasterizer-UBaTPhH4.d.ts} +1 -1
- package/dist/{registry-DafxsAhG.js → registry-CNFi94eo.js} +5 -7
- package/dist/render/blend.d.ts +1 -1
- package/dist/render/blend.js +1 -2
- package/dist/render/compose.d.ts +4 -5
- package/dist/render/compose.js +1 -2
- package/dist/render/entity-fallback.d.ts +12 -13
- package/dist/render/entity-fallback.js +1 -2
- package/dist/render/face.d.ts +1 -1
- package/dist/render/face.js +1 -2
- package/dist/render/fluid-bucket.d.ts +4 -5
- package/dist/render/fluid-bucket.js +1 -2
- package/dist/render/geo.d.ts +1 -1
- package/dist/render/geo.js +1 -2
- package/dist/render/geometry.d.ts +1 -1
- package/dist/render/geometry.js +1 -2
- package/dist/render/legacy-tints.d.ts +4 -5
- package/dist/render/legacy-tints.js +1 -2
- package/dist/render/lighting.d.ts +1 -1
- package/dist/render/lighting.js +1 -2
- package/dist/render/obj.d.ts +10 -10
- package/dist/render/obj.js +1 -2
- package/dist/render/pipeline.d.ts +1 -1
- package/dist/render/pipeline.js +1 -2
- package/dist/render/rasterizer.d.ts +1 -1
- package/dist/render/rasterizer.js +1 -2
- package/dist/render/renderer.d.ts +1 -1
- package/dist/render/renderer.js +1 -2
- package/dist/render/tints.d.ts +1 -1
- package/dist/render/tints.js +1 -2
- package/dist/render/vector.js +1 -2
- package/dist/{renderer-QgROYvPv.d.ts → renderer-DZSDiXL0.d.ts} +6 -6
- package/dist/resources/cache.d.ts +2 -3
- package/dist/resources/cache.js +1 -2
- package/dist/resources/cached.d.ts +3 -4
- package/dist/resources/cached.js +1 -2
- package/dist/resources/descriptor.d.ts +1 -1
- package/dist/resources/descriptor.js +1 -2
- package/dist/resources/entity-textures.d.ts +19 -20
- package/dist/resources/entity-textures.js +1 -2
- package/dist/resources/jar.d.ts +1 -1
- package/dist/resources/jar.js +1 -2
- package/dist/resources/locator.js +1 -2
- package/dist/resources/manager.d.ts +1 -1
- package/dist/resources/manager.js +1 -2
- package/dist/resources/read-ahead.d.ts +2 -3
- package/dist/resources/read-ahead.js +1 -2
- package/dist/resources/synthetic.d.ts +1 -1
- package/dist/resources/synthetic.js +1 -2
- package/dist/resources/zip-reader.d.ts +2 -3
- package/dist/resources/zip-reader.js +1 -2
- package/dist/{run-Bf5TLTJw.js → run-5Rc8hTHT.js} +15 -11
- package/dist/{run-CxB1qabg.d.ts → run-CfvR5OAR.d.ts} +3 -3
- package/dist/run.d.ts +1 -1
- package/dist/run.js +2 -2
- package/dist/{sources-DYY5Qu-t.js → sources-BsEa9YPc.js} +1 -1
- package/dist/{sources-sFtealLJ.d.ts → sources-ByuTQR_o.d.ts} +7 -3
- package/dist/{sprite-sheet-BWsLl0Vd.js → sprite-sheet-BQsUioOJ.js} +6 -7
- package/dist/{stylesheet-C61VrCAV.js → stylesheet-Cin7eCyU.js} +6 -7
- package/dist/{stylesheet-DxHkk4qA.d.ts → stylesheet-XJ-kH6kk.d.ts} +1 -1
- package/dist/{synthesize-jTjVjPAt.js → synthesize-DNvUwWhZ.js} +3 -4
- package/dist/{synthetic-CWtFtAkR.d.ts → synthetic-C8_0G5iP.d.ts} +1 -1
- package/dist/{synthetic-rc9BPT4P.js → synthetic-y9Mr-wB2.js} +0 -0
- package/dist/textures/loader.d.ts +1 -1
- package/dist/textures/loader.js +1 -2
- package/dist/textures/overlay.d.ts +3 -4
- package/dist/textures/overlay.js +1 -2
- package/dist/{tints-B0a1K11c.d.ts → tints-BNS9JGf7.d.ts} +2 -2
- package/dist/{tints-DwFmEkf3.d.ts → tints-CvHlfvDC.d.ts} +2 -2
- package/dist/{tints-B3WQcPtx.js → tints-Cw5okshA.js} +1 -1
- package/dist/{tints-CZeyKzMv.js → tints-DhSA5SCg.js} +3 -3
- package/dist/{types-qlp3I8_-.d.ts → types-BQQzfHEY.d.ts} +4 -0
- package/dist/versions/download.d.ts +2 -3
- package/dist/versions/download.js +1 -2
- package/dist/versions/legacy-reshape.d.ts +3 -4
- package/dist/versions/legacy-reshape.js +1 -2
- package/dist/versions/prepare.d.ts +1 -1
- package/dist/versions/prepare.js +1 -2
- package/dist/workers/pool.d.ts +6 -7
- package/dist/workers/pool.js +1 -2
- package/dist/workers/render-worker.d.ts +6 -7
- package/dist/workers/render-worker.js +2 -2
- package/package.json +9 -9
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { RowCursor, clearFaceBuffer, compactFaceBuffer, createFaceBuffer, drawTexturedTriangle, phpRound };
|
|
1
|
+
export { t as RowCursor, n as clearFaceBuffer, r as compactFaceBuffer, i as createFaceBuffer, a as drawTexturedTriangle, o as phpRound } from "../rasterizer-B3tOyG4B.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RenderedFrames, c as renderModel, i as RenderOptions, l as renderModelFrames, n as AnimationLimits, o as boxDownscale, r as ItemRenderError, s as pointResize, t as AnimationDiagnostics } from "../renderer-
|
|
1
|
+
import { a as RenderedFrames, c as renderModel, i as RenderOptions, l as renderModelFrames, n as AnimationLimits, o as boxDownscale, r as ItemRenderError, s as pointResize, t as AnimationDiagnostics } from "../renderer-DZSDiXL0.js";
|
|
2
2
|
export { AnimationDiagnostics, AnimationLimits, ItemRenderError, RenderOptions, RenderedFrames, boxDownscale, pointResize, renderModel, renderModelFrames };
|
package/dist/render/renderer.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ItemRenderError, boxDownscale, pointResize, renderModel, renderModelFrames };
|
|
1
|
+
export { a as ItemRenderError, o as boxDownscale, s as pointResize, c as renderModel, l as renderModelFrames } from "../obj-BWsU8pYz.js";
|
package/dist/render/tints.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveTint, i as parseTintValue, n as InvalidTinterDefinitionError, o as resolveTints, r as TintContext, t as DYE_COLORS } from "../tints-
|
|
1
|
+
import { a as resolveTint, i as parseTintValue, n as InvalidTinterDefinitionError, o as resolveTints, r as TintContext, t as DYE_COLORS } from "../tints-BNS9JGf7.js";
|
|
2
2
|
export { DYE_COLORS, InvalidTinterDefinitionError, TintContext, parseTintValue, resolveTint, resolveTints };
|
package/dist/render/tints.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { DYE_COLORS, InvalidTinterDefinitionError, parseTintValue, resolveTint, resolveTints };
|
|
1
|
+
export { t as DYE_COLORS, n as InvalidTinterDefinitionError, r as parseTintValue, i as resolveTint, a as resolveTints } from "../tints-Cw5okshA.js";
|
package/dist/render/vector.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { cross, displayMatrix, dot, fromItemTransform, fromQuaternion, identity, multiply, normalize, rotationEuler, rotationX, rotationY, rotationZ, scaling, sub, transformDirection, transformVector, translation, vec3 };
|
|
1
|
+
export { t as cross, n as displayMatrix, r as dot, i as fromItemTransform, a as fromQuaternion, o as identity, s as multiply, c as normalize, l as rotationEuler, u as rotationX, d as rotationY, f as rotationZ, p as scaling, m as sub, h as transformDirection, g as transformVector, _ as translation, v as vec3 } from "../vector-CCxLae_T.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
2
|
-
import { i as TextureLoader } from "./loader-
|
|
3
|
-
import { r as ResolvedModel } from "./loader-
|
|
4
|
-
import { n as FloatTexture } from "./blend-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ey26G_3e.js";
|
|
2
|
+
import { i as TextureLoader } from "./loader-CrPTL0zk.js";
|
|
3
|
+
import { r as ResolvedModel } from "./loader-mGAKSRp6.js";
|
|
4
|
+
import { n as FloatTexture } from "./blend-DnogOnaU.js";
|
|
5
5
|
import { t as Mat4 } from "./vector-DRKRi4--.js";
|
|
6
|
-
import { a as LightingProfileName } from "./lighting-
|
|
7
|
-
import { r as TintColor } from "./face-
|
|
6
|
+
import { a as LightingProfileName } from "./lighting-DYkS-NlV.js";
|
|
7
|
+
import { r as TintColor } from "./face-BOsq7v9f.js";
|
|
8
8
|
//#region src/render/renderer.d.ts
|
|
9
9
|
interface AnimationLimits {
|
|
10
10
|
/** Emitted frames per icon (default 128). */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* were unbounded, which is fine for one namespace and not fine for a run that
|
|
5
5
|
* walks thousands of them in a single process — resident memory only ever grew.
|
|
6
6
|
*/
|
|
7
|
-
declare class LruCache<K, V> {
|
|
7
|
+
export declare class LruCache<K, V> {
|
|
8
8
|
private readonly entries;
|
|
9
9
|
private readonly maxEntries;
|
|
10
10
|
private readonly weigh;
|
|
@@ -27,5 +27,4 @@ declare class LruCache<K, V> {
|
|
|
27
27
|
delete(key: K): void;
|
|
28
28
|
clear(): void;
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { LruCache };
|
|
30
|
+
//#endregion
|
package/dist/resources/cache.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { LruCache };
|
|
1
|
+
export { t as LruCache } from "../cache-D-_gSxhp.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "../locator-jDbdUeTd.js";
|
|
2
|
-
import { a as ResourceManager, i as ResourceKindName, s as ResourceDescriptor } from "../manager-
|
|
2
|
+
import { a as ResourceManager, i as ResourceKindName, s as ResourceDescriptor } from "../manager-Ey26G_3e.js";
|
|
3
3
|
//#region src/resources/cached.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Remembers directory listings for the lifetime of one render or export.
|
|
@@ -11,7 +11,7 @@ import { a as ResourceManager, i as ResourceKindName, s as ResourceDescriptor }
|
|
|
11
11
|
* and texture caches beside it already assume the tree is fixed for the run,
|
|
12
12
|
* so this assumes the same and no more. Reads pass straight through.
|
|
13
13
|
*/
|
|
14
|
-
declare class CachedListingResourceManager implements ResourceManager {
|
|
14
|
+
export declare class CachedListingResourceManager implements ResourceManager {
|
|
15
15
|
private readonly inner;
|
|
16
16
|
private readonly listings;
|
|
17
17
|
private namespaces;
|
|
@@ -23,5 +23,4 @@ declare class CachedListingResourceManager implements ResourceManager {
|
|
|
23
23
|
listNamespaces(): Promise<string[]>;
|
|
24
24
|
describe(): ResourceDescriptor | null;
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { CachedListingResourceManager };
|
|
26
|
+
//#endregion
|
package/dist/resources/cached.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { CachedListingResourceManager };
|
|
1
|
+
export { t as CachedListingResourceManager } from "../cached-BOX3n1Dl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as describeResources, l as restoreResources, o as DescribableResourceManager, s as ResourceDescriptor } from "../manager-
|
|
1
|
+
import { c as describeResources, l as restoreResources, o as DescribableResourceManager, s as ResourceDescriptor } from "../manager-Ey26G_3e.js";
|
|
2
2
|
export { DescribableResourceManager, ResourceDescriptor, describeResources, restoreResources };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { describeResources, restoreResources };
|
|
1
|
+
export { t as describeResources, n as restoreResources } from "../descriptor-CJLtRmBc.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "../locator-jDbdUeTd.js";
|
|
2
|
-
import { a as ResourceManager } from "../manager-
|
|
3
|
-
import { i as TextureLoader } from "../loader-
|
|
2
|
+
import { a as ResourceManager } from "../manager-Ey26G_3e.js";
|
|
3
|
+
import { i as TextureLoader } from "../loader-CrPTL0zk.js";
|
|
4
4
|
//#region src/resources/entity-textures.d.ts
|
|
5
|
-
declare function tokens(name: string): string[];
|
|
5
|
+
export declare function tokens(name: string): string[];
|
|
6
6
|
/** Vanilla DyeColor diffuse colors, keyed by the dye name mods prefix with. */
|
|
7
|
-
declare const DYE_COLORS: Record<string, number>;
|
|
7
|
+
export declare const DYE_COLORS: Record<string, number>;
|
|
8
8
|
/** Skin sheet sizes the mobheads pack has base geometry for. */
|
|
9
|
-
declare const HEAD_LAYOUTS: Record<string, string>;
|
|
9
|
+
export declare const HEAD_LAYOUTS: Record<string, string>;
|
|
10
10
|
/**
|
|
11
11
|
* The entity sheet for a mob, preferring a file named exactly after it. Sheets
|
|
12
12
|
* live at entity/<mob>.png or entity/<mob>/<mob>.png depending on the mod, and a
|
|
@@ -21,20 +21,20 @@ declare const HEAD_LAYOUTS: Record<string, string>;
|
|
|
21
21
|
* the carpet it wears, which is a few opaque pixels on a transparent sheet, and the llama underneath
|
|
22
22
|
* came out invisible on most of its faces.
|
|
23
23
|
*/
|
|
24
|
-
declare const OVERLAY_DIRECTORIES: Set<string>;
|
|
24
|
+
export declare const OVERLAY_DIRECTORIES: Set<string>;
|
|
25
25
|
/** Whether a texture is filed inside one of those, whatever the file itself is called. */
|
|
26
|
-
declare function isOverlayPath(path: string): boolean;
|
|
27
|
-
declare function findMobTexture(resources: ResourceManager, namespace: string, mob: string): Promise<ResourceLocator | null>;
|
|
26
|
+
export declare function isOverlayPath(path: string): boolean;
|
|
27
|
+
export declare function findMobTexture(resources: ResourceManager, namespace: string, mob: string): Promise<ResourceLocator | null>;
|
|
28
28
|
/**
|
|
29
29
|
* Find the mod's own chest sheet for a chest-like item by token overlap over
|
|
30
30
|
* the FULL texture path — mods keep variant sheets in per-wood directories
|
|
31
31
|
* (quark's `quark_variant_chests/acacia/normal.png`), not just under entity/.
|
|
32
32
|
*/
|
|
33
|
-
declare function findChestTexture(resources: ResourceManager, namespace: string, itemName: string): Promise<ResourceLocator | null>;
|
|
33
|
+
export declare function findChestTexture(resources: ResourceManager, namespace: string, itemName: string): Promise<ResourceLocator | null>;
|
|
34
34
|
/** Find a full modded bed entity sheet, preferring every distinguishing item-name token. */
|
|
35
|
-
declare function findBedTexture(resources: ResourceManager, namespace: string, itemName: string): Promise<ResourceLocator | null>;
|
|
35
|
+
export declare function findBedTexture(resources: ResourceManager, namespace: string, itemName: string): Promise<ResourceLocator | null>;
|
|
36
36
|
/** A sheet to draw with, plus the two layers it was composed from where it was. */
|
|
37
|
-
interface LayeredSheet {
|
|
37
|
+
export interface LayeredSheet {
|
|
38
38
|
/** What to bind, with any accent already laid over the sheet it decorates. */
|
|
39
39
|
sheet: ResourceLocator;
|
|
40
40
|
/** The covering sheet underneath, only when the match was an accent. */
|
|
@@ -52,13 +52,13 @@ interface LayeredSheet {
|
|
|
52
52
|
* Null when the match is a trim with nothing to lay it over, which leaves the
|
|
53
53
|
* caller's own fallback (vanilla's sheet, or the match unchanged) to decide.
|
|
54
54
|
*/
|
|
55
|
-
declare function layerAccentSheet(resources: ResourceManager, textures: TextureLoader, found: ResourceLocator): Promise<LayeredSheet | null>;
|
|
55
|
+
export declare function layerAccentSheet(resources: ResourceManager, textures: TextureLoader, found: ResourceLocator): Promise<LayeredSheet | null>;
|
|
56
56
|
/**
|
|
57
57
|
* The sheet to draw a mod's chest with. A trim with no covering sibling is
|
|
58
58
|
* still returned: it is what the search found, and a faint chest beats
|
|
59
59
|
* reporting the block as having no geometry at all.
|
|
60
60
|
*/
|
|
61
|
-
declare function resolveChestSheets(resources: ResourceManager, textures: TextureLoader, namespace: string, itemName: string): Promise<LayeredSheet | null>;
|
|
61
|
+
export declare function resolveChestSheets(resources: ResourceManager, textures: TextureLoader, namespace: string, itemName: string): Promise<LayeredSheet | null>;
|
|
62
62
|
/**
|
|
63
63
|
* The sheet an accent decorates: a covering sibling in the accent's own
|
|
64
64
|
* directory, which is where a mod keeps the two halves of one chest
|
|
@@ -69,18 +69,18 @@ declare function resolveChestSheets(resources: ResourceManager, textures: Textur
|
|
|
69
69
|
* stated preference the choice fell to listing order and a plain chest came
|
|
70
70
|
* out acacia.
|
|
71
71
|
*/
|
|
72
|
-
declare function findAccentBaseSheet(resources: ResourceManager, textures: TextureLoader, accent: ResourceLocator): Promise<ResourceLocator | null>;
|
|
72
|
+
export declare function findAccentBaseSheet(resources: ResourceManager, textures: TextureLoader, accent: ResourceLocator): Promise<ResourceLocator | null>;
|
|
73
73
|
/**
|
|
74
74
|
* Whether a sheet is a whole skin rather than an overlay. Vanilla's shulker
|
|
75
75
|
* covers 44% of its sheet; a tier trim covers under 5%.
|
|
76
76
|
*/
|
|
77
|
-
declare function coversSheet(textures: TextureLoader, locator: ResourceLocator): Promise<boolean>;
|
|
77
|
+
export declare function coversSheet(textures: TextureLoader, locator: ResourceLocator): Promise<boolean>;
|
|
78
78
|
/**
|
|
79
79
|
* A mod's entity sheet for a kind, preferring the one its item name points at.
|
|
80
80
|
* Not restricted to `entity/`: lootr files its whole-skin sheets straight under
|
|
81
81
|
* `textures/` (`lootr:shulker`), and the caller gates on coverage anyway.
|
|
82
82
|
*/
|
|
83
|
-
declare function findEntityTexture(resources: ResourceManager, namespace: string, itemName: string, kind: string): Promise<ResourceLocator | null>;
|
|
83
|
+
export declare function findEntityTexture(resources: ResourceManager, namespace: string, itemName: string, kind: string): Promise<ResourceLocator | null>;
|
|
84
84
|
/**
|
|
85
85
|
* The still sprite for a fluid block. A fluid's two frames are `<name>_still`
|
|
86
86
|
* and `<name>_flow` by a convention every loader follows, but where they live
|
|
@@ -88,13 +88,12 @@ declare function findEntityTexture(resources: ResourceManager, namespace: string
|
|
|
88
88
|
* under `block/fluid/`, Mekanism under `liquid/` — and the block is named for
|
|
89
89
|
* the fluid with a suffix the mod picks.
|
|
90
90
|
*/
|
|
91
|
-
declare function findFluidStill(resources: ResourceManager, namespace: string, blockName: string): Promise<ResourceLocator | null>;
|
|
91
|
+
export declare function findFluidStill(resources: ResourceManager, namespace: string, blockName: string): Promise<ResourceLocator | null>;
|
|
92
92
|
/**
|
|
93
93
|
* A sheet filed beside a fluid's still one — its flow frames, or the overlay
|
|
94
94
|
* drawn where it meets a solid face. Vanilla and most mods spell flow `_flow`;
|
|
95
95
|
* some spell it `_flowing`. Only water has an overlay, and deriving it as a
|
|
96
96
|
* sibling is what keeps lava from borrowing water's.
|
|
97
97
|
*/
|
|
98
|
-
declare function findFluidSibling(resources: ResourceManager, still: ResourceLocator, suffixes: string[]): Promise<ResourceLocator | null>;
|
|
99
|
-
//#endregion
|
|
100
|
-
export { DYE_COLORS, HEAD_LAYOUTS, LayeredSheet, OVERLAY_DIRECTORIES, coversSheet, findAccentBaseSheet, findBedTexture, findChestTexture, findEntityTexture, findFluidSibling, findFluidStill, findMobTexture, isOverlayPath, layerAccentSheet, resolveChestSheets, tokens };
|
|
98
|
+
export declare function findFluidSibling(resources: ResourceManager, still: ResourceLocator, suffixes: string[]): Promise<ResourceLocator | null>;
|
|
99
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { DYE_COLORS, HEAD_LAYOUTS, OVERLAY_DIRECTORIES, coversSheet, findAccentBaseSheet, findBedTexture, findChestTexture, findEntityTexture, findFluidSibling, findFluidStill, findMobTexture, isOverlayPath, layerAccentSheet, resolveChestSheets, tokens };
|
|
1
|
+
export { t as DYE_COLORS, n as HEAD_LAYOUTS, r as OVERLAY_DIRECTORIES, i as coversSheet, a as findAccentBaseSheet, o as findBedTexture, s as findChestTexture, c as findEntityTexture, l as findFluidSibling, u as findFluidStill, d as findMobTexture, f as isOverlayPath, p as layerAccentSheet, m as resolveChestSheets, h as tokens } from "../entity-textures-BS5dI5dz.js";
|
package/dist/resources/jar.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as UnsafeJarError, r as isUnsafeEntryPath, t as JarResourceManager } from "../jar-
|
|
1
|
+
import { n as UnsafeJarError, r as isUnsafeEntryPath, t as JarResourceManager } from "../jar-IHoEeMdV.js";
|
|
2
2
|
export { JarResourceManager, UnsafeJarError, isUnsafeEntryPath };
|
package/dist/resources/jar.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { JarResourceManager, UnsafeJarError, isUnsafeEntryPath };
|
|
1
|
+
export { t as JarResourceManager, n as UnsafeJarError, r as isUnsafeEntryPath } from "../jar-Df0Xhw7X.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { InvalidResourceLocatorError, ResourceLocator };
|
|
1
|
+
export { t as InvalidResourceLocatorError, n as ResourceLocator } from "../locator-COMEtEn9.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ResourceManager, i as ResourceKindName, n as LayeredResourceManager, r as ResourceKind, t as FolderResourceManager } from "../manager-
|
|
1
|
+
import { a as ResourceManager, i as ResourceKindName, n as LayeredResourceManager, r as ResourceKind, t as FolderResourceManager } from "../manager-Ey26G_3e.js";
|
|
2
2
|
export { FolderResourceManager, LayeredResourceManager, ResourceKind, ResourceKindName, ResourceManager };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { FolderResourceManager, LayeredResourceManager, ResourceKind };
|
|
1
|
+
export { t as FolderResourceManager, n as LayeredResourceManager, r as ResourceKind } from "../manager-B1VPl4UQ.js";
|
|
@@ -7,6 +7,5 @@
|
|
|
7
7
|
* and decode in series. The caller still awaits each load in order, so results, progress and the first
|
|
8
8
|
* failure land exactly where the one-at-a-time loop put them.
|
|
9
9
|
*/
|
|
10
|
-
declare function readAhead<Item, Result>(items: Iterable<Item>, load: (item: Item) => Promise<Result>): Generator<[Item, Promise<Result>]>;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { readAhead };
|
|
10
|
+
export declare function readAhead<Item, Result>(items: Iterable<Item>, load: (item: Item) => Promise<Result>): Generator<[Item, Promise<Result>]>;
|
|
11
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { readAhead };
|
|
1
|
+
export { t as readAhead } from "../read-ahead-BlSzTexs.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MapResourceManager, t as KindFilteredResourceManager } from "../synthetic-
|
|
1
|
+
import { n as MapResourceManager, t as KindFilteredResourceManager } from "../synthetic-C8_0G5iP.js";
|
|
2
2
|
export { KindFilteredResourceManager, MapResourceManager };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { KindFilteredResourceManager, MapResourceManager };
|
|
1
|
+
export { t as KindFilteredResourceManager, n as MapResourceManager } from "../synthetic-y9Mr-wB2.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { openZip };
|
|
1
|
+
export { t as openZip } from "../zip-reader-onwEVMea.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
-
import { n as LayeredResourceManager } from "./manager-
|
|
3
|
-
import { n as discoverItems } from "./discovery-
|
|
4
|
-
import { t as curatedModelOverrides } from "./models-
|
|
5
|
-
import { r as encodeRasterAsset } from "./encode-
|
|
6
|
-
import { t as classifyItemStyle } from "./item-styles-
|
|
2
|
+
import { n as LayeredResourceManager } from "./manager-B1VPl4UQ.js";
|
|
3
|
+
import { n as discoverItems } from "./discovery-CMHJfdHQ.js";
|
|
4
|
+
import { t as curatedModelOverrides } from "./models-CvFehP26.js";
|
|
5
|
+
import { r as encodeRasterAsset } from "./encode-BIAWeZy2.js";
|
|
6
|
+
import { t as classifyItemStyle } from "./item-styles-D-7N6j1i.js";
|
|
7
7
|
import { t as minifyStylesheet } from "./minify-bjMRmr5J.js";
|
|
8
|
-
import { t as generateStylesheet } from "./stylesheet-
|
|
9
|
-
import { t as ItemPipeline } from "./pipeline-
|
|
10
|
-
import { t as describeResources } from "./descriptor-
|
|
11
|
-
import { t as WorkerRenderPool } from "./pool-
|
|
8
|
+
import { t as generateStylesheet } from "./stylesheet-Cin7eCyU.js";
|
|
9
|
+
import { t as ItemPipeline } from "./pipeline-DV4hIRMp.js";
|
|
10
|
+
import { t as describeResources } from "./descriptor-CJLtRmBc.js";
|
|
11
|
+
import { t as WorkerRenderPool } from "./pool-Co7kPWwN.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import os from "node:os";
|
|
14
14
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -70,9 +70,12 @@ async function run(options) {
|
|
|
70
70
|
seen.add(placeholder);
|
|
71
71
|
ids.push(placeholder);
|
|
72
72
|
}
|
|
73
|
+
const hasMapMarkings = await resources.hasResource("texture", ResourceLocator.parse("minecraft:item/filled_map_markings"));
|
|
73
74
|
for (const namespace of namespaces) for (const item of await discoverItems(resources, namespace, { filterUntranslatedModels: options.filterUntranslatedModels })) {
|
|
74
75
|
if (seen.has(item.id)) continue;
|
|
75
|
-
if (
|
|
76
|
+
if (item.source === "definition" && item.id.startsWith("minecraft:rc_")) {
|
|
77
|
+
if (item.id.startsWith("minecraft:rc_filled_map_") && !hasMapMarkings) continue;
|
|
78
|
+
} else if (options.builtin && !await itemExistsIn(options.resources, item.id)) continue;
|
|
76
79
|
seen.add(item.id);
|
|
77
80
|
ids.push(item.id);
|
|
78
81
|
}
|
|
@@ -84,7 +87,8 @@ async function run(options) {
|
|
|
84
87
|
_decorated_pot: await resources.hasResource("texture", ResourceLocator.parse("minecraft:entity/decorated_pot/decorated_pot_base")),
|
|
85
88
|
_crossbow: await resources.hasResource("model", ResourceLocator.parse("minecraft:item/crossbow_arrow"))
|
|
86
89
|
};
|
|
87
|
-
for (const id of pipeline.dynamicItems)
|
|
90
|
+
for (const id of pipeline.dynamicItems) {
|
|
91
|
+
if (!(groupAvailable[id.split(":", 1)[0]] ?? true) || seen.has(id)) continue;
|
|
88
92
|
seen.add(id);
|
|
89
93
|
ids.push(id);
|
|
90
94
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
2
|
-
import { a as LightingProfileName } from "./lighting-
|
|
3
|
-
import { n as AnimationLimits } from "./renderer-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ey26G_3e.js";
|
|
2
|
+
import { a as LightingProfileName } from "./lighting-DYkS-NlV.js";
|
|
3
|
+
import { n as AnimationLimits } from "./renderer-DZSDiXL0.js";
|
|
4
4
|
//#region src/run.d.ts
|
|
5
5
|
interface RunOptions {
|
|
6
6
|
resources: ResourceManager;
|
package/dist/run.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { l as evaluateItemModel } from "./definition-ricL7Jqf.js";
|
|
2
|
-
import { i as run, n as RunOptions, r as RunResult, t as ItemFailure } from "./run-
|
|
2
|
+
import { i as run, n as RunOptions, r as RunResult, t as ItemFailure } from "./run-CfvR5OAR.js";
|
|
3
3
|
export { ItemFailure, RunOptions, RunResult, evaluateItemModel, run };
|
package/dist/run.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { o as evaluateItemModel } from "./definition-
|
|
2
|
-
import { t as run } from "./run-
|
|
1
|
+
import { o as evaluateItemModel } from "./definition-Dab22cHd.js";
|
|
2
|
+
import { t as run } from "./run-5Rc8hTHT.js";
|
|
3
3
|
export { evaluateItemModel, run };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
2
|
//#region src/atlas/sources.ts
|
|
3
3
|
/**
|
|
4
|
-
* Atlas texture sources (docs/
|
|
4
|
+
* Atlas texture sources (docs/renderchest-spec.md §6): directory,
|
|
5
5
|
* single, unstitch, paletted_permutations. Sources resolve sprite ids to
|
|
6
6
|
* texture content; the resolver checks sources in reverse load order
|
|
7
7
|
* (last-loaded wins, matching upstream's unshift behavior).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-jDbdUeTd.js";
|
|
2
|
-
import { r as Texture } from "./loader-
|
|
2
|
+
import { r as Texture } from "./loader-CrPTL0zk.js";
|
|
3
3
|
//#region src/atlas/sources.d.ts
|
|
4
4
|
declare class AtlasSourceError extends Error {}
|
|
5
5
|
interface AtlasSource {
|
|
@@ -94,13 +94,17 @@ declare class UnstitchAtlasSource implements AtlasSource {
|
|
|
94
94
|
has(locator: ResourceLocator): boolean;
|
|
95
95
|
resolve(locator: ResourceLocator): Promise<ResolvedSprite | null>;
|
|
96
96
|
}
|
|
97
|
+
/** One unvalidated entry of an atlas JSON's sources array: any source type's fields may be present. */
|
|
98
|
+
type AtlasSourceEntry = {
|
|
99
|
+
type?: unknown;
|
|
100
|
+
} & Partial<DirectorySettings & SingleSettings & PalettedPermutationsSettings & UnstitchSettings>;
|
|
97
101
|
/**
|
|
98
102
|
* Parses one atlas JSON's sources array. Unknown types are reported and
|
|
99
103
|
* skipped rather than failing the file — mods ship experimental source types,
|
|
100
104
|
* and losing a whole atlas over one is how items vanish.
|
|
101
105
|
*/
|
|
102
106
|
declare function parseAtlasSources(namespace: string, atlasJson: {
|
|
103
|
-
sources?:
|
|
107
|
+
sources?: AtlasSourceEntry[];
|
|
104
108
|
}, loadTexture: (locator: ResourceLocator) => Promise<Texture | null>, onUnknown?: (type: string) => void, hasTexture?: HasTexture): AtlasSource[];
|
|
105
109
|
interface AtlasResolver {
|
|
106
110
|
resolve(locator: ResourceLocator): Promise<ResolvedSprite | null>;
|
|
@@ -108,4 +112,4 @@ interface AtlasResolver {
|
|
|
108
112
|
/** Sources checked in reverse insertion order (last added wins), per upstream. */
|
|
109
113
|
declare function createAtlasResolver(sources: AtlasSource[]): AtlasResolver;
|
|
110
114
|
//#endregion
|
|
111
|
-
export {
|
|
115
|
+
export { DirectoryAtlasSource as a, ResolvedSprite as c, createAtlasResolver as d, parseAtlasSources as f, AtlasSourceError as i, SingleAtlasSource as l, AtlasSource as n, HasTexture as o, AtlasSourceEntry as r, PalettedPermutationsSource as s, AtlasResolver as t, UnstitchAtlasSource as u };
|
|
@@ -140,13 +140,12 @@ async function buildSpriteSheet(ids, textures, options = {}) {
|
|
|
140
140
|
});
|
|
141
141
|
for (const key of packed.oversized) {
|
|
142
142
|
const id = key.split("#", 1)[0];
|
|
143
|
-
if (
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
143
|
+
if (missing.has(id)) continue;
|
|
144
|
+
failures.push({
|
|
145
|
+
id,
|
|
146
|
+
reason: "sprite is larger than one atlas page; drawn as the missing texture"
|
|
147
|
+
});
|
|
148
|
+
missing.add(id);
|
|
150
149
|
}
|
|
151
150
|
if (options.includeMissing && missing.has("minecraft:missingno")) throw new Error("the missing-texture sprite does not fit an atlas page; maxPageSize is too small");
|
|
152
151
|
const rects = new Map(packed.rects.map((rect) => [rect.key, rect]));
|
|
@@ -51,13 +51,12 @@ function generateStylesheet(items, options = {}) {
|
|
|
51
51
|
blocks.push(`${variantSelector}.${prefix}enchanted {\n mask-image: ${url(`${variant.image}.${baseExtension}`, urlPrefix)};\n}`);
|
|
52
52
|
upgrade.push(`${variantSelector} { background-image: ${url(`${variant.image}.${format}`, urlPrefix)}; }`);
|
|
53
53
|
}
|
|
54
|
-
if (variant.before)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
54
|
+
if (!variant.before) continue;
|
|
55
|
+
const variantSelector = `${selector}.${prefix}${variant.suffix}:before`;
|
|
56
|
+
const props = [`background-image: ${url(`${variant.before.image}.${baseExtension}`, urlPrefix)};`];
|
|
57
|
+
if (variant.before.mask) props.push(`mask-image: ${url(`${variant.before.mask}.${baseExtension}`, urlPrefix)};`);
|
|
58
|
+
blocks.push(`${variantSelector} {\n ${props.join("\n ")}\n}`);
|
|
59
|
+
upgrade.push(`${variantSelector} { background-image: ${url(`${variant.before.image}.${format}`, urlPrefix)}; }`);
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
if (options.glint ?? true) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/output/stylesheet.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Stylesheet generation matching the renderchest CSS contract
|
|
4
|
-
* (docs/
|
|
4
|
+
* (docs/css-output.md). Differences by design: selectors are
|
|
5
5
|
* sanitized (junk mod item names once broke whole sheets), and the URL prefix
|
|
6
6
|
* is configurable so published sheets need no downstream rebasing.
|
|
7
7
|
*/
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
-
import { n as MapResourceManager } from "./synthetic-
|
|
2
|
+
import { n as MapResourceManager } from "./synthetic-y9Mr-wB2.js";
|
|
3
3
|
//#region src/mods/synthesize.ts
|
|
4
4
|
/**
|
|
5
|
-
* Model synthesis for mods that ship textures without item models
|
|
6
|
-
*
|
|
7
|
-
* 419k-item modded run:
|
|
5
|
+
* Model synthesis for mods that ship textures without item models. Every rule
|
|
6
|
+
* below was earned on a 419k-item modded run:
|
|
8
7
|
* - a real model from the mod always beats a synthesized one;
|
|
9
8
|
* - lang-declared ids filter out invented items (a mod with no lang file
|
|
10
9
|
* synthesizes everything — losing coverage is worse than a few extras);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-jDbdUeTd.js";
|
|
2
|
-
import { a as ResourceManager, i as ResourceKindName, s as ResourceDescriptor } from "./manager-
|
|
2
|
+
import { a as ResourceManager, i as ResourceKindName, s as ResourceDescriptor } from "./manager-Ey26G_3e.js";
|
|
3
3
|
//#region src/resources/synthetic.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* In-memory resources, used for era shims (synthesized `models/item/generated.json`,
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TextureMeta, i as TextureLoader, n as AtlasResolverLike, o as TextureResolutionError, r as Texture, t as AnimatedTexture } from "../loader-
|
|
1
|
+
import { a as TextureMeta, i as TextureLoader, n as AtlasResolverLike, o as TextureResolutionError, r as Texture, t as AnimatedTexture } from "../loader-CrPTL0zk.js";
|
|
2
2
|
export { AnimatedTexture, AtlasResolverLike, Texture, TextureLoader, TextureMeta, TextureResolutionError };
|
package/dist/textures/loader.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { AnimatedTexture, TextureLoader, TextureResolutionError };
|
|
1
|
+
export { t as AnimatedTexture, n as TextureLoader, r as TextureResolutionError } from "../loader-CsgtBuBo.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "../locator-jDbdUeTd.js";
|
|
2
|
-
import { i as TextureLoader } from "../loader-
|
|
2
|
+
import { i as TextureLoader } from "../loader-CrPTL0zk.js";
|
|
3
3
|
//#region src/textures/overlay.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Compose `accent` over `base` and return the locator the result is registered
|
|
@@ -7,6 +7,5 @@ import { i as TextureLoader } from "../loader-C4gsX_wO.js";
|
|
|
7
7
|
* two layouts cannot be layered pixel for pixel, and stretching one would
|
|
8
8
|
* smear a trim across faces it does not belong to.
|
|
9
9
|
*/
|
|
10
|
-
declare function overlaySheets(textures: TextureLoader, base: ResourceLocator, accent: ResourceLocator): Promise<ResourceLocator | null>;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { overlaySheets };
|
|
10
|
+
export declare function overlaySheets(textures: TextureLoader, base: ResourceLocator, accent: ResourceLocator): Promise<ResourceLocator | null>;
|
|
11
|
+
//#endregion
|
package/dist/textures/overlay.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { overlaySheets };
|
|
1
|
+
export { t as overlaySheets } from "../overlay-BdHHd5WR.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as TextureLoader } from "./loader-
|
|
2
|
-
import { r as TintColor } from "./face-
|
|
1
|
+
import { i as TextureLoader } from "./loader-CrPTL0zk.js";
|
|
2
|
+
import { r as TintColor } from "./face-BOsq7v9f.js";
|
|
3
3
|
import { o as TintDefinition } from "./definition-ricL7Jqf.js";
|
|
4
4
|
//#region src/render/tints.d.ts
|
|
5
5
|
declare class InvalidTinterDefinitionError extends Error {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
2
|
-
import { i as TextureLoader } from "./loader-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ey26G_3e.js";
|
|
2
|
+
import { i as TextureLoader } from "./loader-CrPTL0zk.js";
|
|
3
3
|
//#region src/blocks/tints.d.ts
|
|
4
4
|
type BlockTint =
|
|
5
5
|
/** Sample the named colormap at the block's biome climate. */
|
|
@@ -2,7 +2,7 @@ import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
|
2
2
|
//#region src/render/tints.ts
|
|
3
3
|
/**
|
|
4
4
|
* Tint definition → color resolution for static icons, mirroring upstream's
|
|
5
|
-
* Tinter classes (docs/
|
|
5
|
+
* Tinter classes (docs/renderchest-spec.md §8).
|
|
6
6
|
*/
|
|
7
7
|
var InvalidTinterDefinitionError = class extends Error {};
|
|
8
8
|
/** The 16 dye colors upstream's renderchest:random picks from. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as modTintPackPath } from "./builtin-WkWjATeh.js";
|
|
2
2
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
3
|
-
import { n as MapResourceManager } from "./synthetic-
|
|
4
|
-
import { t as FolderResourceManager } from "./manager-
|
|
5
|
-
import { a as defaultProperties, o as evaluateItemModel } from "./definition-
|
|
3
|
+
import { n as MapResourceManager } from "./synthetic-y9Mr-wB2.js";
|
|
4
|
+
import { t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
|
|
5
|
+
import { a as defaultProperties, o as evaluateItemModel } from "./definition-Dab22cHd.js";
|
|
6
6
|
//#region src/mods/tints.ts
|
|
7
7
|
/**
|
|
8
8
|
* Tints for mod items whose colors live in client code rather than asset JSON.
|
|
@@ -32,6 +32,10 @@ interface ElementRotationJson {
|
|
|
32
32
|
/** -45 to 45 in 22.5 steps in vanilla; mods ship arbitrary angles. */
|
|
33
33
|
angle: number;
|
|
34
34
|
rescale?: boolean;
|
|
35
|
+
/** Per-axis form, used instead of `axis`/`angle` by newer versions. */
|
|
36
|
+
x?: number;
|
|
37
|
+
y?: number;
|
|
38
|
+
z?: number;
|
|
35
39
|
}
|
|
36
40
|
interface ModelElementJson {
|
|
37
41
|
/** Corner coordinates in 0–16 block space (mods exceed the range). */
|
|
@@ -4,6 +4,5 @@
|
|
|
4
4
|
* (stable + snapshot channels) and downloads from Mojang, caching by version.
|
|
5
5
|
* Shared by the CLI's --version flag and the test fixtures.
|
|
6
6
|
*/
|
|
7
|
-
declare function downloadClientJar(version: string, cacheDir: string): Promise<string>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { downloadClientJar };
|
|
7
|
+
export declare function downloadClientJar(version: string, cacheDir: string): Promise<string>;
|
|
8
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { downloadClientJar };
|
|
1
|
+
export { t as downloadClientJar } from "../download-1wAfrGKx.js";
|