@nodecraft/rendermite 1.8.0 → 1.10.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 +9 -1
- package/dist/atlas/registry.d.ts +3 -3
- package/dist/atlas/sources.d.ts +1 -1
- package/dist/{atlas-pack-C56gzqAg.d.ts → atlas-pack-BUadroKy.d.ts} +1 -1
- package/dist/biomes-BGOF6gRM.js +1100 -0
- package/dist/biomes-CnnhDCnk.d.ts +59 -0
- package/dist/{blend-C5UYzink.d.ts → blend-mJAeQB3C.d.ts} +1 -1
- package/dist/block-behaviour-BBslelpW.d.ts +673 -0
- package/dist/block-behaviour-DVjqeSkv.js +180 -0
- package/dist/block-overrides-XtxICunI.js +77 -0
- package/dist/blocks/atlas-pack.d.ts +1 -1
- package/dist/blocks/biomes.d.ts +2 -2
- package/dist/blocks/biomes.js +2 -2
- package/dist/blocks/block-behaviour.d.ts +2 -0
- package/dist/blocks/block-behaviour.js +2 -0
- package/dist/blocks/block-entities.d.ts +3 -3
- package/dist/blocks/block-overrides.d.ts +26 -0
- package/dist/blocks/block-overrides.js +2 -0
- package/dist/blocks/cli.js +1 -1
- package/dist/blocks/datapack.d.ts +2 -0
- package/dist/blocks/datapack.js +2 -0
- package/dist/blocks/ender-storage.d.ts +2 -2
- package/dist/blocks/entities.d.ts +3 -3
- package/dist/blocks/entity-geo.d.ts +1 -1
- package/dist/blocks/entity-models.d.ts +4 -13
- package/dist/blocks/entity-models.js +1 -1
- package/dist/blocks/entity-sizes.d.ts +25 -0
- package/dist/blocks/entity-sizes.js +2 -0
- package/dist/blocks/export.d.ts +1 -1
- package/dist/blocks/export.js +1 -1
- package/dist/blocks/game-rules.d.ts +2 -0
- package/dist/blocks/game-rules.js +2 -0
- package/dist/blocks/geo-blocks.d.ts +2 -2
- package/dist/blocks/item-sprites.d.ts +4 -4
- package/dist/blocks/light-bytecode.d.ts +2 -174
- package/dist/blocks/light-bytecode.js +1 -1
- package/dist/blocks/light-eval.d.ts +1 -1
- package/dist/blocks/light.d.ts +11 -1
- package/dist/blocks/light.js +1 -1
- package/dist/blocks/names.d.ts +2 -0
- package/dist/blocks/names.js +2 -0
- package/dist/blocks/obj-mesh.d.ts +1 -1
- package/dist/blocks/pack-format.d.ts +2 -2
- package/dist/blocks/sprite-sheet.d.ts +3 -3
- package/dist/blocks/states.d.ts +2 -0
- package/dist/blocks/states.js +2 -0
- package/dist/blocks/tints.d.ts +1 -1
- package/dist/{classfile-CiIDF3vc.js → classfile-BJSs3JH0.js} +23 -3
- package/dist/{classfile-CsLXlh5z.d.ts → classfile-Dzn0gW9M.d.ts} +6 -0
- package/dist/{cli-Dw1Q5CPR.js → cli-DwMPoX0I.js} +10 -5
- package/dist/cli.js +7 -7
- package/dist/datapack-CmEg0Vko.d.ts +15 -0
- package/dist/datapack-D6eH46ay.js +71 -0
- package/dist/{descriptor-CmkIkDKL.js → descriptor-Dz2cR-BH.js} +2 -2
- package/dist/{discovery-Cmir3QfC.d.ts → discovery-DWe_kX8W.d.ts} +1 -1
- package/dist/dynamic/generators.d.ts +1 -1
- package/dist/{encode-Br_vPrd8.d.ts → encode-BNEYHHR0.d.ts} +1 -1
- package/dist/entities/classfile.d.ts +1 -1
- package/dist/entities/classfile.js +1 -1
- package/dist/entities/geo-model.d.ts +1 -1
- package/dist/entities/inherit.d.ts +2 -2
- package/dist/entities/inherit.js +1 -1
- package/dist/entities/jar-classes.js +1 -1
- package/dist/entities/link.d.ts +2 -2
- package/dist/entities/link.js +1 -1
- package/dist/entities/mappings.d.ts +1 -1
- package/dist/entities/mappings.js +1 -1
- package/dist/entities/model-bytecode.d.ts +1 -1
- package/dist/entities/model-bytecode.js +1 -1
- package/dist/entities/model-code.d.ts +1 -1
- package/dist/entities/model-code.js +1 -1
- package/dist/{entity-models-BGiy3pey.js → entity-models-vFl_EwfA.js} +24 -5
- package/dist/entity-sizes-DspxgSUA.js +194 -0
- package/dist/{export-t8X_oRws.js → export-ArMmWuCC.js} +62 -5
- package/dist/{export-J13L9Lqu.d.ts → export-CqeTinYL.d.ts} +19 -2
- package/dist/{face-DqEd9G_U.d.ts → face-uWXECGNr.d.ts} +2 -2
- package/dist/game-rules-BDPTopVW.js +104 -0
- package/dist/game-rules-ThvdDG3B.d.ts +16 -0
- package/dist/{generators-BnIzAftW.d.ts → generators-hu_vk10m.d.ts} +1 -1
- package/dist/{geo-C9QYeLVN.d.ts → geo-DsWwuC5o.d.ts} +4 -4
- package/dist/index.d.ts +20 -20
- package/dist/index.js +8 -8
- package/dist/{inherit-BUn0Cve9.js → inherit-DJ45bOB_.js} +2 -2
- package/dist/items/blockstate.d.ts +1 -1
- package/dist/items/discovery.d.ts +1 -1
- package/dist/{jar-B5iRZQeL.d.ts → jar-4Jg7ufWK.d.ts} +1 -1
- package/dist/{jar-CBYPMbw7.js → jar-DvofBm71.js} +2 -2
- package/dist/{jar-classes-CSm7qq1R.js → jar-classes-0wqWbTax.js} +2 -2
- package/dist/{light-CyRhYulM.js → light-CZRA1pOj.js} +48 -6
- package/dist/{light-bytecode-Cpyuxo9b.js → light-bytecode-BqpQWqP7.js} +144 -46
- package/dist/{light-eval-D9x0ufZx.d.ts → light-eval-C0-kt0bp.d.ts} +1 -1
- package/dist/{link-Cuhyrz07.js → link-IDjVJ2Ij.js} +1 -1
- package/dist/{loader-DSir1-P0.d.ts → loader-BYyPIs9f.d.ts} +1 -1
- package/dist/{loader-59_eMa8e.d.ts → loader-C4gsX_wO.d.ts} +1 -1
- package/dist/{manager-exOIcdyx.d.ts → manager-Ct0dEOMg.d.ts} +6 -0
- package/dist/{manager-BNibYkmI.js → manager-D6zXmFrO.js} +6 -0
- package/dist/{mappings-Ep6ko0rg.js → mappings-DEl_7xxQ.js} +18 -1
- package/dist/{mappings-USwcjtcH.d.ts → mappings-DhOPQTgV.d.ts} +5 -0
- package/dist/{model-bytecode-VaLUQfGO.js → model-bytecode-CXYAZ5dX.js} +1 -1
- package/dist/{model-code-Csc3bs3h.d.ts → model-code-BclYt1do.d.ts} +1 -1
- package/dist/{model-code-DbN2uVhp.js → model-code-BmA5ilgt.js} +1 -1
- package/dist/models/loader.d.ts +1 -1
- package/dist/{models-CZjCOjs4.js → models-BsYA-NZg.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/names-D1abAVIB.d.ts +10 -0
- package/dist/names-GLa5TyL7.js +36 -0
- package/dist/{obj-mesh-ydhVfLKs.d.ts → obj-mesh-CzL0lOlJ.d.ts} +2 -2
- package/dist/output/encode.d.ts +1 -1
- package/dist/pack.d.ts +7 -6
- package/dist/{pipeline-DFuQa8ZT.d.ts → pipeline-DuPF3sap.d.ts} +3 -3
- package/dist/{pipeline-CRTQGba7.js → pipeline-Q_185kY6.js} +1 -1
- package/dist/{prepare-OS7wL3jv.d.ts → prepare-BPzsZI_S.d.ts} +1 -1
- package/dist/{prepare-6pH3CNpg.d.ts → prepare-Ce5SpR7Y.d.ts} +1 -1
- package/dist/{prepare-C61BcwFA.js → prepare-DkJkZXuQ.js} +2 -2
- package/dist/{prepare-DxPEu9mo.js → prepare-sj36BP90.js} +4 -4
- package/dist/{rasterizer-C2wgJZ6J.d.ts → rasterizer-DjnurUgD.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 +1 -1
- 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-DbUmTFDb.d.ts → renderer-QgROYvPv.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/resources/zip-reader.js +1 -1
- package/dist/{run-DYcem_Vv.js → run-5yX5KRiI.js} +4 -4
- package/dist/{run-CLjF0N2d.d.ts → run-CxB1qabg.d.ts} +2 -2
- package/dist/run.d.ts +1 -1
- package/dist/run.js +1 -1
- package/dist/{sources-e5D09Jz_.d.ts → sources-sFtealLJ.d.ts} +1 -1
- package/dist/states-BvoZA-ql.js +40 -0
- package/dist/states-OzneeCTU.d.ts +25 -0
- package/dist/{synthetic-B3R7mW9k.d.ts → synthetic-CWtFtAkR.d.ts} +1 -1
- package/dist/textures/loader.d.ts +1 -1
- package/dist/textures/overlay.d.ts +1 -1
- package/dist/{tints-uLl1CIkC.d.ts → tints-B0a1K11c.d.ts} +2 -2
- package/dist/{tints-CWQz6UkM.js → tints-CZeyKzMv.js} +2 -2
- package/dist/{tints-CQX8a1F0.d.ts → tints-DwFmEkf3.d.ts} +2 -2
- 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/dist/{zip-reader-zx3kdSq4.js → zip-reader-onwEVMea.js} +4 -4
- package/package.json +1 -1
- package/dist/biomes-5ZwYxMYe.js +0 -384
- package/dist/biomes-CJDJQqJb.d.ts +0 -38
- package/dist/pack-format-BqWf-DNc.d.ts +0 -350
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
+
//#region src/blocks/names.ts
|
|
3
|
+
/**
|
|
4
|
+
* Block and item display names, from each namespace's own `en_us` lang file.
|
|
5
|
+
*
|
|
6
|
+
* `block.minecraft.tnt` is "TNT" and `block.minecraft.short_grass` is "Short Grass" (before 1.20.3,
|
|
7
|
+
* "Grass"): the version's own English, which a consumer would otherwise guess by title-casing an id.
|
|
8
|
+
* Keys with more segments than `<kind>.<ns>.<name>` are a description or a variant's label, never an
|
|
9
|
+
* id, and are left out.
|
|
10
|
+
*/
|
|
11
|
+
const NAME_KEY_SEGMENTS = 3;
|
|
12
|
+
async function collectNames(resources, namespaces) {
|
|
13
|
+
const names = {
|
|
14
|
+
block: {},
|
|
15
|
+
item: {}
|
|
16
|
+
};
|
|
17
|
+
for (const namespace of namespaces) {
|
|
18
|
+
const raw = await resources.getResource("lang", new ResourceLocator(namespace, "en_us"));
|
|
19
|
+
if (!raw) continue;
|
|
20
|
+
let lang;
|
|
21
|
+
try {
|
|
22
|
+
lang = JSON.parse(raw.toString("utf8"));
|
|
23
|
+
} catch {
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
for (const [key, value] of Object.entries(lang)) {
|
|
27
|
+
const parts = key.split(".");
|
|
28
|
+
const [kind, keyNamespace, name] = parts;
|
|
29
|
+
if (parts.length !== NAME_KEY_SEGMENTS || keyNamespace !== namespace || typeof value !== "string") continue;
|
|
30
|
+
if (kind === "block" || kind === "item") names[kind][`${namespace}:${name}`] = value;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return names;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { collectNames as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
2
|
-
import { r as ResolvedModel } from "./loader-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ct0dEOMg.js";
|
|
2
|
+
import { r as ResolvedModel } from "./loader-BYyPIs9f.js";
|
|
3
3
|
//#region src/blocks/obj-mesh.d.ts
|
|
4
4
|
interface MeshGroup {
|
|
5
5
|
/** Sprite every triangle in this group samples. */
|
package/dist/output/encode.d.ts
CHANGED
|
@@ -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-
|
|
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";
|
|
2
2
|
export { AnimatedEncodeOptions, EncodeOptions, EncodedAnimatedIcon, EncodedIcon, RasterAssetFormat, encodeAnimatedIcon, encodeIcon, encodeRasterAsset };
|
package/dist/pack.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { n as BiomeClimatePack, t as BiomeClimate } from "./biomes-
|
|
1
|
+
import { n as BiomeClimatePack, t as BiomeClimate } from "./biomes-CnnhDCnk.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-BzznRcVY.js";
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
|
|
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-BBslelpW.js";
|
|
7
|
+
import { t as blockLightLevel } from "./light-eval-C0-kt0bp.js";
|
|
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
2
|
-
import { n as FloatTexture } from "./blend-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ct0dEOMg.js";
|
|
2
|
+
import { n as FloatTexture } from "./blend-mJAeQB3C.js";
|
|
3
3
|
import { a as LightingProfileName } from "./lighting-3FGRC3Af.js";
|
|
4
|
-
import { n as AnimationLimits } from "./renderer-
|
|
4
|
+
import { n as AnimationLimits } from "./renderer-QgROYvPv.js";
|
|
5
5
|
//#region src/render/pipeline.d.ts
|
|
6
6
|
interface PipelineSettings {
|
|
7
7
|
builtin?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
+
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-D6zXmFrO.js";
|
|
2
3
|
import { l as toFloatTexture, t as blendPixel } from "./blend-KXMclcHk.js";
|
|
3
4
|
import { t as ModelLoader } from "./loader-qOH0Jynq.js";
|
|
4
5
|
import { c as renderModel, l as renderModelFrames, o as boxDownscale, s as pointResize } from "./obj-DPEK_xee.js";
|
|
@@ -6,7 +7,6 @@ import { a as renderGeo, t as findGeoForItem } from "./geo-BoDxwvz5.js";
|
|
|
6
7
|
import { a as defaultProperties } from "./definition-ColsvWrH.js";
|
|
7
8
|
import { i as resolveItem } from "./discovery-CD0QqxSF.js";
|
|
8
9
|
import { a as resolveTints } from "./tints-B3WQcPtx.js";
|
|
9
|
-
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-BNibYkmI.js";
|
|
10
10
|
import { t as loadAtlasResolver } from "./registry-DafxsAhG.js";
|
|
11
11
|
import { n as TextureLoader } from "./loader-CsgtBuBo.js";
|
|
12
12
|
import { t as encodeAnimatedIcon } from "./encode-LR9wxigC.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ct0dEOMg.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 { a as ResourceManager } from "./manager-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ct0dEOMg.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,8 +1,8 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
2
|
import { n as MapResourceManager, t as KindFilteredResourceManager } from "./synthetic-rc9BPT4P.js";
|
|
3
3
|
import { t as reshapeLegacyAssets } from "./legacy-reshape-CcdstKyI.js";
|
|
4
|
-
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-
|
|
5
|
-
import { t as JarResourceManager } from "./jar-
|
|
4
|
+
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-D6zXmFrO.js";
|
|
5
|
+
import { t as JarResourceManager } from "./jar-DvofBm71.js";
|
|
6
6
|
//#region src/versions/prepare.ts
|
|
7
7
|
/**
|
|
8
8
|
* Version-era detection and asset preparation, replacing the file-tree surgery
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as LayeredResourceManager } from "./manager-
|
|
2
|
-
import { n as UnsafeJarError, t as JarResourceManager } from "./jar-
|
|
3
|
-
import { t as curatedModelOverrides } from "./models-
|
|
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
4
|
import { t as synthesizeItemModels } from "./synthesize-jTjVjPAt.js";
|
|
5
|
-
import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-
|
|
5
|
+
import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-CZeyKzMv.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 { n as FloatTexture, t as FaceShading } from "./blend-
|
|
1
|
+
import { n as FloatTexture, t as FaceShading } from "./blend-mJAeQB3C.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-mJAeQB3C.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-mJAeQB3C.js";
|
|
2
|
+
import { n as FaceBuffer } from "../rasterizer-DjnurUgD.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-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";
|
|
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-uWXECGNr.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-Ct0dEOMg.js";
|
|
2
|
+
import { i as TextureLoader, r as Texture } from "../loader-C4gsX_wO.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,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-
|
|
1
|
+
import { a as parseGeo, i as nameTokens, n as findGeoForItem, o as renderGeo, r as geoToFaces, t as ParsedGeo } from "../geo-DsWwuC5o.js";
|
|
2
2
|
export { ParsedGeo, findGeoForItem, geoToFaces, nameTokens, parseGeo, renderGeo };
|
|
@@ -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-C4gsX_wO.js";
|
|
2
|
+
import { r as TintColor } from "../face-uWXECGNr.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-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";
|
|
6
6
|
import { n as Vec3 } from "../vector-DRKRi4--.js";
|
|
7
|
-
import { i as RenderOptions } from "../renderer-
|
|
7
|
+
import { i as RenderOptions } from "../renderer-QgROYvPv.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-DuPF3sap.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-Q_185kY6.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-DjnurUgD.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-QgROYvPv.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-B0a1K11c.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-Ct0dEOMg.js";
|
|
2
|
+
import { i as TextureLoader } from "./loader-C4gsX_wO.js";
|
|
3
|
+
import { r as ResolvedModel } from "./loader-BYyPIs9f.js";
|
|
4
|
+
import { n as FloatTexture } from "./blend-mJAeQB3C.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-uWXECGNr.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-Ct0dEOMg.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-Dz2cR-BH.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-Ct0dEOMg.js";
|
|
3
|
+
import { i as TextureLoader } from "../loader-C4gsX_wO.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-4Jg7ufWK.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-DvofBm71.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-Ct0dEOMg.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-D6zXmFrO.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-CWtFtAkR.js";
|
|
2
2
|
export { KindFilteredResourceManager, MapResourceManager };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as openZip } from "../zip-reader-
|
|
1
|
+
import { t as openZip } from "../zip-reader-onwEVMea.js";
|
|
2
2
|
export { openZip };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
+
import { n as LayeredResourceManager } from "./manager-D6zXmFrO.js";
|
|
2
3
|
import { n as discoverItems } from "./discovery-CD0QqxSF.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as curatedModelOverrides } from "./models-CZjCOjs4.js";
|
|
4
|
+
import { t as curatedModelOverrides } from "./models-BsYA-NZg.js";
|
|
5
5
|
import { r as encodeRasterAsset } from "./encode-LR9wxigC.js";
|
|
6
6
|
import { t as classifyItemStyle } from "./item-styles-BAeneY1R.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-Q_185kY6.js";
|
|
10
|
+
import { t as describeResources } from "./descriptor-Dz2cR-BH.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-Ct0dEOMg.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-QgROYvPv.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-CxB1qabg.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-C4gsX_wO.js";
|
|
3
3
|
//#region src/atlas/sources.d.ts
|
|
4
4
|
declare class AtlasSourceError extends Error {}
|
|
5
5
|
interface AtlasSource {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
//#region src/blocks/states.ts
|
|
4
|
+
/**
|
|
5
|
+
* Every block's full property set and default state, from Minecraft's own data generator.
|
|
6
|
+
*
|
|
7
|
+
* `blockstates.json` only names the properties that change a model, so it cannot say that stairs are
|
|
8
|
+
* `waterlogged`, or which value a freshly placed block takes. The generator's `blocks.json` report
|
|
9
|
+
* lists every property with its values in the game's order, and marks the default state. Nothing in
|
|
10
|
+
* the client jar says either, so the report is read when the caller has one (`--reports`); the
|
|
11
|
+
* generator needs a JDK, which this package deliberately does not.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Reads `blocks.json` out of a generator `reports` directory, or null when there is none there: a
|
|
15
|
+
* caller with no reports gets a pack without `states.json` rather than a failed export.
|
|
16
|
+
*/
|
|
17
|
+
async function readBlockStates(reportsDir) {
|
|
18
|
+
let report;
|
|
19
|
+
try {
|
|
20
|
+
report = JSON.parse(await readFile(path.join(reportsDir, "blocks.json"), "utf8"));
|
|
21
|
+
} catch (err) {
|
|
22
|
+
if (err.code === "ENOENT") return null;
|
|
23
|
+
throw err;
|
|
24
|
+
}
|
|
25
|
+
const pack = {};
|
|
26
|
+
for (const [id, block] of Object.entries(report)) {
|
|
27
|
+
if (!block.properties || Object.keys(block.properties).length === 0) {
|
|
28
|
+
pack[id] = {};
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
const defaultState = block.states?.find((state) => state.default) ?? block.states?.[0];
|
|
32
|
+
pack[id] = {
|
|
33
|
+
properties: block.properties,
|
|
34
|
+
default: defaultState?.properties ?? {}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return pack;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { readBlockStates as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/blocks/states.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Every block's full property set and default state, from Minecraft's own data generator.
|
|
4
|
+
*
|
|
5
|
+
* `blockstates.json` only names the properties that change a model, so it cannot say that stairs are
|
|
6
|
+
* `waterlogged`, or which value a freshly placed block takes. The generator's `blocks.json` report
|
|
7
|
+
* lists every property with its values in the game's order, and marks the default state. Nothing in
|
|
8
|
+
* the client jar says either, so the report is read when the caller has one (`--reports`); the
|
|
9
|
+
* generator needs a JDK, which this package deliberately does not.
|
|
10
|
+
*/
|
|
11
|
+
/** One block's properties: each name with its values in the game's order, and the default state. */
|
|
12
|
+
interface BlockStateSpec {
|
|
13
|
+
/** Absent for a block with no properties, which is most of them. */
|
|
14
|
+
properties?: Record<string, string[]>;
|
|
15
|
+
default?: Record<string, string>;
|
|
16
|
+
}
|
|
17
|
+
/** `states.json`: block id → its properties and default state. */
|
|
18
|
+
type BlockStatesPack = Record<string, BlockStateSpec>;
|
|
19
|
+
/**
|
|
20
|
+
* Reads `blocks.json` out of a generator `reports` directory, or null when there is none there: a
|
|
21
|
+
* caller with no reports gets a pack without `states.json` rather than a failed export.
|
|
22
|
+
*/
|
|
23
|
+
declare function readBlockStates(reportsDir: string): Promise<BlockStatesPack | null>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { BlockStatesPack as n, readBlockStates as r, BlockStateSpec as t };
|
|
@@ -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-Ct0dEOMg.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-C4gsX_wO.js";
|
|
2
2
|
export { AnimatedTexture, AtlasResolverLike, Texture, TextureLoader, TextureMeta, TextureResolutionError };
|
|
@@ -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-C4gsX_wO.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
|
|
@@ -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-C4gsX_wO.js";
|
|
2
|
+
import { r as TintColor } from "./face-uWXECGNr.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,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 { a as defaultProperties, o as evaluateItemModel } from "./definition-ColsvWrH.js";
|
|
4
3
|
import { n as MapResourceManager } from "./synthetic-rc9BPT4P.js";
|
|
5
|
-
import { t as FolderResourceManager } from "./manager-
|
|
4
|
+
import { t as FolderResourceManager } from "./manager-D6zXmFrO.js";
|
|
5
|
+
import { a as defaultProperties, o as evaluateItemModel } from "./definition-ColsvWrH.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.
|
|
@@ -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-Ct0dEOMg.js";
|
|
2
|
+
import { i as TextureLoader } from "./loader-C4gsX_wO.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. */
|
|
@@ -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-Ce5SpR7Y.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-DkJkZXuQ.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-Ct0dEOMg.js";
|
|
2
|
+
import { n as ItemRenderOutcome, r as PipelineSettings } from "../pipeline-DuPF3sap.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-Q_185kY6.js";
|
|
2
|
+
import { n as restoreResources } from "../descriptor-Dz2cR-BH.js";
|
|
3
3
|
import sharp from "sharp";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
//#region src/workers/render-worker.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RandomAccessReader, fromRandomAccessReader, open } from "yauzl";
|
|
2
|
+
import { close, createReadStream, fstat, open as open$1, read } from "node:fs";
|
|
3
3
|
import { Readable } from "node:stream";
|
|
4
4
|
//#region src/resources/zip-reader.ts
|
|
5
5
|
/**
|
|
@@ -101,7 +101,7 @@ var BufferedDirectoryReader = class extends RandomAccessReader {
|
|
|
101
101
|
};
|
|
102
102
|
async function openZip(zipPath) {
|
|
103
103
|
const fallback = async () => new Promise((resolve, reject) => {
|
|
104
|
-
open
|
|
104
|
+
open(zipPath, {
|
|
105
105
|
lazyEntries: true,
|
|
106
106
|
autoClose: false
|
|
107
107
|
}, (err, zip) => {
|
|
@@ -115,7 +115,7 @@ async function openZip(zipPath) {
|
|
|
115
115
|
let fd;
|
|
116
116
|
try {
|
|
117
117
|
fd = await new Promise((resolve, reject) => {
|
|
118
|
-
open(zipPath, "r", (err, handle) => err ? reject(err) : resolve(handle));
|
|
118
|
+
open$1(zipPath, "r", (err, handle) => err ? reject(err) : resolve(handle));
|
|
119
119
|
});
|
|
120
120
|
} catch {
|
|
121
121
|
return fallback();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodecraft/rendermite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.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",
|