@nodecraft/rendermite 1.7.4 → 1.9.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.
Files changed (164) hide show
  1. package/README.md +8 -1
  2. package/dist/atlas/registry.d.ts +3 -3
  3. package/dist/atlas/sources.d.ts +1 -1
  4. package/dist/{atlas-pack-C56gzqAg.d.ts → atlas-pack-BUadroKy.d.ts} +1 -1
  5. package/dist/biomes-BGOF6gRM.js +1100 -0
  6. package/dist/biomes-CnnhDCnk.d.ts +59 -0
  7. package/dist/{blend-C5UYzink.d.ts → blend-mJAeQB3C.d.ts} +1 -1
  8. package/dist/block-behaviour-9Tj_GIUC.d.ts +632 -0
  9. package/dist/block-behaviour-D-SG2Xfp.js +155 -0
  10. package/dist/blocks/atlas-pack.d.ts +1 -1
  11. package/dist/blocks/biomes.d.ts +2 -2
  12. package/dist/blocks/biomes.js +2 -2
  13. package/dist/blocks/block-behaviour.d.ts +2 -0
  14. package/dist/blocks/block-behaviour.js +2 -0
  15. package/dist/blocks/block-entities.d.ts +3 -3
  16. package/dist/blocks/cli.js +1 -1
  17. package/dist/blocks/datapack.d.ts +2 -0
  18. package/dist/blocks/datapack.js +2 -0
  19. package/dist/blocks/ender-storage.d.ts +2 -2
  20. package/dist/blocks/entities.d.ts +3 -3
  21. package/dist/blocks/entity-geo.d.ts +1 -1
  22. package/dist/blocks/entity-models.d.ts +4 -4
  23. package/dist/blocks/entity-models.js +1 -1
  24. package/dist/blocks/entity-sizes.d.ts +25 -0
  25. package/dist/blocks/entity-sizes.js +2 -0
  26. package/dist/blocks/export.d.ts +1 -1
  27. package/dist/blocks/export.js +1 -1
  28. package/dist/blocks/game-rules.d.ts +2 -0
  29. package/dist/blocks/game-rules.js +2 -0
  30. package/dist/blocks/geo-blocks.d.ts +2 -2
  31. package/dist/blocks/item-sprites.d.ts +4 -4
  32. package/dist/blocks/light-bytecode.d.ts +2 -0
  33. package/dist/blocks/light-bytecode.js +2 -0
  34. package/dist/blocks/light-eval.d.ts +2 -0
  35. package/dist/blocks/light-eval.js +2 -0
  36. package/dist/blocks/light.d.ts +48 -0
  37. package/dist/blocks/light.js +2 -0
  38. package/dist/blocks/obj-mesh.d.ts +1 -1
  39. package/dist/blocks/pack-format.d.ts +2 -2
  40. package/dist/blocks/sprite-sheet.d.ts +3 -3
  41. package/dist/blocks/states.d.ts +2 -0
  42. package/dist/blocks/states.js +2 -0
  43. package/dist/blocks/tints.d.ts +1 -1
  44. package/dist/{classfile-Bo7FUrrD.js → classfile-CiIDF3vc.js} +23 -1
  45. package/dist/{classfile-BdLIk4Pe.d.ts → classfile-CsLXlh5z.d.ts} +23 -0
  46. package/dist/{cli-DBNuCnry.js → cli-xBcMuKA3.js} +11 -5
  47. package/dist/cli.js +7 -7
  48. package/dist/datapack-CmEg0Vko.d.ts +15 -0
  49. package/dist/datapack-D6eH46ay.js +71 -0
  50. package/dist/{descriptor-JyXhfd-c.js → descriptor-Dz2cR-BH.js} +2 -2
  51. package/dist/{discovery-Cmir3QfC.d.ts → discovery-DWe_kX8W.d.ts} +1 -1
  52. package/dist/dynamic/generators.d.ts +1 -1
  53. package/dist/{encode-Br_vPrd8.d.ts → encode-BNEYHHR0.d.ts} +1 -1
  54. package/dist/entities/classfile.d.ts +1 -1
  55. package/dist/entities/classfile.js +1 -1
  56. package/dist/entities/geo-model.d.ts +1 -1
  57. package/dist/entities/inherit.d.ts +2 -2
  58. package/dist/entities/inherit.js +1 -1
  59. package/dist/entities/jar-classes.js +1 -1
  60. package/dist/entities/link.d.ts +2 -2
  61. package/dist/entities/link.js +1 -1
  62. package/dist/entities/mappings.d.ts +2 -2
  63. package/dist/entities/mappings.js +2 -2
  64. package/dist/entities/model-bytecode.d.ts +7 -2
  65. package/dist/entities/model-bytecode.js +2 -2
  66. package/dist/entities/model-code.d.ts +1 -1
  67. package/dist/entities/model-code.js +1 -1
  68. package/dist/{entity-models-DUKiHpn1.js → entity-models-BYAxrTsk.js} +5 -5
  69. package/dist/entity-sizes-CpO1gA7p.js +194 -0
  70. package/dist/{export-Ds1EelMa.js → export-CbG2Rx3i.js} +73 -4
  71. package/dist/{export-B8tPsf4K.d.ts → export-HEoqcV-Y.d.ts} +19 -2
  72. package/dist/{face-DqEd9G_U.d.ts → face-uWXECGNr.d.ts} +2 -2
  73. package/dist/game-rules-DuLlFc7o.js +104 -0
  74. package/dist/game-rules-ThvdDG3B.d.ts +16 -0
  75. package/dist/{generators-BnIzAftW.d.ts → generators-hu_vk10m.d.ts} +1 -1
  76. package/dist/{geo-C9QYeLVN.d.ts → geo-DsWwuC5o.d.ts} +4 -4
  77. package/dist/index.d.ts +20 -20
  78. package/dist/index.js +8 -8
  79. package/dist/{inherit-BYLi3Q28.js → inherit-BUn0Cve9.js} +2 -2
  80. package/dist/items/blockstate.d.ts +1 -1
  81. package/dist/items/discovery.d.ts +1 -1
  82. package/dist/{jar-B5iRZQeL.d.ts → jar-4Jg7ufWK.d.ts} +1 -1
  83. package/dist/{jar-W2cV2ZVO.js → jar-DvofBm71.js} +2 -2
  84. package/dist/{jar-classes-3GVCJZT7.js → jar-classes-0wqWbTax.js} +2 -2
  85. package/dist/light-CC3VMsjl.js +614 -0
  86. package/dist/light-bytecode-DYxb6pJk.js +1799 -0
  87. package/dist/light-eval-BsJJoSv4.js +23 -0
  88. package/dist/light-eval-DMjK6xnb.d.ts +13 -0
  89. package/dist/{link-5GmBLTzk.js → link-Cuhyrz07.js} +1 -1
  90. package/dist/{loader-DSir1-P0.d.ts → loader-BYyPIs9f.d.ts} +1 -1
  91. package/dist/{loader-59_eMa8e.d.ts → loader-C4gsX_wO.d.ts} +1 -1
  92. package/dist/{manager-exOIcdyx.d.ts → manager-Ct0dEOMg.d.ts} +6 -0
  93. package/dist/{manager-BNibYkmI.js → manager-D6zXmFrO.js} +6 -0
  94. package/dist/{mappings-BEPVaiwE.js → mappings-DEl_7xxQ.js} +94 -9
  95. package/dist/{mappings-DxX4KoZl.d.ts → mappings-DhOPQTgV.d.ts} +33 -2
  96. package/dist/{model-bytecode-B43uSqet.js → model-bytecode-VaLUQfGO.js} +2 -2
  97. package/dist/{model-code-BY44ao27.d.ts → model-code-Csc3bs3h.d.ts} +1 -1
  98. package/dist/{model-code-1Vuk-zj_.js → model-code-DbN2uVhp.js} +1 -1
  99. package/dist/models/loader.d.ts +1 -1
  100. package/dist/{models-CZjCOjs4.js → models-BsYA-NZg.js} +1 -1
  101. package/dist/mods/models.d.ts +1 -1
  102. package/dist/mods/models.js +1 -1
  103. package/dist/mods/prepare.d.ts +1 -1
  104. package/dist/mods/prepare.js +1 -1
  105. package/dist/mods/synthesize.d.ts +2 -2
  106. package/dist/mods/tints.d.ts +2 -2
  107. package/dist/mods/tints.js +1 -1
  108. package/dist/{obj-mesh-ydhVfLKs.d.ts → obj-mesh-CzL0lOlJ.d.ts} +2 -2
  109. package/dist/output/encode.d.ts +1 -1
  110. package/dist/pack.d.ts +7 -5
  111. package/dist/pack.js +2 -1
  112. package/dist/{pipeline-DFuQa8ZT.d.ts → pipeline-DuPF3sap.d.ts} +3 -3
  113. package/dist/{pipeline-BTlk9-s5.js → pipeline-Q_185kY6.js} +1 -1
  114. package/dist/{prepare-OS7wL3jv.d.ts → prepare-BPzsZI_S.d.ts} +1 -1
  115. package/dist/{prepare-6pH3CNpg.d.ts → prepare-Ce5SpR7Y.d.ts} +1 -1
  116. package/dist/{prepare-D49Gu4Lv.js → prepare-DkJkZXuQ.js} +2 -2
  117. package/dist/{prepare-Myd_ec4v.js → prepare-sj36BP90.js} +4 -4
  118. package/dist/{rasterizer-C2wgJZ6J.d.ts → rasterizer-DjnurUgD.d.ts} +1 -1
  119. package/dist/render/blend.d.ts +1 -1
  120. package/dist/render/compose.d.ts +2 -2
  121. package/dist/render/entity-fallback.d.ts +6 -6
  122. package/dist/render/face.d.ts +1 -1
  123. package/dist/render/fluid-bucket.d.ts +2 -2
  124. package/dist/render/geo.d.ts +1 -1
  125. package/dist/render/legacy-tints.d.ts +2 -2
  126. package/dist/render/obj.d.ts +5 -5
  127. package/dist/render/pipeline.d.ts +1 -1
  128. package/dist/render/pipeline.js +1 -1
  129. package/dist/render/rasterizer.d.ts +1 -1
  130. package/dist/render/renderer.d.ts +1 -1
  131. package/dist/render/tints.d.ts +1 -1
  132. package/dist/{renderer-DbUmTFDb.d.ts → renderer-QgROYvPv.d.ts} +5 -5
  133. package/dist/resources/descriptor.d.ts +1 -1
  134. package/dist/resources/descriptor.js +1 -1
  135. package/dist/resources/entity-textures.d.ts +2 -2
  136. package/dist/resources/jar.d.ts +1 -1
  137. package/dist/resources/jar.js +1 -1
  138. package/dist/resources/manager.d.ts +1 -1
  139. package/dist/resources/manager.js +1 -1
  140. package/dist/resources/synthetic.d.ts +1 -1
  141. package/dist/resources/zip-reader.js +1 -1
  142. package/dist/{run-Ctt_1iTd.js → run-5yX5KRiI.js} +4 -4
  143. package/dist/{run-CLjF0N2d.d.ts → run-CxB1qabg.d.ts} +2 -2
  144. package/dist/run.d.ts +1 -1
  145. package/dist/run.js +1 -1
  146. package/dist/{sources-e5D09Jz_.d.ts → sources-sFtealLJ.d.ts} +1 -1
  147. package/dist/states-BvoZA-ql.js +40 -0
  148. package/dist/states-OzneeCTU.d.ts +25 -0
  149. package/dist/{synthetic-B3R7mW9k.d.ts → synthetic-CWtFtAkR.d.ts} +1 -1
  150. package/dist/textures/loader.d.ts +1 -1
  151. package/dist/textures/overlay.d.ts +1 -1
  152. package/dist/{tints-uLl1CIkC.d.ts → tints-B0a1K11c.d.ts} +2 -2
  153. package/dist/{tints-BspVCz2G.js → tints-CZeyKzMv.js} +2 -2
  154. package/dist/{tints-CQX8a1F0.d.ts → tints-DwFmEkf3.d.ts} +2 -2
  155. package/dist/versions/legacy-reshape.d.ts +1 -1
  156. package/dist/versions/prepare.d.ts +1 -1
  157. package/dist/versions/prepare.js +1 -1
  158. package/dist/workers/render-worker.d.ts +2 -2
  159. package/dist/workers/render-worker.js +2 -2
  160. package/dist/{zip-reader-BSbJKUT1.js → zip-reader-onwEVMea.js} +4 -4
  161. package/package.json +6 -6
  162. package/dist/biomes-5ZwYxMYe.js +0 -384
  163. package/dist/biomes-CJDJQqJb.d.ts +0 -38
  164. package/dist/pack-format-Baoc_aSZ.d.ts +0 -328
