@nodecraft/rendermite 1.8.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/atlas/registry.d.ts +3 -3
- package/dist/atlas/sources.d.ts +1 -1
- package/dist/{atlas-pack-C56gzqAg.d.ts → atlas-pack-BUadroKy.d.ts} +1 -1
- package/dist/biomes-BGOF6gRM.js +1100 -0
- package/dist/biomes-CnnhDCnk.d.ts +59 -0
- package/dist/{blend-C5UYzink.d.ts → blend-mJAeQB3C.d.ts} +1 -1
- package/dist/block-behaviour-BBslelpW.d.ts +673 -0
- package/dist/block-behaviour-DVjqeSkv.js +180 -0
- package/dist/block-overrides-XtxICunI.js +77 -0
- package/dist/blocks/atlas-pack.d.ts +1 -1
- package/dist/blocks/biomes.d.ts +2 -2
- package/dist/blocks/biomes.js +2 -2
- package/dist/blocks/block-behaviour.d.ts +2 -0
- package/dist/blocks/block-behaviour.js +2 -0
- package/dist/blocks/block-entities.d.ts +3 -3
- package/dist/blocks/block-overrides.d.ts +26 -0
- package/dist/blocks/block-overrides.js +2 -0
- package/dist/blocks/cli.js +1 -1
- package/dist/blocks/datapack.d.ts +2 -0
- package/dist/blocks/datapack.js +2 -0
- package/dist/blocks/ender-storage.d.ts +2 -2
- package/dist/blocks/entities.d.ts +3 -3
- package/dist/blocks/entity-geo.d.ts +1 -1
- package/dist/blocks/entity-models.d.ts +4 -13
- package/dist/blocks/entity-models.js +1 -1
- package/dist/blocks/entity-sizes.d.ts +25 -0
- package/dist/blocks/entity-sizes.js +2 -0
- package/dist/blocks/export.d.ts +1 -1
- package/dist/blocks/export.js +1 -1
- package/dist/blocks/game-rules.d.ts +2 -0
- package/dist/blocks/game-rules.js +2 -0
- package/dist/blocks/geo-blocks.d.ts +2 -2
- package/dist/blocks/item-sprites.d.ts +4 -4
- package/dist/blocks/light-bytecode.d.ts +2 -174
- package/dist/blocks/light-bytecode.js +1 -1
- package/dist/blocks/light-eval.d.ts +1 -1
- package/dist/blocks/light.d.ts +11 -1
- package/dist/blocks/light.js +1 -1
- package/dist/blocks/names.d.ts +2 -0
- package/dist/blocks/names.js +2 -0
- package/dist/blocks/obj-mesh.d.ts +1 -1
- package/dist/blocks/pack-format.d.ts +2 -2
- package/dist/blocks/sprite-sheet.d.ts +3 -3
- package/dist/blocks/states.d.ts +2 -0
- package/dist/blocks/states.js +2 -0
- package/dist/blocks/tints.d.ts +1 -1
- package/dist/{classfile-CiIDF3vc.js → classfile-BJSs3JH0.js} +23 -3
- package/dist/{classfile-CsLXlh5z.d.ts → classfile-Dzn0gW9M.d.ts} +6 -0
- package/dist/{cli-Dw1Q5CPR.js → cli-DwMPoX0I.js} +10 -5
- package/dist/cli.js +7 -7
- package/dist/datapack-CmEg0Vko.d.ts +15 -0
- package/dist/datapack-D6eH46ay.js +71 -0
- package/dist/{descriptor-CmkIkDKL.js → descriptor-Dz2cR-BH.js} +2 -2
- package/dist/{discovery-Cmir3QfC.d.ts → discovery-DWe_kX8W.d.ts} +1 -1
- package/dist/dynamic/generators.d.ts +1 -1
- package/dist/{encode-Br_vPrd8.d.ts → encode-BNEYHHR0.d.ts} +1 -1
- package/dist/entities/classfile.d.ts +1 -1
- package/dist/entities/classfile.js +1 -1
- package/dist/entities/geo-model.d.ts +1 -1
- package/dist/entities/inherit.d.ts +2 -2
- package/dist/entities/inherit.js +1 -1
- package/dist/entities/jar-classes.js +1 -1
- package/dist/entities/link.d.ts +2 -2
- package/dist/entities/link.js +1 -1
- package/dist/entities/mappings.d.ts +1 -1
- package/dist/entities/mappings.js +1 -1
- package/dist/entities/model-bytecode.d.ts +1 -1
- package/dist/entities/model-bytecode.js +1 -1
- package/dist/entities/model-code.d.ts +1 -1
- package/dist/entities/model-code.js +1 -1
- package/dist/{entity-models-BGiy3pey.js → entity-models-vFl_EwfA.js} +24 -5
- package/dist/entity-sizes-DspxgSUA.js +194 -0
- package/dist/{export-t8X_oRws.js → export-ArMmWuCC.js} +62 -5
- package/dist/{export-J13L9Lqu.d.ts → export-CqeTinYL.d.ts} +19 -2
- package/dist/{face-DqEd9G_U.d.ts → face-uWXECGNr.d.ts} +2 -2
- package/dist/game-rules-BDPTopVW.js +104 -0
- package/dist/game-rules-ThvdDG3B.d.ts +16 -0
- package/dist/{generators-BnIzAftW.d.ts → generators-hu_vk10m.d.ts} +1 -1
- package/dist/{geo-C9QYeLVN.d.ts → geo-DsWwuC5o.d.ts} +4 -4
- package/dist/index.d.ts +20 -20
- package/dist/index.js +8 -8
- package/dist/{inherit-BUn0Cve9.js → inherit-DJ45bOB_.js} +2 -2
- package/dist/items/blockstate.d.ts +1 -1
- package/dist/items/discovery.d.ts +1 -1
- package/dist/{jar-B5iRZQeL.d.ts → jar-4Jg7ufWK.d.ts} +1 -1
- package/dist/{jar-CBYPMbw7.js → jar-DvofBm71.js} +2 -2
- package/dist/{jar-classes-CSm7qq1R.js → jar-classes-0wqWbTax.js} +2 -2
- package/dist/{light-CyRhYulM.js → light-CZRA1pOj.js} +48 -6
- package/dist/{light-bytecode-Cpyuxo9b.js → light-bytecode-BqpQWqP7.js} +144 -46
- package/dist/{light-eval-D9x0ufZx.d.ts → light-eval-C0-kt0bp.d.ts} +1 -1
- package/dist/{link-Cuhyrz07.js → link-IDjVJ2Ij.js} +1 -1
- package/dist/{loader-DSir1-P0.d.ts → loader-BYyPIs9f.d.ts} +1 -1
- package/dist/{loader-59_eMa8e.d.ts → loader-C4gsX_wO.d.ts} +1 -1
- package/dist/{manager-exOIcdyx.d.ts → manager-Ct0dEOMg.d.ts} +6 -0
- package/dist/{manager-BNibYkmI.js → manager-D6zXmFrO.js} +6 -0
- package/dist/{mappings-Ep6ko0rg.js → mappings-DEl_7xxQ.js} +18 -1
- package/dist/{mappings-USwcjtcH.d.ts → mappings-DhOPQTgV.d.ts} +5 -0
- package/dist/{model-bytecode-VaLUQfGO.js → model-bytecode-CXYAZ5dX.js} +1 -1
- package/dist/{model-code-Csc3bs3h.d.ts → model-code-BclYt1do.d.ts} +1 -1
- package/dist/{model-code-DbN2uVhp.js → model-code-BmA5ilgt.js} +1 -1
- package/dist/models/loader.d.ts +1 -1
- package/dist/{models-CZjCOjs4.js → models-BsYA-NZg.js} +1 -1
- package/dist/mods/models.d.ts +1 -1
- package/dist/mods/models.js +1 -1
- package/dist/mods/prepare.d.ts +1 -1
- package/dist/mods/prepare.js +1 -1
- package/dist/mods/synthesize.d.ts +2 -2
- package/dist/mods/tints.d.ts +2 -2
- package/dist/mods/tints.js +1 -1
- package/dist/names-D1abAVIB.d.ts +10 -0
- package/dist/names-GLa5TyL7.js +36 -0
- package/dist/{obj-mesh-ydhVfLKs.d.ts → obj-mesh-CzL0lOlJ.d.ts} +2 -2
- package/dist/output/encode.d.ts +1 -1
- package/dist/pack.d.ts +7 -6
- package/dist/{pipeline-DFuQa8ZT.d.ts → pipeline-DuPF3sap.d.ts} +3 -3
- package/dist/{pipeline-CRTQGba7.js → pipeline-Q_185kY6.js} +1 -1
- package/dist/{prepare-OS7wL3jv.d.ts → prepare-BPzsZI_S.d.ts} +1 -1
- package/dist/{prepare-6pH3CNpg.d.ts → prepare-Ce5SpR7Y.d.ts} +1 -1
- package/dist/{prepare-C61BcwFA.js → prepare-DkJkZXuQ.js} +2 -2
- package/dist/{prepare-DxPEu9mo.js → prepare-sj36BP90.js} +4 -4
- package/dist/{rasterizer-C2wgJZ6J.d.ts → rasterizer-DjnurUgD.d.ts} +1 -1
- package/dist/render/blend.d.ts +1 -1
- package/dist/render/compose.d.ts +2 -2
- package/dist/render/entity-fallback.d.ts +6 -6
- package/dist/render/face.d.ts +1 -1
- package/dist/render/fluid-bucket.d.ts +2 -2
- package/dist/render/geo.d.ts +1 -1
- package/dist/render/legacy-tints.d.ts +2 -2
- package/dist/render/obj.d.ts +5 -5
- package/dist/render/pipeline.d.ts +1 -1
- package/dist/render/pipeline.js +1 -1
- package/dist/render/rasterizer.d.ts +1 -1
- package/dist/render/renderer.d.ts +1 -1
- package/dist/render/tints.d.ts +1 -1
- package/dist/{renderer-DbUmTFDb.d.ts → renderer-QgROYvPv.d.ts} +5 -5
- package/dist/resources/descriptor.d.ts +1 -1
- package/dist/resources/descriptor.js +1 -1
- package/dist/resources/entity-textures.d.ts +2 -2
- package/dist/resources/jar.d.ts +1 -1
- package/dist/resources/jar.js +1 -1
- package/dist/resources/manager.d.ts +1 -1
- package/dist/resources/manager.js +1 -1
- package/dist/resources/synthetic.d.ts +1 -1
- package/dist/resources/zip-reader.js +1 -1
- package/dist/{run-DYcem_Vv.js → run-5yX5KRiI.js} +4 -4
- package/dist/{run-CLjF0N2d.d.ts → run-CxB1qabg.d.ts} +2 -2
- package/dist/run.d.ts +1 -1
- package/dist/run.js +1 -1
- package/dist/{sources-e5D09Jz_.d.ts → sources-sFtealLJ.d.ts} +1 -1
- package/dist/states-BvoZA-ql.js +40 -0
- package/dist/states-OzneeCTU.d.ts +25 -0
- package/dist/{synthetic-B3R7mW9k.d.ts → synthetic-CWtFtAkR.d.ts} +1 -1
- package/dist/textures/loader.d.ts +1 -1
- package/dist/textures/overlay.d.ts +1 -1
- package/dist/{tints-uLl1CIkC.d.ts → tints-B0a1K11c.d.ts} +2 -2
- package/dist/{tints-CWQz6UkM.js → tints-CZeyKzMv.js} +2 -2
- package/dist/{tints-CQX8a1F0.d.ts → tints-DwFmEkf3.d.ts} +2 -2
- package/dist/versions/legacy-reshape.d.ts +1 -1
- package/dist/versions/prepare.d.ts +1 -1
- package/dist/versions/prepare.js +1 -1
- package/dist/workers/render-worker.d.ts +2 -2
- package/dist/workers/render-worker.js +2 -2
- package/dist/{zip-reader-zx3kdSq4.js → zip-reader-onwEVMea.js} +4 -4
- package/package.json +1 -1
- package/dist/biomes-5ZwYxMYe.js +0 -384
- package/dist/biomes-CJDJQqJb.d.ts +0 -38
- package/dist/pack-format-BqWf-DNc.d.ts +0 -350
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ct0dEOMg.js";
|
|
2
|
+
//#region src/blocks/biomes.d.ts
|
|
3
|
+
/** Where a biome's colours come from. Colours are `#rrggbb`, as everywhere else in the pack. */
|
|
4
|
+
interface BiomeClimate {
|
|
5
|
+
/**
|
|
6
|
+
* The numeric id a chunk stores this biome as, before 1.18 replaced ids with names. Absent from a
|
|
7
|
+
* 1.18+ pack and from a mod's biomes, whose ids were assigned per world.
|
|
8
|
+
*/
|
|
9
|
+
id?: number;
|
|
10
|
+
/** As the biome declares it, unclamped: the peaks run to -0.7 and the deserts to 2. */
|
|
11
|
+
temperature: number;
|
|
12
|
+
downfall: number;
|
|
13
|
+
/** `effects.water_color`, when it is not the default. */
|
|
14
|
+
water?: string;
|
|
15
|
+
/** `effects.grass_color_modifier`, applied after the colormap lookup. */
|
|
16
|
+
modifier?: 'dark_forest' | 'swamp';
|
|
17
|
+
/** `effects.grass_color`, which replaces the colormap lookup outright. */
|
|
18
|
+
grass?: string;
|
|
19
|
+
foliage?: string;
|
|
20
|
+
dryFoliage?: string;
|
|
21
|
+
}
|
|
22
|
+
/** `biomes.json`: biome id → climate. */
|
|
23
|
+
type BiomeClimatePack = Record<string, BiomeClimate>;
|
|
24
|
+
/** `effects.water_color` where a biome does not override it, which is most of them. */
|
|
25
|
+
declare const DEFAULT_WATER_COLOR = "#3f76e4";
|
|
26
|
+
interface LegacyBiome {
|
|
27
|
+
id: number;
|
|
28
|
+
name: string;
|
|
29
|
+
/** The release that added it; absent for the biomes 1.13 already had. */
|
|
30
|
+
since?: '1.14' | '1.16' | '1.17';
|
|
31
|
+
climate: Omit<BiomeClimate, 'id'>;
|
|
32
|
+
}
|
|
33
|
+
/** 1.13–1.17, from the 1.17.1 data generator's `reports/biomes`, in id order. */
|
|
34
|
+
declare const LEGACY_BIOMES: readonly LegacyBiome[];
|
|
35
|
+
/** 1.18–1.19.2, from the 1.19.2 data generator's `worldgen/biome` report. Ordered so a regenerated table diffs cleanly. */
|
|
36
|
+
declare const PRE_JAR_BIOMES: BiomeClimatePack;
|
|
37
|
+
/** @deprecated One version's table stood in for all of them; use `vanillaBiomesFor(version)`. */
|
|
38
|
+
declare const VANILLA_BIOME_CLIMATES: BiomeClimatePack;
|
|
39
|
+
/**
|
|
40
|
+
* Vanilla's biomes as a version without biome data in its jar has them: the version's own set,
|
|
41
|
+
* under its own names. A version that is not a release number (an `--assets` run) gets the newest.
|
|
42
|
+
*/
|
|
43
|
+
declare function vanillaBiomesFor(version: string): BiomeClimatePack;
|
|
44
|
+
/** One biome definition as a datapack states it, or `null` when it states no climate. */
|
|
45
|
+
declare function parseBiomeClimate(json: unknown): BiomeClimate | null;
|
|
46
|
+
/**
|
|
47
|
+
* Climates for the namespaces a pack exports: whatever their datapacks declare,
|
|
48
|
+
* or for `minecraft` in a jar that declares none, the version's table.
|
|
49
|
+
*
|
|
50
|
+
* A mod pack carries only its own biomes. The vanilla pack is always fetched
|
|
51
|
+
* beside it, so repeating vanilla's would be the same bytes in every one of the
|
|
52
|
+
* hundreds of mod packs published.
|
|
53
|
+
*/
|
|
54
|
+
declare function buildBiomeClimates(resources: ResourceManager, namespaces: readonly string[], version?: string): Promise<{
|
|
55
|
+
pack: BiomeClimatePack;
|
|
56
|
+
unreadable: string[];
|
|
57
|
+
}>;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { LegacyBiome as a, buildBiomeClimates as c, LEGACY_BIOMES as i, parseBiomeClimate as l, BiomeClimatePack as n, PRE_JAR_BIOMES as o, DEFAULT_WATER_COLOR as r, VANILLA_BIOME_CLIMATES as s, BiomeClimate as t, vanillaBiomesFor as u };
|