@nodecraft/rendermite 1.1.4 → 1.2.1
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 +27 -2
- package/assets/builtin/renderchest/models/block/banner_standing.json +225 -0
- package/assets/builtin/renderchest/models/block/banner_wall.json +155 -0
- package/assets/builtin/renderchest/models/block/bed_foot.json +44 -0
- package/assets/builtin/renderchest/models/block/bed_head.json +44 -0
- package/assets/builtin/renderchest/models/block/chest_left.json +182 -0
- package/assets/builtin/renderchest/models/block/chest_right.json +182 -0
- package/assets/builtin/renderchest/models/block/copper_golem_statue.json +709 -0
- package/assets/builtin/renderchest/models/block/fluid.json +83 -0
- package/assets/builtin/renderchest/models/block/fluid_tinted.json +89 -0
- package/assets/builtin/renderchest/models/block/hanging_sign.json +54 -0
- package/assets/builtin/renderchest/models/block/standing_sign.json +32 -0
- package/assets/builtin/renderchest/models/block/wall_sign.json +19 -0
- package/dist/atlas/registry.js +1 -1
- package/dist/atlas/sources.js +1 -1
- package/dist/atlas-pack-CoOih7By.js +130 -0
- package/dist/atlas-pack-DRTrWcSU.d.ts +41 -0
- package/dist/block-entities-xv3bQpEX.js +490 -0
- package/dist/blocks/atlas-pack.d.ts +2 -0
- package/dist/blocks/atlas-pack.js +2 -0
- package/dist/blocks/block-entities.d.ts +93 -0
- package/dist/blocks/block-entities.js +2 -0
- package/dist/blocks/blockstate-eval.d.ts +2 -0
- package/dist/blocks/blockstate-eval.js +2 -0
- package/dist/blocks/cli.d.ts +9 -0
- package/dist/blocks/cli.js +2 -0
- package/dist/blocks/export.d.ts +2 -0
- package/dist/blocks/export.js +2 -0
- package/dist/blocks/obj-mesh.d.ts +2 -0
- package/dist/blocks/obj-mesh.js +2 -0
- package/dist/blocks/tints.d.ts +2 -0
- package/dist/blocks/tints.js +2 -0
- package/dist/{blockstate-CdstnW2-.js → blockstate-DVb8Mhxc.js} +1 -1
- package/dist/blockstate-eval-BRQ3NWY2.js +264 -0
- package/dist/blockstate-eval-CObtPWzJ.d.ts +122 -0
- package/dist/cli-CWUKXFbx.js +161 -0
- package/dist/cli.js +9 -7
- package/dist/{descriptor-DWebtkI1.js → descriptor-BVIoEpPO.js} +3 -3
- package/dist/{discovery-B9aqV_Rz.js → discovery-CsZu08re.js} +1 -1
- package/dist/dynamic/generators.js +1 -1
- package/dist/{entity-fallback-Cu22uEIK.js → entity-fallback-BTkM8j0V.js} +3 -155
- package/dist/entity-textures-DFRIVdF1.js +209 -0
- package/dist/export-BIpqNU3H.d.ts +44 -0
- package/dist/export-DY5sGwt0.js +790 -0
- package/dist/{face-cQ-pVHoe.d.ts → face-BKwkeTps.d.ts} +1 -1
- package/dist/{fluid-bucket-BzoLofB_.js → fluid-bucket-B-I4ZYHl.js} +1 -1
- package/dist/{generators-BlG4KmtP.js → generators-BCZVlWig.js} +1 -1
- package/dist/{geo-w9HHIrb5.js → geo-BguldlU-.js} +5 -5
- package/dist/{geometry-w0yQbzDZ.d.ts → geometry-Bkur58Vi.d.ts} +1 -1
- package/dist/index.d.ts +10 -5
- package/dist/index.js +21 -16
- package/dist/{item-styles-upgEO1yP.js → item-styles-DjYRdyHi.js} +1 -1
- package/dist/items/blockstate.js +1 -1
- package/dist/items/discovery.js +1 -1
- package/dist/{jar-D9z-X7tA.js → jar-5aLDI0nT.js} +2 -2
- package/dist/{legacy-reshape-C05SfAPR.js → legacy-reshape-CcdstKyI.js} +2 -2
- package/dist/{legacy-tints-B09J0Rxh.js → legacy-tints-l-541wgI.js} +1 -1
- package/dist/{loader-CWsTZgrk.js → loader-C-NuJaEi.js} +119 -9
- package/dist/{loader-Lb0ZeILz.js → loader-C18GpurU.js} +1 -1
- package/dist/{loader-DD83d80u.d.ts → loader-C_1_amsq.d.ts} +18 -1
- package/dist/{locator-ycZzh_6z.js → locator-COMEtEn9.js} +23 -1
- package/dist/{manager-CkletR5K.js → manager-CYbAkWuT.js} +2 -2
- package/dist/models/loader.d.ts +1 -1
- package/dist/models/loader.js +1 -1
- package/dist/models/types.d.ts +1 -1
- package/dist/{models-BKxGkPS7.js → models-CQwcTZcg.js} +1 -1
- package/dist/mods/models.js +1 -1
- package/dist/mods/prepare.js +1 -1
- package/dist/mods/synthesize.js +1 -1
- package/dist/mods/tints.js +1 -1
- package/dist/{renderer-DB1Oe7xs.js → obj-bvs3gwex.js} +234 -234
- package/dist/obj-mesh-C6Sp4Ysc.d.ts +41 -0
- package/dist/obj-mesh-rnYbSbpv.js +97 -0
- package/dist/output/item-styles.js +1 -1
- package/dist/{pipeline-Bp6amYz_.d.ts → pipeline-BDvXcw20.d.ts} +1 -1
- package/dist/{pipeline-CgJaVpoL.js → pipeline-DeGRR0CP.js} +14 -14
- package/dist/{prepare-D56Z-9cg.js → prepare-B8oPdGYz.js} +5 -5
- package/dist/{prepare-Cc8QZ3j0.js → prepare-C95vjt_o.js} +5 -5
- package/dist/{registry-DS5PZ57l.js → registry-DlduyjtM.js} +2 -2
- package/dist/render/entity-fallback.d.ts +3 -3
- package/dist/render/entity-fallback.js +1 -1
- package/dist/render/face.d.ts +1 -1
- package/dist/render/face.js +1 -1
- package/dist/render/fluid-bucket.js +1 -1
- package/dist/render/geo.d.ts +2 -2
- package/dist/render/geo.js +1 -1
- package/dist/render/geometry.d.ts +1 -1
- package/dist/render/legacy-tints.d.ts +1 -1
- package/dist/render/legacy-tints.js +1 -1
- package/dist/render/obj.d.ts +10 -3
- package/dist/render/obj.js +2 -2
- package/dist/render/pipeline.d.ts +1 -1
- package/dist/render/pipeline.js +1 -1
- package/dist/render/renderer.d.ts +1 -1
- package/dist/render/renderer.js +1 -1
- package/dist/render/tints.d.ts +1 -1
- package/dist/render/tints.js +1 -1
- package/dist/{renderer-C79EQDSn.d.ts → renderer-U20hnhbi.d.ts} +2 -2
- package/dist/resources/descriptor.js +1 -1
- package/dist/resources/entity-textures.d.ts +51 -0
- package/dist/resources/entity-textures.js +2 -0
- package/dist/resources/jar.js +1 -1
- package/dist/resources/locator.js +1 -1
- package/dist/resources/manager.js +1 -1
- package/dist/resources/synthetic.js +1 -1
- package/dist/{run-uq8_hUx9.d.ts → run-CvIqiZ6T.d.ts} +1 -1
- package/dist/{run-U9pM9wKU.js → run-Diql5y56.js} +7 -7
- package/dist/run.d.ts +1 -1
- package/dist/run.js +1 -1
- package/dist/{sources-Bxk-WOzH.js → sources-BlUriDCs.js} +1 -1
- package/dist/{synthesize-3Q0aaOnK.js → synthesize-jTjVjPAt.js} +2 -2
- package/dist/{synthetic-ZAUjXT7E.js → synthetic-rc9BPT4P.js} +0 -0
- package/dist/textures/loader.js +1 -1
- package/dist/tints-2k3ZhkY3.d.ts +41 -0
- package/dist/{tints-3VI_2SNy.js → tints-B3WQcPtx.js} +1 -1
- package/dist/{tints-Do9Sh3dg.d.ts → tints-DqhgFi8a.d.ts} +1 -1
- package/dist/tints-a9FWZLma.js +176 -0
- package/dist/{tints-CebmvjmP.js → tints-nxtGrqv5.js} +3 -3
- package/dist/{types-DpRSF9Vj.d.ts → types-qlp3I8_-.d.ts} +11 -0
- package/dist/versions/download.js +1 -1
- package/dist/versions/legacy-reshape.js +1 -1
- package/dist/versions/prepare.js +1 -1
- package/dist/workers/render-worker.d.ts +1 -1
- package/dist/workers/render-worker.js +2 -2
- package/package.json +1 -1
- package/dist/{download-D9aARBFp.js → download-1wAfrGKx.js} +1 -1
- package/dist/{face-CMJ3b3Ae.js → face-CKHboPfh.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as FloatTexture } from "./blend-8lnfxtLe.js";
|
|
2
2
|
import { t as Mat4 } from "./vector-DRKRi4--.js";
|
|
3
|
-
import { n as FaceGeometry } from "./geometry-
|
|
3
|
+
import { n as FaceGeometry } from "./geometry-Bkur58Vi.js";
|
|
4
4
|
import { r as LightSource } from "./lighting-3FGRC3Af.js";
|
|
5
5
|
import { n as FaceBuffer } from "./rasterizer-BSQHEhJ-.js";
|
|
6
6
|
//#region src/render/face.d.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as ResourceLocator } from "./locator-
|
|
2
|
-
import { n as displayMatrix } from "./vector-CCxLae_T.js";
|
|
1
|
+
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
3
2
|
import { l as toFloatTexture } from "./blend-KXMclcHk.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as createFaceBuffer } from "./rasterizer-DcVJzkxz.js";
|
|
6
|
-
import { n as faceMaxZ, r as renderFace, t as createShadeCache } from "./face-CMJ3b3Ae.js";
|
|
3
|
+
import { n as displayMatrix } from "./vector-CCxLae_T.js";
|
|
7
4
|
import { c as lightsForProfile } from "./lighting--5myudVu.js";
|
|
5
|
+
import { i as createFaceBuffer } from "./rasterizer-DcVJzkxz.js";
|
|
6
|
+
import { t as combineFaceBuffers } from "./compose-BGsNFR12.js";
|
|
7
|
+
import { n as faceMaxZ, r as renderFace, t as createShadeCache } from "./face-CKHboPfh.js";
|
|
8
8
|
//#region src/render/geo.ts
|
|
9
9
|
/**
|
|
10
10
|
* Bedrock-format geometry (`.geo.json`) rendering, best-effort. GeckoLib mods
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FaceDirectionName, o as ModelElementJson, r as ElementRotationJson } from "./types-
|
|
1
|
+
import { a as FaceDirectionName, o as ModelElementJson, r as ElementRotationJson } from "./types-qlp3I8_-.js";
|
|
2
2
|
import { n as Vec3 } from "./vector-DRKRi4--.js";
|
|
3
3
|
//#region src/render/geometry.d.ts
|
|
4
4
|
interface FaceGeometry {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,19 +2,24 @@ import { n as ResourceLocator, t as InvalidResourceLocatorError } from "./locato
|
|
|
2
2
|
import { a as ResourceManager, i as ResourceKindName, n as LayeredResourceManager, r as ResourceKind, t as FolderResourceManager } from "./manager-Cv1NeFyF.js";
|
|
3
3
|
import { a as TextureMeta, i as TextureLoader, o as TextureResolutionError, r as Texture, t as AnimatedTexture } from "./loader-Myy22TDL.js";
|
|
4
4
|
import { d as parseAtlasSources, n as AtlasSource, r as AtlasSourceError, s as ResolvedSprite, t as AtlasResolver, u as createAtlasResolver } from "./sources-B9X9w3qP.js";
|
|
5
|
+
import { a as PackedRect, i as PackedPage, n as PackOptions, o as packAtlas, r as PackedAtlas, t as PackEntry } from "./atlas-pack-DRTrWcSU.js";
|
|
6
|
+
import { a as resolveTexture, n as ModelResolutionError, o as salvageJson, r as ResolvedModel, t as ModelLoader } from "./loader-C_1_amsq.js";
|
|
7
|
+
import { a as BlockStateMultipartCase, d as matchesCondition, f as parseBlockState, i as BlockStateError, l as collectModels, n as BlockProperties, o as BlockStateVariantCase, p as weightedVariantIndex, r as BlockStateDefinition, s as MultipartCondition, t as BlockModelVariant, u as evaluateBlockState } from "./blockstate-eval-CObtPWzJ.js";
|
|
8
|
+
import { i as exportBlockPack, n as BlockPackResult, r as ExportBlockPackOptions, t as BlockPackFailure } from "./export-BIpqNU3H.js";
|
|
9
|
+
import { i as buildObjMesh, n as ObjMesh, r as ObjMeshError, t as MeshGroup } from "./obj-mesh-C6Sp4Ysc.js";
|
|
10
|
+
import { i as buildBlockTints, n as BlockTintPack, t as BlockTint } from "./tints-2k3ZhkY3.js";
|
|
5
11
|
import { s as builtinDynamicResources } from "./generators-DhRov4RB.js";
|
|
6
|
-
import { a as resolveTexture, n as ModelResolutionError, o as salvageJson, r as ResolvedModel, t as ModelLoader } from "./loader-DD83d80u.js";
|
|
7
12
|
import { d as toFloatTexture, n as FloatTexture, u as toByteTexture } from "./blend-8lnfxtLe.js";
|
|
8
13
|
import { a as LightingProfileName, i as LightingProfile, r as LightSource, u as lightsForProfile } from "./lighting-3FGRC3Af.js";
|
|
9
|
-
import { a as RenderedFrames, c as renderModel, i as RenderOptions, l as renderModelFrames, o as boxDownscale, r as ItemRenderError, s as pointResize } from "./renderer-
|
|
14
|
+
import { a as RenderedFrames, c as renderModel, i as RenderOptions, l as renderModelFrames, o as boxDownscale, r as ItemRenderError, s as pointResize } from "./renderer-U20hnhbi.js";
|
|
10
15
|
import { c as defaultProperties, i as ItemRenderInstruction, l as evaluateItemModel, n as InvalidItemDefinitionError, o as TintDefinition, r as ItemProperties, s as UNKNOWN_MODEL } from "./definition-ricL7Jqf.js";
|
|
11
16
|
import { a as resolveItem, i as discoverItems, n as ItemDiscoveryOptions, r as ItemResolutionError, t as DiscoveredItem } from "./discovery-BPSUtdm4.js";
|
|
12
|
-
import { a as resolveTint, i as parseTintValue, n as InvalidTinterDefinitionError, o as resolveTints, t as DYE_COLORS } from "./tints-
|
|
17
|
+
import { a as resolveTint, i as parseTintValue, n as InvalidTinterDefinitionError, o as resolveTints, t as DYE_COLORS } from "./tints-DqhgFi8a.js";
|
|
13
18
|
import { i as EncodedIcon, n as EncodeOptions, o as encodeAnimatedIcon, r as EncodedAnimatedIcon, s as encodeIcon, t as AnimatedEncodeOptions } from "./encode-DNcXXvYe.js";
|
|
14
19
|
import { t as minifyStylesheet } from "./minify-CIV6enbr.js";
|
|
15
20
|
import { a as compareVersions, o as eraForVersion, s as prepareVersionResources } from "./prepare-Cs6QDqie.js";
|
|
16
21
|
import { i as prepareModResources } from "./prepare-Dce7-HAe.js";
|
|
17
22
|
import { i as itemClass, n as StylesheetOptions, r as generateStylesheet, t as ItemStyle } from "./stylesheet-i-t_7sZ7.js";
|
|
18
|
-
import { i as run, n as RunOptions, r as RunResult, t as ItemFailure } from "./run-
|
|
23
|
+
import { i as run, n as RunOptions, r as RunResult, t as ItemFailure } from "./run-CvIqiZ6T.js";
|
|
19
24
|
import { n as UnsafeJarError, r as isUnsafeEntryPath, t as JarResourceManager } from "./jar-CFkA-VgT.js";
|
|
20
|
-
export { type AnimatedEncodeOptions, AnimatedTexture, type AtlasResolver, type AtlasSource, AtlasSourceError, DYE_COLORS, type DiscoveredItem, type EncodeOptions, type EncodedAnimatedIcon, type EncodedIcon, type FloatTexture, FolderResourceManager, InvalidItemDefinitionError, InvalidResourceLocatorError, InvalidTinterDefinitionError, type ItemDiscoveryOptions, type ItemFailure, type ItemProperties, ItemRenderError, type ItemRenderInstruction, ItemResolutionError, type ItemStyle, JarResourceManager, LayeredResourceManager, type LightSource, LightingProfile, type LightingProfileName, ModelLoader, ModelResolutionError, type RenderOptions, type RenderedFrames, type ResolvedModel, type ResolvedSprite, ResourceKind, type ResourceKindName, ResourceLocator, type ResourceManager, type RunOptions, type RunResult, type StylesheetOptions, type Texture, TextureLoader, type TextureMeta, TextureResolutionError, type TintDefinition, UNKNOWN_MODEL, UnsafeJarError, boxDownscale, builtinDynamicResources, compareVersions, createAtlasResolver, defaultProperties, discoverItems, encodeAnimatedIcon, encodeIcon, eraForVersion, evaluateItemModel, generateStylesheet, isUnsafeEntryPath, itemClass, lightsForProfile, minifyStylesheet, parseAtlasSources, parseTintValue, pointResize, prepareModResources, prepareVersionResources, renderModel, renderModelFrames, resolveItem, resolveTexture, resolveTint, resolveTints, run, salvageJson, toByteTexture, toFloatTexture };
|
|
25
|
+
export { type AnimatedEncodeOptions, AnimatedTexture, type AtlasResolver, type AtlasSource, AtlasSourceError, type BlockModelVariant, type BlockPackFailure, type BlockPackResult, type BlockProperties, type BlockStateDefinition, BlockStateError, type BlockStateMultipartCase, type BlockStateVariantCase, type BlockTint, type BlockTintPack, DYE_COLORS, type DiscoveredItem, type EncodeOptions, type EncodedAnimatedIcon, type EncodedIcon, type ExportBlockPackOptions, type FloatTexture, FolderResourceManager, InvalidItemDefinitionError, InvalidResourceLocatorError, InvalidTinterDefinitionError, type ItemDiscoveryOptions, type ItemFailure, type ItemProperties, ItemRenderError, type ItemRenderInstruction, ItemResolutionError, type ItemStyle, JarResourceManager, LayeredResourceManager, type LightSource, LightingProfile, type LightingProfileName, type MeshGroup, ModelLoader, ModelResolutionError, type MultipartCondition, type ObjMesh, ObjMeshError, type PackEntry, type PackOptions, type PackedAtlas, type PackedPage, type PackedRect, type RenderOptions, type RenderedFrames, type ResolvedModel, type ResolvedSprite, ResourceKind, type ResourceKindName, ResourceLocator, type ResourceManager, type RunOptions, type RunResult, type StylesheetOptions, type Texture, TextureLoader, type TextureMeta, TextureResolutionError, type TintDefinition, UNKNOWN_MODEL, UnsafeJarError, boxDownscale, buildBlockTints, buildObjMesh, builtinDynamicResources, collectModels, compareVersions, createAtlasResolver, defaultProperties, discoverItems, encodeAnimatedIcon, encodeIcon, eraForVersion, evaluateBlockState, evaluateItemModel, exportBlockPack, generateStylesheet, isUnsafeEntryPath, itemClass, lightsForProfile, matchesCondition, minifyStylesheet, packAtlas, parseAtlasSources, parseBlockState, parseTintValue, pointResize, prepareModResources, prepareVersionResources, renderModel, renderModelFrames, resolveItem, resolveTexture, resolveTint, resolveTints, run, salvageJson, toByteTexture, toFloatTexture, weightedVariantIndex };
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
import { a as
|
|
4
|
-
import { n as UnsafeJarError, r as isUnsafeEntryPath, t as JarResourceManager } from "./jar-D9z-X7tA.js";
|
|
5
|
-
import { n as discoverItems, r as resolveItem, t as ItemResolutionError } from "./discovery-B9aqV_Rz.js";
|
|
1
|
+
import { t as packAtlas } from "./atlas-pack-CoOih7By.js";
|
|
2
|
+
import { n as ResourceLocator, t as InvalidResourceLocatorError } from "./locator-COMEtEn9.js";
|
|
3
|
+
import { a as parseBlockState, i as matchesCondition, n as collectModels, o as weightedVariantIndex, r as evaluateBlockState, t as BlockStateError } from "./blockstate-eval-BRQ3NWY2.js";
|
|
6
4
|
import { c as toByteTexture, l as toFloatTexture } from "./blend-KXMclcHk.js";
|
|
5
|
+
import { c as lightsForProfile, r as LightingProfile } from "./lighting--5myudVu.js";
|
|
6
|
+
import { a as salvageJson, i as resolveTexture, n as ModelResolutionError, t as ModelLoader } from "./loader-C-NuJaEi.js";
|
|
7
|
+
import { a as ItemRenderError, c as renderModel, l as renderModelFrames, o as boxDownscale, s as pointResize } from "./obj-bvs3gwex.js";
|
|
8
|
+
import { n as buildObjMesh, t as ObjMeshError } from "./obj-mesh-rnYbSbpv.js";
|
|
9
|
+
import { t as buildBlockTints } from "./tints-a9FWZLma.js";
|
|
10
|
+
import { o as createAtlasResolver, s as parseAtlasSources, t as AtlasSourceError } from "./sources-BlUriDCs.js";
|
|
11
|
+
import { n as LayeredResourceManager, r as ResourceKind, t as FolderResourceManager } from "./manager-CYbAkWuT.js";
|
|
12
|
+
import { n as TextureLoader, r as TextureResolutionError, t as AnimatedTexture } from "./loader-C18GpurU.js";
|
|
13
|
+
import { t as exportBlockPack } from "./export-DY5sGwt0.js";
|
|
14
|
+
import { a as defaultProperties, i as UNKNOWN_MODEL, n as InvalidItemDefinitionError, o as evaluateItemModel } from "./definition-ColsvWrH.js";
|
|
15
|
+
import { n as UnsafeJarError, r as isUnsafeEntryPath, t as JarResourceManager } from "./jar-5aLDI0nT.js";
|
|
16
|
+
import { n as prepareModResources } from "./prepare-B8oPdGYz.js";
|
|
17
|
+
import { a as prepareVersionResources, i as eraForVersion, r as compareVersions } from "./prepare-C95vjt_o.js";
|
|
18
|
+
import { n as discoverItems, r as resolveItem, t as ItemResolutionError } from "./discovery-CsZu08re.js";
|
|
7
19
|
import { n as encodeIcon, t as encodeAnimatedIcon } from "./encode-LR9wxigC.js";
|
|
8
|
-
import { a as builtinDynamicResources } from "./generators-
|
|
20
|
+
import { a as builtinDynamicResources } from "./generators-BCZVlWig.js";
|
|
9
21
|
import { t as minifyStylesheet } from "./minify-bjMRmr5J.js";
|
|
10
22
|
import { n as itemClass, t as generateStylesheet } from "./stylesheet-CovT3B2S.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
import { a as resolveTints, i as resolveTint, n as InvalidTinterDefinitionError, r as parseTintValue, t as DYE_COLORS } from "./tints-3VI_2SNy.js";
|
|
15
|
-
import { o as createAtlasResolver, s as parseAtlasSources, t as AtlasSourceError } from "./sources-Bxk-WOzH.js";
|
|
16
|
-
import { n as TextureLoader, r as TextureResolutionError, t as AnimatedTexture } from "./loader-Lb0ZeILz.js";
|
|
17
|
-
import { t as run } from "./run-U9pM9wKU.js";
|
|
18
|
-
import { a as prepareVersionResources, i as eraForVersion, r as compareVersions } from "./prepare-Cc8QZ3j0.js";
|
|
19
|
-
import { n as prepareModResources } from "./prepare-D56Z-9cg.js";
|
|
20
|
-
export { AnimatedTexture, AtlasSourceError, DYE_COLORS, FolderResourceManager, InvalidItemDefinitionError, InvalidResourceLocatorError, InvalidTinterDefinitionError, ItemRenderError, ItemResolutionError, JarResourceManager, LayeredResourceManager, LightingProfile, ModelLoader, ModelResolutionError, ResourceKind, ResourceLocator, TextureLoader, TextureResolutionError, UNKNOWN_MODEL, UnsafeJarError, boxDownscale, builtinDynamicResources, compareVersions, createAtlasResolver, defaultProperties, discoverItems, encodeAnimatedIcon, encodeIcon, eraForVersion, evaluateItemModel, generateStylesheet, isUnsafeEntryPath, itemClass, lightsForProfile, minifyStylesheet, parseAtlasSources, parseTintValue, pointResize, prepareModResources, prepareVersionResources, renderModel, renderModelFrames, resolveItem, resolveTexture, resolveTint, resolveTints, run, salvageJson, toByteTexture, toFloatTexture };
|
|
23
|
+
import { a as resolveTints, i as resolveTint, n as InvalidTinterDefinitionError, r as parseTintValue, t as DYE_COLORS } from "./tints-B3WQcPtx.js";
|
|
24
|
+
import { t as run } from "./run-Diql5y56.js";
|
|
25
|
+
export { AnimatedTexture, AtlasSourceError, BlockStateError, DYE_COLORS, FolderResourceManager, InvalidItemDefinitionError, InvalidResourceLocatorError, InvalidTinterDefinitionError, ItemRenderError, ItemResolutionError, JarResourceManager, LayeredResourceManager, LightingProfile, ModelLoader, ModelResolutionError, ObjMeshError, ResourceKind, ResourceLocator, TextureLoader, TextureResolutionError, UNKNOWN_MODEL, UnsafeJarError, boxDownscale, buildBlockTints, buildObjMesh, builtinDynamicResources, collectModels, compareVersions, createAtlasResolver, defaultProperties, discoverItems, encodeAnimatedIcon, encodeIcon, eraForVersion, evaluateBlockState, evaluateItemModel, exportBlockPack, generateStylesheet, isUnsafeEntryPath, itemClass, lightsForProfile, matchesCondition, minifyStylesheet, packAtlas, parseAtlasSources, parseBlockState, parseTintValue, pointResize, prepareModResources, prepareVersionResources, renderModel, renderModelFrames, resolveItem, resolveTexture, resolveTint, resolveTints, run, salvageJson, toByteTexture, toFloatTexture, weightedVariantIndex };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TRIM_MATERIALS, n as POTTERY_SHERDS, r as TRIM_DARKER_MATERIALS, t as ARMOR_ITEM_TYPES } from "./generators-
|
|
1
|
+
import { i as TRIM_MATERIALS, n as POTTERY_SHERDS, r as TRIM_DARKER_MATERIALS, t as ARMOR_ITEM_TYPES } from "./generators-BCZVlWig.js";
|
|
2
2
|
//#region src/output/item-styles.ts
|
|
3
3
|
/**
|
|
4
4
|
* Per-item CSS style classification, ported from upstream's ItemStyleGenerators
|
package/dist/items/blockstate.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as defaultBlockStateModel, t as blockStateTransform } from "../blockstate-
|
|
1
|
+
import { n as defaultBlockStateModel, t as blockStateTransform } from "../blockstate-DVb8Mhxc.js";
|
|
2
2
|
export { blockStateTransform, defaultBlockStateModel };
|
package/dist/items/discovery.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as discoverItems, r as resolveItem, t as ItemResolutionError } from "../discovery-
|
|
1
|
+
import { n as discoverItems, r as resolveItem, t as ItemResolutionError } from "../discovery-CsZu08re.js";
|
|
2
2
|
export { ItemResolutionError, discoverItems, resolveItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ResourceLocator } from "./locator-
|
|
2
|
-
import { r as ResourceKind } from "./manager-
|
|
1
|
+
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
+
import { r as ResourceKind } from "./manager-CYbAkWuT.js";
|
|
3
3
|
import { t as openZip } from "./zip-reader-BSbJKUT1.js";
|
|
4
4
|
//#region src/resources/jar.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as MapResourceManager } from "./synthetic-
|
|
2
|
-
import { open } from "yauzl";
|
|
1
|
+
import { n as MapResourceManager } from "./synthetic-rc9BPT4P.js";
|
|
3
2
|
import sharp from "sharp";
|
|
3
|
+
import { open } from "yauzl";
|
|
4
4
|
//#region src/versions/legacy-reshape.ts
|
|
5
5
|
/**
|
|
6
6
|
* Pre-1.6 texture recovery, ported from the ui pipeline's legacy-assets.ts:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ResourceLocator } from "./locator-
|
|
1
|
+
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
2
|
import { t as LruCache } from "./cache-Cr2ON3RQ.js";
|
|
3
3
|
//#region src/models/loader.ts
|
|
4
4
|
var ModelResolutionError = class extends Error {};
|
|
@@ -25,6 +25,8 @@ const MODEL_PARENT_ALIASES = {
|
|
|
25
25
|
*/
|
|
26
26
|
const MOD_LOADER_HANDLERS = {
|
|
27
27
|
"immersiveengineering:conf_sides": flattenConfSides,
|
|
28
|
+
"immersiveengineering:basic_split": flattenSplitMultiblock,
|
|
29
|
+
"immersiveengineering:ie_obj": restrictIeObjParts,
|
|
28
30
|
"mekanism:energy_cube": flattenEnergyCube,
|
|
29
31
|
"mekanism:transmitter": restrictTransmitterToUnconnected,
|
|
30
32
|
"botania:floating_flower": composeFloatingFlower,
|
|
@@ -34,6 +36,7 @@ const MOD_LOADER_HANDLERS = {
|
|
|
34
36
|
"sophisticatedstorage:barrel": flattenStorageBarrel,
|
|
35
37
|
"sophisticatedstorage:limited_barrel": flattenStorageBarrel,
|
|
36
38
|
"sophisticatedstorage:simple_composite": mergeCompositeParts,
|
|
39
|
+
"morered:wire_parts": restrictWireToCentre,
|
|
37
40
|
"immersiveengineering:models/conveyor": flattenConveyor
|
|
38
41
|
};
|
|
39
42
|
/**
|
|
@@ -69,6 +72,14 @@ function flattenLoaderModel(json, depth = 0) {
|
|
|
69
72
|
if (extended.base && typeof extended.base === "object") return flattenLoaderModel(extended.base, depth + 1);
|
|
70
73
|
if (typeof extended.childModel === "string") return { parent: extended.childModel };
|
|
71
74
|
if (typeof extended.delegate === "string") return { parent: extended.delegate };
|
|
75
|
+
if (typeof objCandidate.model === "string") {
|
|
76
|
+
const redirected = {
|
|
77
|
+
...withoutLoader(json),
|
|
78
|
+
parent: objCandidate.model
|
|
79
|
+
};
|
|
80
|
+
delete redirected.model;
|
|
81
|
+
return redirected;
|
|
82
|
+
}
|
|
72
83
|
if (extended.children && typeof extended.children === "object") {
|
|
73
84
|
const children = Object.values(extended.children);
|
|
74
85
|
const inline = children.filter((child) => typeof child === "object" && child !== null);
|
|
@@ -194,6 +205,48 @@ function flattenConveyor(json) {
|
|
|
194
205
|
};
|
|
195
206
|
}
|
|
196
207
|
/**
|
|
208
|
+
* IE's `ie_obj` loader packs several states of a block into one OBJ as named
|
|
209
|
+
* objects and picks between them in a Java callback: a workbench draws its
|
|
210
|
+
* blueprint only when one is inserted, a post grows arms only toward
|
|
211
|
+
* neighbours, a logic unit shows a board per installed circuit. The model files
|
|
212
|
+
* name the callback and nothing else, so the placed-and-empty default is
|
|
213
|
+
* curated here per callback.
|
|
214
|
+
*
|
|
215
|
+
* Only callbacks whose default is unambiguous are listed — the rest keep
|
|
216
|
+
* drawing every object, and the block pack records that they did rather than
|
|
217
|
+
* substituting a guess.
|
|
218
|
+
*/
|
|
219
|
+
const IE_DEFAULT_PARTS = {
|
|
220
|
+
"immersiveengineering:workbench": ["cube0"],
|
|
221
|
+
"immersiveengineering:post": ["base"],
|
|
222
|
+
"immersiveengineering:lantern": ["base"],
|
|
223
|
+
"immersiveengineering:logic_unit": ["base", "tubes"]
|
|
224
|
+
};
|
|
225
|
+
function restrictIeObjParts(json) {
|
|
226
|
+
const marked = json;
|
|
227
|
+
if (typeof marked.callbacks !== "string" || !marked.objModel) return marked;
|
|
228
|
+
const parts = IE_DEFAULT_PARTS[marked.callbacks];
|
|
229
|
+
if (parts) marked.objModel.objects = parts;
|
|
230
|
+
else marked.objModel.conditional = true;
|
|
231
|
+
return marked;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* IE's split loader wraps one model spanning several blocks — a coke oven's
|
|
235
|
+
* mesh is the whole 2x2x2 structure — and gives each block position its own
|
|
236
|
+
* slice of it at draw time. Which slice is in the block entity rather than in
|
|
237
|
+
* the assets, so the part list is carried through instead: a consumer can draw
|
|
238
|
+
* the mesh once from the structure's corner rather than once per position.
|
|
239
|
+
*/
|
|
240
|
+
function flattenSplitMultiblock(json) {
|
|
241
|
+
const extended = json;
|
|
242
|
+
const inner = extended.inner_model && typeof extended.inner_model === "object" ? flattenLoaderModel(extended.inner_model, 1) : withoutLoader(json);
|
|
243
|
+
const parts = Array.isArray(extended.split_parts) ? extended.split_parts.filter((part) => Array.isArray(part) && part.length === 3) : [];
|
|
244
|
+
return parts.length > 0 ? {
|
|
245
|
+
...inner,
|
|
246
|
+
splitParts: parts
|
|
247
|
+
} : inner;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
197
250
|
* IE's conf_sides loader picks per-face textures from `<base_name>` plus a
|
|
198
251
|
* side/io suffix at runtime; the icon always shows the unconfigured ("none")
|
|
199
252
|
* state, so a plain cube with those textures matches what the game draws.
|
|
@@ -262,6 +315,24 @@ function restrictTransmitterToUnconnected(json) {
|
|
|
262
315
|
return marked;
|
|
263
316
|
}
|
|
264
317
|
/**
|
|
318
|
+
* MoreRed's wire loader holds the two shapes a wire draws *between* blocks
|
|
319
|
+
* (`line` across a face, `edge` around its corner) and picks per connection from
|
|
320
|
+
* the block entity. Neither is the wire itself: the blockstate places the centre
|
|
321
|
+
* separately, and an unconnected wire is only that centre. Taking one of the two,
|
|
322
|
+
* whichever the file happens to name first, put a stub in a corner of every wire
|
|
323
|
+
* in the world, so the loader draws nothing here and the block pack falls back to
|
|
324
|
+
* the mod's own item model, which is the wire's full cross.
|
|
325
|
+
*/
|
|
326
|
+
function restrictWireToCentre(json) {
|
|
327
|
+
const stripped = withoutLoader(json);
|
|
328
|
+
delete stripped.line;
|
|
329
|
+
delete stripped.edge;
|
|
330
|
+
return {
|
|
331
|
+
...stripped,
|
|
332
|
+
elements: []
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
265
336
|
* Botania's floating flowers are a mystical island with a flower planted on it:
|
|
266
337
|
* the loader draws `botania:block/islands/island_<type>` under the model named
|
|
267
338
|
* by the `flower` key. The island type is stored per block and defaults to
|
|
@@ -375,10 +446,9 @@ function flattenStorageBarrel(json) {
|
|
|
375
446
|
const groups = [extended.partitioned_model_parts, extended.model_parts];
|
|
376
447
|
const textures = {};
|
|
377
448
|
const merges = [];
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
449
|
+
const shapes = extended.model_parts ?? extended.partitioned_model_parts ?? {};
|
|
450
|
+
for (const [name, part] of Object.entries(shapes)) if (typeof part.model === "string" && !/_open$|^locked$|^packed$/.test(name) && !merges.includes(part.model)) merges.push(part.model);
|
|
451
|
+
for (const group of groups) for (const part of Object.values(group ?? {})) Object.assign(textures, part.textures);
|
|
382
452
|
const flattened = withoutLoader(json);
|
|
383
453
|
delete flattened.model_parts;
|
|
384
454
|
delete flattened.partitioned_model_parts;
|
|
@@ -421,6 +491,31 @@ function withoutLoader(json) {
|
|
|
421
491
|
delete rest.loader;
|
|
422
492
|
return rest;
|
|
423
493
|
}
|
|
494
|
+
function needsNormalizing(element) {
|
|
495
|
+
return typeof element.extra_rotation === "number" && element.extra_rotation !== 0 && element.rotation !== void 0;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Fold `extra_rotation` into the element's own rotation. Supplementaries slants
|
|
499
|
+
* its awnings with it — an arbitrary angle past vanilla's 22.5 steps, written
|
|
500
|
+
* beside a `rotation` of angle 0 — and ignoring it silently flattens them.
|
|
501
|
+
*
|
|
502
|
+
* The untouched array is returned by identity, so children of a shared parent
|
|
503
|
+
* keep sharing one elements array rather than each holding a copy.
|
|
504
|
+
*/
|
|
505
|
+
function normalizeElements(elements) {
|
|
506
|
+
if (!elements.some((element) => needsNormalizing(element))) return elements;
|
|
507
|
+
return elements.map((element) => {
|
|
508
|
+
if (!needsNormalizing(element) || !element.rotation) return element;
|
|
509
|
+
const angle = (element.rotation.angle ?? 0) + (element.extra_rotation ?? 0);
|
|
510
|
+
return {
|
|
511
|
+
...element,
|
|
512
|
+
rotation: {
|
|
513
|
+
...element.rotation,
|
|
514
|
+
angle
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
});
|
|
518
|
+
}
|
|
424
519
|
function isBuiltinParent(parent) {
|
|
425
520
|
return parent.startsWith("builtin/") || parent.startsWith("minecraft:builtin/");
|
|
426
521
|
}
|
|
@@ -528,13 +623,17 @@ var ModelLoader = class {
|
|
|
528
623
|
let elements = [];
|
|
529
624
|
let guiLight;
|
|
530
625
|
let elementsGuiLight;
|
|
626
|
+
let ambientOcclusion;
|
|
627
|
+
let renderType;
|
|
531
628
|
for (let i = chain.length - 1; i >= 0; i--) {
|
|
532
629
|
const { json } = chain[i];
|
|
630
|
+
if (json.ambientocclusion !== void 0) ambientOcclusion = json.ambientocclusion;
|
|
631
|
+
if (typeof json.render_type === "string") renderType = json.render_type.replace(/^minecraft:/, "");
|
|
533
632
|
for (const [name, value] of Object.entries(json.textures ?? {})) textures[name] = typeof value === "object" && value !== null ? String(value.sprite ?? "") : value;
|
|
534
633
|
Object.assign(display, json.display);
|
|
535
634
|
if (json.gui_light !== void 0) guiLight = json.gui_light;
|
|
536
635
|
if (json.elements !== void 0) {
|
|
537
|
-
elements = json.elements;
|
|
636
|
+
elements = normalizeElements(json.elements);
|
|
538
637
|
elementsGuiLight = guiLight;
|
|
539
638
|
}
|
|
540
639
|
}
|
|
@@ -546,6 +645,14 @@ var ModelLoader = class {
|
|
|
546
645
|
break;
|
|
547
646
|
}
|
|
548
647
|
}
|
|
648
|
+
let splitParts;
|
|
649
|
+
for (const entry of chain) {
|
|
650
|
+
const marked = entry.json;
|
|
651
|
+
if (marked.splitParts) {
|
|
652
|
+
splitParts = marked.splitParts;
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
549
656
|
let fluid;
|
|
550
657
|
for (const entry of chain) {
|
|
551
658
|
const marked = entry.json;
|
|
@@ -574,8 +681,11 @@ var ModelLoader = class {
|
|
|
574
681
|
return {
|
|
575
682
|
obj,
|
|
576
683
|
fluid,
|
|
684
|
+
splitParts,
|
|
685
|
+
renderType: renderType ?? null,
|
|
577
686
|
locator,
|
|
578
687
|
builtinParent,
|
|
688
|
+
ambientOcclusion: ambientOcclusion ?? true,
|
|
579
689
|
guiLight: guiLight ?? defaultLight,
|
|
580
690
|
elementsGuiLight: elementsGuiLight ?? defaultLight,
|
|
581
691
|
display,
|
|
@@ -630,9 +740,9 @@ function bindElementTextures(element, model, owner) {
|
|
|
630
740
|
function resolveTexture(model, reference) {
|
|
631
741
|
let value = reference;
|
|
632
742
|
for (let depth = 0; depth < MAX_TEXTURE_REF_DEPTH; depth++) {
|
|
633
|
-
|
|
634
|
-
const next = model.textures[
|
|
635
|
-
if (next === void 0) return null;
|
|
743
|
+
const name = value.startsWith("#") ? value.slice(1) : value;
|
|
744
|
+
const next = model.textures[name];
|
|
745
|
+
if (next === void 0) return value.startsWith("#") ? null : ResourceLocator.tryParse(value);
|
|
636
746
|
value = next;
|
|
637
747
|
}
|
|
638
748
|
return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-jDbdUeTd.js";
|
|
2
2
|
import { a as ResourceManager } from "./manager-Cv1NeFyF.js";
|
|
3
|
-
import { c as ModelJson, n as DisplayTransformJson, o as ModelElementJson, t as DisplayPosition } from "./types-
|
|
3
|
+
import { c as ModelJson, n as DisplayTransformJson, o as ModelElementJson, t as DisplayPosition } from "./types-qlp3I8_-.js";
|
|
4
4
|
//#region src/models/loader.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* A model with its parent chain flattened: textures merged child-over-parent,
|
|
@@ -11,6 +11,11 @@ interface ResolvedModel {
|
|
|
11
11
|
locator: ResourceLocator;
|
|
12
12
|
/** `builtin/generated` etc. — the terminal builtin parent, when the chain ends in one. */
|
|
13
13
|
builtinParent: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* `ambientocclusion`, nearest declaration in the chain wins. Only the block
|
|
16
|
+
* pack reads it; the icon renderer has no ambient occlusion to switch off.
|
|
17
|
+
*/
|
|
18
|
+
ambientOcclusion: boolean;
|
|
14
19
|
guiLight: 'front' | 'side';
|
|
15
20
|
/**
|
|
16
21
|
* The gui_light in effect when `elements` were defined in the chain — upstream
|
|
@@ -24,12 +29,24 @@ interface ResolvedModel {
|
|
|
24
29
|
elements: ModelElementJson[];
|
|
25
30
|
/** Deepest-first chain of model locators, for diagnostics. */
|
|
26
31
|
chain: string[];
|
|
32
|
+
/**
|
|
33
|
+
* `render_type` as the chain states it, namespace stripped. Authoritative
|
|
34
|
+
* where present; nothing states it in vanilla.
|
|
35
|
+
*/
|
|
36
|
+
renderType: string | null;
|
|
27
37
|
/** Forge/NeoForge OBJ loader geometry reference, when the chain declares one. */
|
|
28
38
|
obj?: {
|
|
29
39
|
model: string;
|
|
30
40
|
flipV: boolean;
|
|
31
41
|
objects?: string[];
|
|
42
|
+
conditional?: boolean;
|
|
32
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Block offsets a split-multiblock model spans. IE's `basic_split` wraps one
|
|
46
|
+
* mesh covering several blocks and hands each position its own slice at
|
|
47
|
+
* runtime; which slice is in the block entity, not in the assets.
|
|
48
|
+
*/
|
|
49
|
+
splitParts?: Array<[number, number, number]>;
|
|
33
50
|
/** Fluid id from a fluid_container loader, for painting bucket contents. */
|
|
34
51
|
fluid?: string;
|
|
35
52
|
}
|
|
@@ -10,6 +10,26 @@
|
|
|
10
10
|
const NAMESPACE_PATTERN = /^[\d._a-z-]+$/;
|
|
11
11
|
const PATH_PATTERN = /^[\d./_a-z-]+$/;
|
|
12
12
|
var InvalidResourceLocatorError = class extends Error {};
|
|
13
|
+
/**
|
|
14
|
+
* Collapse `.` and `..` segments, or null when the path climbs out of the pack.
|
|
15
|
+
* Ids come from jars, OBJ `mtllib` lines and MTL texture bindings, and every one
|
|
16
|
+
* of them is joined onto an asset root on disk, so an escaping path reads a file
|
|
17
|
+
* the pack does not contain.
|
|
18
|
+
*/
|
|
19
|
+
function containedPath(path) {
|
|
20
|
+
if (!path.includes(".")) return path;
|
|
21
|
+
const segments = [];
|
|
22
|
+
for (const segment of path.split("/")) {
|
|
23
|
+
if (segment === ".") continue;
|
|
24
|
+
if (segment !== "..") {
|
|
25
|
+
segments.push(segment);
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (segments.length === 0) return null;
|
|
29
|
+
segments.pop();
|
|
30
|
+
}
|
|
31
|
+
return segments.join("/");
|
|
32
|
+
}
|
|
13
33
|
var ResourceLocator = class ResourceLocator {
|
|
14
34
|
static parse(locator, defaultNamespace = "minecraft") {
|
|
15
35
|
const colon = locator.indexOf(":");
|
|
@@ -23,7 +43,9 @@ var ResourceLocator = class ResourceLocator {
|
|
|
23
43
|
path = path.trim().toLowerCase();
|
|
24
44
|
if (!NAMESPACE_PATTERN.test(namespace)) throw new InvalidResourceLocatorError(`Invalid namespace in resource locator: ${locator}`);
|
|
25
45
|
if (!PATH_PATTERN.test(path)) throw new InvalidResourceLocatorError(`Invalid path in resource locator: ${locator}`);
|
|
26
|
-
|
|
46
|
+
const contained = containedPath(path);
|
|
47
|
+
if (contained === null || contained.length === 0) throw new InvalidResourceLocatorError(`Path does not resolve inside the pack: ${locator}`);
|
|
48
|
+
return new ResourceLocator(namespace, contained);
|
|
27
49
|
}
|
|
28
50
|
/** Parse, returning null instead of throwing for ids too malformed to normalize. */
|
|
29
51
|
static tryParse(locator, defaultNamespace = "minecraft") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ResourceLocator } from "./locator-
|
|
1
|
+
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { existsSync } from "node:fs";
|
|
4
3
|
import { readFile, readdir, stat } from "node:fs/promises";
|
|
4
|
+
import { existsSync } from "node:fs";
|
|
5
5
|
//#region src/resources/manager.ts
|
|
6
6
|
/**
|
|
7
7
|
* A category of resource inside a pack, mapping to a directory under
|
package/dist/models/loader.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveTexture, i as flattenLoaderModel, n as ModelResolutionError, o as salvageJson, r as ResolvedModel, t as ModelLoader } from "../loader-
|
|
1
|
+
import { a as resolveTexture, i as flattenLoaderModel, n as ModelResolutionError, o as salvageJson, r as ResolvedModel, t as ModelLoader } from "../loader-C_1_amsq.js";
|
|
2
2
|
export { ModelLoader, ModelResolutionError, ResolvedModel, flattenLoaderModel, resolveTexture, salvageJson };
|
package/dist/models/loader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as salvageJson, i as resolveTexture, n as ModelResolutionError, r as flattenLoaderModel, t as ModelLoader } from "../loader-
|
|
1
|
+
import { a as salvageJson, i as resolveTexture, n as ModelResolutionError, r as flattenLoaderModel, t as ModelLoader } from "../loader-C-NuJaEi.js";
|
|
2
2
|
export { ModelLoader, ModelResolutionError, flattenLoaderModel, resolveTexture, salvageJson };
|
package/dist/models/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FaceDirectionName, c as ModelJson, i as FaceDirection, l as Vec3, n as DisplayTransformJson, o as ModelElementJson, r as ElementRotationJson, s as ModelFaceJson, t as DisplayPosition, u as Vec4 } from "../types-
|
|
1
|
+
import { a as FaceDirectionName, c as ModelJson, i as FaceDirection, l as Vec3, n as DisplayTransformJson, o as ModelElementJson, r as ElementRotationJson, s as ModelFaceJson, t as DisplayPosition, u as Vec4 } from "../types-qlp3I8_-.js";
|
|
2
2
|
export { DisplayPosition, DisplayTransformJson, ElementRotationJson, FaceDirection, FaceDirectionName, ModelElementJson, ModelFaceJson, ModelJson, Vec3, Vec4 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as modModelPackPath } from "./builtin-WkWjATeh.js";
|
|
2
|
-
import { t as FolderResourceManager } from "./manager-
|
|
2
|
+
import { t as FolderResourceManager } from "./manager-CYbAkWuT.js";
|
|
3
3
|
//#region src/mods/models.ts
|
|
4
4
|
/**
|
|
5
5
|
* Geometry for mod items the game draws in code. A `builtin/entity` item model
|
package/dist/mods/models.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as curatedModelOverrides } from "../models-
|
|
1
|
+
import { t as curatedModelOverrides } from "../models-CQwcTZcg.js";
|
|
2
2
|
export { curatedModelOverrides };
|
package/dist/mods/prepare.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as prepareModResources, t as LOADER_NAMESPACES } from "../prepare-
|
|
1
|
+
import { n as prepareModResources, t as LOADER_NAMESPACES } from "../prepare-B8oPdGYz.js";
|
|
2
2
|
export { LOADER_NAMESPACES, prepareModResources };
|
package/dist/mods/synthesize.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as synthesizeItemModels } from "../synthesize-
|
|
1
|
+
import { t as synthesizeItemModels } from "../synthesize-jTjVjPAt.js";
|
|
2
2
|
export { synthesizeItemModels };
|
package/dist/mods/tints.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as harvestTintOverrides, t as curatedTintOverrides } from "../tints-
|
|
1
|
+
import { n as harvestTintOverrides, t as curatedTintOverrides } from "../tints-nxtGrqv5.js";
|
|
2
2
|
export { curatedTintOverrides, harvestTintOverrides };
|