@@ -0,0 +1,104 @@
1
+ import { t as parseClassFile } from "./classfile-CiIDF3vc.js";
2
+ import { n as instructions } from "./entity-sizes-CpO1gA7p.js";
3
+ //#region src/blocks/game-rules.ts
4
+ /**
5
+ * The version's game rules: each one's name, whether it is on/off or a number, and its default.
6
+ *
7
+ * Rules are registered in `GameRules.<clinit>` and nowhere else, in three shapes over the years:
8
+ *
9
+ * - 1.13: `put("doFireTick", new Value("true", BOOLEAN_VALUE))`, the default a string.
10
+ * - 1.14–1.21: `register("doFireTick", UPDATES, BooleanValue.create(true))`.
11
+ * - 26.x: `registerBoolean("fire_spread_radius…", UPDATES, true)`, with the names now snake_case.
12
+ *
13
+ * All three push the name, then the default, then call something taking a `boolean` or an `int`, so a
14
+ * linear pass reads them without interpreting anything. The default is the *first* constant after
15
+ * the name because 26.x writes some as `DEBUG ? false : true`, whose second constant is the other arm.
16
+ */
17
+ /** A rule every version has, spelled either way, to find the class that registers them. */
18
+ const MARKERS = /* @__PURE__ */ new Set(["keepInventory", "keep_inventory"]);
19
+ function isRuleName(text) {
20
+ return /^[a-z]\w*$/.test(text) && text.length < 64;
21
+ }
22
+ /** The first `boolean` or `int` a descriptor takes, which is the kind of value it was handed. */
23
+ function valueKind(descriptor) {
24
+ const args = descriptor.slice(1, descriptor.indexOf(")")).replaceAll(/L[^;]+;/g, "L");
25
+ if (args.includes("Z")) return "boolean";
26
+ return args.includes("I") ? "integer" : null;
27
+ }
28
+ /**
29
+ * Every class naming a rule is a candidate, since a data fixer that renames them names them too; the
30
+ * one whose initialiser registers the most is the registry. Raw bytes are searched before anything is
31
+ * parsed, which keeps this to a handful of classes out of ten thousand.
32
+ */
33
+ async function collectGameRules(classes) {
34
+ let best = {};
35
+ for (const name of await classes.list()) {
36
+ const bytes = await classes.read(name);
37
+ if (!bytes || ![...MARKERS].some((marker) => Buffer.from(bytes.buffer, bytes.byteOffset, bytes.byteLength).includes(marker))) continue;
38
+ let classFile;
39
+ try {
40
+ classFile = parseClassFile(bytes);
41
+ } catch {
42
+ continue;
43
+ }
44
+ const rules = rulesRegisteredBy(classFile);
45
+ if (Object.keys(rules).length > Object.keys(best).length) best = rules;
46
+ }
47
+ return best;
48
+ }
49
+ /** Rules registered anywhere in the class: `<clinit>`, or the lambda 1.13 fills its map from. */
50
+ function rulesRegisteredBy(owner) {
51
+ const rules = {};
52
+ for (const method of owner.methods) if (method.code) Object.assign(rules, rulesIn(owner, method.code));
53
+ return rules;
54
+ }
55
+ function rulesIn(owner, code) {
56
+ const rules = {};
57
+ let name = null;
58
+ let first = null;
59
+ for (const { op, index } of instructions(code)) {
60
+ let constant = null;
61
+ if (op >= 2 && op <= 8) constant = op - 3;
62
+ else if (op === 16 || op === 17) constant = op === 16 ? index >> 8 << 24 >> 24 : index << 16 >> 16;
63
+ else if (op === 18 || op === 19) {
64
+ const literal = owner.literal(index);
65
+ if (typeof literal === "string" && (literal === "true" || literal === "false" || /^-?\d+$/.test(literal))) constant = literal;
66
+ else if (typeof literal === "string" && isRuleName(literal)) {
67
+ name = literal;
68
+ first = null;
69
+ continue;
70
+ } else if (typeof literal === "number") constant = literal;
71
+ }
72
+ if (constant !== null) {
73
+ first ??= constant;
74
+ if (name && typeof constant === "string") {
75
+ rules[name] = constant === "true" || constant === "false" ? {
76
+ type: "boolean",
77
+ default: constant === "true"
78
+ } : {
79
+ type: "integer",
80
+ default: Number(constant)
81
+ };
82
+ name = null;
83
+ }
84
+ continue;
85
+ }
86
+ if ((op === 184 || op === 183) && name && first !== null) {
87
+ const call = owner.reference(index);
88
+ const kind = call ? valueKind(call.descriptor) : null;
89
+ if (kind) {
90
+ rules[name] = kind === "boolean" ? {
91
+ type: "boolean",
92
+ default: first !== 0
93
+ } : {
94
+ type: "integer",
95
+ default: Number(first)
96
+ };
97
+ name = null;
98
+ }
99
+ }
100
+ }
101
+ return rules;
102
+ }
103
+ //#endregion
104
+ export { collectGameRules as t };
@@ -0,0 +1,16 @@
1
+ import { t as ClassSource } from "./jar-classes-CSRrPAUy.js";
2
+ //#region src/blocks/game-rules.d.ts
3
+ interface GameRule {
4
+ type: 'boolean' | 'integer';
5
+ default: boolean | number;
6
+ }
7
+ /** `game-rules.json`: rule name, exactly as `level.dat` stores it, to its type and default. */
8
+ type GameRulePack = Record<string, GameRule>;
9
+ /**
10
+ * Every class naming a rule is a candidate, since a data fixer that renames them names them too; the
11
+ * one whose initialiser registers the most is the registry. Raw bytes are searched before anything is
12
+ * parsed, which keeps this to a handful of classes out of ten thousand.
13
+ */
14
+ declare function collectGameRules(classes: ClassSource): Promise<GameRulePack>;
15
+ //#endregion
16
+ export { GameRulePack as n, collectGameRules as r, GameRule as t };
@@ -1,4 +1,4 @@
1
- import { n as MapResourceManager } from "./synthetic-B3R7mW9k.js";
1
+ import { n as MapResourceManager } from "./synthetic-CWtFtAkR.js";
2
2
  //#region src/dynamic/generators.d.ts
