nucleation 0.6.0 → 0.7.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/AnimationEffect.d.mts +44 -0
- package/AnimationEffect.d.ts +1 -1
- package/Autostack.d.mts +43 -0
- package/Autostack.d.ts +2 -2
- package/BlockPos.d.mts +28 -0
- package/BlockState.d.mts +39 -0
- package/BlockState.d.ts +1 -1
- package/Blocks.d.mts +91 -0
- package/Blocks.d.ts +1 -1
- package/Brush.d.mts +99 -0
- package/Brush.d.ts +21 -12
- package/Brush.mjs +66 -9
- package/BuildAnimation.d.mts +142 -0
- package/BuildAnimation.d.ts +5 -5
- package/BuildingTool.d.mts +46 -0
- package/BuildingTool.d.ts +4 -4
- package/CellularSdfConfig.d.mts +22 -0
- package/CellularSdfConfig.d.ts +22 -0
- package/CellularSdfConfig.mjs +69 -0
- package/ChunkMeshResult.d.mts +75 -0
- package/ChunkMeshResult.d.ts +7 -7
- package/CircuitBuilder.d.mts +118 -0
- package/CircuitBuilder.d.ts +6 -6
- package/Curve3D.d.mts +27 -0
- package/Curve3D.d.ts +1 -1
- package/DefinitionRegion.d.mts +274 -0
- package/DefinitionRegion.d.ts +5 -5
- package/Diff.d.mts +88 -0
- package/Diff.d.ts +2 -2
- package/Dimensions.d.mts +28 -0
- package/DistanceField.d.mts +39 -0
- package/DistanceField.d.ts +1 -1
- package/ExecutionMode.d.mts +42 -0
- package/ExecutionMode.d.ts +2 -2
- package/Field3.d.mts +40 -0
- package/Field3.d.ts +40 -0
- package/Field3.mjs +160 -0
- package/FieldProgram.d.mts +40 -0
- package/FieldProgram.d.ts +40 -0
- package/FieldProgram.mjs +167 -0
- package/FieldProgramBinaryOp.d.mts +42 -0
- package/FieldProgramBinaryOp.d.ts +42 -0
- package/FieldProgramBinaryOp.mjs +118 -0
- package/FieldProgramBuilder.d.mts +104 -0
- package/FieldProgramBuilder.d.ts +104 -0
- package/FieldProgramBuilder.mjs +486 -0
- package/FieldProgramDistanceKind.d.mts +26 -0
- package/FieldProgramDistanceKind.d.ts +26 -0
- package/FieldProgramDistanceKind.mjs +78 -0
- package/FieldProgramUnaryOp.d.mts +34 -0
- package/FieldProgramUnaryOp.d.ts +34 -0
- package/FieldProgramUnaryOp.mjs +102 -0
- package/FieldProgramValueType.d.mts +25 -0
- package/FieldProgramValueType.d.ts +25 -0
- package/FieldProgramValueType.mjs +75 -0
- package/FieldRange.d.mts +15 -0
- package/FieldRange.d.ts +15 -0
- package/FieldRange.mjs +108 -0
- package/Fingerprint.d.mts +44 -0
- package/Fingerprint.d.ts +2 -2
- package/GeneratedChunk.d.mts +35 -0
- package/GeneratedChunk.d.ts +35 -0
- package/GeneratedChunk.mjs +178 -0
- package/GeneratedChunkCoverage.d.mts +25 -0
- package/GeneratedChunkCoverage.d.ts +25 -0
- package/GeneratedChunkCoverage.mjs +75 -0
- package/GeneratedChunkOverlayMode.d.mts +24 -0
- package/GeneratedChunkOverlayMode.d.ts +24 -0
- package/GeneratedChunkOverlayMode.mjs +72 -0
- package/GeneratedWorldStream.d.mts +28 -0
- package/GeneratedWorldStream.d.ts +28 -0
- package/GeneratedWorldStream.mjs +86 -0
- package/Geo.d.mts +41 -0
- package/Geo.d.ts +2 -2
- package/InterpolationSpace.d.mts +25 -0
- package/IoLayout.d.mts +26 -0
- package/IoLayoutBuilder.d.mts +73 -0
- package/IoLayoutBuilder.d.ts +4 -4
- package/IoType.d.mts +41 -0
- package/ItemModelConfig.d.mts +65 -0
- package/ItemModelConfig.d.ts +1 -1
- package/ItemModelPackBuilder.d.mts +32 -0
- package/ItemModelPackBuilder.d.ts +1 -1
- package/ItemModelResult.d.mts +72 -0
- package/ItemModelResult.d.ts +7 -7
- package/ItemScale.d.mts +31 -0
- package/LayoutFunction.d.mts +52 -0
- package/LayoutFunction.d.ts +1 -1
- package/MchprsWorld.d.mts +131 -0
- package/MchprsWorld.d.ts +3 -3
- package/MeshBounds.d.mts +40 -0
- package/MeshConfig.d.mts +101 -0
- package/MeshConfig.d.ts +1 -1
- package/MeshJob.d.mts +44 -0
- package/MeshJob.d.ts +7 -7
- package/MeshPhase.d.mts +38 -0
- package/MeshProgress.d.mts +32 -0
- package/MeshProgress.d.ts +1 -1
- package/MeshResult.d.mts +65 -0
- package/MeshResult.d.ts +5 -5
- package/MultiMeshResult.d.mts +50 -0
- package/MultiMeshResult.d.ts +5 -5
- package/Nbt.d.mts +50 -0
- package/Nbt.d.ts +1 -1
- package/NucleationError.d.mts +41 -0
- package/NucleationError.d.ts +5 -0
- package/NucleationError.mjs +8 -1
- package/OutputCondition.d.mts +45 -0
- package/OutputCondition.d.ts +1 -1
- package/Palette.d.mts +145 -0
- package/Palette.d.ts +9 -1
- package/Palette.mjs +35 -0
- package/PaletteBuilder.d.mts +119 -0
- package/PaletteBuilder.d.ts +2 -2
- package/RawMeshExport.d.mts +74 -0
- package/RawMeshExport.d.ts +4 -4
- package/RedstoneGraph.d.mts +58 -0
- package/RedstoneGraph.d.ts +1 -1
- package/RegionBounds.d.mts +41 -0
- package/RenderConfig.d.mts +101 -0
- package/RenderConfig.d.ts +1 -1
- package/Renderer.d.mts +51 -0
- package/Renderer.d.ts +4 -4
- package/ResourcePack.d.mts +105 -0
- package/ResourcePack.d.ts +3 -3
- package/ResourcePackList.d.mts +32 -0
- package/Schematic.d.mts +734 -0
- package/Schematic.d.ts +4 -4
- package/SchematicBuilder.d.mts +103 -0
- package/SchematicBuilder.d.ts +2 -2
- package/SchematicRegions.d.mts +93 -0
- package/SchematicRegions.d.ts +3 -3
- package/Scripting.d.mts +40 -0
- package/Scripting.d.ts +2 -2
- package/Sdf.d.mts +234 -0
- package/Sdf.d.ts +208 -13
- package/Sdf.mjs +1106 -11
- package/SdfAxis.d.mts +25 -0
- package/SdfAxis.d.ts +25 -0
- package/SdfAxis.mjs +75 -0
- package/SdfBounds.d.mts +19 -0
- package/SdfBounds.d.ts +19 -0
- package/SdfBounds.mjs +160 -0
- package/SdfCellMode.d.mts +26 -0
- package/SdfCellMode.d.ts +26 -0
- package/SdfCellMode.mjs +78 -0
- package/SdfNormal.d.mts +16 -0
- package/SdfNormal.d.ts +16 -0
- package/SdfNormal.mjs +121 -0
- package/Shape.d.mts +143 -0
- package/Shape.d.ts +2 -2
- package/SortStrategy.d.mts +86 -0
- package/SortStrategy.d.ts +1 -1
- package/Store.d.mts +83 -0
- package/Store.d.ts +2 -2
- package/StoreIo.d.mts +71 -0
- package/StoreIo.d.ts +2 -2
- package/TextureAtlas.d.mts +40 -0
- package/TextureAtlas.d.ts +4 -4
- package/TextureInfo.d.mts +34 -0
- package/TypedCircuitExecutor.d.mts +101 -0
- package/TypedCircuitExecutor.d.ts +6 -6
- package/Value.d.mts +73 -0
- package/Value.d.ts +1 -1
- package/VideoConfig.d.mts +15 -0
- package/Voxelizer.d.mts +58 -0
- package/Voxelizer.d.ts +4 -4
- package/WorldChunkView.d.mts +75 -0
- package/WorldChunkView.d.ts +2 -2
- package/WorldGenerator.d.mts +75 -0
- package/WorldGenerator.d.ts +75 -0
- package/WorldGenerator.mjs +255 -0
- package/WorldSink.d.mts +50 -0
- package/WorldSink.d.ts +2 -2
- package/WorldStream.d.mts +45 -0
- package/WorldStream.d.ts +2 -2
- package/WsPartitionHints.d.mts +29 -0
- package/WsPartitionHints.d.ts +1 -1
- package/WsProfile.d.mts +46 -0
- package/WsProfile.d.ts +1 -1
- package/WsRunResult.d.mts +83 -0
- package/WsRunResult.d.ts +5 -5
- package/WsSegmentJob.d.mts +28 -0
- package/WsSegmentJob.d.ts +1 -1
- package/diplomat-runtime.d.mts +15 -0
- package/index.d.mts +177 -0
- package/index.d.ts +106 -70
- package/index.mjs +37 -1
- package/nucleation.wasm +0 -0
- package/package.json +2 -1
package/Renderer.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// generated by diplomat-tool
|
|
2
|
-
import type { NucleationError } from "./NucleationError"
|
|
3
|
-
import type { RenderConfig } from "./RenderConfig"
|
|
4
|
-
import type { ResourcePack } from "./ResourcePack"
|
|
5
|
-
import type { Schematic } from "./Schematic"
|
|
2
|
+
import type { NucleationError } from "./NucleationError.mjs"
|
|
3
|
+
import type { RenderConfig } from "./RenderConfig.mjs"
|
|
4
|
+
import type { ResourcePack } from "./ResourcePack.mjs"
|
|
5
|
+
import type { Schematic } from "./Schematic.mjs"
|
|
6
6
|
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
|
|
7
7
|
|
|
8
8
|
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// generated by diplomat-tool
|
|
2
|
+
import type { NucleationError } from "./NucleationError.mjs"
|
|
3
|
+
import type { ResourcePackList } from "./ResourcePackList.mjs"
|
|
4
|
+
import type { TextureInfo } from "./TextureInfo.mjs"
|
|
5
|
+
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A loaded (possibly merged) Minecraft resource pack.
|
|
11
|
+
* Wraps {@link crate::meshing::ResourcePackSource}.
|
|
12
|
+
*/
|
|
13
|
+
export class ResourcePack {
|
|
14
|
+
/** @internal */
|
|
15
|
+
get ffiValue(): pointer;
|
|
16
|
+
/** @internal */
|
|
17
|
+
constructor();
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Load a resource pack from an in-memory ZIP buffer.
|
|
22
|
+
*/
|
|
23
|
+
static fromBytes(data: Array<number>): ResourcePack;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Load and merge multiple resource packs, lowest priority first.
|
|
27
|
+
*/
|
|
28
|
+
static fromList(list: ResourcePackList): ResourcePack;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Number of blockstate definitions in the pack.
|
|
32
|
+
*/
|
|
33
|
+
blockstateCount(): number;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Number of model definitions in the pack.
|
|
37
|
+
*/
|
|
38
|
+
modelCount(): number;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Number of textures in the pack.
|
|
42
|
+
*/
|
|
43
|
+
textureCount(): number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Namespaces present in the pack, as a JSON array string.
|
|
47
|
+
*/
|
|
48
|
+
namespacesJson(): string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* All blockstate identifiers, as a JSON array string.
|
|
52
|
+
*/
|
|
53
|
+
listBlockstatesJson(): string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* All model identifiers, as a JSON array string.
|
|
57
|
+
*/
|
|
58
|
+
listModelsJson(): string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* All texture identifiers, as a JSON array string.
|
|
62
|
+
*/
|
|
63
|
+
listTexturesJson(): string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The blockstate definition JSON for `name`; `NotFound` if absent.
|
|
67
|
+
*/
|
|
68
|
+
getBlockstateJson(name: string): string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The model definition JSON for `name`; `NotFound` if absent.
|
|
72
|
+
*/
|
|
73
|
+
getModelJson(name: string): string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Texture metadata (size, animation flag, frame count).
|
|
77
|
+
*/
|
|
78
|
+
getTextureInfo(name: string): TextureInfo;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Raw RGBA pixels of a texture, base64-encoded.
|
|
82
|
+
*/
|
|
83
|
+
getTexturePixelsB64(name: string): string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Add (or override) a blockstate definition from a JSON string.
|
|
87
|
+
*/
|
|
88
|
+
addBlockstateJson(name: string, json: string): void;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Add (or override) a model definition from a JSON string.
|
|
92
|
+
*/
|
|
93
|
+
addModelJson(name: string, json: string): void;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Add a raw RGBA texture (`pixels` length must be `width * height * 4`).
|
|
97
|
+
*/
|
|
98
|
+
addTexture(name: string, width: number, height: number, pixels: Array<number>): void;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Register a MeshExporter with the FormatManager so `save_as("mesh", ...)`
|
|
102
|
+
* works. (Old ABI: `schematic_register_mesh_exporter`.)
|
|
103
|
+
*/
|
|
104
|
+
registerMeshExporter(): void;
|
|
105
|
+
}
|
package/ResourcePack.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// generated by diplomat-tool
|
|
2
|
-
import type { NucleationError } from "./NucleationError"
|
|
3
|
-
import type { ResourcePackList } from "./ResourcePackList"
|
|
4
|
-
import type { TextureInfo } from "./TextureInfo"
|
|
2
|
+
import type { NucleationError } from "./NucleationError.mjs"
|
|
3
|
+
import type { ResourcePackList } from "./ResourcePackList.mjs"
|
|
4
|
+
import type { TextureInfo } from "./TextureInfo.mjs"
|
|
5
5
|
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
|
|
6
6
|
|
|
7
7
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// generated by diplomat-tool
|
|
2
|
+
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Ordered list of raw resource-pack ZIP buffers, lowest priority first.
|
|
8
|
+
* Feed it to {@link ResourcePack::from_list}.
|
|
9
|
+
*/
|
|
10
|
+
export class ResourcePackList {
|
|
11
|
+
/** @internal */
|
|
12
|
+
get ffiValue(): pointer;
|
|
13
|
+
/** @internal */
|
|
14
|
+
constructor();
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Create an empty resource-pack list.
|
|
19
|
+
*/
|
|
20
|
+
static create(): ResourcePackList;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Append one resource-pack ZIP buffer. Later buffers overlay earlier
|
|
24
|
+
* ones on per-key collision (Minecraft pack-ordering semantics).
|
|
25
|
+
*/
|
|
26
|
+
add(data: Array<number>): void;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Number of pack buffers added so far.
|
|
30
|
+
*/
|
|
31
|
+
len(): number;
|
|
32
|
+
}
|