@nodecraft/rendermite 1.3.2 → 1.4.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/dist/atlas/registry.d.ts +3 -3
- package/dist/atlas/sources.d.ts +1 -1
- package/dist/{atlas-pack-DRTrWcSU.d.ts → atlas-pack-D8745_wo.d.ts} +1 -1
- package/dist/biomes-5ZwYxMYe.js +384 -0
- package/dist/biomes-CJDJQqJb.d.ts +38 -0
- package/dist/{blend-8lnfxtLe.d.ts → blend-eT64Z6qm.d.ts} +1 -1
- package/dist/blocks/atlas-pack.d.ts +1 -1
- package/dist/blocks/biomes.d.ts +2 -0
- package/dist/blocks/biomes.js +2 -0
- package/dist/blocks/block-entities.d.ts +3 -3
- package/dist/blocks/cli.js +1 -1
- package/dist/blocks/export.d.ts +1 -1
- package/dist/blocks/export.js +1 -1
- package/dist/blocks/obj-mesh.d.ts +1 -1
- package/dist/blocks/pack-format.d.ts +2 -2
- package/dist/blocks/tints.d.ts +2 -2
- package/dist/blocks/tints.js +2 -2
- package/dist/{cli-Dq4CFSPi.js → cli-DqJtT-Ms.js} +5 -4
- package/dist/cli.js +7 -7
- package/dist/{descriptor-BVIoEpPO.js → descriptor-D7VKgeGT.js} +2 -2
- package/dist/{discovery-BPSUtdm4.d.ts → discovery-C5ZR4aoG.d.ts} +1 -1
- package/dist/dynamic/generators.d.ts +1 -1
- package/dist/{encode-DNcXXvYe.d.ts → encode-Cf8hI5OY.d.ts} +1 -1
- package/dist/{export-BIpqNU3H.d.ts → export-Bllg8Fw7.d.ts} +4 -2
- package/dist/{export-B9lH7Tek.js → export-kMoMes_a.js} +24 -7
- package/dist/{face-BKwkeTps.d.ts → face-CuC_Wnx9.d.ts} +2 -2
- package/dist/{generators-DhRov4RB.d.ts → generators-BnIzAftW.d.ts} +1 -1
- package/dist/index.d.ts +20 -19
- package/dist/index.js +9 -8
- package/dist/items/blockstate.d.ts +1 -1
- package/dist/items/discovery.d.ts +1 -1
- package/dist/{jar-CFkA-VgT.d.ts → jar-B5iRZQeL.d.ts} +1 -1
- package/dist/{jar-5aLDI0nT.js → jar-W2cV2ZVO.js} +7 -7
- package/dist/{loader-C_1_amsq.d.ts → loader-DSir1-P0.d.ts} +1 -1
- package/dist/{loader-Myy22TDL.d.ts → loader-DUlx29PC.d.ts} +1 -1
- package/dist/{manager-CYbAkWuT.js → manager-BNibYkmI.js} +32 -5
- package/dist/{manager-Cv1NeFyF.d.ts → manager-exOIcdyx.d.ts} +23 -1
- package/dist/models/loader.d.ts +1 -1
- package/dist/{models-CQwcTZcg.js → models-CZjCOjs4.js} +1 -1
- package/dist/mods/models.d.ts +1 -1
- package/dist/mods/models.js +1 -1
- package/dist/mods/prepare.d.ts +1 -1
- package/dist/mods/prepare.js +1 -1
- package/dist/mods/synthesize.d.ts +2 -2
- package/dist/mods/tints.d.ts +2 -2
- package/dist/mods/tints.js +1 -1
- package/dist/{obj-mesh-C6Sp4Ysc.d.ts → obj-mesh-ydhVfLKs.d.ts} +2 -2
- package/dist/output/encode.d.ts +1 -1
- package/dist/{pack-format-CfCP4kzy.d.ts → pack-format-BVC_B-ZW.d.ts} +12 -3
- package/dist/pack.d.ts +5 -4
- package/dist/{pipeline-DeGRR0CP.js → pipeline-B8e6x8Hh.js} +1 -1
- package/dist/{pipeline-BDvXcw20.d.ts → pipeline-BwToOnuZ.d.ts} +3 -3
- package/dist/{prepare-Cs6QDqie.d.ts → prepare-6pH3CNpg.d.ts} +1 -1
- package/dist/{prepare-C95vjt_o.js → prepare-8LswFoS-.js} +2 -2
- package/dist/{prepare-B8oPdGYz.js → prepare-C9gjqQTt.js} +4 -4
- package/dist/{prepare-Dce7-HAe.d.ts → prepare-OS7wL3jv.d.ts} +1 -1
- package/dist/{rasterizer-BSQHEhJ-.d.ts → rasterizer-BFAHGtdT.d.ts} +1 -1
- package/dist/render/blend.d.ts +1 -1
- package/dist/render/compose.d.ts +2 -2
- package/dist/render/entity-fallback.d.ts +6 -6
- package/dist/render/face.d.ts +1 -1
- package/dist/render/fluid-bucket.d.ts +2 -2
- package/dist/render/geo.d.ts +4 -4
- package/dist/render/legacy-tints.d.ts +2 -2
- package/dist/render/obj.d.ts +5 -5
- package/dist/render/pipeline.d.ts +1 -1
- package/dist/render/pipeline.js +1 -1
- package/dist/render/rasterizer.d.ts +1 -1
- package/dist/render/renderer.d.ts +1 -1
- package/dist/render/tints.d.ts +1 -1
- package/dist/{renderer-U20hnhbi.d.ts → renderer-C_DFi8DF.d.ts} +5 -5
- package/dist/resources/descriptor.d.ts +1 -1
- package/dist/resources/descriptor.js +1 -1
- package/dist/resources/entity-textures.d.ts +2 -2
- package/dist/resources/jar.d.ts +1 -1
- package/dist/resources/jar.js +1 -1
- package/dist/resources/manager.d.ts +1 -1
- package/dist/resources/manager.js +1 -1
- package/dist/resources/synthetic.d.ts +1 -1
- package/dist/{run-Diql5y56.js → run-B_JAUbXe.js} +4 -4
- package/dist/{run-CvIqiZ6T.d.ts → run-Bblci_CC.d.ts} +2 -2
- package/dist/run.d.ts +1 -1
- package/dist/run.js +1 -1
- package/dist/{sources-B9X9w3qP.d.ts → sources-BFuYpSSD.d.ts} +1 -1
- package/dist/{synthetic-Qk-BSUXO.d.ts → synthetic-B3R7mW9k.d.ts} +1 -1
- package/dist/textures/loader.d.ts +1 -1
- package/dist/{tints-DqhgFi8a.d.ts → tints-6z6ysGUs.d.ts} +2 -2
- package/dist/{tints-nxtGrqv5.js → tints-C1tT6pKk.js} +1 -1
- package/dist/{tints-a9FWZLma.js → tints-Cl0r-Ol3.js} +44 -9
- package/dist/{tints-2k3ZhkY3.d.ts → tints-DoBv5S9v.d.ts} +11 -4
- package/dist/versions/legacy-reshape.d.ts +1 -1
- package/dist/versions/prepare.d.ts +1 -1
- package/dist/versions/prepare.js +1 -1
- package/dist/workers/render-worker.d.ts +2 -2
- package/dist/workers/render-worker.js +2 -2
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as LayeredResourceManager } from "./manager-
|
|
2
|
-
import { t as curatedModelOverrides } from "./models-
|
|
1
|
+
import { n as LayeredResourceManager } from "./manager-BNibYkmI.js";
|
|
2
|
+
import { t as curatedModelOverrides } from "./models-CZjCOjs4.js";
|
|
3
3
|
import { t as synthesizeItemModels } from "./synthesize-jTjVjPAt.js";
|
|
4
|
-
import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-
|
|
5
|
-
import { n as UnsafeJarError, t as JarResourceManager } from "./jar-
|
|
4
|
+
import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-C1tT6pKk.js";
|
|
5
|
+
import { n as UnsafeJarError, t as JarResourceManager } from "./jar-W2cV2ZVO.js";
|
|
6
6
|
//#region src/mods/prepare.ts
|
|
7
7
|
/**
|
|
8
8
|
* Mod asset composition: mod jars layered under the vanilla base (vanilla wins
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
1
|
+
import { a as ResourceManager } from "./manager-exOIcdyx.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,4 +1,4 @@
|
|
|
1
|
-
import { n as FloatTexture, t as FaceShading } from "./blend-
|
|
1
|
+
import { n as FloatTexture, t as FaceShading } from "./blend-eT64Z6qm.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 {
|
package/dist/render/blend.d.ts
CHANGED
|
@@ -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-
|
|
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-eT64Z6qm.js";
|
|
2
2
|
export { FaceShading, FloatTexture, blendPixel, cloneFloatTexture, darkenTexture, q16, scaleTextureAlpha, shadeTexel, tintTexture, toByteTexture, toFloatTexture, uvWindow };
|
package/dist/render/compose.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as FloatTexture } from "../blend-
|
|
2
|
-
import { n as FaceBuffer } from "../rasterizer-
|
|
1
|
+
import { n as FloatTexture } from "../blend-eT64Z6qm.js";
|
|
2
|
+
import { n as FaceBuffer } from "../rasterizer-BFAHGtdT.js";
|
|
3
3
|
//#region src/render/compose.d.ts
|
|
4
4
|
declare function combineFaceBuffers(width: number, height: number, faces: FaceBuffer[]): FloatTexture;
|
|
5
5
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as ResourceManager } from "../manager-
|
|
2
|
-
import { i as TextureLoader } from "../loader-
|
|
3
|
-
import { t as ModelLoader } from "../loader-
|
|
4
|
-
import { n as FloatTexture } from "../blend-
|
|
5
|
-
import { r as TintColor } from "../face-
|
|
6
|
-
import { i as RenderOptions } from "../renderer-
|
|
1
|
+
import { a as ResourceManager } from "../manager-exOIcdyx.js";
|
|
2
|
+
import { i as TextureLoader } from "../loader-DUlx29PC.js";
|
|
3
|
+
import { t as ModelLoader } from "../loader-DSir1-P0.js";
|
|
4
|
+
import { n as FloatTexture } from "../blend-eT64Z6qm.js";
|
|
5
|
+
import { r as TintColor } from "../face-CuC_Wnx9.js";
|
|
6
|
+
import { i as RenderOptions } from "../renderer-C_DFi8DF.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
9
|
declare function dyeVariantName(id: string): string | null;
|
package/dist/render/face.d.ts
CHANGED
|
@@ -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-
|
|
1
|
+
import { a as faceMaxZ, i as createShadeCache, n as RenderableFace, o as renderFace, r as TintColor, t as FaceShadeCache } from "../face-CuC_Wnx9.js";
|
|
2
2
|
export { FaceShadeCache, RenderableFace, TintColor, createShadeCache, faceMaxZ, renderFace };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ResourceManager } from "../manager-
|
|
2
|
-
import { i as TextureLoader, r as Texture } from "../loader-
|
|
1
|
+
import { a as ResourceManager } from "../manager-exOIcdyx.js";
|
|
2
|
+
import { i as TextureLoader, r as Texture } from "../loader-DUlx29PC.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
|
package/dist/render/geo.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "../locator-jDbdUeTd.js";
|
|
2
|
-
import { a as ResourceManager } from "../manager-
|
|
3
|
-
import { i as TextureLoader } from "../loader-
|
|
4
|
-
import { n as FloatTexture } from "../blend-
|
|
2
|
+
import { a as ResourceManager } from "../manager-exOIcdyx.js";
|
|
3
|
+
import { i as TextureLoader } from "../loader-DUlx29PC.js";
|
|
4
|
+
import { n as FloatTexture } from "../blend-eT64Z6qm.js";
|
|
5
5
|
import { n as FaceGeometry } from "../geometry-Bkur58Vi.js";
|
|
6
|
-
import { i as RenderOptions } from "../renderer-
|
|
6
|
+
import { i as RenderOptions } from "../renderer-C_DFi8DF.js";
|
|
7
7
|
//#region src/render/geo.d.ts
|
|
8
8
|
interface GeoCube {
|
|
9
9
|
origin?: number[];
|
|
@@ -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-DUlx29PC.js";
|
|
2
|
+
import { r as TintColor } from "../face-CuC_Wnx9.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
|
package/dist/render/obj.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "../locator-jDbdUeTd.js";
|
|
2
|
-
import { a as ResourceManager } from "../manager-
|
|
3
|
-
import { i as TextureLoader } from "../loader-
|
|
4
|
-
import { r as ResolvedModel } from "../loader-
|
|
5
|
-
import { n as FloatTexture } from "../blend-
|
|
2
|
+
import { a as ResourceManager } from "../manager-exOIcdyx.js";
|
|
3
|
+
import { i as TextureLoader } from "../loader-DUlx29PC.js";
|
|
4
|
+
import { r as ResolvedModel } from "../loader-DSir1-P0.js";
|
|
5
|
+
import { n as FloatTexture } from "../blend-eT64Z6qm.js";
|
|
6
6
|
import { n as Vec3 } from "../vector-DRKRi4--.js";
|
|
7
|
-
import { i as RenderOptions } from "../renderer-
|
|
7
|
+
import { i as RenderOptions } from "../renderer-C_DFi8DF.js";
|
|
8
8
|
//#region src/render/obj.d.ts
|
|
9
9
|
interface ObjTriangle {
|
|
10
10
|
positions: [Vec3, Vec3, Vec3];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as RenderedFrames, n as ItemRenderOutcome, r as PipelineSettings, t as ItemPipeline } from "../pipeline-
|
|
1
|
+
import { i as RenderedFrames, n as ItemRenderOutcome, r as PipelineSettings, t as ItemPipeline } from "../pipeline-BwToOnuZ.js";
|
|
2
2
|
export { ItemPipeline, ItemRenderOutcome, PipelineSettings, RenderedFrames };
|
package/dist/render/pipeline.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ItemPipeline } from "../pipeline-
|
|
1
|
+
import { t as ItemPipeline } from "../pipeline-B8e6x8Hh.js";
|
|
2
2
|
export { ItemPipeline };
|
|
@@ -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-
|
|
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-BFAHGtdT.js";
|
|
2
2
|
export { DirtyRect, FaceBuffer, RasterPoint, RowCursor, clearFaceBuffer, compactFaceBuffer, createFaceBuffer, drawTexturedTriangle, phpRound };
|
|
@@ -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-C_DFi8DF.js";
|
|
2
2
|
export { AnimationDiagnostics, AnimationLimits, ItemRenderError, RenderOptions, RenderedFrames, boxDownscale, pointResize, renderModel, renderModelFrames };
|
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-6z6ysGUs.js";
|
|
2
2
|
export { DYE_COLORS, InvalidTinterDefinitionError, TintContext, parseTintValue, resolveTint, resolveTints };
|
|
@@ -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-exOIcdyx.js";
|
|
2
|
+
import { i as TextureLoader } from "./loader-DUlx29PC.js";
|
|
3
|
+
import { r as ResolvedModel } from "./loader-DSir1-P0.js";
|
|
4
|
+
import { n as FloatTexture } from "./blend-eT64Z6qm.js";
|
|
5
5
|
import { t as Mat4 } from "./vector-DRKRi4--.js";
|
|
6
6
|
import { a as LightingProfileName } from "./lighting-3FGRC3Af.js";
|
|
7
|
-
import { r as TintColor } from "./face-
|
|
7
|
+
import { r as TintColor } from "./face-CuC_Wnx9.js";
|
|
8
8
|
//#region src/render/renderer.d.ts
|
|
9
9
|
interface AnimationLimits {
|
|
10
10
|
/** Emitted frames per icon (default 128). */
|
|
@@ -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-exOIcdyx.js";
|
|
2
2
|
export { DescribableResourceManager, ResourceDescriptor, describeResources, restoreResources };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as restoreResources, t as describeResources } from "../descriptor-
|
|
1
|
+
import { n as restoreResources, t as describeResources } from "../descriptor-D7VKgeGT.js";
|
|
2
2
|
export { describeResources, restoreResources };
|
|
@@ -1,6 +1,6 @@
|
|
|
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-exOIcdyx.js";
|
|
3
|
+
import { i as TextureLoader } from "../loader-DUlx29PC.js";
|
|
4
4
|
//#region src/resources/entity-textures.d.ts
|
|
5
5
|
declare function tokens(name: string): string[];
|
|
6
6
|
/** Vanilla DyeColor diffuse colors, keyed by the dye name mods prefix with. */
|
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-B5iRZQeL.js";
|
|
2
2
|
export { JarResourceManager, UnsafeJarError, isUnsafeEntryPath };
|
package/dist/resources/jar.js
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-W2cV2ZVO.js";
|
|
2
2
|
export { JarResourceManager, UnsafeJarError, isUnsafeEntryPath };
|
|
@@ -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-exOIcdyx.js";
|
|
2
2
|
export { FolderResourceManager, LayeredResourceManager, ResourceKind, ResourceKindName, ResourceManager };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as LayeredResourceManager, r as ResourceKind, t as FolderResourceManager } from "../manager-
|
|
1
|
+
import { n as LayeredResourceManager, r as ResourceKind, t as FolderResourceManager } from "../manager-BNibYkmI.js";
|
|
2
2
|
export { FolderResourceManager, LayeredResourceManager, ResourceKind };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MapResourceManager, t as KindFilteredResourceManager } from "../synthetic-
|
|
1
|
+
import { n as MapResourceManager, t as KindFilteredResourceManager } from "../synthetic-B3R7mW9k.js";
|
|
2
2
|
export { KindFilteredResourceManager, MapResourceManager };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
-
import { n as LayeredResourceManager } from "./manager-
|
|
3
|
-
import { t as curatedModelOverrides } from "./models-
|
|
2
|
+
import { n as LayeredResourceManager } from "./manager-BNibYkmI.js";
|
|
3
|
+
import { t as curatedModelOverrides } from "./models-CZjCOjs4.js";
|
|
4
4
|
import { n as discoverItems } from "./discovery-CsZu08re.js";
|
|
5
5
|
import { r as encodeRasterAsset } from "./encode-LR9wxigC.js";
|
|
6
6
|
import { t as classifyItemStyle } from "./item-styles-DjYRdyHi.js";
|
|
7
7
|
import { t as minifyStylesheet } from "./minify-bjMRmr5J.js";
|
|
8
8
|
import { t as generateStylesheet } from "./stylesheet-CovT3B2S.js";
|
|
9
|
-
import { t as ItemPipeline } from "./pipeline-
|
|
10
|
-
import { t as describeResources } from "./descriptor-
|
|
9
|
+
import { t as ItemPipeline } from "./pipeline-B8e6x8Hh.js";
|
|
10
|
+
import { t as describeResources } from "./descriptor-D7VKgeGT.js";
|
|
11
11
|
import { t as WorkerRenderPool } from "./pool-CKGp1qup.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import os from "node:os";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
1
|
+
import { a as ResourceManager } from "./manager-exOIcdyx.js";
|
|
2
2
|
import { a as LightingProfileName } from "./lighting-3FGRC3Af.js";
|
|
3
|
-
import { n as AnimationLimits } from "./renderer-
|
|
3
|
+
import { n as AnimationLimits } from "./renderer-C_DFi8DF.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-Bblci_CC.js";
|
|
3
3
|
export { ItemFailure, RunOptions, RunResult, evaluateItemModel, run };
|
package/dist/run.js
CHANGED
|
@@ -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-DUlx29PC.js";
|
|
3
3
|
//#region src/atlas/sources.d.ts
|
|
4
4
|
declare class AtlasSourceError extends Error {}
|
|
5
5
|
interface AtlasSource {
|
|
@@ -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-exOIcdyx.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`,
|
|
@@ -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-DUlx29PC.js";
|
|
2
2
|
export { AnimatedTexture, AtlasResolverLike, Texture, TextureLoader, TextureMeta, TextureResolutionError };
|
|
@@ -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-DUlx29PC.js";
|
|
2
|
+
import { r as TintColor } from "./face-CuC_Wnx9.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,6 +1,6 @@
|
|
|
1
1
|
import { i as modTintPackPath } from "./builtin-WkWjATeh.js";
|
|
2
2
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
3
|
-
import { t as FolderResourceManager } from "./manager-
|
|
3
|
+
import { t as FolderResourceManager } from "./manager-BNibYkmI.js";
|
|
4
4
|
import { n as MapResourceManager } from "./synthetic-rc9BPT4P.js";
|
|
5
5
|
import { a as defaultProperties, o as evaluateItemModel } from "./definition-ColsvWrH.js";
|
|
6
6
|
//#region src/mods/tints.ts
|
|
@@ -11,9 +11,9 @@ import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
|
11
11
|
*
|
|
12
12
|
* The colour *values* are not hand-written: grass and foliage are sampled from
|
|
13
13
|
* the version's own colormaps at plains' climate, so a pack always carries the
|
|
14
|
-
* colours that version ships.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* colours that version ships. `flat` is that one climate; the colormaps ride
|
|
15
|
+
* along in the pack and `biomes.json` (see src/blocks/biomes.ts) says where in
|
|
16
|
+
* one each biome reads, which is what makes a real per-biome tint possible.
|
|
17
17
|
*/
|
|
18
18
|
/** Plains: the climate a v1 consumer tints everything at. */
|
|
19
19
|
const PLAINS_TEMPERATURE = .8;
|
|
@@ -28,7 +28,8 @@ const GRASS_BLOCKS = [
|
|
|
28
28
|
"tall_grass",
|
|
29
29
|
"large_fern",
|
|
30
30
|
"potted_fern",
|
|
31
|
-
"sugar_cane"
|
|
31
|
+
"sugar_cane",
|
|
32
|
+
"bush"
|
|
32
33
|
];
|
|
33
34
|
const FOLIAGE_BLOCKS = [
|
|
34
35
|
"oak_leaves",
|
|
@@ -38,12 +39,38 @@ const FOLIAGE_BLOCKS = [
|
|
|
38
39
|
"mangrove_leaves",
|
|
39
40
|
"vine"
|
|
40
41
|
];
|
|
42
|
+
/** 1.21.5's dry foliage, the third colormap. Older versions simply have neither block. */
|
|
43
|
+
const DRY_FOLIAGE_BLOCKS = ["leaf_litter"];
|
|
41
44
|
const WATER_BLOCKS = [
|
|
42
45
|
"water",
|
|
43
46
|
"bubble_column",
|
|
44
|
-
"cauldron",
|
|
45
47
|
"water_cauldron"
|
|
46
48
|
];
|
|
49
|
+
/**
|
|
50
|
+
* Blocks whose *stem* is grass-tinted while the flowers on it are not, so the
|
|
51
|
+
* tint sits on `tintindex` 1 rather than 0. Nothing else in vanilla numbers a
|
|
52
|
+
* tint above zero.
|
|
53
|
+
*/
|
|
54
|
+
const GRASS_STEM_BLOCKS = ["pink_petals", "wildflowers"];
|
|
55
|
+
/**
|
|
56
|
+
* Blocks with a `tintindex` vanilla registers no colour for, and why. The game
|
|
57
|
+
* draws them untinted too — the index is inherited from a parent model or a
|
|
58
|
+
* shared one — so the pack leaving them alone is correct rather than a gap, and
|
|
59
|
+
* saying so here is what keeps a real gap visible in the failures sidecar.
|
|
60
|
+
*/
|
|
61
|
+
const UNREGISTERED_TINTS = {
|
|
62
|
+
bamboo: "the stalk model carries an index vanilla never colours",
|
|
63
|
+
bamboo_sapling: "shares the bamboo stalk model",
|
|
64
|
+
cherry_leaves: "inherits an index from block/leaves and is meant to stay pink",
|
|
65
|
+
pale_oak_leaves: "inherits an index from block/leaves and is meant to stay pale",
|
|
66
|
+
lava_cauldron: "shares the water cauldron model; lava is not water-tinted",
|
|
67
|
+
powder_snow_cauldron: "shares the water cauldron model",
|
|
68
|
+
stonecutter: "the saw model carries an index vanilla never colours",
|
|
69
|
+
kelp: "inherits an index from block/tinted_cross, which vanilla never colours it through",
|
|
70
|
+
kelp_plant: "shares the kelp model",
|
|
71
|
+
seagrass: "inherits an index from its pre-1.18 template model",
|
|
72
|
+
tall_seagrass: "shares the seagrass template"
|
|
73
|
+
};
|
|
47
74
|
/** Blocks whose tint vanilla hard-codes rather than reading from a colormap. */
|
|
48
75
|
const CONSTANT_TINTS = {
|
|
49
76
|
spruce_leaves: "#619961",
|
|
@@ -129,12 +156,18 @@ async function buildBlockTints(resources, textures) {
|
|
|
129
156
|
});
|
|
130
157
|
}
|
|
131
158
|
const blocks = {};
|
|
132
|
-
const put = (id, tint) => {
|
|
133
|
-
blocks[`minecraft:${id}`] = {
|
|
159
|
+
const put = (id, tint, tintindex = 0) => {
|
|
160
|
+
blocks[`minecraft:${id}`] = {
|
|
161
|
+
...blocks[`minecraft:${id}`],
|
|
162
|
+
[tintindex]: tint
|
|
163
|
+
};
|
|
134
164
|
};
|
|
135
165
|
for (const id of GRASS_BLOCKS) put(id, { kind: "grass" });
|
|
166
|
+
for (const id of GRASS_STEM_BLOCKS) put(id, { kind: "grass" }, 1);
|
|
136
167
|
for (const id of FOLIAGE_BLOCKS) put(id, { kind: "foliage" });
|
|
168
|
+
for (const id of DRY_FOLIAGE_BLOCKS) put(id, { kind: "dry_foliage" });
|
|
137
169
|
for (const id of WATER_BLOCKS) put(id, { kind: "water" });
|
|
170
|
+
if (!await resources.hasResource("blockstate", ResourceLocator.parse("minecraft:water_cauldron"))) put("cauldron", { kind: "water" });
|
|
138
171
|
for (const [id, color] of Object.entries(CONSTANT_TINTS)) put(id, {
|
|
139
172
|
kind: "constant",
|
|
140
173
|
color
|
|
@@ -159,6 +192,8 @@ async function buildBlockTints(resources, textures) {
|
|
|
159
192
|
ramp: "stem",
|
|
160
193
|
property: "age"
|
|
161
194
|
});
|
|
195
|
+
const present = {};
|
|
196
|
+
for (const [id, tints] of Object.entries(blocks)) if (await resources.hasResource("blockstate", ResourceLocator.parse(id))) present[id] = tints;
|
|
162
197
|
return {
|
|
163
198
|
pack: {
|
|
164
199
|
flat,
|
|
@@ -167,10 +202,10 @@ async function buildBlockTints(resources, textures) {
|
|
|
167
202
|
redstone: redstoneRamp(),
|
|
168
203
|
stem: stemRamp()
|
|
169
204
|
},
|
|
170
|
-
blocks
|
|
205
|
+
blocks: present
|
|
171
206
|
},
|
|
172
207
|
files
|
|
173
208
|
};
|
|
174
209
|
}
|
|
175
210
|
//#endregion
|
|
176
|
-
export { buildBlockTints as t };
|
|
211
|
+
export { buildBlockTints as n, UNREGISTERED_TINTS as t };
|
|
@@ -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-exOIcdyx.js";
|
|
2
|
+
import { i as TextureLoader } from "./loader-DUlx29PC.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. */
|
|
@@ -22,12 +22,19 @@ type BlockTint =
|
|
|
22
22
|
interface BlockTintPack {
|
|
23
23
|
/** Plains-climate colours, the flat tint a v1 consumer applies everywhere. */
|
|
24
24
|
flat: Record<string, string>;
|
|
25
|
-
/** Colormap name → file inside the pack
|
|
25
|
+
/** Colormap name → file inside the pack; `biomes.json` says where in one to read. */
|
|
26
26
|
colormaps: Record<string, string>;
|
|
27
27
|
ramps: Record<string, string[]>;
|
|
28
28
|
/** Block id → tintindex → semantics. */
|
|
29
29
|
blocks: Record<string, Record<string, BlockTint>>;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Blocks with a `tintindex` vanilla registers no colour for, and why. The game
|
|
33
|
+
* draws them untinted too — the index is inherited from a parent model or a
|
|
34
|
+
* shared one — so the pack leaving them alone is correct rather than a gap, and
|
|
35
|
+
* saying so here is what keeps a real gap visible in the failures sidecar.
|
|
36
|
+
*/
|
|
37
|
+
declare const UNREGISTERED_TINTS: Record<string, string>;
|
|
31
38
|
interface BuiltBlockTints {
|
|
32
39
|
pack: BlockTintPack;
|
|
33
40
|
/** Colormap PNGs to copy into the pack, keyed by their path inside it. */
|
|
@@ -38,4 +45,4 @@ interface BuiltBlockTints {
|
|
|
38
45
|
}
|
|
39
46
|
declare function buildBlockTints(resources: ResourceManager, textures: TextureLoader): Promise<BuiltBlockTints>;
|
|
40
47
|
//#endregion
|
|
41
|
-
export { buildBlockTints as i, BlockTintPack as n, BuiltBlockTints as r, BlockTint as t };
|
|
48
|
+
export { buildBlockTints as a, UNREGISTERED_TINTS as i, BlockTintPack as n, BuiltBlockTints as r, BlockTint as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as compareVersions, i as PrepareOptions, n as EraName, o as eraForVersion, r as GEOMETRY_DONOR_VERSIONS, s as prepareVersionResources, t as Era } from "../prepare-
|
|
1
|
+
import { a as compareVersions, i as PrepareOptions, n as EraName, o as eraForVersion, r as GEOMETRY_DONOR_VERSIONS, s as prepareVersionResources, t as Era } from "../prepare-6pH3CNpg.js";
|
|
2
2
|
export { Era, EraName, GEOMETRY_DONOR_VERSIONS, PrepareOptions, compareVersions, eraForVersion, prepareVersionResources };
|
package/dist/versions/prepare.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as prepareVersionResources, i as eraForVersion, n as GEOMETRY_DONOR_VERSIONS, r as compareVersions, t as Era } from "../prepare-
|
|
1
|
+
import { a as prepareVersionResources, i as eraForVersion, n as GEOMETRY_DONOR_VERSIONS, r as compareVersions, t as Era } from "../prepare-8LswFoS-.js";
|
|
2
2
|
export { Era, GEOMETRY_DONOR_VERSIONS, compareVersions, eraForVersion, prepareVersionResources };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as ResourceDescriptor } from "../manager-
|
|
2
|
-
import { n as ItemRenderOutcome, r as PipelineSettings } from "../pipeline-
|
|
1
|
+
import { s as ResourceDescriptor } from "../manager-exOIcdyx.js";
|
|
2
|
+
import { n as ItemRenderOutcome, r as PipelineSettings } from "../pipeline-BwToOnuZ.js";
|
|
3
3
|
//#region src/workers/render-worker.d.ts
|
|
4
4
|
interface RenderWorkerData {
|
|
5
5
|
resources: ResourceDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ItemPipeline } from "../pipeline-
|
|
2
|
-
import { n as restoreResources } from "../descriptor-
|
|
1
|
+
import { t as ItemPipeline } from "../pipeline-B8e6x8Hh.js";
|
|
2
|
+
import { n as restoreResources } from "../descriptor-D7VKgeGT.js";
|
|
3
3
|
import sharp from "sharp";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
//#region src/workers/render-worker.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodecraft/rendermite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Minecraft item icon renderer: renders inventory-identical item icons from vanilla and modded assets across game versions, outputting optimized PNG/WebP/AVIF plus CSS and a JSON item library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"lint:ci": "eslint .",
|
|
48
48
|
"test": "vitest run",
|
|
49
49
|
"bench": "vitest bench --config vitest.bench.config.ts --run",
|
|
50
|
-
"bench:
|
|
50
|
+
"bench:against": "node scripts/bench-against.ts",
|
|
51
51
|
"test:watch": "vitest",
|
|
52
52
|
"typecheck": "tsc --noEmit",
|
|
53
53
|
"semantic-release": "semantic-release"
|