@nodecraft/rendermite 1.11.0 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -16
- package/assets/builtin/mobheads/items/frostbite.json +6 -0
- package/assets/builtin/mobheads/models/item/frostbite.json +6 -0
- package/assets/mod-models/README.md +24 -0
- package/dist/atlas/registry.d.ts +5 -6
- package/dist/atlas/registry.js +1 -2
- package/dist/atlas/sources.d.ts +2 -2
- package/dist/atlas/sources.js +1 -2
- package/dist/{atlas-pack-BUadroKy.d.ts → atlas-pack-Dxl3kwT2.d.ts} +1 -1
- package/dist/{biomes-BGOF6gRM.js → biomes-DTmzQfnL.js} +1 -1
- package/dist/{biomes-CnnhDCnk.d.ts → biomes-_HZ93QNR.d.ts} +1 -1
- package/dist/{blend-mJAeQB3C.d.ts → blend-DnogOnaU.d.ts} +1 -1
- package/dist/{block-behaviour-D1qC9_cc.d.ts → block-behaviour-D6NwU9bV.d.ts} +7 -7
- package/dist/{block-entities-C807EY2I.js → block-entities-Dp3rMxWq.js} +1 -1
- package/dist/{block-overrides-BhuJIxKC.js → block-overrides-DMzzzeq_.js} +1 -1
- package/dist/blocks/atlas-pack.d.ts +1 -1
- package/dist/blocks/atlas-pack.js +1 -2
- package/dist/blocks/biomes.d.ts +1 -1
- package/dist/blocks/biomes.js +1 -2
- package/dist/blocks/block-behaviour.d.ts +1 -1
- package/dist/blocks/block-behaviour.js +1 -2
- package/dist/blocks/block-entities.d.ts +12 -13
- package/dist/blocks/block-entities.js +1 -2
- package/dist/blocks/block-overrides.d.ts +7 -8
- package/dist/blocks/block-overrides.js +1 -2
- package/dist/blocks/blockstate-eval.d.ts +1 -1
- package/dist/blocks/blockstate-eval.js +1 -2
- package/dist/blocks/cli.d.ts +2 -3
- package/dist/blocks/cli.js +1 -2
- package/dist/blocks/datapack.d.ts +1 -1
- package/dist/blocks/datapack.js +1 -2
- package/dist/blocks/ender-storage.d.ts +4 -5
- package/dist/blocks/ender-storage.js +1 -2
- package/dist/blocks/entities.d.ts +8 -9
- package/dist/blocks/entities.js +1 -2
- package/dist/blocks/entity-geo.d.ts +4 -5
- package/dist/blocks/entity-geo.js +1 -2
- package/dist/blocks/entity-models.d.ts +8 -9
- package/dist/blocks/entity-models.js +1 -2
- package/dist/blocks/entity-sizes.d.ts +4 -4
- package/dist/blocks/entity-sizes.js +1 -2
- package/dist/blocks/export.d.ts +1 -1
- package/dist/blocks/export.js +1 -2
- package/dist/blocks/game-rules.js +1 -2
- package/dist/blocks/geo-blocks.d.ts +5 -6
- package/dist/blocks/geo-blocks.js +1 -2
- package/dist/blocks/item-sprites.d.ts +9 -10
- package/dist/blocks/item-sprites.js +1 -2
- package/dist/blocks/light-bytecode.d.ts +1 -1
- package/dist/blocks/light-bytecode.js +1 -2
- package/dist/blocks/light-eval.d.ts +1 -1
- package/dist/blocks/light-eval.js +1 -2
- package/dist/blocks/light.d.ts +8 -9
- package/dist/blocks/light.js +1 -2
- package/dist/blocks/names.d.ts +1 -1
- package/dist/blocks/names.js +1 -2
- package/dist/blocks/obj-mesh.d.ts +1 -1
- package/dist/blocks/obj-mesh.js +1 -2
- package/dist/blocks/pack-format.d.ts +1 -1
- package/dist/blocks/pack-format.js +1 -2
- package/dist/blocks/sprite-sheet.d.ts +11 -12
- package/dist/blocks/sprite-sheet.js +1 -2
- package/dist/blocks/states.js +1 -2
- package/dist/blocks/tints.d.ts +1 -1
- package/dist/blocks/tints.js +1 -2
- package/dist/{blockstate-DVb8Mhxc.js → blockstate-D5FgI-Qv.js} +3 -4
- package/dist/{blockstate-eval-BzznRcVY.d.ts → blockstate-eval-C-ZSx78w.d.ts} +3 -2
- package/dist/{blockstate-eval-CV_LwUwj.js → blockstate-eval-Cu-9TWH0.js} +3 -4
- package/dist/builtin.d.ts +5 -6
- package/dist/builtin.js +1 -2
- package/dist/{classfile-BJSs3JH0.js → classfile-YGjbyMPk.js} +3 -4
- package/dist/{cli-BsEk_aEv.js → cli-CeEAmdX9.js} +5 -5
- package/dist/cli.js +8 -8
- package/dist/{datapack-D6eH46ay.js → datapack-BZpO7nv-.js} +8 -9
- package/dist/{datapack-CmEg0Vko.d.ts → datapack-DhBAuxw5.d.ts} +1 -1
- package/dist/{definition-ColsvWrH.js → definition-Dab22cHd.js} +1 -1
- package/dist/{descriptor-Dz2cR-BH.js → descriptor-CJLtRmBc.js} +3 -3
- package/dist/{discovery-DWe_kX8W.d.ts → discovery-2Qk3x25z.d.ts} +1 -1
- package/dist/{discovery-CD0QqxSF.js → discovery-CMHJfdHQ.js} +13 -15
- package/dist/dynamic/generators.d.ts +1 -1
- package/dist/dynamic/generators.js +1 -2
- package/dist/{encode-TzYXOEId.js → encode-BIAWeZy2.js} +2 -3
- package/dist/{encode-BNEYHHR0.d.ts → encode-DZSVif8a.d.ts} +1 -1
- package/dist/{ender-storage-CKDiYgYc.js → ender-storage-COyXL-I4.js} +1 -1
- package/dist/entities/classfile.js +1 -2
- package/dist/entities/geo-model.d.ts +3 -4
- package/dist/entities/geo-model.js +1 -2
- package/dist/entities/inherit.d.ts +4 -5
- package/dist/entities/inherit.js +1 -2
- package/dist/entities/jar-classes.js +1 -2
- package/dist/entities/link.d.ts +9 -10
- package/dist/entities/link.js +1 -2
- package/dist/entities/mappings.js +1 -2
- package/dist/entities/merge.d.ts +7 -8
- package/dist/entities/merge.js +1 -2
- package/dist/entities/model-bytecode.d.ts +5 -6
- package/dist/entities/model-bytecode.js +1 -2
- package/dist/entities/model-code.js +1 -2
- package/dist/{entities-rQ4TZjEo.js → entities-4UMp3qXG.js} +4 -5
- package/dist/{entity-fallback-BEzCbJq0.js → entity-fallback-ZfurtmEQ.js} +9 -11
- package/dist/{entity-geo-DcrcN8TE.js → entity-geo-vJTSO0bB.js} +2 -2
- package/dist/{entity-models-D6AMLAy6.js → entity-models-CleLnlV4.js} +9 -10
- package/dist/{entity-sizes-Dmr4w0vu.js → entity-sizes-CC6-7DBz.js} +1 -1
- package/dist/{entity-textures-DG6NUNyp.js → entity-textures-BS5dI5dz.js} +15 -19
- package/dist/{export-CnKiSTiu.d.ts → export-BL_3VVZI.d.ts} +1 -1
- package/dist/{export-BdHar0ND.js → export-BPH-b4LT.js} +25 -27
- package/dist/{face-uWXECGNr.d.ts → face-BOsq7v9f.d.ts} +4 -4
- package/dist/{face-D6SfTISC.js → face-DtbBpvbY.js} +2 -2
- package/dist/{game-rules-Dehe210A.js → game-rules-DrYU_6hd.js} +14 -16
- package/dist/{generators-D6giKoab.js → generators-7b5w6s0L.js} +1 -1
- package/dist/{generators-hu_vk10m.d.ts → generators-P1goUyvI.d.ts} +1 -1
- package/dist/{geo-BOYYFFQn.js → geo-CZHkm59F.js} +10 -12
- package/dist/{geo-DsWwuC5o.d.ts → geo-Ci_PGkFI.d.ts} +5 -5
- package/dist/{geo-blocks-BQqFfAQT.js → geo-blocks-BYSBc8uq.js} +1 -1
- package/dist/{geometry-bUDBhncX.js → geometry-BGTvfmbS.js} +1 -2
- package/dist/{geometry--UzHu1Vh.d.ts → geometry-Btiz31vH.d.ts} +1 -1
- package/dist/index.d.ts +22 -22
- package/dist/index.js +19 -19
- package/dist/{inherit-DJ45bOB_.js → inherit-LSSIV8N2.js} +2 -2
- package/dist/{item-sprites-CwiEBEAJ.js → item-sprites-Cip695Kk.js} +3 -3
- package/dist/{item-styles-BAeneY1R.js → item-styles-D-7N6j1i.js} +1 -1
- package/dist/items/blockstate.d.ts +5 -6
- package/dist/items/blockstate.js +1 -2
- package/dist/items/definition.js +1 -2
- package/dist/items/discovery.d.ts +1 -1
- package/dist/items/discovery.js +1 -2
- package/dist/{jar-DvofBm71.js → jar-Df0Xhw7X.js} +1 -1
- package/dist/{jar-4Jg7ufWK.d.ts → jar-IHoEeMdV.d.ts} +1 -1
- package/dist/{jar-classes-0wqWbTax.js → jar-classes-C5P3F18e.js} +1 -1
- package/dist/{legacy-reshape-CcdstKyI.js → legacy-reshape-ClEZFEVT.js} +6 -8
- package/dist/{light-Culwie4W.js → light-Bj0iD-ok.js} +20 -23
- package/dist/{light-bytecode-Bx3XLTRI.js → light-bytecode-B4_sP6ri.js} +6 -5
- package/dist/{light-eval-Cl2L3RBz.d.ts → light-eval-DJA58Kdg.d.ts} +2 -2
- package/dist/{lighting-3FGRC3Af.d.ts → lighting-DYkS-NlV.d.ts} +2 -2
- package/dist/{lighting--5myudVu.js → lighting-f_oZTiOx.js} +2 -2
- package/dist/{link-IDjVJ2Ij.js → link-CxzBRqeB.js} +4 -5
- package/dist/{loader-qOH0Jynq.js → loader-Ckhy0t8m.js} +3 -4
- package/dist/{loader-C4gsX_wO.d.ts → loader-CrPTL0zk.d.ts} +1 -1
- package/dist/{loader-BYyPIs9f.d.ts → loader-mGAKSRp6.d.ts} +2 -2
- package/dist/{manager-D6zXmFrO.js → manager-B1VPl4UQ.js} +4 -5
- package/dist/{manager-Ct0dEOMg.d.ts → manager-Ey26G_3e.d.ts} +1 -1
- package/dist/{model-bytecode-CXYAZ5dX.js → model-bytecode-Cp4LGfjI.js} +5 -6
- package/dist/{model-code-C5Au_FKU.js → model-code-B11iaTy1.js} +1 -1
- package/dist/models/loader.d.ts +1 -1
- package/dist/models/loader.js +1 -2
- package/dist/models/types.d.ts +1 -1
- package/dist/{models-BsYA-NZg.js → models-CvFehP26.js} +1 -1
- package/dist/mods/models.d.ts +3 -4
- package/dist/mods/models.js +1 -2
- package/dist/mods/prepare.d.ts +1 -1
- package/dist/mods/prepare.js +1 -2
- package/dist/mods/synthesize.d.ts +5 -6
- package/dist/mods/synthesize.js +1 -2
- package/dist/mods/tints.d.ts +7 -8
- package/dist/mods/tints.js +1 -2
- package/dist/{names-D1abAVIB.d.ts → names-D30ZIXkK.d.ts} +1 -1
- package/dist/{obj-NxBaySXt.js → obj-BWsU8pYz.js} +16 -18
- package/dist/{obj-mesh-BBSLG2Fv.js → obj-mesh-WShUgD4g.js} +1 -1
- package/dist/{obj-mesh-CzL0lOlJ.d.ts → obj-mesh-yN3ttPYf.d.ts} +2 -2
- package/dist/output/encode.d.ts +1 -1
- package/dist/output/encode.js +1 -2
- package/dist/output/item-styles.d.ts +3 -4
- package/dist/output/item-styles.js +1 -2
- package/dist/output/minify.js +1 -2
- package/dist/output/stylesheet.d.ts +1 -1
- package/dist/output/stylesheet.js +1 -2
- package/dist/pack.d.ts +6 -6
- package/dist/pack.js +1 -1
- package/dist/{pipeline-CCfkRth7.js → pipeline-DV4hIRMp.js} +12 -12
- package/dist/{pipeline-DuPF3sap.d.ts → pipeline-DmLQ49DB.d.ts} +4 -4
- package/dist/{pool-CKGp1qup.js → pool-Co7kPWwN.js} +1 -1
- package/dist/{prepare-DkJkZXuQ.js → prepare-BC5PYUmn.js} +7 -8
- package/dist/{prepare-Ce5SpR7Y.d.ts → prepare-BpwBH_m9.d.ts} +1 -1
- package/dist/{prepare-BPzsZI_S.d.ts → prepare-CZu44oTS.d.ts} +1 -1
- package/dist/{prepare-sj36BP90.js → prepare-DJnJQYtn.js} +9 -10
- package/dist/{rasterizer-M9Y7mn-W.js → rasterizer-B3tOyG4B.js} +5 -6
- package/dist/{rasterizer-DjnurUgD.d.ts → rasterizer-UBaTPhH4.d.ts} +1 -1
- package/dist/{registry-DafxsAhG.js → registry-CNFi94eo.js} +5 -7
- package/dist/render/blend.d.ts +1 -1
- package/dist/render/blend.js +1 -2
- package/dist/render/compose.d.ts +4 -5
- package/dist/render/compose.js +1 -2
- package/dist/render/entity-fallback.d.ts +12 -13
- package/dist/render/entity-fallback.js +1 -2
- package/dist/render/face.d.ts +1 -1
- package/dist/render/face.js +1 -2
- package/dist/render/fluid-bucket.d.ts +4 -5
- package/dist/render/fluid-bucket.js +1 -2
- package/dist/render/geo.d.ts +1 -1
- package/dist/render/geo.js +1 -2
- package/dist/render/geometry.d.ts +1 -1
- package/dist/render/geometry.js +1 -2
- package/dist/render/legacy-tints.d.ts +4 -5
- package/dist/render/legacy-tints.js +1 -2
- package/dist/render/lighting.d.ts +1 -1
- package/dist/render/lighting.js +1 -2
- package/dist/render/obj.d.ts +10 -10
- package/dist/render/obj.js +1 -2
- package/dist/render/pipeline.d.ts +1 -1
- package/dist/render/pipeline.js +1 -2
- package/dist/render/rasterizer.d.ts +1 -1
- package/dist/render/rasterizer.js +1 -2
- package/dist/render/renderer.d.ts +1 -1
- package/dist/render/renderer.js +1 -2
- package/dist/render/tints.d.ts +1 -1
- package/dist/render/tints.js +1 -2
- package/dist/render/vector.js +1 -2
- package/dist/{renderer-QgROYvPv.d.ts → renderer-DZSDiXL0.d.ts} +6 -6
- package/dist/resources/cache.d.ts +2 -3
- package/dist/resources/cache.js +1 -2
- package/dist/resources/cached.d.ts +3 -4
- package/dist/resources/cached.js +1 -2
- package/dist/resources/descriptor.d.ts +1 -1
- package/dist/resources/descriptor.js +1 -2
- package/dist/resources/entity-textures.d.ts +19 -20
- package/dist/resources/entity-textures.js +1 -2
- package/dist/resources/jar.d.ts +1 -1
- package/dist/resources/jar.js +1 -2
- package/dist/resources/locator.js +1 -2
- package/dist/resources/manager.d.ts +1 -1
- package/dist/resources/manager.js +1 -2
- package/dist/resources/read-ahead.d.ts +2 -3
- package/dist/resources/read-ahead.js +1 -2
- package/dist/resources/synthetic.d.ts +1 -1
- package/dist/resources/synthetic.js +1 -2
- package/dist/resources/zip-reader.d.ts +2 -3
- package/dist/resources/zip-reader.js +1 -2
- package/dist/{run-Bf5TLTJw.js → run-5Rc8hTHT.js} +15 -11
- package/dist/{run-CxB1qabg.d.ts → run-CfvR5OAR.d.ts} +3 -3
- package/dist/run.d.ts +1 -1
- package/dist/run.js +2 -2
- package/dist/{sources-DYY5Qu-t.js → sources-BsEa9YPc.js} +1 -1
- package/dist/{sources-sFtealLJ.d.ts → sources-ByuTQR_o.d.ts} +7 -3
- package/dist/{sprite-sheet-BWsLl0Vd.js → sprite-sheet-BQsUioOJ.js} +6 -7
- package/dist/{stylesheet-C61VrCAV.js → stylesheet-Cin7eCyU.js} +6 -7
- package/dist/{stylesheet-DxHkk4qA.d.ts → stylesheet-XJ-kH6kk.d.ts} +1 -1
- package/dist/{synthesize-jTjVjPAt.js → synthesize-DNvUwWhZ.js} +3 -4
- package/dist/{synthetic-CWtFtAkR.d.ts → synthetic-C8_0G5iP.d.ts} +1 -1
- package/dist/{synthetic-rc9BPT4P.js → synthetic-y9Mr-wB2.js} +0 -0
- package/dist/textures/loader.d.ts +1 -1
- package/dist/textures/loader.js +1 -2
- package/dist/textures/overlay.d.ts +3 -4
- package/dist/textures/overlay.js +1 -2
- package/dist/{tints-B0a1K11c.d.ts → tints-BNS9JGf7.d.ts} +2 -2
- package/dist/{tints-DwFmEkf3.d.ts → tints-CvHlfvDC.d.ts} +2 -2
- package/dist/{tints-B3WQcPtx.js → tints-Cw5okshA.js} +1 -1
- package/dist/{tints-CZeyKzMv.js → tints-DhSA5SCg.js} +3 -3
- package/dist/{types-qlp3I8_-.d.ts → types-BQQzfHEY.d.ts} +4 -0
- package/dist/versions/download.d.ts +2 -3
- package/dist/versions/download.js +1 -2
- package/dist/versions/legacy-reshape.d.ts +3 -4
- package/dist/versions/legacy-reshape.js +1 -2
- package/dist/versions/prepare.d.ts +1 -1
- package/dist/versions/prepare.js +1 -2
- package/dist/workers/pool.d.ts +6 -7
- package/dist/workers/pool.js +1 -2
- package/dist/workers/render-worker.d.ts +6 -7
- package/dist/workers/render-worker.js +2 -2
- package/package.json +9 -9
package/dist/blocks/export.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { exportBlockPack };
|
|
1
|
+
export { t as exportBlockPack } from "../export-BPH-b4LT.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { collectGameRules };
|
|
1
|
+
export { t as collectGameRules } from "../game-rules-DrYU_6hd.js";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { a as ResourceManager } from "../manager-
|
|
2
|
-
import { P as BlockPackModel } from "../block-behaviour-
|
|
1
|
+
import { a as ResourceManager } from "../manager-Ey26G_3e.js";
|
|
2
|
+
import { P as BlockPackModel } from "../block-behaviour-D6NwU9bV.js";
|
|
3
3
|
//#region src/blocks/geo-blocks.d.ts
|
|
4
|
-
interface GeoBlockOverride {
|
|
4
|
+
export interface GeoBlockOverride {
|
|
5
5
|
model: BlockPackModel;
|
|
6
6
|
javaFacing: boolean;
|
|
7
7
|
}
|
|
8
8
|
/** Converts a Java-rendered Gecko block into a world-scale 0–16 triangle mesh. */
|
|
9
|
-
declare function geoBlockModel(blockId: string, resources: ResourceManager): Promise<GeoBlockOverride | null>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { GeoBlockOverride, geoBlockModel };
|
|
9
|
+
export declare function geoBlockModel(blockId: string, resources: ResourceManager): Promise<GeoBlockOverride | null>;
|
|
10
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { geoBlockModel };
|
|
1
|
+
export { t as geoBlockModel } from "../geo-blocks-BYSBc8uq.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { a as ResourceManager } from "../manager-
|
|
2
|
-
import { i as TextureLoader } from "../loader-
|
|
3
|
-
import { t as ModelLoader } from "../loader-
|
|
4
|
-
import { Q as ItemPackEntry } from "../block-behaviour-
|
|
1
|
+
import { a as ResourceManager } from "../manager-Ey26G_3e.js";
|
|
2
|
+
import { i as TextureLoader } from "../loader-CrPTL0zk.js";
|
|
3
|
+
import { t as ModelLoader } from "../loader-mGAKSRp6.js";
|
|
4
|
+
import { Q as ItemPackEntry } from "../block-behaviour-D6NwU9bV.js";
|
|
5
5
|
//#region src/blocks/item-sprites.d.ts
|
|
6
|
-
interface ItemSpriteFailure {
|
|
6
|
+
export interface ItemSpriteFailure {
|
|
7
7
|
id: string;
|
|
8
8
|
reason: string;
|
|
9
9
|
}
|
|
10
|
-
interface ItemSpriteResult {
|
|
10
|
+
export interface ItemSpriteResult {
|
|
11
11
|
/** Flat items only, by item id; anything absent is the consumer's block-model job. */
|
|
12
12
|
items: Record<string, ItemPackEntry>;
|
|
13
13
|
/** Sprite ids to pack, which is every layer of every entry. */
|
|
14
14
|
spriteIds: Set<string>;
|
|
15
15
|
failures: ItemSpriteFailure[];
|
|
16
16
|
}
|
|
17
|
-
interface CollectItemSpritesOptions {
|
|
17
|
+
export interface CollectItemSpritesOptions {
|
|
18
18
|
resources: ResourceManager;
|
|
19
19
|
models: ModelLoader;
|
|
20
20
|
textures: TextureLoader;
|
|
@@ -29,6 +29,5 @@ interface CollectItemSpritesOptions {
|
|
|
29
29
|
itemIds: readonly string[];
|
|
30
30
|
onProgress?: (done: number, total: number) => void;
|
|
31
31
|
}
|
|
32
|
-
declare function collectItemSprites(options: CollectItemSpritesOptions): Promise<ItemSpriteResult>;
|
|
33
|
-
//#endregion
|
|
34
|
-
export { CollectItemSpritesOptions, ItemSpriteFailure, ItemSpriteResult, collectItemSprites };
|
|
32
|
+
export declare function collectItemSprites(options: CollectItemSpritesOptions): Promise<ItemSpriteResult>;
|
|
33
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { collectItemSprites };
|
|
1
|
+
export { t as collectItemSprites } from "../item-sprites-Cip695Kk.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as extractBlockLight, a as Handle, c as LightExtraction, d as MemberReference, f as PropertyDomain, g as Value, h as StateProbe, l as LightGetter, m as Registration, o as LambdaValue, p as PropsCall, s as LightCodeSource, u as LightSpec } from "../block-behaviour-
|
|
1
|
+
import { _ as extractBlockLight, a as Handle, c as LightExtraction, d as MemberReference, f as PropertyDomain, g as Value, h as StateProbe, l as LightGetter, m as Registration, o as LambdaValue, p as PropsCall, s as LightCodeSource, u as LightSpec } from "../block-behaviour-D6NwU9bV.js";
|
|
2
2
|
export { Handle, LambdaValue, LightCodeSource, LightExtraction, LightGetter, LightSpec, MemberReference, PropertyDomain, PropsCall, Registration, StateProbe, Value, extractBlockLight };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { extractBlockLight };
|
|
1
|
+
export { t as extractBlockLight } from "../light-bytecode-B4_sP6ri.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as blockLightLevel } from "../light-eval-
|
|
1
|
+
import { t as blockLightLevel } from "../light-eval-DJA58Kdg.js";
|
|
2
2
|
export { blockLightLevel };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { blockLightLevel };
|
|
1
|
+
export { t as blockLightLevel } from "../light-eval-BsJJoSv4.js";
|
package/dist/blocks/light.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ClassSource } from "../jar-classes-CSRrPAUy.js";
|
|
2
|
-
import { j as BlockPackLight, t as BlockBehaviour } from "../block-behaviour-
|
|
2
|
+
import { j as BlockPackLight, t as BlockBehaviour } from "../block-behaviour-D6NwU9bV.js";
|
|
3
3
|
//#region src/blocks/light.d.ts
|
|
4
|
-
interface CollectBlockLightOptions {
|
|
4
|
+
export interface CollectBlockLightOptions {
|
|
5
5
|
version: string;
|
|
6
6
|
/** Where mappings cache; the jar cache directory. */
|
|
7
7
|
cacheDir: string;
|
|
@@ -14,7 +14,7 @@ interface CollectBlockLightOptions {
|
|
|
14
14
|
trace?: readonly string[];
|
|
15
15
|
onProgress?: (done: number, total: number) => void;
|
|
16
16
|
}
|
|
17
|
-
interface BlockLightResult {
|
|
17
|
+
export interface BlockLightResult {
|
|
18
18
|
/** Only the blocks that emit; absent is 0. */
|
|
19
19
|
light: Record<string, BlockPackLight>;
|
|
20
20
|
/**
|
|
@@ -38,8 +38,8 @@ interface BlockLightResult {
|
|
|
38
38
|
* Blockstate files that describe no block. The item frames are entities whose model the game looks up
|
|
39
39
|
* through a blockstate, so they have no registration to find and emit nothing.
|
|
40
40
|
*/
|
|
41
|
-
declare const NOT_BLOCKS: ReadonlySet<string>;
|
|
42
|
-
declare function collectBlockLight(options: CollectBlockLightOptions): Promise<BlockLightResult>;
|
|
41
|
+
export declare const NOT_BLOCKS: ReadonlySet<string>;
|
|
42
|
+
export declare function collectBlockLight(options: CollectBlockLightOptions): Promise<BlockLightResult>;
|
|
43
43
|
/**
|
|
44
44
|
* Vanilla's emitters, transcribed from `Blocks.java` across 1.13 → 26.2 and checked against the wiki.
|
|
45
45
|
*
|
|
@@ -48,8 +48,7 @@ declare function collectBlockLight(options: CollectBlockLightOptions): Promise<B
|
|
|
48
48
|
* the extractor emits — the commonest level as `default`, the rest as the fewest properties that
|
|
49
49
|
* decide them — so the two can be compared directly.
|
|
50
50
|
*/
|
|
51
|
-
declare const VANILLA_LIGHT: Record<string, BlockPackLight>;
|
|
51
|
+
export declare const VANILLA_LIGHT: Record<string, BlockPackLight>;
|
|
52
52
|
/** The vanilla table as it stood at a version: `VANILLA_LIGHT` with the history applied. */
|
|
53
|
-
declare function vanillaLightAt(version: string): Record<string, BlockPackLight>;
|
|
54
|
-
//#endregion
|
|
55
|
-
export { BlockLightResult, CollectBlockLightOptions, NOT_BLOCKS, VANILLA_LIGHT, collectBlockLight, vanillaLightAt };
|
|
53
|
+
export declare function vanillaLightAt(version: string): Record<string, BlockPackLight>;
|
|
54
|
+
//#endregion
|
package/dist/blocks/light.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { NOT_BLOCKS, VANILLA_LIGHT, collectBlockLight, vanillaLightAt };
|
|
1
|
+
export { t as NOT_BLOCKS, n as VANILLA_LIGHT, r as collectBlockLight, i as vanillaLightAt } from "../light-Bj0iD-ok.js";
|
package/dist/blocks/names.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as collectNames, t as NamePack } from "../names-
|
|
1
|
+
import { n as collectNames, t as NamePack } from "../names-D30ZIXkK.js";
|
|
2
2
|
export { NamePack, collectNames };
|
package/dist/blocks/names.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { collectNames };
|
|
1
|
+
export { t as collectNames } from "../names-GLa5TyL7.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as buildObjMesh, n as ObjMesh, r as ObjMeshError, t as MeshGroup } from "../obj-mesh-
|
|
1
|
+
import { i as buildObjMesh, n as ObjMesh, r as ObjMeshError, t as MeshGroup } from "../obj-mesh-yN3ttPYf.js";
|
|
2
2
|
export { MeshGroup, ObjMesh, ObjMeshError, buildObjMesh };
|
package/dist/blocks/obj-mesh.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ObjMeshError, buildObjMesh };
|
|
1
|
+
export { t as ObjMeshError, n as buildObjMesh } from "../obj-mesh-WShUgD4g.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ItemPackLayer, A as BlockPackItemsFile, B as BlockPackStatesFile, C as BlockPackBlockState, D as BlockPackEntityModelsFile, E as BlockPackEntitiesFile, F as BlockPackModelsFile, G as EntityPackCube, H as BlockPackTintsFile, I as BlockPackNamesFile, J as EntityPackModel, K as EntityPackCubeFace, L as BlockPackRenderLayer, M as BlockPackLightFile, N as BlockPackMetaFile, O as BlockPackFace, P as BlockPackModel, Q as ItemPackEntry, R as BlockPackSprite, S as BlockPackBiomesFile, T as BlockPackElement, U as BlockPackVariant, V as BlockPackTagsFile, W as EQUIPMENT_SLOTS, X as EquipmentPack, Y as EntityPackPart, Z as EquipmentSlot, b as BlockPackAtlasPage, j as BlockPackLight, k as BlockPackGameRulesFile, q as EntityPackEntry, v as BlockPackAdvancementsFile, w as BlockPackBlockStatesFile, x as BlockPackBehaviourFile, y as BlockPackAtlasFile, z as BlockPackSpriteFrame } from "../block-behaviour-
|
|
1
|
+
import { $ as ItemPackLayer, A as BlockPackItemsFile, B as BlockPackStatesFile, C as BlockPackBlockState, D as BlockPackEntityModelsFile, E as BlockPackEntitiesFile, F as BlockPackModelsFile, G as EntityPackCube, H as BlockPackTintsFile, I as BlockPackNamesFile, J as EntityPackModel, K as EntityPackCubeFace, L as BlockPackRenderLayer, M as BlockPackLightFile, N as BlockPackMetaFile, O as BlockPackFace, P as BlockPackModel, Q as ItemPackEntry, R as BlockPackSprite, S as BlockPackBiomesFile, T as BlockPackElement, U as BlockPackVariant, V as BlockPackTagsFile, W as EQUIPMENT_SLOTS, X as EquipmentPack, Y as EntityPackPart, Z as EquipmentSlot, b as BlockPackAtlasPage, j as BlockPackLight, k as BlockPackGameRulesFile, q as EntityPackEntry, v as BlockPackAdvancementsFile, w as BlockPackBlockStatesFile, x as BlockPackBehaviourFile, y as BlockPackAtlasFile, z as BlockPackSpriteFrame } from "../block-behaviour-D6NwU9bV.js";
|
|
2
2
|
export { BlockPackAdvancementsFile, BlockPackAtlasFile, BlockPackAtlasPage, BlockPackBehaviourFile, BlockPackBiomesFile, BlockPackBlockState, BlockPackBlockStatesFile, BlockPackElement, BlockPackEntitiesFile, BlockPackEntityModelsFile, BlockPackFace, BlockPackGameRulesFile, BlockPackItemsFile, BlockPackLight, BlockPackLightFile, BlockPackMetaFile, BlockPackModel, BlockPackModelsFile, BlockPackNamesFile, BlockPackRenderLayer, BlockPackSprite, BlockPackSpriteFrame, BlockPackStatesFile, BlockPackTagsFile, BlockPackTintsFile, BlockPackVariant, EQUIPMENT_SLOTS, EntityPackCube, EntityPackCubeFace, EntityPackEntry, EntityPackModel, EntityPackPart, EquipmentPack, EquipmentSlot, ItemPackEntry, ItemPackLayer };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { EQUIPMENT_SLOTS };
|
|
1
|
+
export { t as EQUIPMENT_SLOTS } from "../pack-format-BP5dJMYY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as TextureLoader, r as Texture } from "../loader-
|
|
2
|
-
import { i as PackedPage } from "../atlas-pack-
|
|
3
|
-
import { L as BlockPackRenderLayer, R as BlockPackSprite } from "../block-behaviour-
|
|
1
|
+
import { i as TextureLoader, r as Texture } from "../loader-CrPTL0zk.js";
|
|
2
|
+
import { i as PackedPage } from "../atlas-pack-Dxl3kwT2.js";
|
|
3
|
+
import { L as BlockPackRenderLayer, R as BlockPackSprite } from "../block-behaviour-D6NwU9bV.js";
|
|
4
4
|
//#region src/blocks/sprite-sheet.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Vanilla's own id for the missing-texture sprite. A face whose texture does
|
|
@@ -10,20 +10,20 @@ import { L as BlockPackRenderLayer, R as BlockPackSprite } from "../block-behavi
|
|
|
10
10
|
* put holes in geometry the player can see, and would read as our bug rather
|
|
11
11
|
* than the mod's.
|
|
12
12
|
*/
|
|
13
|
-
declare const MISSING_SPRITE = "minecraft:missingno";
|
|
13
|
+
export declare const MISSING_SPRITE = "minecraft:missingno";
|
|
14
14
|
/** `MissingTextureAtlasSprite`: 16x16, black and magenta in 8px quarters. */
|
|
15
|
-
declare function missingTexture(): Texture;
|
|
15
|
+
export declare function missingTexture(): Texture;
|
|
16
16
|
/**
|
|
17
17
|
* Alpha decides the render layer: vanilla assets do not state cutout versus
|
|
18
18
|
* translucent (`render_type` is a loader extension adopted only recently), and
|
|
19
19
|
* inferring it covers mods for free.
|
|
20
20
|
*/
|
|
21
|
-
declare function inferRenderLayer(frames: Texture[]): BlockPackRenderLayer;
|
|
22
|
-
interface SpriteSheetFailure {
|
|
21
|
+
export declare function inferRenderLayer(frames: Texture[]): BlockPackRenderLayer;
|
|
22
|
+
export interface SpriteSheetFailure {
|
|
23
23
|
id: string;
|
|
24
24
|
reason: string;
|
|
25
25
|
}
|
|
26
|
-
interface BuildSpriteSheetOptions {
|
|
26
|
+
export interface BuildSpriteSheetOptions {
|
|
27
27
|
/** Edge-extended border per sprite side (default 4). */
|
|
28
28
|
padding?: number;
|
|
29
29
|
/** Ceiling on a page's dimensions (default 4096). */
|
|
@@ -36,7 +36,7 @@ interface BuildSpriteSheetOptions {
|
|
|
36
36
|
includeMissing?: boolean;
|
|
37
37
|
onProgress?: (done: number, total: number) => void;
|
|
38
38
|
}
|
|
39
|
-
interface SpriteSheet {
|
|
39
|
+
export interface SpriteSheet {
|
|
40
40
|
pages: PackedPage[];
|
|
41
41
|
/** Ready for `atlas.json`, unsorted — the caller decides the key order. */
|
|
42
42
|
sprites: Record<string, BlockPackSprite>;
|
|
@@ -54,6 +54,5 @@ interface SpriteSheet {
|
|
|
54
54
|
* did not make it. Ids are packed in sorted order so an unchanged input produces
|
|
55
55
|
* a byte-identical atlas.
|
|
56
56
|
*/
|
|
57
|
-
declare function buildSpriteSheet(ids: Iterable<string>, textures: TextureLoader, options?: BuildSpriteSheetOptions): Promise<SpriteSheet>;
|
|
58
|
-
//#endregion
|
|
59
|
-
export { BuildSpriteSheetOptions, MISSING_SPRITE, SpriteSheet, SpriteSheetFailure, buildSpriteSheet, inferRenderLayer, missingTexture };
|
|
57
|
+
export declare function buildSpriteSheet(ids: Iterable<string>, textures: TextureLoader, options?: BuildSpriteSheetOptions): Promise<SpriteSheet>;
|
|
58
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { MISSING_SPRITE, buildSpriteSheet, inferRenderLayer, missingTexture };
|
|
1
|
+
export { t as MISSING_SPRITE, n as buildSpriteSheet, r as inferRenderLayer, i as missingTexture } from "../sprite-sheet-BQsUioOJ.js";
|
package/dist/blocks/states.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { readBlockStates };
|
|
1
|
+
export { t as readBlockStates } from "../states-BvoZA-ql.js";
|
package/dist/blocks/tints.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildBlockTints, i as UNREGISTERED_TINTS, n as BlockTintPack, r as BuiltBlockTints, t as BlockTint } from "../tints-
|
|
1
|
+
import { a as buildBlockTints, i as UNREGISTERED_TINTS, n as BlockTintPack, r as BuiltBlockTints, t as BlockTint } from "../tints-CvHlfvDC.js";
|
|
2
2
|
export { BlockTint, BlockTintPack, BuiltBlockTints, UNREGISTERED_TINTS, buildBlockTints };
|
package/dist/blocks/tints.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { UNREGISTERED_TINTS, buildBlockTints };
|
|
1
|
+
export { t as UNREGISTERED_TINTS, n as buildBlockTints } from "../tints-Cl0r-Ol3.js";
|
|
@@ -69,10 +69,9 @@ async function defaultBlockStateModel(resources, id) {
|
|
|
69
69
|
const variant = firstOf(value);
|
|
70
70
|
if (!variant) continue;
|
|
71
71
|
const score = scoreVariant(key, variant);
|
|
72
|
-
if (score
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
72
|
+
if (score <= bestScore) continue;
|
|
73
|
+
best = variant;
|
|
74
|
+
bestScore = score;
|
|
76
75
|
}
|
|
77
76
|
if (!best) {
|
|
78
77
|
for (const part of json.multipart ?? []) if (part.when === void 0) {
|
|
@@ -23,8 +23,9 @@ interface BlockModelVariant {
|
|
|
23
23
|
/** Blockstate rotation in degrees about Y. */
|
|
24
24
|
y: number;
|
|
25
25
|
/**
|
|
26
|
-
* Rotation about Z, applied after X and Y. Vanilla
|
|
27
|
-
*
|
|
26
|
+
* Rotation about Z, applied after X and Y. Vanilla first used it in
|
|
27
|
+
* 26.4-snapshot-3 to stand icicles up; AE2 writes it as `ae2:z` so a drive or
|
|
28
|
+
* charger can spin on the wall it faces.
|
|
28
29
|
*/
|
|
29
30
|
z: number;
|
|
30
31
|
/** Hold UVs still while the model rotates. */
|
|
@@ -20,8 +20,8 @@ function propertyValue(value) {
|
|
|
20
20
|
return typeof value === "string" ? value : String(value);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* The third rotation axis
|
|
24
|
-
* `ae2:z
|
|
23
|
+
* The third rotation axis: vanilla's icicles write a bare `z`, AE2 writes
|
|
24
|
+
* `ae2:z`. The namespace is left open because a loader extension is a loader
|
|
25
25
|
* extension whoever ships it, and only a numeric `z` key can match.
|
|
26
26
|
*/
|
|
27
27
|
function zRotation(entry) {
|
|
@@ -96,8 +96,7 @@ function parseCondition(raw, context) {
|
|
|
96
96
|
* `base_model` is what the block looks like before whatever the loader does at
|
|
97
97
|
* runtime — for FramedBlocks' 233 camouflage blocks, the uncamouflaged cube.
|
|
98
98
|
*/
|
|
99
|
-
function parseDefinitionLoader(namespace,
|
|
100
|
-
const entries = json;
|
|
99
|
+
function parseDefinitionLoader(namespace, entries, context) {
|
|
101
100
|
const loader = Object.entries(entries).find(([name]) => name === "definition_type" || name.endsWith(":definition_type"))?.[1];
|
|
102
101
|
if (typeof loader !== "string") return null;
|
|
103
102
|
const base = entries.base_model;
|
package/dist/builtin.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
//#region src/builtin.d.ts
|
|
2
|
-
declare function builtinPackPath(era: 'modern' | 'legacy'): string;
|
|
3
|
-
declare function bedCompatPath(): string;
|
|
2
|
+
export declare function builtinPackPath(era: 'modern' | 'legacy'): string;
|
|
3
|
+
export declare function bedCompatPath(): string;
|
|
4
4
|
/** Curated tint overrides for mod items that register their colors in code. */
|
|
5
|
-
declare function modTintPackPath(): string;
|
|
5
|
+
export declare function modTintPackPath(): string;
|
|
6
6
|
/** Curated geometry for mod items the game draws in code (builtin/entity). */
|
|
7
|
-
declare function modModelPackPath(): string;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { bedCompatPath, builtinPackPath, modModelPackPath, modTintPackPath };
|
|
7
|
+
export declare function modModelPackPath(): string;
|
|
8
|
+
//#endregion
|
package/dist/builtin.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { bedCompatPath, builtinPackPath, modModelPackPath, modTintPackPath };
|
|
1
|
+
export { t as bedCompatPath, n as builtinPackPath, r as modModelPackPath, i as modTintPackPath } from "./builtin-WkWjATeh.js";
|
|
@@ -278,10 +278,9 @@ function parseClassFile(bytes) {
|
|
|
278
278
|
if (!row) return null;
|
|
279
279
|
for (const argument of row.argumentIndexes) {
|
|
280
280
|
const handle = constants[argument];
|
|
281
|
-
if (handle?.tag
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
281
|
+
if (handle?.tag !== "methodHandle" || handle.referenceIndex === void 0) continue;
|
|
282
|
+
const target = reference(handle.referenceIndex);
|
|
283
|
+
if (target) return target;
|
|
285
284
|
}
|
|
286
285
|
return null;
|
|
287
286
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as builtinPackPath } from "./builtin-WkWjATeh.js";
|
|
2
|
-
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-
|
|
3
|
-
import { a as prepareVersionResources, r as compareVersions } from "./prepare-
|
|
4
|
-
import { t as exportBlockPack } from "./export-
|
|
5
|
-
import { n as layeredClasses, t as JarClassReader } from "./jar-classes-
|
|
6
|
-
import { n as prepareModResources } from "./prepare-
|
|
2
|
+
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
|
|
3
|
+
import { a as prepareVersionResources, r as compareVersions } from "./prepare-BC5PYUmn.js";
|
|
4
|
+
import { t as exportBlockPack } from "./export-BPH-b4LT.js";
|
|
5
|
+
import { n as layeredClasses, t as JarClassReader } from "./jar-classes-C5P3F18e.js";
|
|
6
|
+
import { n as prepareModResources } from "./prepare-DJnJQYtn.js";
|
|
7
7
|
import { t as downloadClientJar } from "./download-1wAfrGKx.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import os from "node:os";
|
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { n as builtinPackPath, t as bedCompatPath } from "./builtin-WkWjATeh.js";
|
|
3
|
-
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-
|
|
4
|
-
import { t as JarResourceManager } from "./jar-
|
|
5
|
-
import { a as prepareVersionResources, i as eraForVersion, n as GEOMETRY_DONOR_VERSIONS } from "./prepare-
|
|
6
|
-
import { t as curatedModelOverrides } from "./models-
|
|
7
|
-
import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-
|
|
3
|
+
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
|
|
4
|
+
import { t as JarResourceManager } from "./jar-Df0Xhw7X.js";
|
|
5
|
+
import { a as prepareVersionResources, i as eraForVersion, n as GEOMETRY_DONOR_VERSIONS } from "./prepare-BC5PYUmn.js";
|
|
6
|
+
import { t as curatedModelOverrides } from "./models-CvFehP26.js";
|
|
7
|
+
import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-DhSA5SCg.js";
|
|
8
8
|
import { t as downloadClientJar } from "./download-1wAfrGKx.js";
|
|
9
|
-
import { t as runBlocksCli } from "./cli-
|
|
10
|
-
import { t as run } from "./run-
|
|
9
|
+
import { t as runBlocksCli } from "./cli-CeEAmdX9.js";
|
|
10
|
+
import { t as run } from "./run-5Rc8hTHT.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import os from "node:os";
|
|
13
13
|
import { parseArgs } from "node:util";
|
|
@@ -126,7 +126,7 @@ Options:
|
|
|
126
126
|
--gif also emit animated GIFs for legacy browsers
|
|
127
127
|
--avif also emit AVIF
|
|
128
128
|
-i, --item-list write the rendered item id list JSON
|
|
129
|
-
--lighting-profile modern (default) | legacy (matches
|
|
129
|
+
--lighting-profile modern (default) | legacy (matches renderchest v2.5.2-v5.1.0)
|
|
130
130
|
--builtin <dir> override the builtin pack (defaults per era)
|
|
131
131
|
--cache-dir <dir> jar download cache (default ~/.rendermite)
|
|
132
132
|
--concurrency <n> in-flight items per thread (default 8)
|
|
@@ -49,16 +49,15 @@ async function collectDatapack(resources, namespaces) {
|
|
|
49
49
|
tags[registry][`${namespace}:${split[2]}`] = values;
|
|
50
50
|
continue;
|
|
51
51
|
}
|
|
52
|
-
if (ADVANCEMENT_FOLDER.test(locator.path))
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
advancements[`${namespace}:${name}`] = Object.keys(json.criteria);
|
|
52
|
+
if (!ADVANCEMENT_FOLDER.test(locator.path)) continue;
|
|
53
|
+
const name = locator.path.replace(ADVANCEMENT_FOLDER, "");
|
|
54
|
+
if (name.startsWith("recipes/")) continue;
|
|
55
|
+
const json = await readJson(resources, locator);
|
|
56
|
+
if (typeof json?.criteria !== "object" || json.criteria === null) {
|
|
57
|
+
unreadable.push(locator.toString());
|
|
58
|
+
continue;
|
|
61
59
|
}
|
|
60
|
+
advancements[`${namespace}:${name}`] = Object.keys(json.criteria);
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ey26G_3e.js";
|
|
2
2
|
//#region src/blocks/datapack.d.ts
|
|
3
3
|
/** `tags.json`: registry (`block`, `item`, `worldgen/biome`, …) → tag id → its values, unexpanded. */
|
|
4
4
|
type TagPack = Record<string, Record<string, string[]>>;
|
|
@@ -3,7 +3,7 @@ import { i as fromItemTransform, o as identity, s as multiply } from "./vector-C
|
|
|
3
3
|
/**
|
|
4
4
|
* 1.21.4+ item-definition (`assets/<ns>/items/*.json`) evaluation for a static
|
|
5
5
|
* GUI icon, mirroring upstream's Item classes and property defaults
|
|
6
|
-
* (docs/
|
|
6
|
+
* (docs/renderchest-spec.md §3).
|
|
7
7
|
*/
|
|
8
8
|
var InvalidItemDefinitionError = class extends Error {};
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as MapResourceManager, t as KindFilteredResourceManager } from "./synthetic-
|
|
2
|
-
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-
|
|
3
|
-
import { t as JarResourceManager } from "./jar-
|
|
1
|
+
import { n as MapResourceManager, t as KindFilteredResourceManager } from "./synthetic-y9Mr-wB2.js";
|
|
2
|
+
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
|
|
3
|
+
import { t as JarResourceManager } from "./jar-Df0Xhw7X.js";
|
|
4
4
|
//#region src/resources/descriptor.ts
|
|
5
5
|
/**
|
|
6
6
|
* Serializable descriptions of a resource tree, so the same layered tree can be
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ey26G_3e.js";
|
|
2
2
|
import { i as ItemRenderInstruction, r as ItemProperties } from "./definition-ricL7Jqf.js";
|
|
3
3
|
//#region src/items/discovery.d.ts
|
|
4
4
|
declare class ItemResolutionError extends Error {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
2
|
import { o as identity } from "./vector-CCxLae_T.js";
|
|
3
|
-
import { n as InvalidItemDefinitionError, o as evaluateItemModel } from "./definition-
|
|
3
|
+
import { n as InvalidItemDefinitionError, o as evaluateItemModel } from "./definition-Dab22cHd.js";
|
|
4
4
|
//#region src/items/discovery.ts
|
|
5
5
|
/**
|
|
6
6
|
* Era-adaptive item discovery — the piece no single renderchest tag has:
|
|
@@ -14,13 +14,12 @@ async function discoverItems(resources, namespace, options = {}) {
|
|
|
14
14
|
const items = [];
|
|
15
15
|
for (const locator of await resources.listResources("itemDefinition", namespace)) {
|
|
16
16
|
const id = locator.toString();
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
17
|
+
if (seen.has(id)) continue;
|
|
18
|
+
seen.add(id);
|
|
19
|
+
items.push({
|
|
20
|
+
id,
|
|
21
|
+
source: "definition"
|
|
22
|
+
});
|
|
24
23
|
}
|
|
25
24
|
const filterUntranslated = options.filterUntranslatedModels ?? true;
|
|
26
25
|
const registered = namespace === "minecraft" || !filterUntranslated ? null : await langRegistry(resources, namespace);
|
|
@@ -29,13 +28,12 @@ async function discoverItems(resources, namespace, options = {}) {
|
|
|
29
28
|
const name = locator.path.slice(5);
|
|
30
29
|
if (registered && !registered.has(name.replaceAll("/", ".")) && !name.endsWith("_trim")) continue;
|
|
31
30
|
const id = new ResourceLocator(locator.namespace, name).toString();
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
31
|
+
if (seen.has(id)) continue;
|
|
32
|
+
seen.add(id);
|
|
33
|
+
items.push({
|
|
34
|
+
id,
|
|
35
|
+
source: "model"
|
|
36
|
+
});
|
|
39
37
|
}
|
|
40
38
|
return items;
|
|
41
39
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TRIM_DARKER_MATERIALS, i as POTTERY_SHERDS, n as DynamicItem, o as TRIM_MATERIALS, r as DynamicResources, s as builtinDynamicResources, t as ARMOR_ITEM_TYPES } from "../generators-
|
|
1
|
+
import { a as TRIM_DARKER_MATERIALS, i as POTTERY_SHERDS, n as DynamicItem, o as TRIM_MATERIALS, r as DynamicResources, s as builtinDynamicResources, t as ARMOR_ITEM_TYPES } from "../generators-P1goUyvI.js";
|
|
2
2
|
export { ARMOR_ITEM_TYPES, DynamicItem, DynamicResources, POTTERY_SHERDS, TRIM_DARKER_MATERIALS, TRIM_MATERIALS, builtinDynamicResources };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ARMOR_ITEM_TYPES, POTTERY_SHERDS, TRIM_DARKER_MATERIALS, TRIM_MATERIALS, builtinDynamicResources };
|
|
1
|
+
export { t as ARMOR_ITEM_TYPES, n as POTTERY_SHERDS, r as TRIM_DARKER_MATERIALS, i as TRIM_MATERIALS, a as builtinDynamicResources } from "../generators-7b5w6s0L.js";
|
|
@@ -2,9 +2,8 @@ import { c as toByteTexture } from "./blend-KXMclcHk.js";
|
|
|
2
2
|
import sharp from "sharp";
|
|
3
3
|
//#region src/output/encode.ts
|
|
4
4
|
/**
|
|
5
|
-
* Icon encoding via sharp. Defaults
|
|
6
|
-
*
|
|
7
|
-
* candidates only.
|
|
5
|
+
* Icon encoding via sharp. Defaults are tuned so no separate optimization step
|
|
6
|
+
* is needed: lossless everywhere, strictly-smaller candidates only.
|
|
8
7
|
*/
|
|
9
8
|
/**
|
|
10
9
|
* Lossless WebP effort for single-frame icons. Measured across 1.12.2–1.21.8
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
-
import { r as parseObj } from "./obj-
|
|
2
|
+
import { r as parseObj } from "./obj-BWsU8pYz.js";
|
|
3
3
|
//#region src/blocks/ender-storage.ts
|
|
4
4
|
/** Geometry for Ender Storage blocks whose shipped JSON model is only an empty Java-renderer hook. */
|
|
5
5
|
const BLOCK_UNITS = 16;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { parseClassFile };
|
|
1
|
+
export { t as parseClassFile } from "../classfile-YGjbyMPk.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as ExtractedModel } from "../model-PnQ4gV0-.js";
|
|
2
|
-
import { t as ParsedGeo } from "../geo-
|
|
2
|
+
import { t as ParsedGeo } from "../geo-Ci_PGkFI.js";
|
|
3
3
|
//#region src/entities/geo-model.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Converts one parsed `.geo.json` into a model.
|
|
@@ -8,6 +8,5 @@ import { t as ParsedGeo } from "../geo-DsWwuC5o.js";
|
|
|
8
8
|
* missing becomes a root rather than being dropped, and a cube carrying its own rotation becomes a part
|
|
9
9
|
* of its own: `Cube` has nowhere to put a rotation, and 18% of the corpus's cubes have one.
|
|
10
10
|
*/
|
|
11
|
-
declare function geoToModel(geo: ParsedGeo): ExtractedModel;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { geoToModel };
|
|
11
|
+
export declare function geoToModel(geo: ParsedGeo): ExtractedModel;
|
|
12
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { geoToModel };
|
|
1
|
+
export { t as geoToModel } from "../geo-model-Bo1gpEwX.js";
|
|
@@ -2,7 +2,7 @@ import { t as ClassFile } from "../classfile-Dzn0gW9M.js";
|
|
|
2
2
|
import { r as ExtractedModel } from "../model-PnQ4gV0-.js";
|
|
3
3
|
import { t as ModelCode } from "../model-code-BclYt1do.js";
|
|
4
4
|
//#region src/entities/inherit.d.ts
|
|
5
|
-
interface Ancestry {
|
|
5
|
+
export interface Ancestry {
|
|
6
6
|
/** The class and its ancestors by internal name, parsed. */
|
|
7
7
|
ancestors: Map<string, ClassFile>;
|
|
8
8
|
/** The same classes, most derived first, with the bytes to interpret. */
|
|
@@ -12,7 +12,7 @@ interface Ancestry {
|
|
|
12
12
|
}>;
|
|
13
13
|
}
|
|
14
14
|
/** Reads a class and everything it inherits from that the jar still holds. */
|
|
15
|
-
declare function ancestryOf(internalName: string, read: (internalName: string) => Promise<Uint8Array | null>): Promise<Ancestry>;
|
|
15
|
+
export declare function ancestryOf(internalName: string, read: (internalName: string) => Promise<Uint8Array | null>): Promise<Ancestry>;
|
|
16
16
|
/**
|
|
17
17
|
* Geometry for one class, with the code it builds on available and its ancestors' parts filled in.
|
|
18
18
|
*
|
|
@@ -24,6 +24,5 @@ declare function ancestryOf(internalName: string, read: (internalName: string) =
|
|
|
24
24
|
* several ways: 1.16.5's sheep overrides a head in `SheepFurModel` and takes its legs from
|
|
25
25
|
* `QuadrupedModel` two hops up.
|
|
26
26
|
*/
|
|
27
|
-
declare function extractInheritedModel(internalName: string, read: (internalName: string) => Promise<Uint8Array | null>, code?: ModelCode): Promise<ExtractedModel | null>;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { Ancestry, ancestryOf, extractInheritedModel };
|
|
27
|
+
export declare function extractInheritedModel(internalName: string, read: (internalName: string) => Promise<Uint8Array | null>, code?: ModelCode): Promise<ExtractedModel | null>;
|
|
28
|
+
//#endregion
|
package/dist/entities/inherit.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ancestryOf, extractInheritedModel };
|
|
1
|
+
export { t as ancestryOf, n as extractInheritedModel } from "../inherit-LSSIV8N2.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { JarClassReader, layeredClasses };
|
|
1
|
+
export { t as JarClassReader, n as layeredClasses } from "../jar-classes-C5P3F18e.js";
|