3
3
  declare const TRIM_MATERIALS: readonly ["quartz", "iron", "gold", "diamond", "netherite", "redstone", "copper", "emerald", "lapis", "amethyst", "resin"];
4
4
  /** Materials with a darker variant used when the trim matches the armor metal. */
@@ -1,9 +1,9 @@
1
1
  import { n as ResourceLocator } from "./locator-jDbdUeTd.js";
2
- import { a as ResourceManager } from "./manager-exOIcdyx.js";
3
- import { i as TextureLoader } from "./loader-59_eMa8e.js";
4
- import { n as FloatTexture } from "./blend-C5UYzink.js";
2
+ import { a as ResourceManager } from "./manager-Ct0dEOMg.js";
3
+ import { i as TextureLoader } from "./loader-C4gsX_wO.js";
4
+ import { n as FloatTexture } from "./blend-mJAeQB3C.js";
5
5
  import { n as FaceGeometry } from "./geometry--UzHu1Vh.js";
6
- import { i as RenderOptions } from "./renderer-DbUmTFDb.js";
6
+ import { i as RenderOptions } from "./renderer-QgROYvPv.js";
7
7
  //#region src/render/geo.d.ts
8
8
  interface GeoCube {
9
9
  origin?: number[];
package/dist/index.d.ts CHANGED
@@ -1,26 +1,26 @@
1
1
  import { n as ResourceLocator, t as InvalidResourceLocatorError } from "./locator-jDbdUeTd.js";
2
- import { a as ResourceManager, i as ResourceKindName, n as LayeredResourceManager, r as ResourceKind, t as FolderResourceManager } from "./manager-exOIcdyx.js";
3
- import { a as TextureMeta, i as TextureLoader, o as TextureResolutionError, r as Texture, t as AnimatedTexture } from "./loader-59_eMa8e.js";
4
- import { d as parseAtlasSources, n as AtlasSource, r as AtlasSourceError, s as ResolvedSprite, t as AtlasResolver, u as createAtlasResolver } from "./sources-e5D09Jz_.js";
5
- import { a as PackedRect, i as PackedPage, n as PackOptions, o as packAtlas, r as PackedAtlas, t as PackEntry } from "./atlas-pack-C56gzqAg.js";
6
- import { a as buildBiomeClimates, i as VANILLA_BIOME_CLIMATES, n as BiomeClimatePack, o as parseBiomeClimate, r as DEFAULT_WATER_COLOR, t as BiomeClimate } from "./biomes-CJDJQqJb.js";
7
- import { a as resolveTexture, n as ModelResolutionError, o as salvageJson, r as ResolvedModel, t as ModelLoader } from "./loader-DSir1-P0.js";
2
+ import { a as ResourceManager, i as ResourceKindName, n as LayeredResourceManager, r as ResourceKind, t as FolderResourceManager } from "./manager-Ct0dEOMg.js";
3
+ import { a as TextureMeta, i as TextureLoader, o as TextureResolutionError, r as Texture, t as AnimatedTexture } from "./loader-C4gsX_wO.js";
4
+ import { d as parseAtlasSources, n as AtlasSource, r as AtlasSourceError, s as ResolvedSprite, t as AtlasResolver, u as createAtlasResolver } from "./sources-sFtealLJ.js";
5
+ import { a as PackedRect, i as PackedPage, n as PackOptions, o as packAtlas, r as PackedAtlas, t as PackEntry } from "./atlas-pack-BUadroKy.js";
6
+ import { c as buildBiomeClimates, i as LEGACY_BIOMES, l as parseBiomeClimate, n as BiomeClimatePack, o as PRE_JAR_BIOMES, r as DEFAULT_WATER_COLOR, s as VANILLA_BIOME_CLIMATES, t as BiomeClimate, u as vanillaBiomesFor } from "./biomes-CnnhDCnk.js";
8
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-BzznRcVY.js";
9
- import { i as buildObjMesh, n as ObjMesh, r as ObjMeshError, t as MeshGroup } from "./obj-mesh-ydhVfLKs.js";
10
- import { a as buildBlockTints, i as UNREGISTERED_TINTS, n as BlockTintPack, t as BlockTint } from "./tints-CQX8a1F0.js";
11
- import { i as exportBlockPack, n as BlockPackResult, r as ExportBlockPackOptions, t as BlockPackFailure } from "./export-B8tPsf4K.js";
12
- import { s as builtinDynamicResources } from "./generators-BnIzAftW.js";
13
- import { d as toFloatTexture, n as FloatTexture, u as toByteTexture } from "./blend-C5UYzink.js";
8
+ import { a as resolveTexture, n as ModelResolutionError, o as salvageJson, r as ResolvedModel, t as ModelLoader } from "./loader-BYyPIs9f.js";
9
+ import { i as buildObjMesh, n as ObjMesh, r as ObjMeshError, t as MeshGroup } from "./obj-mesh-CzL0lOlJ.js";
10
+ import { a as buildBlockTints, i as UNREGISTERED_TINTS, n as BlockTintPack, t as BlockTint } from "./tints-DwFmEkf3.js";
11
+ import { i as exportBlockPack, n as BlockPackResult, r as ExportBlockPackOptions, t as BlockPackFailure } from "./export-HEoqcV-Y.js";
12
+ import { s as builtinDynamicResources } from "./generators-hu_vk10m.js";
13
+ import { d as toFloatTexture, n as FloatTexture, u as toByteTexture } from "./blend-mJAeQB3C.js";
14
14
  import { a as LightingProfileName, i as LightingProfile, r as LightSource, u as lightsForProfile } from "./lighting-3FGRC3Af.js";
15
- import { a as RenderedFrames, c as renderModel, i as RenderOptions, l as renderModelFrames, o as boxDownscale, r as ItemRenderError, s as pointResize } from "./renderer-DbUmTFDb.js";
15
+ import { a as RenderedFrames, c as renderModel, i as RenderOptions, l as renderModelFrames, o as boxDownscale, r as ItemRenderError, s as pointResize } from "./renderer-QgROYvPv.js";
16
16
  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";
17
- import { i as discoverItems, n as ItemDiscoveryOptions, o as resolveItem, r as ItemResolutionError, t as DiscoveredItem } from "./discovery-Cmir3QfC.js";
18
- import { a as resolveTint, i as parseTintValue, n as InvalidTinterDefinitionError, o as resolveTints, t as DYE_COLORS } from "./tints-uLl1CIkC.js";
19
- import { i as EncodedIcon, n as EncodeOptions, o as encodeAnimatedIcon, r as EncodedAnimatedIcon, s as encodeIcon, t as AnimatedEncodeOptions } from "./encode-Br_vPrd8.js";
17
+ import { i as discoverItems, n as ItemDiscoveryOptions, o as resolveItem, r as ItemResolutionError, t as DiscoveredItem } from "./discovery-DWe_kX8W.js";
18
+ import { a as resolveTint, i as parseTintValue, n as InvalidTinterDefinitionError, o as resolveTints, t as DYE_COLORS } from "./tints-B0a1K11c.js";
19
+ import { i as EncodedIcon, n as EncodeOptions, o as encodeAnimatedIcon, r as EncodedAnimatedIcon, s as encodeIcon, t as AnimatedEncodeOptions } from "./encode-BNEYHHR0.js";
20
20
  import { t as minifyStylesheet } from "./minify-CIV6enbr.js";
21
- import { a as compareVersions, o as eraForVersion, s as prepareVersionResources } from "./prepare-6pH3CNpg.js";
22
- import { i as prepareModResources } from "./prepare-OS7wL3jv.js";
21
+ import { a as compareVersions, o as eraForVersion, s as prepareVersionResources } from "./prepare-Ce5SpR7Y.js";
22
+ import { i as prepareModResources } from "./prepare-BPzsZI_S.js";
23
23
  import { i as itemClass, n as StylesheetOptions, r as generateStylesheet, t as ItemStyle } from "./stylesheet-i-t_7sZ7.js";
24
- import { i as run, n as RunOptions, r as RunResult, t as ItemFailure } from "./run-CLjF0N2d.js";
25
- import { n as UnsafeJarError, r as isUnsafeEntryPath, t as JarResourceManager } from "./jar-B5iRZQeL.js";
26
- export { type AnimatedEncodeOptions, AnimatedTexture, type AtlasResolver, type AtlasSource, AtlasSourceError, type BiomeClimate, type BiomeClimatePack, type BlockModelVariant, type BlockPackFailure, type BlockPackResult, type BlockProperties, type BlockStateDefinition, BlockStateError, type BlockStateMultipartCase, type BlockStateVariantCase, type BlockTint, type BlockTintPack, DEFAULT_WATER_COLOR, 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, UNREGISTERED_TINTS, UnsafeJarError, VANILLA_BIOME_CLIMATES, boxDownscale, buildBiomeClimates, buildBlockTints, buildObjMesh, builtinDynamicResources, collectModels, compareVersions, createAtlasResolver, defaultProperties, discoverItems, encodeAnimatedIcon, encodeIcon, eraForVersion, evaluateBlockState, evaluateItemModel, exportBlockPack, generateStylesheet, isUnsafeEntryPath, itemClass, lightsForProfile, matchesCondition, minifyStylesheet, packAtlas, parseAtlasSources, parseBiomeClimate, parseBlockState, parseTintValue, pointResize, prepareModResources, prepareVersionResources, renderModel, renderModelFrames, resolveItem, resolveTexture, resolveTint, resolveTints, run, salvageJson, toByteTexture, toFloatTexture, weightedVariantIndex };
24
+ import { i as run, n as RunOptions, r as RunResult, t as ItemFailure } from "./run-CxB1qabg.js";
25
+ import { n as UnsafeJarError, r as isUnsafeEntryPath, t as JarResourceManager } from "./jar-4Jg7ufWK.js";
26
+ export { type AnimatedEncodeOptions, AnimatedTexture, type AtlasResolver, type AtlasSource, AtlasSourceError, type BiomeClimate, type BiomeClimatePack, type BlockModelVariant, type BlockPackFailure, type BlockPackResult, type BlockProperties, type BlockStateDefinition, BlockStateError, type BlockStateMultipartCase, type BlockStateVariantCase, type BlockTint, type BlockTintPack, DEFAULT_WATER_COLOR, 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, LEGACY_BIOMES, LayeredResourceManager, type LightSource, LightingProfile, type LightingProfileName, type MeshGroup, ModelLoader, ModelResolutionError, type MultipartCondition, type ObjMesh, ObjMeshError, PRE_JAR_BIOMES, 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, UNREGISTERED_TINTS, UnsafeJarError, VANILLA_BIOME_CLIMATES, boxDownscale, buildBiomeClimates, buildBlockTints, buildObjMesh, builtinDynamicResources, collectModels, compareVersions, createAtlasResolver, defaultProperties, discoverItems, encodeAnimatedIcon, encodeIcon, eraForVersion, evaluateBlockState, evaluateItemModel, exportBlockPack, generateStylesheet, isUnsafeEntryPath, itemClass, lightsForProfile, matchesCondition, minifyStylesheet, packAtlas, parseAtlasSources, parseBiomeClimate, parseBlockState, parseTintValue, pointResize, prepareModResources, prepareVersionResources, renderModel, renderModelFrames, resolveItem, resolveTexture, resolveTint, resolveTints, run, salvageJson, toByteTexture, toFloatTexture, vanillaBiomesFor, weightedVariantIndex };
package/dist/index.js CHANGED
@@ -1,5 +1,8 @@
1
- import { i as parseBiomeClimate, n as VANILLA_BIOME_CLIMATES, r as buildBiomeClimates, t as DEFAULT_WATER_COLOR } from "./biomes-5ZwYxMYe.js";
2
1
  import { n as ResourceLocator, t as InvalidResourceLocatorError } from "./locator-COMEtEn9.js";
2
+ import { n as LayeredResourceManager, r as ResourceKind, t as FolderResourceManager } from "./manager-D6zXmFrO.js";
3
+ import { n as UnsafeJarError, r as isUnsafeEntryPath, t as JarResourceManager } from "./jar-DvofBm71.js";
4
+ import { a as prepareVersionResources, i as eraForVersion, r as compareVersions } from "./prepare-DkJkZXuQ.js";
5
+ import { a as buildBiomeClimates, i as VANILLA_BIOME_CLIMATES, n as LEGACY_BIOMES, o as parseBiomeClimate, r as PRE_JAR_BIOMES, s as vanillaBiomesFor, t as DEFAULT_WATER_COLOR } from "./biomes-BGOF6gRM.js";
3
6
  import { a as parseBlockState, i as matchesCondition, n as collectModels, o as weightedVariantIndex, r as evaluateBlockState, t as BlockStateError } from "./blockstate-eval-CV_LwUwj.js";
4
7
  import { c as toByteTexture, l as toFloatTexture } from "./blend-KXMclcHk.js";
5
8
  import { c as lightsForProfile, r as LightingProfile } from "./lighting--5myudVu.js";
@@ -12,15 +15,12 @@ import { n as buildObjMesh, t as ObjMeshError } from "./obj-mesh-BFhtTBXX.js";
12
15
  import { t as packAtlas } from "./atlas-pack-CoOih7By.js";
13
16
  import { n as buildBlockTints, t as UNREGISTERED_TINTS } from "./tints-Cl0r-Ol3.js";
14
17
  import { o as createAtlasResolver, s as parseAtlasSources, t as AtlasSourceError } from "./sources-DYY5Qu-t.js";
15
- import { n as LayeredResourceManager, r as ResourceKind, t as FolderResourceManager } from "./manager-BNibYkmI.js";
16
18
  import { n as TextureLoader, r as TextureResolutionError, t as AnimatedTexture } from "./loader-CsgtBuBo.js";
17
- import { t as exportBlockPack } from "./export-Ds1EelMa.js";
18
- import { n as UnsafeJarError, r as isUnsafeEntryPath, t as JarResourceManager } from "./jar-W2cV2ZVO.js";
19
- import { n as prepareModResources } from "./prepare-Myd_ec4v.js";
20
- import { a as prepareVersionResources, i as eraForVersion, r as compareVersions } from "./prepare-D49Gu4Lv.js";
19
+ import { t as exportBlockPack } from "./export-CbG2Rx3i.js";
20
+ import { n as prepareModResources } from "./prepare-sj36BP90.js";
21
21
  import { n as encodeIcon, t as encodeAnimatedIcon } from "./encode-LR9wxigC.js";
22
22
  import { a as builtinDynamicResources } from "./generators-D6giKoab.js";
23
23
  import { t as minifyStylesheet } from "./minify-bjMRmr5J.js";
24
24
  import { n as itemClass, t as generateStylesheet } from "./stylesheet-CovT3B2S.js";
25
- import { t as run } from "./run-Ctt_1iTd.js";
26
- export { AnimatedTexture, AtlasSourceError, BlockStateError, DEFAULT_WATER_COLOR, DYE_COLORS, FolderResourceManager, InvalidItemDefinitionError, InvalidResourceLocatorError, InvalidTinterDefinitionError, ItemRenderError, ItemResolutionError, JarResourceManager, LayeredResourceManager, LightingProfile, ModelLoader, ModelResolutionError, ObjMeshError, ResourceKind, ResourceLocator, TextureLoader, TextureResolutionError, UNKNOWN_MODEL, UNREGISTERED_TINTS, UnsafeJarError, VANILLA_BIOME_CLIMATES, boxDownscale, buildBiomeClimates, buildBlockTints, buildObjMesh, builtinDynamicResources, collectModels, compareVersions, createAtlasResolver, defaultProperties, discoverItems, encodeAnimatedIcon, encodeIcon, eraForVersion, evaluateBlockState, evaluateItemModel, exportBlockPack, generateStylesheet, isUnsafeEntryPath, itemClass, lightsForProfile, matchesCondition, minifyStylesheet, packAtlas, parseAtlasSources, parseBiomeClimate, parseBlockState, parseTintValue, pointResize, prepareModResources, prepareVersionResources, renderModel, renderModelFrames, resolveItem, resolveTexture, resolveTint, resolveTints, run, salvageJson, toByteTexture, toFloatTexture, weightedVariantIndex };
25
+ import { t as run } from "./run-5yX5KRiI.js";
26
+ export { AnimatedTexture, AtlasSourceError, BlockStateError, DEFAULT_WATER_COLOR, DYE_COLORS, FolderResourceManager, InvalidItemDefinitionError, InvalidResourceLocatorError, InvalidTinterDefinitionError, ItemRenderError, ItemResolutionError, JarResourceManager, LEGACY_BIOMES, LayeredResourceManager, LightingProfile, ModelLoader, ModelResolutionError, ObjMeshError, PRE_JAR_BIOMES, ResourceKind, ResourceLocator, TextureLoader, TextureResolutionError, UNKNOWN_MODEL, UNREGISTERED_TINTS, UnsafeJarError, VANILLA_BIOME_CLIMATES, boxDownscale, buildBiomeClimates, buildBlockTints, buildObjMesh, builtinDynamicResources, collectModels, compareVersions, createAtlasResolver, defaultProperties, discoverItems, encodeAnimatedIcon, encodeIcon, eraForVersion, evaluateBlockState, evaluateItemModel, exportBlockPack, generateStylesheet, isUnsafeEntryPath, itemClass, lightsForProfile, matchesCondition, minifyStylesheet, packAtlas, parseAtlasSources, parseBiomeClimate, parseBlockState, parseTintValue, pointResize, prepareModResources, prepareVersionResources, renderModel, renderModelFrames, resolveItem, resolveTexture, resolveTint, resolveTints, run, salvageJson, toByteTexture, toFloatTexture, vanillaBiomesFor, weightedVariantIndex };
@@ -1,6 +1,6 @@
1
- import { t as parseClassFile } from "./classfile-Bo7FUrrD.js";
1
+ import { t as parseClassFile } from "./classfile-CiIDF3vc.js";
2
2
  import { a as mergeModels, i as dedupeCubes } from "./merge-DeHruviG.js";
3
- import { n as extractModel } from "./model-bytecode-B43uSqet.js";
3
+ import { n as extractModel } from "./model-bytecode-VaLUQfGO.js";
4
4
  //#region src/entities/inherit.ts
5
5
  /**
6
6
  * A model class read together with its ancestors.
@@ -1,5 +1,5 @@
1
1
  import { n as ResourceLocator } from "../locator-jDbdUeTd.js";
2
- import { a as ResourceManager } from "../manager-exOIcdyx.js";
2
+ import { a as ResourceManager } from "../manager-Ct0dEOMg.js";
3
3
  import { t as Mat4 } from "../vector-DRKRi4--.js";
4
4
  //#region src/items/blockstate.d.ts
5
5
  interface ResolvedBlockState {
@@ -1,2 +1,2 @@
1
- import { a as langRegistry, i as discoverItems, n as ItemDiscoveryOptions, o as resolveItem, r as ItemResolutionError, t as DiscoveredItem } from "../discovery-Cmir3QfC.js";
1
+ import { a as langRegistry, i as discoverItems, n as ItemDiscoveryOptions, o as resolveItem, r as ItemResolutionError, t as DiscoveredItem } from "../discovery-DWe_kX8W.js";
2
2
  export { DiscoveredItem, ItemDiscoveryOptions, ItemResolutionError, discoverItems, langRegistry, resolveItem };
@@ -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-exOIcdyx.js";
2
+ import { a as ResourceManager, i as ResourceKindName, s as ResourceDescriptor } from "./manager-Ct0dEOMg.js";
3
3
  //#region src/resources/jar.d.ts
4
4
  /** Jar entries that could escape the archive get the whole jar rejected. */
5
5
  declare function isUnsafeEntryPath(entryPath: string): boolean;
@@ -1,6 +1,6 @@
1
1
  import { n as ResourceLocator } from "./locator-COMEtEn9.js";
2
- import { r as ResourceKind } from "./manager-BNibYkmI.js";
3
- import { t as openZip } from "./zip-reader-BSbJKUT1.js";
2
+ import { r as ResourceKind } from "./manager-D6zXmFrO.js";
3
+ import { t as openZip } from "./zip-reader-onwEVMea.js";
4
4
  //#region src/resources/jar.ts
5
5
  /**
6
6
  * Reads resources directly out of a jar/zip — no extraction step, unlike the
@@ -1,5 +1,5 @@
1
- import { t as openZip } from "./zip-reader-BSbJKUT1.js";
2
- import { n as UnsafeJarError, r as isUnsafeEntryPath } from "./jar-W2cV2ZVO.js";
1
+ import { t as openZip } from "./zip-reader-onwEVMea.js";
2
+ import { n as UnsafeJarError, r as isUnsafeEntryPath } from "./jar-DvofBm71.js";
3
3
  //#region src/entities/jar-classes.ts
4
4
  /**
5
5
  * Reading `.class` entries out of a jar.