nucleation 0.2.17 → 0.3.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/Autostack.d.ts +43 -0
- package/Autostack.mjs +134 -0
- package/BlockPos.d.ts +28 -0
- package/BlockPos.mjs +129 -0
- package/BlockState.d.ts +39 -0
- package/BlockState.mjs +134 -0
- package/Brush.d.ts +59 -0
- package/Brush.mjs +203 -0
- package/BuildingTool.d.ts +29 -0
- package/BuildingTool.mjs +74 -0
- package/ChunkMeshResult.d.ts +75 -0
- package/ChunkMeshResult.mjs +253 -0
- package/CircuitBuilder.d.ts +118 -0
- package/CircuitBuilder.mjs +516 -0
- package/DefinitionRegion.d.ts +274 -0
- package/DefinitionRegion.mjs +973 -0
- package/Diff.d.ts +88 -0
- package/Diff.mjs +316 -0
- package/Dimensions.d.ts +28 -0
- package/Dimensions.mjs +129 -0
- package/ExecutionMode.d.ts +42 -0
- package/ExecutionMode.mjs +127 -0
- package/Fingerprint.d.ts +44 -0
- package/Fingerprint.mjs +197 -0
- package/InterpolationSpace.d.ts +25 -0
- package/InterpolationSpace.mjs +73 -0
- package/IoLayout.d.ts +26 -0
- package/IoLayout.mjs +81 -0
- package/IoLayoutBuilder.d.ts +73 -0
- package/IoLayoutBuilder.mjs +315 -0
- package/IoType.d.ts +41 -0
- package/IoType.mjs +125 -0
- package/ItemModelConfig.d.ts +65 -0
- package/ItemModelConfig.mjs +223 -0
- package/ItemModelPackBuilder.d.ts +32 -0
- package/ItemModelPackBuilder.mjs +104 -0
- package/ItemModelResult.d.ts +72 -0
- package/ItemModelResult.mjs +268 -0
- package/ItemScale.d.ts +31 -0
- package/ItemScale.mjs +132 -0
- package/LayoutFunction.d.ts +52 -0
- package/LayoutFunction.mjs +159 -0
- package/MchprsWorld.d.ts +131 -0
- package/MchprsWorld.mjs +423 -0
- package/MeshBounds.d.ts +40 -0
- package/MeshBounds.mjs +180 -0
- package/MeshConfig.d.ts +101 -0
- package/MeshConfig.mjs +306 -0
- package/MeshJob.d.ts +44 -0
- package/MeshJob.mjs +116 -0
- package/MeshPhase.d.ts +38 -0
- package/MeshPhase.mjs +90 -0
- package/MeshProgress.d.ts +32 -0
- package/MeshProgress.mjs +133 -0
- package/MeshResult.d.ts +60 -0
- package/MeshResult.mjs +206 -0
- package/MultiMeshResult.d.ts +50 -0
- package/MultiMeshResult.mjs +166 -0
- package/Nbt.d.ts +50 -0
- package/Nbt.mjs +161 -0
- package/NucleationError.d.ts +36 -0
- package/NucleationError.mjs +104 -0
- package/OutputCondition.d.ts +45 -0
- package/OutputCondition.mjs +129 -0
- package/README.md +28 -196
- package/RawMeshExport.d.ts +74 -0
- package/RawMeshExport.mjs +243 -0
- package/RedstoneGraph.d.ts +58 -0
- package/RedstoneGraph.mjs +242 -0
- package/RegionBounds.d.ts +41 -0
- package/RegionBounds.mjs +181 -0
- package/RenderConfig.d.ts +66 -0
- package/RenderConfig.mjs +170 -0
- package/Renderer.d.ts +35 -0
- package/Renderer.mjs +139 -0
- package/ResourcePack.d.ts +105 -0
- package/ResourcePack.mjs +447 -0
- package/ResourcePackList.d.ts +32 -0
- package/ResourcePackList.mjs +96 -0
- package/Schematic.d.ts +655 -0
- package/Schematic.mjs +2647 -0
- package/SchematicBuilder.d.ts +103 -0
- package/SchematicBuilder.mjs +401 -0
- package/SchematicRegions.d.ts +93 -0
- package/SchematicRegions.mjs +411 -0
- package/Scripting.d.ts +40 -0
- package/Scripting.mjs +138 -0
- package/Sdf.d.ts +31 -0
- package/Sdf.mjs +107 -0
- package/Shape.d.ts +108 -0
- package/Shape.mjs +336 -0
- package/SortStrategy.d.ts +86 -0
- package/SortStrategy.mjs +272 -0
- package/Store.d.ts +83 -0
- package/Store.mjs +369 -0
- package/StoreIo.d.ts +71 -0
- package/StoreIo.mjs +292 -0
- package/TextureAtlas.d.ts +40 -0
- package/TextureAtlas.mjs +122 -0
- package/TextureInfo.d.ts +34 -0
- package/TextureInfo.mjs +148 -0
- package/TypedCircuitExecutor.d.ts +101 -0
- package/TypedCircuitExecutor.mjs +378 -0
- package/Value.d.ts +73 -0
- package/Value.mjs +275 -0
- package/WorldChunkView.d.ts +63 -0
- package/WorldChunkView.mjs +201 -0
- package/WorldSink.d.ts +50 -0
- package/WorldSink.mjs +177 -0
- package/WorldStream.d.ts +45 -0
- package/WorldStream.mjs +184 -0
- package/diplomat-runtime.d.ts +15 -0
- package/diplomat-runtime.mjs +774 -0
- package/diplomat-wasm.mjs +52 -0
- package/diplomat.config.mjs +6 -0
- package/index.d.ts +113 -0
- package/index.mjs +116 -0
- package/{nucleation_bg.wasm → nucleation.wasm} +0 -0
- package/package.json +19 -41
- package/LICENSE +0 -21
- package/api.js +0 -608
- package/nucleation-cdn-loader.js +0 -15
- package/nucleation-original.js +0 -8383
- package/nucleation.d.ts +0 -2947
- package/nucleation.js +0 -36
package/nucleation.d.ts
DELETED
|
@@ -1,2947 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
export class BlockPosition {
|
|
5
|
-
free(): void;
|
|
6
|
-
[Symbol.dispose](): void;
|
|
7
|
-
constructor(x: number, y: number, z: number);
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
z: number;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export class BlockStateWrapper {
|
|
14
|
-
free(): void;
|
|
15
|
-
[Symbol.dispose](): void;
|
|
16
|
-
properties(): any;
|
|
17
|
-
with_property(key: string, value: string): void;
|
|
18
|
-
constructor(name: string);
|
|
19
|
-
name(): string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export class BrushWrapper {
|
|
23
|
-
private constructor();
|
|
24
|
-
free(): void;
|
|
25
|
-
[Symbol.dispose](): void;
|
|
26
|
-
/**
|
|
27
|
-
* Create a curve gradient brush that interpolates colors along parametric shapes.
|
|
28
|
-
* stops_flat: Flat array [pos1, r1, g1, b1, pos2, r2, g2, b2, ...]
|
|
29
|
-
* Space: 0 = RGB, 1 = Oklab
|
|
30
|
-
*/
|
|
31
|
-
static curveGradient(stops_flat: Float64Array, space?: number | null, palette_filter?: string[] | null): BrushWrapper;
|
|
32
|
-
/**
|
|
33
|
-
* Create a point cloud gradient brush using Inverse Distance Weighting (IDW)
|
|
34
|
-
*/
|
|
35
|
-
static point_gradient(positions: Int32Array, colors: Uint8Array, falloff?: number | null, space?: number | null, palette_filter?: string[] | null): BrushWrapper;
|
|
36
|
-
/**
|
|
37
|
-
* Create a linear gradient brush
|
|
38
|
-
* Space: 0 = RGB, 1 = Oklab
|
|
39
|
-
*/
|
|
40
|
-
static linear_gradient(x1: number, y1: number, z1: number, r1: number, g1: number, b1: number, x2: number, y2: number, z2: number, r2: number, g2: number, b2: number, space?: number | null, palette_filter?: string[] | null): BrushWrapper;
|
|
41
|
-
/**
|
|
42
|
-
* Create a bilinear gradient brush (4-corner quad)
|
|
43
|
-
*/
|
|
44
|
-
static bilinear_gradient(ox: number, oy: number, oz: number, ux: number, uy: number, uz: number, vx: number, vy: number, vz: number, r00: number, g00: number, b00: number, r10: number, g10: number, b10: number, r01: number, g01: number, b01: number, r11: number, g11: number, b11: number, space?: number | null, palette_filter?: string[] | null): BrushWrapper;
|
|
45
|
-
/**
|
|
46
|
-
* Create a color brush (matches closest block to RGB color)
|
|
47
|
-
*/
|
|
48
|
-
static color(r: number, g: number, b: number, palette_filter?: string[] | null): BrushWrapper;
|
|
49
|
-
/**
|
|
50
|
-
* Create a solid brush with a specific block
|
|
51
|
-
*/
|
|
52
|
-
static solid(block_state: string): BrushWrapper;
|
|
53
|
-
/**
|
|
54
|
-
* Create a shaded brush (Lambertian shading)
|
|
55
|
-
*/
|
|
56
|
-
static shaded(r: number, g: number, b: number, lx: number, ly: number, lz: number, palette_filter?: string[] | null): BrushWrapper;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export class ChunkMeshIteratorWrapper {
|
|
60
|
-
private constructor();
|
|
61
|
-
free(): void;
|
|
62
|
-
[Symbol.dispose](): void;
|
|
63
|
-
/**
|
|
64
|
-
* Total number of chunks in the iterator.
|
|
65
|
-
*/
|
|
66
|
-
chunkCount(): number;
|
|
67
|
-
/**
|
|
68
|
-
* Get the shared atlas (if any). Returns null if no shared atlas was set.
|
|
69
|
-
*/
|
|
70
|
-
sharedAtlas(): TextureAtlasWrapper | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* Get the chunk coordinate of the current mesh as [cx, cy, cz].
|
|
73
|
-
*/
|
|
74
|
-
currentCoord(): any;
|
|
75
|
-
/**
|
|
76
|
-
* Set a progress callback invoked after each chunk is meshed.
|
|
77
|
-
*
|
|
78
|
-
* The callback receives a JS object with fields:
|
|
79
|
-
* `{ phase: string, chunksDone: number, chunksTotal: number, verticesSoFar: number, trianglesSoFar: number }`
|
|
80
|
-
*/
|
|
81
|
-
setProgressCallback(callback: Function): void;
|
|
82
|
-
/**
|
|
83
|
-
* Advance to the next chunk. Returns `true` if a chunk is available.
|
|
84
|
-
*/
|
|
85
|
-
advance(): boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Get the current chunk mesh (after a successful `advance()`).
|
|
88
|
-
* Returns null if no current mesh.
|
|
89
|
-
*/
|
|
90
|
-
current(): MeshOutputWrapper | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* Whether this iterator uses a shared global atlas.
|
|
93
|
-
*/
|
|
94
|
-
readonly hasSharedAtlas: boolean;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export class ChunkMeshResultWrapper {
|
|
98
|
-
private constructor();
|
|
99
|
-
free(): void;
|
|
100
|
-
[Symbol.dispose](): void;
|
|
101
|
-
/**
|
|
102
|
-
* Get the chunk coordinates as an array of [x, y, z] arrays.
|
|
103
|
-
*/
|
|
104
|
-
getChunkCoordinates(): Array<any>;
|
|
105
|
-
/**
|
|
106
|
-
* Serialize all chunks to NUCM binary cache format as Uint8Array.
|
|
107
|
-
*/
|
|
108
|
-
toNucm(): Uint8Array;
|
|
109
|
-
/**
|
|
110
|
-
* Get the mesh for a specific chunk.
|
|
111
|
-
*/
|
|
112
|
-
getMesh(cx: number, cy: number, cz: number): MeshOutputWrapper | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* Get the number of chunks.
|
|
115
|
-
*/
|
|
116
|
-
readonly chunkCount: number;
|
|
117
|
-
/**
|
|
118
|
-
* Get the total vertex count.
|
|
119
|
-
*/
|
|
120
|
-
readonly totalVertexCount: number;
|
|
121
|
-
/**
|
|
122
|
-
* Get the total triangle count.
|
|
123
|
-
*/
|
|
124
|
-
readonly totalTriangleCount: number;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export class CircuitBuilderWrapper {
|
|
128
|
-
free(): void;
|
|
129
|
-
[Symbol.dispose](): void;
|
|
130
|
-
/**
|
|
131
|
-
* Add an input with full control
|
|
132
|
-
*
|
|
133
|
-
* Uses the default sort strategy (YXZ - Y first, then X, then Z).
|
|
134
|
-
* For custom ordering, use `withInputSorted`.
|
|
135
|
-
*/
|
|
136
|
-
withInput(name: string, io_type: IoTypeWrapper, layout: LayoutFunctionWrapper, region: DefinitionRegionWrapper): CircuitBuilderWrapper;
|
|
137
|
-
/**
|
|
138
|
-
* Create a CircuitBuilder pre-populated from Insign annotations
|
|
139
|
-
*/
|
|
140
|
-
static fromInsign(schematic: SchematicWrapper): CircuitBuilderWrapper;
|
|
141
|
-
/**
|
|
142
|
-
* Get the current number of inputs
|
|
143
|
-
*/
|
|
144
|
-
inputCount(): number;
|
|
145
|
-
/**
|
|
146
|
-
* Get the names of defined inputs
|
|
147
|
-
*/
|
|
148
|
-
inputNames(): string[];
|
|
149
|
-
/**
|
|
150
|
-
* Add an output with full control
|
|
151
|
-
*
|
|
152
|
-
* Uses the default sort strategy (YXZ - Y first, then X, then Z).
|
|
153
|
-
* For custom ordering, use `withOutputSorted`.
|
|
154
|
-
*/
|
|
155
|
-
withOutput(name: string, io_type: IoTypeWrapper, layout: LayoutFunctionWrapper, region: DefinitionRegionWrapper): CircuitBuilderWrapper;
|
|
156
|
-
/**
|
|
157
|
-
* Get the current number of outputs
|
|
158
|
-
*/
|
|
159
|
-
outputCount(): number;
|
|
160
|
-
/**
|
|
161
|
-
* Get the names of defined outputs
|
|
162
|
-
*/
|
|
163
|
-
outputNames(): string[];
|
|
164
|
-
/**
|
|
165
|
-
* Set simulation options
|
|
166
|
-
*/
|
|
167
|
-
withOptions(options: SimulationOptionsWrapper): CircuitBuilderWrapper;
|
|
168
|
-
/**
|
|
169
|
-
* Build with validation (convenience method)
|
|
170
|
-
*/
|
|
171
|
-
buildValidated(): TypedCircuitExecutorWrapper;
|
|
172
|
-
/**
|
|
173
|
-
* Add an input with automatic layout inference
|
|
174
|
-
*
|
|
175
|
-
* Uses the default sort strategy (YXZ - Y first, then X, then Z).
|
|
176
|
-
* For custom ordering, use `withInputAutoSorted`.
|
|
177
|
-
*/
|
|
178
|
-
withInputAuto(name: string, io_type: IoTypeWrapper, region: DefinitionRegionWrapper): CircuitBuilderWrapper;
|
|
179
|
-
/**
|
|
180
|
-
* Set state mode: 'stateless', 'stateful', or 'manual'
|
|
181
|
-
*/
|
|
182
|
-
withStateMode(mode: string): CircuitBuilderWrapper;
|
|
183
|
-
/**
|
|
184
|
-
* Add an output with automatic layout inference
|
|
185
|
-
*
|
|
186
|
-
* Uses the default sort strategy (YXZ - Y first, then X, then Z).
|
|
187
|
-
* For custom ordering, use `withOutputAutoSorted`.
|
|
188
|
-
*/
|
|
189
|
-
withOutputAuto(name: string, io_type: IoTypeWrapper, region: DefinitionRegionWrapper): CircuitBuilderWrapper;
|
|
190
|
-
/**
|
|
191
|
-
* Add an input with full control and custom sort strategy
|
|
192
|
-
*/
|
|
193
|
-
withInputSorted(name: string, io_type: IoTypeWrapper, layout: LayoutFunctionWrapper, region: DefinitionRegionWrapper, sort: SortStrategyWrapper): CircuitBuilderWrapper;
|
|
194
|
-
/**
|
|
195
|
-
* Add an output with full control and custom sort strategy
|
|
196
|
-
*/
|
|
197
|
-
withOutputSorted(name: string, io_type: IoTypeWrapper, layout: LayoutFunctionWrapper, region: DefinitionRegionWrapper, sort: SortStrategyWrapper): CircuitBuilderWrapper;
|
|
198
|
-
/**
|
|
199
|
-
* Add an input with automatic layout inference and custom sort strategy
|
|
200
|
-
*/
|
|
201
|
-
withInputAutoSorted(name: string, io_type: IoTypeWrapper, region: DefinitionRegionWrapper, sort: SortStrategyWrapper): CircuitBuilderWrapper;
|
|
202
|
-
/**
|
|
203
|
-
* Add an output with automatic layout inference and custom sort strategy
|
|
204
|
-
*/
|
|
205
|
-
withOutputAutoSorted(name: string, io_type: IoTypeWrapper, region: DefinitionRegionWrapper, sort: SortStrategyWrapper): CircuitBuilderWrapper;
|
|
206
|
-
/**
|
|
207
|
-
* Create a new CircuitBuilder from a schematic
|
|
208
|
-
*/
|
|
209
|
-
constructor(schematic: SchematicWrapper);
|
|
210
|
-
/**
|
|
211
|
-
* Build the TypedCircuitExecutor
|
|
212
|
-
*/
|
|
213
|
-
build(): TypedCircuitExecutorWrapper;
|
|
214
|
-
/**
|
|
215
|
-
* Validate the circuit configuration
|
|
216
|
-
*/
|
|
217
|
-
validate(): void;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export class DefinitionRegionWrapper {
|
|
221
|
-
free(): void;
|
|
222
|
-
[Symbol.dispose](): void;
|
|
223
|
-
addBounds(min: any, max: any): DefinitionRegionWrapper;
|
|
224
|
-
addFilter(filter: string): DefinitionRegionWrapper;
|
|
225
|
-
/**
|
|
226
|
-
* Get the center point of the region as f32 (for rendering)
|
|
227
|
-
*
|
|
228
|
-
* Returns [x, y, z] as floats or null if empty
|
|
229
|
-
*/
|
|
230
|
-
centerF32(): any;
|
|
231
|
-
/**
|
|
232
|
-
* Create a new region contracted by the given amount (immutable)
|
|
233
|
-
*/
|
|
234
|
-
contracted(amount: number): DefinitionRegionWrapper;
|
|
235
|
-
/**
|
|
236
|
-
* Get the dimensions (width, height, length) of the overall bounding box
|
|
237
|
-
*
|
|
238
|
-
* Returns [width, height, length] or [0, 0, 0] if empty
|
|
239
|
-
*/
|
|
240
|
-
dimensions(): Array<any>;
|
|
241
|
-
getBlocks(): Array<any>;
|
|
242
|
-
/**
|
|
243
|
-
* Get the overall bounding box encompassing all boxes in this region
|
|
244
|
-
* Returns an object with {min: [x,y,z], max: [x,y,z]} or null if empty
|
|
245
|
-
*/
|
|
246
|
-
getBounds(): any;
|
|
247
|
-
/**
|
|
248
|
-
* Create a new region with points from `other` removed (immutable)
|
|
249
|
-
*/
|
|
250
|
-
subtracted(other: DefinitionRegionWrapper): DefinitionRegionWrapper;
|
|
251
|
-
/**
|
|
252
|
-
* Add all points from another region to this one (mutating union)
|
|
253
|
-
*/
|
|
254
|
-
unionInto(other: DefinitionRegionWrapper): DefinitionRegionWrapper;
|
|
255
|
-
static fromBounds(min: BlockPosition, max: BlockPosition): DefinitionRegionWrapper;
|
|
256
|
-
/**
|
|
257
|
-
* Create a new region with only points in both (immutable)
|
|
258
|
-
*/
|
|
259
|
-
intersected(other: DefinitionRegionWrapper): DefinitionRegionWrapper;
|
|
260
|
-
/**
|
|
261
|
-
* Clone this region (alias for copy)
|
|
262
|
-
*/
|
|
263
|
-
clone(): DefinitionRegionWrapper;
|
|
264
|
-
/**
|
|
265
|
-
* Get a metadata value by key
|
|
266
|
-
*
|
|
267
|
-
* Returns the value string or null if not found
|
|
268
|
-
*/
|
|
269
|
-
getMetadata(key: string): any;
|
|
270
|
-
setMetadata(key: string, value: string): DefinitionRegionWrapper;
|
|
271
|
-
excludeBlock(block_name: string): DefinitionRegionWrapper;
|
|
272
|
-
/**
|
|
273
|
-
* Check if all points in the region are connected (6-connectivity)
|
|
274
|
-
*/
|
|
275
|
-
isContiguous(): boolean;
|
|
276
|
-
/**
|
|
277
|
-
* Get all metadata keys
|
|
278
|
-
*/
|
|
279
|
-
metadataKeys(): Array<any>;
|
|
280
|
-
/**
|
|
281
|
-
* Fluent alias for `setMetadata` — returns the region for chaining.
|
|
282
|
-
*/
|
|
283
|
-
withMetadata(key: string, value: string): DefinitionRegionWrapper;
|
|
284
|
-
/**
|
|
285
|
-
* Create a DefinitionRegion from an array of positions
|
|
286
|
-
*
|
|
287
|
-
* Takes an array of [x, y, z] arrays. Adjacent points will be merged into boxes.
|
|
288
|
-
*/
|
|
289
|
-
static fromPositions(positions: any): DefinitionRegionWrapper;
|
|
290
|
-
filterByBlock(schematic: SchematicWrapper, block_name: string): DefinitionRegionWrapper;
|
|
291
|
-
/**
|
|
292
|
-
* Get all metadata as a JS object
|
|
293
|
-
*/
|
|
294
|
-
getAllMetadata(): any;
|
|
295
|
-
/**
|
|
296
|
-
* Get positions in globally sorted order (Y, then X, then Z)
|
|
297
|
-
*
|
|
298
|
-
* This provides **deterministic bit ordering** for circuits regardless of
|
|
299
|
-
* how the region was constructed. Use this for IO bit assignment.
|
|
300
|
-
*/
|
|
301
|
-
positionsSorted(): Array<any>;
|
|
302
|
-
/**
|
|
303
|
-
* Check if this region intersects with a bounding box
|
|
304
|
-
*
|
|
305
|
-
* Useful for frustum culling in renderers.
|
|
306
|
-
*/
|
|
307
|
-
intersectsBounds(min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number): boolean;
|
|
308
|
-
/**
|
|
309
|
-
* Create a DefinitionRegion from multiple bounding boxes
|
|
310
|
-
*
|
|
311
|
-
* Takes an array of {min: [x,y,z], max: [x,y,z]} objects.
|
|
312
|
-
* Unlike fromPositions which merges adjacent points, this keeps boxes as provided.
|
|
313
|
-
*/
|
|
314
|
-
static fromBoundingBoxes(boxes: any): DefinitionRegionWrapper;
|
|
315
|
-
/**
|
|
316
|
-
* Get the number of connected components in this region
|
|
317
|
-
*/
|
|
318
|
-
connectedComponents(): number;
|
|
319
|
-
/**
|
|
320
|
-
* Filter positions by block state properties (JS object)
|
|
321
|
-
* Only keeps positions where the block has ALL specified properties matching
|
|
322
|
-
*/
|
|
323
|
-
filterByProperties(schematic: SchematicWrapper, properties: any): DefinitionRegionWrapper;
|
|
324
|
-
constructor();
|
|
325
|
-
/**
|
|
326
|
-
* Create a deep copy of this region
|
|
327
|
-
*/
|
|
328
|
-
copy(): DefinitionRegionWrapper;
|
|
329
|
-
merge(other: DefinitionRegionWrapper): DefinitionRegionWrapper;
|
|
330
|
-
/**
|
|
331
|
-
* Translate all boxes by the given offset
|
|
332
|
-
*/
|
|
333
|
-
shift(x: number, y: number, z: number): DefinitionRegionWrapper;
|
|
334
|
-
/**
|
|
335
|
-
* Create a new region that is the union of this region and another
|
|
336
|
-
*/
|
|
337
|
-
union(other: DefinitionRegionWrapper): DefinitionRegionWrapper;
|
|
338
|
-
/**
|
|
339
|
-
* Get the center point of the region (integer coordinates)
|
|
340
|
-
*
|
|
341
|
-
* Returns [x, y, z] or null if empty
|
|
342
|
-
*/
|
|
343
|
-
center(): any;
|
|
344
|
-
/**
|
|
345
|
-
* Expand all boxes by the given amounts in each direction
|
|
346
|
-
*/
|
|
347
|
-
expand(x: number, y: number, z: number): DefinitionRegionWrapper;
|
|
348
|
-
/**
|
|
349
|
-
* Get total volume (number of blocks) covered by all boxes
|
|
350
|
-
*/
|
|
351
|
-
volume(): number;
|
|
352
|
-
/**
|
|
353
|
-
* Get a specific bounding box by index
|
|
354
|
-
*
|
|
355
|
-
* Returns {min: [x,y,z], max: [x,y,z]} or null if index is out of bounds
|
|
356
|
-
*/
|
|
357
|
-
getBox(index: number): any;
|
|
358
|
-
/**
|
|
359
|
-
* Create a new region shifted by the given offset (immutable)
|
|
360
|
-
*/
|
|
361
|
-
shifted(x: number, y: number, z: number): DefinitionRegionWrapper;
|
|
362
|
-
/**
|
|
363
|
-
* Check if the region contains a specific point
|
|
364
|
-
*/
|
|
365
|
-
contains(x: number, y: number, z: number): boolean;
|
|
366
|
-
/**
|
|
367
|
-
* Contract all boxes by the given amount uniformly
|
|
368
|
-
*/
|
|
369
|
-
contract(amount: number): DefinitionRegionWrapper;
|
|
370
|
-
/**
|
|
371
|
-
* Create a new region expanded by the given amounts (immutable)
|
|
372
|
-
*/
|
|
373
|
-
expanded(x: number, y: number, z: number): DefinitionRegionWrapper;
|
|
374
|
-
/**
|
|
375
|
-
* Check if the region is empty
|
|
376
|
-
*/
|
|
377
|
-
isEmpty(): boolean;
|
|
378
|
-
/**
|
|
379
|
-
* Simplify the region by merging adjacent/overlapping boxes
|
|
380
|
-
*/
|
|
381
|
-
simplify(): DefinitionRegionWrapper;
|
|
382
|
-
/**
|
|
383
|
-
* Subtract another region from this one (removes points present in `other`)
|
|
384
|
-
*/
|
|
385
|
-
subtract(other: DefinitionRegionWrapper): DefinitionRegionWrapper;
|
|
386
|
-
addPoint(x: number, y: number, z: number): DefinitionRegionWrapper;
|
|
387
|
-
/**
|
|
388
|
-
* Get the number of bounding boxes in this region
|
|
389
|
-
*/
|
|
390
|
-
boxCount(): number;
|
|
391
|
-
/**
|
|
392
|
-
* Get all bounding boxes in this region
|
|
393
|
-
*
|
|
394
|
-
* Returns an array of {min: [x,y,z], max: [x,y,z]} objects.
|
|
395
|
-
* Useful for rendering each box separately.
|
|
396
|
-
*/
|
|
397
|
-
getBoxes(): Array<any>;
|
|
398
|
-
/**
|
|
399
|
-
* Keep only points present in both regions (intersection)
|
|
400
|
-
*/
|
|
401
|
-
intersect(other: DefinitionRegionWrapper): DefinitionRegionWrapper;
|
|
402
|
-
/**
|
|
403
|
-
* Get a list of all positions as an array of [x, y, z] arrays
|
|
404
|
-
*/
|
|
405
|
-
positions(): Array<any>;
|
|
406
|
-
setColor(color: number): DefinitionRegionWrapper;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export class DiffWrapper {
|
|
410
|
-
private constructor();
|
|
411
|
-
free(): void;
|
|
412
|
-
[Symbol.dispose](): void;
|
|
413
|
-
/**
|
|
414
|
-
* Connected change regions as a JSON array.
|
|
415
|
-
*
|
|
416
|
-
* Each region: `{min:[x,y,z], max:[x,y,z], kind:"added|removed|changed|swapped|mixed", count}`.
|
|
417
|
-
*/
|
|
418
|
-
regionsJson(): string;
|
|
419
|
-
/**
|
|
420
|
-
* Serialize a compact summary (counts + transform) to a JSON string.
|
|
421
|
-
*/
|
|
422
|
-
summaryJson(): string;
|
|
423
|
-
/**
|
|
424
|
-
* Generate a colored overlay GLB on top of an already-meshed "after" GLB.
|
|
425
|
-
*/
|
|
426
|
-
toOverlayGlb(after_glb: Uint8Array): Uint8Array;
|
|
427
|
-
/**
|
|
428
|
-
* Schematic containing only the added blocks.
|
|
429
|
-
*/
|
|
430
|
-
added(): SchematicWrapper;
|
|
431
|
-
/**
|
|
432
|
-
* Schematic containing only the changed blocks (post-change state).
|
|
433
|
-
*/
|
|
434
|
-
changed(): SchematicWrapper;
|
|
435
|
-
/**
|
|
436
|
-
* Schematic of visualization markers for all change classes.
|
|
437
|
-
*/
|
|
438
|
-
markers(): SchematicWrapper;
|
|
439
|
-
/**
|
|
440
|
-
* Schematic containing only the removed blocks.
|
|
441
|
-
*/
|
|
442
|
-
removed(): SchematicWrapper;
|
|
443
|
-
/**
|
|
444
|
-
* Schematic containing only the palette-swapped blocks.
|
|
445
|
-
*/
|
|
446
|
-
swapped(): SchematicWrapper;
|
|
447
|
-
/**
|
|
448
|
-
* Serialize the full diff to a JSON string.
|
|
449
|
-
*/
|
|
450
|
-
toJson(): string;
|
|
451
|
-
/**
|
|
452
|
-
* Reconstruct a diff from a JSON string produced by `toJson()`.
|
|
453
|
-
*/
|
|
454
|
-
static fromJson(s: string): DiffWrapper;
|
|
455
|
-
/**
|
|
456
|
-
* Match support score (fraction of cells explained by the alignment).
|
|
457
|
-
*/
|
|
458
|
-
readonly support: number;
|
|
459
|
-
/**
|
|
460
|
-
* Total edit distance (sum of weighted add/delete/change/swap costs).
|
|
461
|
-
*
|
|
462
|
-
* Surfaced as a JS `number` (f64). Edit distances stay well within f64's
|
|
463
|
-
* exact-integer range; the core value is `u64`.
|
|
464
|
-
*/
|
|
465
|
-
readonly distance: number;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
export class ExecutionModeWrapper {
|
|
469
|
-
private constructor();
|
|
470
|
-
free(): void;
|
|
471
|
-
[Symbol.dispose](): void;
|
|
472
|
-
/**
|
|
473
|
-
* Run for a fixed number of ticks
|
|
474
|
-
*/
|
|
475
|
-
static fixedTicks(ticks: number): ExecutionModeWrapper;
|
|
476
|
-
/**
|
|
477
|
-
* Run until any output changes
|
|
478
|
-
*/
|
|
479
|
-
static untilChange(max_ticks: number, check_interval: number): ExecutionModeWrapper;
|
|
480
|
-
/**
|
|
481
|
-
* Run until outputs are stable
|
|
482
|
-
*/
|
|
483
|
-
static untilStable(stable_ticks: number, max_ticks: number): ExecutionModeWrapper;
|
|
484
|
-
/**
|
|
485
|
-
* Run until an output meets a condition
|
|
486
|
-
*/
|
|
487
|
-
static untilCondition(output_name: string, condition: OutputConditionWrapper, max_ticks: number, check_interval: number): ExecutionModeWrapper;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
export class IoLayoutBuilderWrapper {
|
|
491
|
-
free(): void;
|
|
492
|
-
[Symbol.dispose](): void;
|
|
493
|
-
/**
|
|
494
|
-
* Add an output
|
|
495
|
-
*/
|
|
496
|
-
addOutput(name: string, io_type: IoTypeWrapper, layout: LayoutFunctionWrapper, positions: any[]): IoLayoutBuilderWrapper;
|
|
497
|
-
/**
|
|
498
|
-
* Add an input with automatic layout inference
|
|
499
|
-
*/
|
|
500
|
-
addInputAuto(name: string, io_type: IoTypeWrapper, positions: any[]): IoLayoutBuilderWrapper;
|
|
501
|
-
/**
|
|
502
|
-
* Add an output with automatic layout inference
|
|
503
|
-
*/
|
|
504
|
-
addOutputAuto(name: string, io_type: IoTypeWrapper, positions: any[]): IoLayoutBuilderWrapper;
|
|
505
|
-
/**
|
|
506
|
-
* Add an input defined by a region (bounding box)
|
|
507
|
-
* Iterates Y (layers), then X (rows), then Z (columns)
|
|
508
|
-
*/
|
|
509
|
-
addInputRegion(name: string, io_type: IoTypeWrapper, layout: LayoutFunctionWrapper, min: BlockPosition, max: BlockPosition): IoLayoutBuilderWrapper;
|
|
510
|
-
/**
|
|
511
|
-
* Add an output defined by a region (bounding box)
|
|
512
|
-
* Iterates Y (layers), then X (rows), then Z (columns)
|
|
513
|
-
*/
|
|
514
|
-
addOutputRegion(name: string, io_type: IoTypeWrapper, layout: LayoutFunctionWrapper, min: BlockPosition, max: BlockPosition): IoLayoutBuilderWrapper;
|
|
515
|
-
/**
|
|
516
|
-
* Add an input defined by a DefinitionRegion
|
|
517
|
-
*/
|
|
518
|
-
addInputFromRegion(name: string, io_type: IoTypeWrapper, layout: LayoutFunctionWrapper, region: DefinitionRegionWrapper): IoLayoutBuilderWrapper;
|
|
519
|
-
/**
|
|
520
|
-
* Add an input defined by a region with automatic layout inference
|
|
521
|
-
*/
|
|
522
|
-
addInputRegionAuto(name: string, io_type: IoTypeWrapper, min: BlockPosition, max: BlockPosition): IoLayoutBuilderWrapper;
|
|
523
|
-
/**
|
|
524
|
-
* Add an output defined by a DefinitionRegion
|
|
525
|
-
*/
|
|
526
|
-
addOutputFromRegion(name: string, io_type: IoTypeWrapper, layout: LayoutFunctionWrapper, region: DefinitionRegionWrapper): IoLayoutBuilderWrapper;
|
|
527
|
-
/**
|
|
528
|
-
* Add an output defined by a region with automatic layout inference
|
|
529
|
-
*/
|
|
530
|
-
addOutputRegionAuto(name: string, io_type: IoTypeWrapper, min: BlockPosition, max: BlockPosition): IoLayoutBuilderWrapper;
|
|
531
|
-
/**
|
|
532
|
-
* Add an input defined by a DefinitionRegion with automatic layout inference
|
|
533
|
-
*/
|
|
534
|
-
addInputFromRegionAuto(name: string, io_type: IoTypeWrapper, region: DefinitionRegionWrapper): IoLayoutBuilderWrapper;
|
|
535
|
-
/**
|
|
536
|
-
* Add an output defined by a DefinitionRegion with automatic layout inference
|
|
537
|
-
*/
|
|
538
|
-
addOutputFromRegionAuto(name: string, io_type: IoTypeWrapper, region: DefinitionRegionWrapper): IoLayoutBuilderWrapper;
|
|
539
|
-
/**
|
|
540
|
-
* Create a new IO layout builder
|
|
541
|
-
*/
|
|
542
|
-
constructor();
|
|
543
|
-
/**
|
|
544
|
-
* Build the IO layout
|
|
545
|
-
*/
|
|
546
|
-
build(): IoLayoutWrapper;
|
|
547
|
-
/**
|
|
548
|
-
* Add an input
|
|
549
|
-
*/
|
|
550
|
-
addInput(name: string, io_type: IoTypeWrapper, layout: LayoutFunctionWrapper, positions: any[]): IoLayoutBuilderWrapper;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
export class IoLayoutWrapper {
|
|
554
|
-
private constructor();
|
|
555
|
-
free(): void;
|
|
556
|
-
[Symbol.dispose](): void;
|
|
557
|
-
/**
|
|
558
|
-
* Get input names
|
|
559
|
-
*/
|
|
560
|
-
inputNames(): string[];
|
|
561
|
-
/**
|
|
562
|
-
* Get output names
|
|
563
|
-
*/
|
|
564
|
-
outputNames(): string[];
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
export class IoTypeWrapper {
|
|
568
|
-
private constructor();
|
|
569
|
-
free(): void;
|
|
570
|
-
[Symbol.dispose](): void;
|
|
571
|
-
/**
|
|
572
|
-
* Create a signed integer type
|
|
573
|
-
*/
|
|
574
|
-
static signedInt(bits: number): IoTypeWrapper;
|
|
575
|
-
/**
|
|
576
|
-
* Create an unsigned integer type
|
|
577
|
-
*/
|
|
578
|
-
static unsignedInt(bits: number): IoTypeWrapper;
|
|
579
|
-
/**
|
|
580
|
-
* Create an ASCII string type
|
|
581
|
-
*/
|
|
582
|
-
static ascii(chars: number): IoTypeWrapper;
|
|
583
|
-
/**
|
|
584
|
-
* Create a Boolean type
|
|
585
|
-
*/
|
|
586
|
-
static boolean(): IoTypeWrapper;
|
|
587
|
-
/**
|
|
588
|
-
* Create a Float32 type
|
|
589
|
-
*/
|
|
590
|
-
static float32(): IoTypeWrapper;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
export class ItemModelConfigWrapper {
|
|
594
|
-
free(): void;
|
|
595
|
-
[Symbol.dispose](): void;
|
|
596
|
-
/**
|
|
597
|
-
* Set per-axis scale factors.
|
|
598
|
-
*/
|
|
599
|
-
setScaleXyz(sx: number, sy: number, sz: number): void;
|
|
600
|
-
/**
|
|
601
|
-
* Set scale to auto-fit mode (default).
|
|
602
|
-
*/
|
|
603
|
-
setScaleAuto(): void;
|
|
604
|
-
constructor(model_name: string);
|
|
605
|
-
/**
|
|
606
|
-
* Set uniform scale factor.
|
|
607
|
-
*/
|
|
608
|
-
setScale(scale: number): void;
|
|
609
|
-
model_name: string;
|
|
610
|
-
center: boolean;
|
|
611
|
-
namespace: string;
|
|
612
|
-
/**
|
|
613
|
-
* Custom model data string value (default: "1").
|
|
614
|
-
*/
|
|
615
|
-
customModelData: string;
|
|
616
|
-
textureResolution: number;
|
|
617
|
-
/**
|
|
618
|
-
* Minecraft item to bind to (default: "paper").
|
|
619
|
-
*/
|
|
620
|
-
item: string;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
export class ItemModelResultWrapper {
|
|
624
|
-
private constructor();
|
|
625
|
-
free(): void;
|
|
626
|
-
[Symbol.dispose](): void;
|
|
627
|
-
/**
|
|
628
|
-
* Get PNG data for a specific texture.
|
|
629
|
-
*/
|
|
630
|
-
getTexture(name: string): Uint8Array | undefined;
|
|
631
|
-
/**
|
|
632
|
-
* Package as a complete resource pack ZIP.
|
|
633
|
-
*/
|
|
634
|
-
toResourcePackZip(): Uint8Array;
|
|
635
|
-
/**
|
|
636
|
-
* Schematic dimensions as [width, height, depth].
|
|
637
|
-
*/
|
|
638
|
-
readonly dimensions: Array<any>;
|
|
639
|
-
/**
|
|
640
|
-
* Get the Minecraft item model JSON string.
|
|
641
|
-
*/
|
|
642
|
-
readonly modelJson: string;
|
|
643
|
-
/**
|
|
644
|
-
* Number of planes across all directions.
|
|
645
|
-
*/
|
|
646
|
-
readonly planeCount: number;
|
|
647
|
-
/**
|
|
648
|
-
* Number of elements in the model.
|
|
649
|
-
*/
|
|
650
|
-
readonly elementCount: number;
|
|
651
|
-
/**
|
|
652
|
-
* Number of textures generated.
|
|
653
|
-
*/
|
|
654
|
-
readonly textureCount: number;
|
|
655
|
-
/**
|
|
656
|
-
* Get texture names as an array.
|
|
657
|
-
*/
|
|
658
|
-
readonly textureNames: Array<any>;
|
|
659
|
-
/**
|
|
660
|
-
* Resolved scale factors as [sx, sy, sz].
|
|
661
|
-
*/
|
|
662
|
-
readonly scale: Array<any>;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
export class LayoutFunctionWrapper {
|
|
666
|
-
private constructor();
|
|
667
|
-
free(): void;
|
|
668
|
-
[Symbol.dispose](): void;
|
|
669
|
-
/**
|
|
670
|
-
* One bit per position (0 or 15)
|
|
671
|
-
*/
|
|
672
|
-
static oneToOne(): LayoutFunctionWrapper;
|
|
673
|
-
/**
|
|
674
|
-
* Column-major 2D layout
|
|
675
|
-
*/
|
|
676
|
-
static columnMajor(rows: number, cols: number, bits_per_element: number): LayoutFunctionWrapper;
|
|
677
|
-
/**
|
|
678
|
-
* Custom bit-to-position mapping
|
|
679
|
-
*/
|
|
680
|
-
static custom(mapping: Uint32Array): LayoutFunctionWrapper;
|
|
681
|
-
/**
|
|
682
|
-
* Four bits per position (0-15)
|
|
683
|
-
*/
|
|
684
|
-
static packed4(): LayoutFunctionWrapper;
|
|
685
|
-
/**
|
|
686
|
-
* Scanline layout for screens
|
|
687
|
-
*/
|
|
688
|
-
static scanline(width: number, height: number, bits_per_pixel: number): LayoutFunctionWrapper;
|
|
689
|
-
/**
|
|
690
|
-
* Row-major 2D layout
|
|
691
|
-
*/
|
|
692
|
-
static rowMajor(rows: number, cols: number, bits_per_element: number): LayoutFunctionWrapper;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
export class LazyChunkIterator {
|
|
696
|
-
private constructor();
|
|
697
|
-
free(): void;
|
|
698
|
-
[Symbol.dispose](): void;
|
|
699
|
-
total_chunks(): number;
|
|
700
|
-
current_position(): number;
|
|
701
|
-
/**
|
|
702
|
-
* Get the next chunk on-demand (generates it fresh, doesn't store it)
|
|
703
|
-
*/
|
|
704
|
-
next(): any;
|
|
705
|
-
reset(): void;
|
|
706
|
-
skip_to(index: number): void;
|
|
707
|
-
has_next(): boolean;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
export class MchprsWorldWrapper {
|
|
711
|
-
free(): void;
|
|
712
|
-
[Symbol.dispose](): void;
|
|
713
|
-
/**
|
|
714
|
-
* Extract the compiled redstone logic graph for this world.
|
|
715
|
-
*/
|
|
716
|
-
exportGraph(): RedstoneGraphWrapper;
|
|
717
|
-
/**
|
|
718
|
-
* Simulates a right-click on a block (typically a lever)
|
|
719
|
-
*/
|
|
720
|
-
on_use_block(x: number, y: number, z: number): void;
|
|
721
|
-
/**
|
|
722
|
-
* Creates a simulation world with custom options
|
|
723
|
-
*/
|
|
724
|
-
static with_options(schematic: SchematicWrapper, options: SimulationOptionsWrapper): MchprsWorldWrapper;
|
|
725
|
-
/**
|
|
726
|
-
* Gets a copy of the underlying schematic
|
|
727
|
-
*
|
|
728
|
-
* Note: Call sync_to_schematic() first if you want the latest simulation state
|
|
729
|
-
*/
|
|
730
|
-
get_schematic(): SchematicWrapper;
|
|
731
|
-
/**
|
|
732
|
-
* Consumes the simulation world and returns the schematic with simulation state
|
|
733
|
-
*
|
|
734
|
-
* This automatically syncs before returning
|
|
735
|
-
*/
|
|
736
|
-
into_schematic(): SchematicWrapper;
|
|
737
|
-
/**
|
|
738
|
-
* Gets the power state of a lever
|
|
739
|
-
*/
|
|
740
|
-
get_lever_power(x: number, y: number, z: number): boolean;
|
|
741
|
-
/**
|
|
742
|
-
* Generates a truth table for the circuit
|
|
743
|
-
*
|
|
744
|
-
* Returns an array of objects with keys like "Input 0", "Output 0", etc.
|
|
745
|
-
*/
|
|
746
|
-
get_truth_table(): any;
|
|
747
|
-
/**
|
|
748
|
-
* Syncs the current simulation state back to the underlying schematic
|
|
749
|
-
*
|
|
750
|
-
* Call this after running simulation to update block states (redstone power, lever states, etc.)
|
|
751
|
-
*/
|
|
752
|
-
sync_to_schematic(): void;
|
|
753
|
-
/**
|
|
754
|
-
* Gets the redstone power level at a position
|
|
755
|
-
*/
|
|
756
|
-
get_redstone_power(x: number, y: number, z: number): number;
|
|
757
|
-
/**
|
|
758
|
-
* Gets the signal strength at a specific block position (for custom IO nodes)
|
|
759
|
-
*/
|
|
760
|
-
getSignalStrength(x: number, y: number, z: number): number;
|
|
761
|
-
/**
|
|
762
|
-
* Sets the signal strength at a specific block position (for custom IO nodes)
|
|
763
|
-
*/
|
|
764
|
-
setSignalStrength(x: number, y: number, z: number, strength: number): void;
|
|
765
|
-
/**
|
|
766
|
-
* Get custom IO changes without clearing the queue
|
|
767
|
-
*/
|
|
768
|
-
peekCustomIoChanges(): any;
|
|
769
|
-
/**
|
|
770
|
-
* Get and clear all custom IO changes since last poll
|
|
771
|
-
* Returns an array of change objects with {x, y, z, oldPower, newPower}
|
|
772
|
-
*/
|
|
773
|
-
pollCustomIoChanges(): any;
|
|
774
|
-
/**
|
|
775
|
-
* Check for custom IO state changes and queue them
|
|
776
|
-
* Call this after tick() or setSignalStrength() to detect changes
|
|
777
|
-
*/
|
|
778
|
-
checkCustomIoChanges(): void;
|
|
779
|
-
/**
|
|
780
|
-
* Clear all queued custom IO changes
|
|
781
|
-
*/
|
|
782
|
-
clearCustomIoChanges(): void;
|
|
783
|
-
/**
|
|
784
|
-
* Extract the structural (pre-fold, as-built) redstone logic graph.
|
|
785
|
-
*/
|
|
786
|
-
exportGraphStructural(): RedstoneGraphWrapper;
|
|
787
|
-
constructor(schematic: SchematicWrapper);
|
|
788
|
-
/**
|
|
789
|
-
* Advances the simulation by the specified number of ticks
|
|
790
|
-
*/
|
|
791
|
-
tick(number_of_ticks: number): void;
|
|
792
|
-
/**
|
|
793
|
-
* Flushes pending changes from the compiler to the world
|
|
794
|
-
*/
|
|
795
|
-
flush(): void;
|
|
796
|
-
/**
|
|
797
|
-
* Checks if a redstone lamp is lit at the given position
|
|
798
|
-
*/
|
|
799
|
-
is_lit(x: number, y: number, z: number): boolean;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
export class MeshConfigWrapper {
|
|
803
|
-
free(): void;
|
|
804
|
-
[Symbol.dispose](): void;
|
|
805
|
-
/**
|
|
806
|
-
* Set the AO intensity (0.0 = no darkening, 1.0 = full darkening).
|
|
807
|
-
*/
|
|
808
|
-
setAoIntensity(intensity: number): void;
|
|
809
|
-
/**
|
|
810
|
-
* Set the maximum atlas texture size.
|
|
811
|
-
*/
|
|
812
|
-
setAtlasMaxSize(size: number): void;
|
|
813
|
-
/**
|
|
814
|
-
* Enable or disable greedy meshing.
|
|
815
|
-
*/
|
|
816
|
-
setGreedyMeshing(enabled: boolean): void;
|
|
817
|
-
/**
|
|
818
|
-
* Enable or disable ambient occlusion.
|
|
819
|
-
*/
|
|
820
|
-
setAmbientOcclusion(enabled: boolean): void;
|
|
821
|
-
/**
|
|
822
|
-
* Enable or disable face culling between adjacent blocks.
|
|
823
|
-
*/
|
|
824
|
-
setCullHiddenFaces(enabled: boolean): void;
|
|
825
|
-
/**
|
|
826
|
-
* Enable or disable occluded block culling.
|
|
827
|
-
*/
|
|
828
|
-
setCullOccludedBlocks(enabled: boolean): void;
|
|
829
|
-
/**
|
|
830
|
-
* Create a new MeshConfig with default settings.
|
|
831
|
-
*/
|
|
832
|
-
constructor();
|
|
833
|
-
/**
|
|
834
|
-
* Set the biome for tinting (e.g., "plains", "swamp").
|
|
835
|
-
*/
|
|
836
|
-
setBiome(biome: string): void;
|
|
837
|
-
/**
|
|
838
|
-
* Get the AO intensity.
|
|
839
|
-
*/
|
|
840
|
-
readonly aoIntensity: number;
|
|
841
|
-
/**
|
|
842
|
-
* Get the maximum atlas size.
|
|
843
|
-
*/
|
|
844
|
-
readonly atlasMaxSize: number;
|
|
845
|
-
/**
|
|
846
|
-
* Get whether greedy meshing is enabled.
|
|
847
|
-
*/
|
|
848
|
-
readonly greedyMeshing: boolean;
|
|
849
|
-
/**
|
|
850
|
-
* Get whether ambient occlusion is enabled.
|
|
851
|
-
*/
|
|
852
|
-
readonly ambientOcclusion: boolean;
|
|
853
|
-
/**
|
|
854
|
-
* Get whether face culling is enabled.
|
|
855
|
-
*/
|
|
856
|
-
readonly cullHiddenFaces: boolean;
|
|
857
|
-
/**
|
|
858
|
-
* Get whether occluded block culling is enabled.
|
|
859
|
-
*/
|
|
860
|
-
readonly cullOccludedBlocks: boolean;
|
|
861
|
-
/**
|
|
862
|
-
* Get the biome name.
|
|
863
|
-
*/
|
|
864
|
-
readonly biome: string | undefined;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
export class MeshOutputWrapper {
|
|
868
|
-
private constructor();
|
|
869
|
-
free(): void;
|
|
870
|
-
[Symbol.dispose](): void;
|
|
871
|
-
/**
|
|
872
|
-
* Shared texture atlas RGBA pixel data as Uint8Array.
|
|
873
|
-
*/
|
|
874
|
-
atlasRgba(): Uint8Array;
|
|
875
|
-
/**
|
|
876
|
-
* Cutout layer texture coordinates as Float32Array.
|
|
877
|
-
*/
|
|
878
|
-
cutoutUvs(): Float32Array;
|
|
879
|
-
/**
|
|
880
|
-
* Opaque layer texture coordinates as Float32Array (u,v per vertex).
|
|
881
|
-
*/
|
|
882
|
-
opaqueUvs(): Float32Array;
|
|
883
|
-
/**
|
|
884
|
-
* Chunk coordinate as [cx, cy, cz] or null if not a chunk mesh.
|
|
885
|
-
*/
|
|
886
|
-
chunkCoord(): any;
|
|
887
|
-
/**
|
|
888
|
-
* Cutout layer vertex colors as Float32Array.
|
|
889
|
-
*/
|
|
890
|
-
cutoutColors(): Float32Array;
|
|
891
|
-
/**
|
|
892
|
-
* Opaque layer vertex colors as Float32Array (r,g,b,a per vertex).
|
|
893
|
-
*/
|
|
894
|
-
opaqueColors(): Float32Array;
|
|
895
|
-
/**
|
|
896
|
-
* Cutout layer triangle indices as Uint32Array.
|
|
897
|
-
*/
|
|
898
|
-
cutoutIndices(): Uint32Array;
|
|
899
|
-
/**
|
|
900
|
-
* Cutout layer vertex normals as Float32Array.
|
|
901
|
-
*/
|
|
902
|
-
cutoutNormals(): Float32Array;
|
|
903
|
-
/**
|
|
904
|
-
* Opaque layer triangle indices as Uint32Array.
|
|
905
|
-
*/
|
|
906
|
-
opaqueIndices(): Uint32Array;
|
|
907
|
-
/**
|
|
908
|
-
* Opaque layer vertex normals as Float32Array.
|
|
909
|
-
*/
|
|
910
|
-
opaqueNormals(): Float32Array;
|
|
911
|
-
/**
|
|
912
|
-
* Transparent layer texture coordinates as Float32Array.
|
|
913
|
-
*/
|
|
914
|
-
transparentUvs(): Float32Array;
|
|
915
|
-
/**
|
|
916
|
-
* Cutout layer vertex positions as Float32Array.
|
|
917
|
-
*/
|
|
918
|
-
cutoutPositions(): Float32Array;
|
|
919
|
-
/**
|
|
920
|
-
* Opaque layer vertex positions as Float32Array (x,y,z per vertex).
|
|
921
|
-
*/
|
|
922
|
-
opaquePositions(): Float32Array;
|
|
923
|
-
/**
|
|
924
|
-
* Transparent layer vertex colors as Float32Array.
|
|
925
|
-
*/
|
|
926
|
-
transparentColors(): Float32Array;
|
|
927
|
-
/**
|
|
928
|
-
* Transparent layer triangle indices as Uint32Array.
|
|
929
|
-
*/
|
|
930
|
-
transparentIndices(): Uint32Array;
|
|
931
|
-
/**
|
|
932
|
-
* Transparent layer vertex normals as Float32Array.
|
|
933
|
-
*/
|
|
934
|
-
transparentNormals(): Float32Array;
|
|
935
|
-
/**
|
|
936
|
-
* Transparent layer vertex positions as Float32Array.
|
|
937
|
-
*/
|
|
938
|
-
transparentPositions(): Float32Array;
|
|
939
|
-
/**
|
|
940
|
-
* Get GLB binary data as Uint8Array.
|
|
941
|
-
*/
|
|
942
|
-
toGlb(): Uint8Array;
|
|
943
|
-
/**
|
|
944
|
-
* Get NUCM binary cache data as Uint8Array.
|
|
945
|
-
*
|
|
946
|
-
* Serializes this single mesh chunk to the `.nucm` binary format.
|
|
947
|
-
*/
|
|
948
|
-
toNucm(): Uint8Array;
|
|
949
|
-
/**
|
|
950
|
-
* Get USDZ binary data as Uint8Array.
|
|
951
|
-
*/
|
|
952
|
-
toUsdz(): Uint8Array;
|
|
953
|
-
/**
|
|
954
|
-
* Get mesh statistics as a JS object.
|
|
955
|
-
*/
|
|
956
|
-
getStats(): object;
|
|
957
|
-
/**
|
|
958
|
-
* Atlas width in pixels.
|
|
959
|
-
*/
|
|
960
|
-
readonly atlasWidth: number;
|
|
961
|
-
/**
|
|
962
|
-
* Atlas height in pixels.
|
|
963
|
-
*/
|
|
964
|
-
readonly atlasHeight: number;
|
|
965
|
-
/**
|
|
966
|
-
* Get the vertex count (backward-compat).
|
|
967
|
-
*/
|
|
968
|
-
readonly vertexCount: number;
|
|
969
|
-
/**
|
|
970
|
-
* Total vertex count across all layers.
|
|
971
|
-
*/
|
|
972
|
-
readonly totalVertices: number;
|
|
973
|
-
/**
|
|
974
|
-
* Get the triangle count (backward-compat).
|
|
975
|
-
*/
|
|
976
|
-
readonly triangleCount: number;
|
|
977
|
-
/**
|
|
978
|
-
* Total triangle count across all layers.
|
|
979
|
-
*/
|
|
980
|
-
readonly totalTriangles: number;
|
|
981
|
-
/**
|
|
982
|
-
* Whether the mesh has transparent geometry.
|
|
983
|
-
*/
|
|
984
|
-
readonly hasTransparency: boolean;
|
|
985
|
-
/**
|
|
986
|
-
* Get the bounding box as [minX, minY, minZ, maxX, maxY, maxZ].
|
|
987
|
-
*/
|
|
988
|
-
readonly bounds: Array<any>;
|
|
989
|
-
/**
|
|
990
|
-
* Get the GLB binary data (backward-compat getter).
|
|
991
|
-
*/
|
|
992
|
-
readonly glbData: Uint8Array;
|
|
993
|
-
/**
|
|
994
|
-
* Whether all layers are empty.
|
|
995
|
-
*/
|
|
996
|
-
readonly isEmpty: boolean;
|
|
997
|
-
/**
|
|
998
|
-
* LOD level (0 = full detail).
|
|
999
|
-
*/
|
|
1000
|
-
readonly lodLevel: number;
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
export class MultiMeshResultWrapper {
|
|
1004
|
-
private constructor();
|
|
1005
|
-
free(): void;
|
|
1006
|
-
[Symbol.dispose](): void;
|
|
1007
|
-
/**
|
|
1008
|
-
* Get the region names.
|
|
1009
|
-
*/
|
|
1010
|
-
getRegionNames(): Array<any>;
|
|
1011
|
-
/**
|
|
1012
|
-
* Get the mesh for a specific region.
|
|
1013
|
-
*/
|
|
1014
|
-
getMesh(region_name: string): MeshOutputWrapper | undefined;
|
|
1015
|
-
/**
|
|
1016
|
-
* Get the number of meshes.
|
|
1017
|
-
*/
|
|
1018
|
-
readonly meshCount: number;
|
|
1019
|
-
/**
|
|
1020
|
-
* Get the total vertex count across all regions.
|
|
1021
|
-
*/
|
|
1022
|
-
readonly totalVertexCount: number;
|
|
1023
|
-
/**
|
|
1024
|
-
* Get the total triangle count across all regions.
|
|
1025
|
-
*/
|
|
1026
|
-
readonly totalTriangleCount: number;
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
export class OutputConditionWrapper {
|
|
1030
|
-
private constructor();
|
|
1031
|
-
free(): void;
|
|
1032
|
-
[Symbol.dispose](): void;
|
|
1033
|
-
/**
|
|
1034
|
-
* Output not equals a value
|
|
1035
|
-
*/
|
|
1036
|
-
static notEquals(value: ValueWrapper): OutputConditionWrapper;
|
|
1037
|
-
/**
|
|
1038
|
-
* Bitwise AND with mask
|
|
1039
|
-
*/
|
|
1040
|
-
static bitwiseAnd(mask: number): OutputConditionWrapper;
|
|
1041
|
-
/**
|
|
1042
|
-
* Output greater than a value
|
|
1043
|
-
*/
|
|
1044
|
-
static greaterThan(value: ValueWrapper): OutputConditionWrapper;
|
|
1045
|
-
/**
|
|
1046
|
-
* Output equals a value
|
|
1047
|
-
*/
|
|
1048
|
-
static equals(value: ValueWrapper): OutputConditionWrapper;
|
|
1049
|
-
/**
|
|
1050
|
-
* Output less than a value
|
|
1051
|
-
*/
|
|
1052
|
-
static lessThan(value: ValueWrapper): OutputConditionWrapper;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
export class PaletteManager {
|
|
1056
|
-
private constructor();
|
|
1057
|
-
free(): void;
|
|
1058
|
-
[Symbol.dispose](): void;
|
|
1059
|
-
/**
|
|
1060
|
-
* Get all wool blocks
|
|
1061
|
-
*/
|
|
1062
|
-
static getWoolBlocks(): string[];
|
|
1063
|
-
/**
|
|
1064
|
-
* Get all concrete blocks
|
|
1065
|
-
*/
|
|
1066
|
-
static getConcreteBlocks(): string[];
|
|
1067
|
-
/**
|
|
1068
|
-
* Get all terracotta blocks
|
|
1069
|
-
*/
|
|
1070
|
-
static getTerracottaBlocks(): string[];
|
|
1071
|
-
/**
|
|
1072
|
-
* Get a palette containing blocks matching ANY of the provided keywords
|
|
1073
|
-
* Example: `["wool", "obsidian"]` gets all wool blocks AND obsidian
|
|
1074
|
-
*/
|
|
1075
|
-
static getPaletteByKeywords(keywords: string[]): string[];
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
export class RawMeshExportWrapper {
|
|
1079
|
-
private constructor();
|
|
1080
|
-
free(): void;
|
|
1081
|
-
[Symbol.dispose](): void;
|
|
1082
|
-
/**
|
|
1083
|
-
* Get vertex colors as a flat Float32Array.
|
|
1084
|
-
*/
|
|
1085
|
-
colorsFlat(): Float32Array;
|
|
1086
|
-
/**
|
|
1087
|
-
* Get vertex normals as a flat Float32Array.
|
|
1088
|
-
*/
|
|
1089
|
-
normalsFlat(): Float32Array;
|
|
1090
|
-
/**
|
|
1091
|
-
* Get texture atlas RGBA pixel data.
|
|
1092
|
-
*/
|
|
1093
|
-
textureRgba(): Uint8Array;
|
|
1094
|
-
/**
|
|
1095
|
-
* Get vertex positions as a flat Float32Array.
|
|
1096
|
-
*/
|
|
1097
|
-
positionsFlat(): Float32Array;
|
|
1098
|
-
/**
|
|
1099
|
-
* Get triangle indices.
|
|
1100
|
-
*/
|
|
1101
|
-
indices(): Uint32Array;
|
|
1102
|
-
/**
|
|
1103
|
-
* Get texture coordinates as a flat Float32Array.
|
|
1104
|
-
*/
|
|
1105
|
-
uvsFlat(): Float32Array;
|
|
1106
|
-
/**
|
|
1107
|
-
* Get the vertex count.
|
|
1108
|
-
*/
|
|
1109
|
-
readonly vertexCount: number;
|
|
1110
|
-
/**
|
|
1111
|
-
* Get texture atlas width.
|
|
1112
|
-
*/
|
|
1113
|
-
readonly textureWidth: number;
|
|
1114
|
-
/**
|
|
1115
|
-
* Get texture atlas height.
|
|
1116
|
-
*/
|
|
1117
|
-
readonly textureHeight: number;
|
|
1118
|
-
/**
|
|
1119
|
-
* Get the triangle count.
|
|
1120
|
-
*/
|
|
1121
|
-
readonly triangleCount: number;
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
export class RedstoneGraphWrapper {
|
|
1125
|
-
private constructor();
|
|
1126
|
-
free(): void;
|
|
1127
|
-
[Symbol.dispose](): void;
|
|
1128
|
-
/**
|
|
1129
|
-
* Compute the structural/functional/exact fingerprint as a hex string.
|
|
1130
|
-
*
|
|
1131
|
-
* `preset` defaults to `"structural"`; throws for an unknown preset.
|
|
1132
|
-
*/
|
|
1133
|
-
fingerprint(preset?: string | null): string;
|
|
1134
|
-
/**
|
|
1135
|
-
* The computed graph features serialized as a JSON string.
|
|
1136
|
-
*/
|
|
1137
|
-
featuresJson(): string;
|
|
1138
|
-
/**
|
|
1139
|
-
* Serialize the graph to JSON.
|
|
1140
|
-
*/
|
|
1141
|
-
toJson(): string;
|
|
1142
|
-
/**
|
|
1143
|
-
* Computed graph features as a plain object.
|
|
1144
|
-
*/
|
|
1145
|
-
features(): any;
|
|
1146
|
-
/**
|
|
1147
|
-
* Deserialize a graph from JSON.
|
|
1148
|
-
*/
|
|
1149
|
-
static fromJson(s: string): RedstoneGraphWrapper;
|
|
1150
|
-
/**
|
|
1151
|
-
* Total number of directed edges in the graph.
|
|
1152
|
-
*/
|
|
1153
|
-
readonly edgeCount: number;
|
|
1154
|
-
/**
|
|
1155
|
-
* Number of nodes in the graph.
|
|
1156
|
-
*/
|
|
1157
|
-
readonly nodeCount: number;
|
|
1158
|
-
/**
|
|
1159
|
-
* The directed edges as an array of `{source, target, kind, strength}`.
|
|
1160
|
-
*/
|
|
1161
|
-
readonly edges: any;
|
|
1162
|
-
/**
|
|
1163
|
-
* The nodes as an array of plain objects (kind-specific fields inlined).
|
|
1164
|
-
*/
|
|
1165
|
-
readonly nodes: any;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
export class ResourcePackWrapper {
|
|
1169
|
-
free(): void;
|
|
1170
|
-
[Symbol.dispose](): void;
|
|
1171
|
-
/**
|
|
1172
|
-
* Add a texture from raw RGBA8 pixel data.
|
|
1173
|
-
*/
|
|
1174
|
-
addTexture(name: string, width: number, height: number, pixels: Uint8Array): void;
|
|
1175
|
-
/**
|
|
1176
|
-
* List all model names.
|
|
1177
|
-
*/
|
|
1178
|
-
listModels(): Array<any>;
|
|
1179
|
-
/**
|
|
1180
|
-
* List all texture names.
|
|
1181
|
-
*/
|
|
1182
|
-
listTextures(): Array<any>;
|
|
1183
|
-
/**
|
|
1184
|
-
* Add a block model from a JSON string.
|
|
1185
|
-
*/
|
|
1186
|
-
addModelJson(name: string, json: string): void;
|
|
1187
|
-
/**
|
|
1188
|
-
* Get a block model as a JSON string. Returns null if not found.
|
|
1189
|
-
*/
|
|
1190
|
-
getModelJson(name: string): string | undefined;
|
|
1191
|
-
/**
|
|
1192
|
-
* Load and merge multiple resource packs from byte buffers, lowest
|
|
1193
|
-
* priority first. `datas` must be `Array<Uint8Array>`. Later buffers
|
|
1194
|
-
* overlay earlier ones on per-key collision (matches Minecraft's own
|
|
1195
|
-
* pack-ordering semantics).
|
|
1196
|
-
*/
|
|
1197
|
-
static fromBytesList(datas: Array<any>): ResourcePackWrapper;
|
|
1198
|
-
/**
|
|
1199
|
-
* Get texture info as a JS object with width, height, isAnimated, frameCount.
|
|
1200
|
-
* Returns null if not found.
|
|
1201
|
-
*/
|
|
1202
|
-
getTextureInfo(name: string): any;
|
|
1203
|
-
/**
|
|
1204
|
-
* List all blockstate names.
|
|
1205
|
-
*/
|
|
1206
|
-
listBlockstates(): Array<any>;
|
|
1207
|
-
/**
|
|
1208
|
-
* Get raw RGBA8 pixel data for a texture. Returns null if not found.
|
|
1209
|
-
*/
|
|
1210
|
-
getTexturePixels(name: string): Uint8Array | undefined;
|
|
1211
|
-
/**
|
|
1212
|
-
* Add a blockstate definition from a JSON string.
|
|
1213
|
-
*/
|
|
1214
|
-
addBlockstateJson(name: string, json: string): void;
|
|
1215
|
-
/**
|
|
1216
|
-
* Get a blockstate definition as a JSON string. Returns null if not found.
|
|
1217
|
-
*/
|
|
1218
|
-
getBlockstateJson(name: string): string | undefined;
|
|
1219
|
-
/**
|
|
1220
|
-
* Load a resource pack from bytes (ZIP file contents).
|
|
1221
|
-
*/
|
|
1222
|
-
constructor(data: Uint8Array);
|
|
1223
|
-
/**
|
|
1224
|
-
* Get statistics about the resource pack as a JS object.
|
|
1225
|
-
*/
|
|
1226
|
-
getStats(): object;
|
|
1227
|
-
/**
|
|
1228
|
-
* Get the namespaces in the resource pack.
|
|
1229
|
-
*/
|
|
1230
|
-
readonly namespaces: Array<any>;
|
|
1231
|
-
/**
|
|
1232
|
-
* Get the number of models in the resource pack.
|
|
1233
|
-
*/
|
|
1234
|
-
readonly modelCount: number;
|
|
1235
|
-
/**
|
|
1236
|
-
* Get the number of textures in the resource pack.
|
|
1237
|
-
*/
|
|
1238
|
-
readonly textureCount: number;
|
|
1239
|
-
/**
|
|
1240
|
-
* Get the number of blockstates in the resource pack.
|
|
1241
|
-
*/
|
|
1242
|
-
readonly blockstateCount: number;
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
export class SchematicBuilderWrapper {
|
|
1246
|
-
free(): void;
|
|
1247
|
-
[Symbol.dispose](): void;
|
|
1248
|
-
/**
|
|
1249
|
-
* Serialize the builder back into the canonical template format.
|
|
1250
|
-
*/
|
|
1251
|
-
toTemplate(): string;
|
|
1252
|
-
/**
|
|
1253
|
-
* Create from template string
|
|
1254
|
-
*/
|
|
1255
|
-
static fromTemplate(template: string): SchematicBuilderWrapper;
|
|
1256
|
-
/**
|
|
1257
|
-
* Apply the compact palette (single-glyph redstone shapes).
|
|
1258
|
-
*/
|
|
1259
|
-
useCompactPalette(): SchematicBuilderWrapper;
|
|
1260
|
-
/**
|
|
1261
|
-
* Apply the minimal palette (`c` and space only).
|
|
1262
|
-
*/
|
|
1263
|
-
useMinimalPalette(): SchematicBuilderWrapper;
|
|
1264
|
-
/**
|
|
1265
|
-
* Apply the standard palette (gray concrete, air, plus the
|
|
1266
|
-
* named-direction characters used in the canonical examples).
|
|
1267
|
-
*/
|
|
1268
|
-
useStandardPalette(): SchematicBuilderWrapper;
|
|
1269
|
-
/**
|
|
1270
|
-
* Map a character to a block string
|
|
1271
|
-
*/
|
|
1272
|
-
map(ch: string, block: string): SchematicBuilderWrapper;
|
|
1273
|
-
/**
|
|
1274
|
-
* Create a new schematic builder with standard palette
|
|
1275
|
-
*/
|
|
1276
|
-
constructor();
|
|
1277
|
-
/**
|
|
1278
|
-
* Set the name of the schematic
|
|
1279
|
-
*/
|
|
1280
|
-
name(name: string): SchematicBuilderWrapper;
|
|
1281
|
-
/**
|
|
1282
|
-
* Build the schematic
|
|
1283
|
-
*/
|
|
1284
|
-
build(): SchematicWrapper;
|
|
1285
|
-
/**
|
|
1286
|
-
* Append a single layer (`string[]` of rows). Equivalent to
|
|
1287
|
-
* `layers([rows])` but doesn't require nesting for a single layer.
|
|
1288
|
-
*/
|
|
1289
|
-
layer(rows: any): SchematicBuilderWrapper;
|
|
1290
|
-
/**
|
|
1291
|
-
* Add multiple layers (array of arrays of strings)
|
|
1292
|
-
*/
|
|
1293
|
-
layers(layers: any): SchematicBuilderWrapper;
|
|
1294
|
-
/**
|
|
1295
|
-
* Set the world offset of the resulting schematic.
|
|
1296
|
-
*/
|
|
1297
|
-
offset(x: number, y: number, z: number): SchematicBuilderWrapper;
|
|
1298
|
-
/**
|
|
1299
|
-
* Bulk version of `map`. Pass either an `Object` literal
|
|
1300
|
-
* (`{ c: "minecraft:stone", " ": "minecraft:air" }`) or an array
|
|
1301
|
-
* of `[char, block]` pairs.
|
|
1302
|
-
*/
|
|
1303
|
-
palette(mappings: any): SchematicBuilderWrapper;
|
|
1304
|
-
/**
|
|
1305
|
-
* Run pre-build validation. Throws if the layered template is
|
|
1306
|
-
* malformed (missing palette mapping, ragged rows, etc.).
|
|
1307
|
-
*/
|
|
1308
|
-
validate(): void;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
export class SchematicWrapper {
|
|
1312
|
-
free(): void;
|
|
1313
|
-
[Symbol.dispose](): void;
|
|
1314
|
-
/**
|
|
1315
|
-
* Creates a simulation world for this schematic with default options
|
|
1316
|
-
*
|
|
1317
|
-
* This allows you to simulate redstone circuits and interact with them.
|
|
1318
|
-
*/
|
|
1319
|
-
create_simulation_world(): MchprsWorldWrapper;
|
|
1320
|
-
/**
|
|
1321
|
-
* Creates a simulation world for this schematic with custom options
|
|
1322
|
-
*
|
|
1323
|
-
* This allows you to configure simulation behavior like wire state tracking.
|
|
1324
|
-
*/
|
|
1325
|
-
create_simulation_world_with_options(options: SimulationOptionsWrapper): MchprsWorldWrapper;
|
|
1326
|
-
/**
|
|
1327
|
-
* Compute the content fingerprint as a hex string.
|
|
1328
|
-
*
|
|
1329
|
-
* `preset` defaults to `"exact"`. Unknown preset → Err.
|
|
1330
|
-
*/
|
|
1331
|
-
fingerprint(preset?: string | null): string;
|
|
1332
|
-
/**
|
|
1333
|
-
* Whether this schematic is a duplicate of `other` under `preset`.
|
|
1334
|
-
*
|
|
1335
|
-
* `preset` defaults to `"exact"`. Unknown preset → Err.
|
|
1336
|
-
*/
|
|
1337
|
-
isDuplicateOf(other: SchematicWrapper, preset?: string | null): boolean;
|
|
1338
|
-
/**
|
|
1339
|
-
* Footprint distance between this schematic and `other` (0.0 = identical).
|
|
1340
|
-
*
|
|
1341
|
-
* `preset` defaults to `"exact"`. Unknown preset → Err.
|
|
1342
|
-
*/
|
|
1343
|
-
footprintDistance(other: SchematicWrapper, preset?: string | null): number;
|
|
1344
|
-
/**
|
|
1345
|
-
* The translation/scale-invariant FFT shape footprint as a fixed-length
|
|
1346
|
-
* vector (the raw feature for clustering / nearest-neighbour search).
|
|
1347
|
-
*
|
|
1348
|
-
* `preset` defaults to `"exact"`. Unknown preset → Err.
|
|
1349
|
-
*/
|
|
1350
|
-
footprint(preset?: string | null): Float32Array;
|
|
1351
|
-
/**
|
|
1352
|
-
* Compute the structural signature as a JSON string.
|
|
1353
|
-
*
|
|
1354
|
-
* `preset` defaults to `"exact"`. Unknown preset → Err.
|
|
1355
|
-
*/
|
|
1356
|
-
signature(preset?: string | null): string;
|
|
1357
|
-
/**
|
|
1358
|
-
* Structurally diff this schematic against `other`.
|
|
1359
|
-
*
|
|
1360
|
-
* `preset` defaults to `"exact"`. `options` is an optional object
|
|
1361
|
-
* `{cost_add?, cost_delete?, cost_change?, cost_swap?, swap_dominance_pct?,
|
|
1362
|
-
* symmetry?}`. Returns a [`DiffWrapper`]. Unknown preset/symmetry → Err.
|
|
1363
|
-
*/
|
|
1364
|
-
diff(other: SchematicWrapper, preset: string | null | undefined, options: any): DiffWrapper;
|
|
1365
|
-
/**
|
|
1366
|
-
* Add a mobile entity to the schematic.
|
|
1367
|
-
*/
|
|
1368
|
-
add_entity(id: string, x: number, y: number, z: number, nbt_json?: string | null): void;
|
|
1369
|
-
debug_info(): string;
|
|
1370
|
-
getAuthor(): string | undefined;
|
|
1371
|
-
/**
|
|
1372
|
-
* Batch get block names at multiple positions.
|
|
1373
|
-
* `positions` is a flat Int32Array of [x0,y0,z0, x1,y1,z1, ...].
|
|
1374
|
-
* Returns a JS Array of block name strings (null for empty/out-of-bounds).
|
|
1375
|
-
*/
|
|
1376
|
-
get_blocks(positions: Int32Array): Array<any>;
|
|
1377
|
-
get_volume(): number;
|
|
1378
|
-
setAuthor(author: string): void;
|
|
1379
|
-
/**
|
|
1380
|
-
* Batch set blocks at multiple positions to the same block name.
|
|
1381
|
-
* `positions` is a flat Int32Array of [x0,y0,z0, x1,y1,z1, ...].
|
|
1382
|
-
* Returns the number of blocks set.
|
|
1383
|
-
*/
|
|
1384
|
-
set_blocks(positions: Int32Array, block_name: string): number;
|
|
1385
|
-
copy_region(from_schematic: SchematicWrapper, min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number, target_x: number, target_y: number, target_z: number, excluded_blocks: any): void;
|
|
1386
|
-
fillCuboid(min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number, block_state: string): void;
|
|
1387
|
-
fillSphere(cx: number, cy: number, cz: number, radius: number, block_state: string): void;
|
|
1388
|
-
getCreated(): number | undefined;
|
|
1389
|
-
get_palette(): any;
|
|
1390
|
-
setCreated(created: number): void;
|
|
1391
|
-
/**
|
|
1392
|
-
* Fast binary snapshot serialization — bypasses format manager for maximum speed.
|
|
1393
|
-
*/
|
|
1394
|
-
toSnapshot(): Uint8Array;
|
|
1395
|
-
/**
|
|
1396
|
-
* Get the number of mobile entities (not block entities).
|
|
1397
|
-
*/
|
|
1398
|
-
entity_count(): number;
|
|
1399
|
-
/**
|
|
1400
|
-
* Get all mobile entities as a JS array of objects.
|
|
1401
|
-
*/
|
|
1402
|
-
get_entities(): any;
|
|
1403
|
-
getModified(): number | undefined;
|
|
1404
|
-
setModified(modified: number): void;
|
|
1405
|
-
to_litematic(): Uint8Array;
|
|
1406
|
-
to_schematic(): Uint8Array;
|
|
1407
|
-
to_world_zip(options_json?: string | null): Uint8Array;
|
|
1408
|
-
createRegion(name: string, min: any, max: any): DefinitionRegionWrapper;
|
|
1409
|
-
/**
|
|
1410
|
-
* Extract all sign text from the schematic
|
|
1411
|
-
* Returns a JavaScript array of objects: [{pos: [x,y,z], text: "..."}]
|
|
1412
|
-
*/
|
|
1413
|
-
extractSigns(): any;
|
|
1414
|
-
/**
|
|
1415
|
-
* Flip a specific region along the X axis
|
|
1416
|
-
*/
|
|
1417
|
-
flip_region_x(region_name: string): void;
|
|
1418
|
-
/**
|
|
1419
|
-
* Flip a specific region along the Y axis
|
|
1420
|
-
*/
|
|
1421
|
-
flip_region_y(region_name: string): void;
|
|
1422
|
-
/**
|
|
1423
|
-
* Flip a specific region along the Z axis
|
|
1424
|
-
*/
|
|
1425
|
-
flip_region_z(region_name: string): void;
|
|
1426
|
-
/**
|
|
1427
|
-
* Fast binary snapshot deserialization — bypasses format manager for maximum speed.
|
|
1428
|
-
*/
|
|
1429
|
-
fromSnapshot(data: Uint8Array): void;
|
|
1430
|
-
/**
|
|
1431
|
-
* Pre-resolve a plain block id to a palette index. Pair with
|
|
1432
|
-
* `place(x, y, z, idx)` for the absolute fastest per-block placement
|
|
1433
|
-
* in tight loops with multiple unique ids.
|
|
1434
|
-
*/
|
|
1435
|
-
prepareBlock(block_name: string): number;
|
|
1436
|
-
/**
|
|
1437
|
-
* Remove a mobile entity by index. Returns true if removed.
|
|
1438
|
-
*/
|
|
1439
|
-
remove_entity(index: number): boolean;
|
|
1440
|
-
/**
|
|
1441
|
-
* Save this schematic into a [`StoreWrapper`] at `key`. The export format is
|
|
1442
|
-
* inferred from the `key`'s extension (e.g. `.litematic`, `.schem`). Works
|
|
1443
|
-
* with `mem://` stores and the `Store.fromCallbacks(...)` JS-callback store.
|
|
1444
|
-
*/
|
|
1445
|
-
saveToStore(store: StoreWrapper, key: string): void;
|
|
1446
|
-
updateRegion(name: string, region: DefinitionRegionWrapper): void;
|
|
1447
|
-
/**
|
|
1448
|
-
* All blocks as palette indices - for when you need everything at once but efficiently
|
|
1449
|
-
* Returns array of [x, y, z, palette_index]
|
|
1450
|
-
*/
|
|
1451
|
-
blocks_indices(): Array<any>;
|
|
1452
|
-
buildExecutor(config: any): TypedCircuitExecutorWrapper;
|
|
1453
|
-
/**
|
|
1454
|
-
* Optimized chunks iterator that returns palette indices instead of full block data
|
|
1455
|
-
* Returns array of: { chunk_x, chunk_y, chunk_z, blocks: [[x,y,z,palette_index],...] }
|
|
1456
|
-
*/
|
|
1457
|
-
chunks_indices(chunk_width: number, chunk_height: number, chunk_length: number): Array<any>;
|
|
1458
|
-
/**
|
|
1459
|
-
* Compile Insign annotations from the schematic's signs
|
|
1460
|
-
* Returns a JavaScript object with compiled region metadata
|
|
1461
|
-
* This returns raw Insign data - interpretation is up to the consumer
|
|
1462
|
-
*/
|
|
1463
|
-
compileInsign(): any;
|
|
1464
|
-
createCircuit(inputs: any, outputs: any): TypedCircuitExecutorWrapper;
|
|
1465
|
-
from_litematic(data: Uint8Array): void;
|
|
1466
|
-
from_schematic(data: Uint8Array): void;
|
|
1467
|
-
from_world_zip(data: Uint8Array): void;
|
|
1468
|
-
/**
|
|
1469
|
-
* Get optimized chunk data including blocks and relevant tile entities
|
|
1470
|
-
* Returns { blocks: [[x,y,z,palette_index],...], entities: [{id, position, nbt},...] }
|
|
1471
|
-
*/
|
|
1472
|
-
getChunkData(chunk_x: number, chunk_y: number, chunk_z: number, chunk_width: number, chunk_height: number, chunk_length: number): any;
|
|
1473
|
-
get_dimensions(): Int32Array;
|
|
1474
|
-
getLmVersion(): number | undefined;
|
|
1475
|
-
getMcVersion(): number | undefined;
|
|
1476
|
-
getWeVersion(): number | undefined;
|
|
1477
|
-
setLmVersion(version: number): void;
|
|
1478
|
-
setMcVersion(version: number): void;
|
|
1479
|
-
setWeVersion(version: number): void;
|
|
1480
|
-
to_mcstructure(): Uint8Array;
|
|
1481
|
-
get_block_count(): number;
|
|
1482
|
-
getDescription(): string | undefined;
|
|
1483
|
-
/**
|
|
1484
|
-
* Open a schematic directly from a [`StoreWrapper`] at `key`. The format is
|
|
1485
|
-
* inferred from the stored bytes. This is the meaningful way to load from
|
|
1486
|
-
* host/remote storage on the web: it works with `mem://` stores and with
|
|
1487
|
-
* the JS-callback store created via `Store.fromCallbacks(...)`.
|
|
1488
|
-
*/
|
|
1489
|
-
static openFromStore(store: StoreWrapper, key: string): SchematicWrapper;
|
|
1490
|
-
print_schematic(): string;
|
|
1491
|
-
/**
|
|
1492
|
-
* Rotate a specific region around the X axis
|
|
1493
|
-
*/
|
|
1494
|
-
rotate_region_x(region_name: string, degrees: number): void;
|
|
1495
|
-
/**
|
|
1496
|
-
* Rotate a specific region around the Y axis
|
|
1497
|
-
*/
|
|
1498
|
-
rotate_region_y(region_name: string, degrees: number): void;
|
|
1499
|
-
/**
|
|
1500
|
-
* Rotate a specific region around the Z axis
|
|
1501
|
-
*/
|
|
1502
|
-
rotate_region_z(region_name: string, degrees: number): void;
|
|
1503
|
-
setDescription(description: string): void;
|
|
1504
|
-
from_mca_bounded(data: Uint8Array, min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number): void;
|
|
1505
|
-
from_mcstructure(data: Uint8Array): void;
|
|
1506
|
-
/**
|
|
1507
|
-
* Same as `fromSdf` with explicit inclusive sampling bounds.
|
|
1508
|
-
*/
|
|
1509
|
-
fromSdfBounded(sdf_json: string, rules_json: string, min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number): void;
|
|
1510
|
-
/**
|
|
1511
|
-
* Get all palettes once - eliminates repeated string transfers
|
|
1512
|
-
* Returns: { default: [BlockState], regions: { regionName: [BlockState] } }
|
|
1513
|
-
*/
|
|
1514
|
-
get_all_palettes(): any;
|
|
1515
|
-
/**
|
|
1516
|
-
* Get the structured block entity at a position as `{id, position, nbt}`,
|
|
1517
|
-
* or NULL if there is none. Returns *every* block-entity type (chests,
|
|
1518
|
-
* signs, furnaces, banners, spawners, …) — not just chests — so the editor
|
|
1519
|
-
* can read all the NBT nucleation preserves. (For a precision-faithful
|
|
1520
|
-
* representation of `Long`/`LongArray` fields, see `getBlockEntitySnbt`.)
|
|
1521
|
-
*/
|
|
1522
|
-
get_block_entity(x: number, y: number, z: number): any;
|
|
1523
|
-
/**
|
|
1524
|
-
* Get block as formatted string with properties (e.g., "minecraft:lever[powered=true,facing=north]")
|
|
1525
|
-
*/
|
|
1526
|
-
get_block_string(x: number, y: number, z: number): string | undefined;
|
|
1527
|
-
get_bounding_box(): any;
|
|
1528
|
-
get_chunk_blocks(offset_x: number, offset_y: number, offset_z: number, width: number, height: number, length: number): Array<any>;
|
|
1529
|
-
get_region_names(): string[];
|
|
1530
|
-
/**
|
|
1531
|
-
* Set (or replace) a block entity at a position from an SNBT string. This is
|
|
1532
|
-
* the faithful, fully-typed write path the editor uses to persist
|
|
1533
|
-
* container contents, sign text, banner patterns, item components, etc.
|
|
1534
|
-
* SNBT preserves every NBT tag type with no precision loss.
|
|
1535
|
-
*/
|
|
1536
|
-
setBlockEntity(x: number, y: number, z: number, id: string, snbt: string): void;
|
|
1537
|
-
/**
|
|
1538
|
-
* Detect repeating structures (by region coverage). Returns an array of
|
|
1539
|
-
* objects: `{ mode, vectors, coverage, region_min, region_max, cell_min,
|
|
1540
|
-
* cell_max, label }`.
|
|
1541
|
-
*/
|
|
1542
|
-
detectStructures(): any;
|
|
1543
|
-
/**
|
|
1544
|
-
* Faithful, precision-safe read of every mobile entity as an SNBT string
|
|
1545
|
-
* (the full entity compound incl. `id`/`Pos`, typed). Mirrors
|
|
1546
|
-
* `getBlockEntitySnbt` so the editor can carry entity NBT verbatim.
|
|
1547
|
-
*/
|
|
1548
|
-
getEntitiesSnbt(): Array<any>;
|
|
1549
|
-
/**
|
|
1550
|
-
* Convert to `target_data_version` using the schematic's *captured* source
|
|
1551
|
-
* version (`source_data_version`, else `mc_version`, else canonical) as the
|
|
1552
|
-
* origin, updating the metadata version to the target. Returns the JSON loss
|
|
1553
|
-
* report (empty `[]` when lossless). This is the ergonomic save/load entry:
|
|
1554
|
-
* `convertToVersion(CANONICAL)` on load, `convertToVersion(target)` before
|
|
1555
|
-
* exporting for an older version.
|
|
1556
|
-
*/
|
|
1557
|
-
convertToVersion(target_data_version: number): string;
|
|
1558
|
-
setBlockWithNbt(x: number, y: number, z: number, block_name: string, nbt_data: any): void;
|
|
1559
|
-
/**
|
|
1560
|
-
* Resize a 1D / diagonal periodic structure along its period vector,
|
|
1561
|
-
* producing `units` repeating cells.
|
|
1562
|
-
*/
|
|
1563
|
-
autostackResize1d(vx: number, vy: number, vz: number, units: number): SchematicWrapper;
|
|
1564
|
-
/**
|
|
1565
|
-
* Resize a 2D periodic structure to `n1`×`n2` cells along the two vectors.
|
|
1566
|
-
*/
|
|
1567
|
-
autostackResize2d(v1x: number, v1y: number, v1z: number, v2x: number, v2y: number, v2z: number, n1: number, n2: number): SchematicWrapper;
|
|
1568
|
-
static get_format_versions(format: string): Array<any>;
|
|
1569
|
-
/**
|
|
1570
|
-
* Remove the block entity at a position. Returns true if one was removed.
|
|
1571
|
-
*/
|
|
1572
|
-
removeBlockEntity(x: number, y: number, z: number): boolean;
|
|
1573
|
-
set_block_in_region(region_name: string, x: number, y: number, z: number, block_name: string): boolean;
|
|
1574
|
-
/**
|
|
1575
|
-
* Add a mobile entity from a full SNBT entity compound (must contain `id`
|
|
1576
|
-
* and `Pos`). The faithful, fully-typed entity write path — mirrors
|
|
1577
|
-
* `setBlockEntity` for block entities.
|
|
1578
|
-
*/
|
|
1579
|
-
addEntityFromSnbt(snbt: string): void;
|
|
1580
|
-
chunks_with_strategy(chunk_width: number, chunk_height: number, chunk_length: number, strategy: string, camera_x: number, camera_y: number, camera_z: number): Array<any>;
|
|
1581
|
-
/**
|
|
1582
|
-
* Get the tight bounding box max coordinates [x, y, z]
|
|
1583
|
-
* Returns null if no non-air blocks have been placed
|
|
1584
|
-
*/
|
|
1585
|
-
get_tight_bounds_max(): Int32Array | undefined;
|
|
1586
|
-
/**
|
|
1587
|
-
* Get the tight bounding box min coordinates [x, y, z]
|
|
1588
|
-
* Returns null if no non-air blocks have been placed
|
|
1589
|
-
*/
|
|
1590
|
-
get_tight_bounds_min(): Int32Array | undefined;
|
|
1591
|
-
/**
|
|
1592
|
-
* Get the tight dimensions of actual block content (excluding pre-allocated space)
|
|
1593
|
-
* Returns [width, height, length] or [0, 0, 0] if no non-air blocks exist
|
|
1594
|
-
*/
|
|
1595
|
-
get_tight_dimensions(): Int32Array;
|
|
1596
|
-
to_schematic_version(version: string): Uint8Array;
|
|
1597
|
-
addDefinitionRegion(name: string, region: DefinitionRegionWrapper): void;
|
|
1598
|
-
/**
|
|
1599
|
-
* Faithful, precision-safe block-entity read: the block entity's NBT as an
|
|
1600
|
-
* SNBT string (typed — `123L`, `1b`, etc.), or NULL if none. Unlike the
|
|
1601
|
-
* structured `nbt` object (which collapses `Long` to a JS double), SNBT
|
|
1602
|
-
* round-trips losslessly through `setBlockEntity`, so the editor can carry
|
|
1603
|
-
* untouched block entities verbatim.
|
|
1604
|
-
*/
|
|
1605
|
-
getBlockEntitySnbt(x: number, y: number, z: number): any;
|
|
1606
|
-
getDefinitionRegion(name: string): DefinitionRegionWrapper;
|
|
1607
|
-
/**
|
|
1608
|
-
* Get optimization stats
|
|
1609
|
-
*/
|
|
1610
|
-
get_optimization_info(): any;
|
|
1611
|
-
set_block_from_string(x: number, y: number, z: number, block_string: string): void;
|
|
1612
|
-
/**
|
|
1613
|
-
* The canonical in-memory data version (the forward-conversion target).
|
|
1614
|
-
*/
|
|
1615
|
-
static canonicalDataVersion(): number;
|
|
1616
|
-
createCircuitBuilder(): CircuitBuilderWrapper;
|
|
1617
|
-
from_world_zip_bounded(data: Uint8Array, min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number): void;
|
|
1618
|
-
get_all_block_entities(): any;
|
|
1619
|
-
/**
|
|
1620
|
-
* Convert this schematic's block states / block entities / items between
|
|
1621
|
-
* Minecraft data versions, in place, returning a JSON array describing any
|
|
1622
|
-
* data loss (empty `[]` when lossless).
|
|
1623
|
-
*
|
|
1624
|
-
* Forward (target >= source) is faithful and lossless — the report is always
|
|
1625
|
-
* `[]`. Reverse (target < source, used to save for an older version) can be
|
|
1626
|
-
* lossy (the 1.13 Flattening, 1.20.5 components, item `Damage`, …); each
|
|
1627
|
-
* approximation/drop is reported as `{version, kind, severity, path, detail}`
|
|
1628
|
-
* so the tool can warn the user before saving. Conversion is never silent
|
|
1629
|
-
* about loss.
|
|
1630
|
-
*/
|
|
1631
|
-
convertToDataVersion(target_data_version: number, source_data_version: number): string;
|
|
1632
|
-
definitionRegionShift(name: string, x: number, y: number, z: number): void;
|
|
1633
|
-
/**
|
|
1634
|
-
* Graph-based detection: recovers **diagonal** lattice periods (e.g. a
|
|
1635
|
-
* diagonal carry-chain adder) that the pure-voxel `detectStructures` misses,
|
|
1636
|
-
* by extracting the redstone logic graph. Returns the same object shape.
|
|
1637
|
-
* Requires the `simulation` feature; returns `[]` for non-redstone builds.
|
|
1638
|
-
*/
|
|
1639
|
-
detectStructuresGraph(): any;
|
|
1640
|
-
get_palette_from_region(region_name: string): any;
|
|
1641
|
-
get_region_bounding_box(region_name: string): any;
|
|
1642
|
-
/**
|
|
1643
|
-
* The Minecraft data version of the file this schematic was loaded from
|
|
1644
|
-
* (captured by importers), or `None` for versionless/freshly-built schematics.
|
|
1645
|
-
*/
|
|
1646
|
-
getSourceDataVersion(): number | undefined;
|
|
1647
|
-
/**
|
|
1648
|
-
* Override the source data version — for formats that carry no Java data
|
|
1649
|
-
* version (classic `.schematic` ≈ 1343, raw imports), so the caller can tell
|
|
1650
|
-
* the converter what to convert *from*.
|
|
1651
|
-
*/
|
|
1652
|
-
setSourceDataVersion(version: number): void;
|
|
1653
|
-
createDefinitionRegion(name: string): void;
|
|
1654
|
-
/**
|
|
1655
|
-
* Get the allocated dimensions (full buffer size including pre-allocated space)
|
|
1656
|
-
* Use this if you need to know the internal buffer size
|
|
1657
|
-
*/
|
|
1658
|
-
get_allocated_dimensions(): Int32Array;
|
|
1659
|
-
/**
|
|
1660
|
-
* Get specific chunk blocks as palette indices (for lazy loading individual chunks)
|
|
1661
|
-
* Returns array of [x, y, z, palette_index]
|
|
1662
|
-
*/
|
|
1663
|
-
get_chunk_blocks_indices(offset_x: number, offset_y: number, offset_z: number, width: number, height: number, length: number): Array<any>;
|
|
1664
|
-
removeDefinitionRegion(name: string): boolean;
|
|
1665
|
-
/**
|
|
1666
|
-
* Serialize a `.litematic` targeting a specific Minecraft data version: a COPY
|
|
1667
|
-
* of the schematic's content is converted to `target_data_version` and the
|
|
1668
|
-
* matching schematic Version header (4=1.12 / 5=1.13–1.17 / 6=1.18–1.20.4 /
|
|
1669
|
-
* 7=1.20.5+) is written. Returns `{ bytes: Uint8Array, loss: <json> }`; `loss`
|
|
1670
|
-
* is the data-loss report from any down-conversion (empty `{}` when lossless),
|
|
1671
|
-
* so the UI can warn the user. The schematic itself is left unchanged.
|
|
1672
|
-
*/
|
|
1673
|
-
toLitematicForVersion(target_data_version: number): any;
|
|
1674
|
-
get_block_with_properties(x: number, y: number, z: number): BlockStateWrapper | undefined;
|
|
1675
|
-
set_block_with_properties(x: number, y: number, z: number, block_name: string, properties: any): void;
|
|
1676
|
-
create_lazy_chunk_iterator(chunk_width: number, chunk_height: number, chunk_length: number, strategy: string, camera_x: number, camera_y: number, camera_z: number): LazyChunkIterator;
|
|
1677
|
-
static get_default_format_version(format: string): string | undefined;
|
|
1678
|
-
get_default_region_palette(): any;
|
|
1679
|
-
/**
|
|
1680
|
-
* Get the settings schema for an export format (returns JSON string or undefined).
|
|
1681
|
-
*/
|
|
1682
|
-
static get_export_settings_schema(format: string): string | undefined;
|
|
1683
|
-
/**
|
|
1684
|
-
* Get the settings schema for an import format (returns JSON string or undefined).
|
|
1685
|
-
*/
|
|
1686
|
-
static get_import_settings_schema(format: string): string | undefined;
|
|
1687
|
-
definitionRegionAddPoint(name: string, x: number, y: number, z: number): void;
|
|
1688
|
-
/**
|
|
1689
|
-
* Every block entity as `{id, position:[x,y,z], snbt}` — the batch,
|
|
1690
|
-
* precision-faithful read the editor bridge uses on load to attach each
|
|
1691
|
-
* block entity's full NBT (as a typed SNBT string) to its block. The `snbt`
|
|
1692
|
-
* is the block entity's inner data only (no `Id`/`Pos`); pair it with `id`
|
|
1693
|
-
* and the position when writing back via `setBlockEntity`.
|
|
1694
|
-
*/
|
|
1695
|
-
getAllBlockEntitiesSnbt(): Array<any>;
|
|
1696
|
-
getDefinitionRegionNames(): Array<any>;
|
|
1697
|
-
/**
|
|
1698
|
-
* Optimized chunks with strategy - returns palette indices
|
|
1699
|
-
*/
|
|
1700
|
-
chunks_indices_with_strategy(chunk_width: number, chunk_height: number, chunk_length: number, strategy: string, camera_x: number, camera_y: number, camera_z: number): Array<any>;
|
|
1701
|
-
definitionRegionAddBounds(name: string, min: BlockPosition, max: BlockPosition): void;
|
|
1702
|
-
static get_supported_export_formats(): Array<any>;
|
|
1703
|
-
static get_supported_import_formats(): Array<any>;
|
|
1704
|
-
definitionRegionSetMetadata(name: string, key: string, value: string): void;
|
|
1705
|
-
get_available_schematic_versions(): Array<any>;
|
|
1706
|
-
createDefinitionRegionFromPoint(name: string, x: number, y: number, z: number): void;
|
|
1707
|
-
createDefinitionRegionFromBounds(name: string, min: BlockPosition, max: BlockPosition): void;
|
|
1708
|
-
constructor();
|
|
1709
|
-
/**
|
|
1710
|
-
* Place a block by pre-resolved palette index. Caller must have called
|
|
1711
|
-
* `prepareBlock(name)` first to obtain `palette_index`.
|
|
1712
|
-
*/
|
|
1713
|
-
place(x: number, y: number, z: number, palette_index: number): void;
|
|
1714
|
-
blocks(): Array<any>;
|
|
1715
|
-
chunks(chunk_width: number, chunk_height: number, chunk_length: number): Array<any>;
|
|
1716
|
-
/**
|
|
1717
|
-
* Flip the schematic along the X axis
|
|
1718
|
-
*/
|
|
1719
|
-
flip_x(): void;
|
|
1720
|
-
/**
|
|
1721
|
-
* Flip the schematic along the Y axis
|
|
1722
|
-
*/
|
|
1723
|
-
flip_y(): void;
|
|
1724
|
-
/**
|
|
1725
|
-
* Flip the schematic along the Z axis
|
|
1726
|
-
*/
|
|
1727
|
-
flip_z(): void;
|
|
1728
|
-
save_as(format: string, version?: string | null, settings?: string | null): Uint8Array;
|
|
1729
|
-
from_mca(data: Uint8Array): void;
|
|
1730
|
-
/**
|
|
1731
|
-
* Replace this schematic by sampling an SDF JSON tree with material
|
|
1732
|
-
* rules JSON (auto bounds from the tree's AABB).
|
|
1733
|
-
*/
|
|
1734
|
-
fromSdf(sdf_json: string, rules_json: string): void;
|
|
1735
|
-
getName(): string | undefined;
|
|
1736
|
-
/**
|
|
1737
|
-
* Rotate the schematic around the X axis
|
|
1738
|
-
* Degrees must be 90, 180, or 270
|
|
1739
|
-
*/
|
|
1740
|
-
rotate_x(degrees: number): void;
|
|
1741
|
-
/**
|
|
1742
|
-
* Rotate the schematic around the Y axis (horizontal plane)
|
|
1743
|
-
* Degrees must be 90, 180, or 270
|
|
1744
|
-
*/
|
|
1745
|
-
rotate_y(degrees: number): void;
|
|
1746
|
-
/**
|
|
1747
|
-
* Rotate the schematic around the Z axis
|
|
1748
|
-
* Degrees must be 90, 180, or 270
|
|
1749
|
-
*/
|
|
1750
|
-
rotate_z(degrees: number): void;
|
|
1751
|
-
setName(name: string): void;
|
|
1752
|
-
to_world(options_json?: string | null): any;
|
|
1753
|
-
from_data(data: Uint8Array): void;
|
|
1754
|
-
get_block(x: number, y: number, z: number): string | undefined;
|
|
1755
|
-
set_block(x: number, y: number, z: number, block_name: string): void;
|
|
1756
|
-
/**
|
|
1757
|
-
* Generate raw mesh data for custom rendering pipelines.
|
|
1758
|
-
*/
|
|
1759
|
-
toRawMesh(pack: ResourcePackWrapper, config: MeshConfigWrapper): RawMeshExportWrapper;
|
|
1760
|
-
/**
|
|
1761
|
-
* Generate one mesh per 16x16x16 chunk (eager, all at once).
|
|
1762
|
-
*/
|
|
1763
|
-
meshByChunk(pack: ResourcePackWrapper, config: MeshConfigWrapper): ChunkMeshResultWrapper;
|
|
1764
|
-
/**
|
|
1765
|
-
* Generate a Minecraft item model using the plane-based approach.
|
|
1766
|
-
*/
|
|
1767
|
-
toItemModel(pack: ResourcePackWrapper, config: ItemModelConfigWrapper): ItemModelResultWrapper;
|
|
1768
|
-
/**
|
|
1769
|
-
* Generate one mesh per region.
|
|
1770
|
-
*/
|
|
1771
|
-
meshByRegion(pack: ResourcePackWrapper, config: MeshConfigWrapper): MultiMeshResultWrapper;
|
|
1772
|
-
/**
|
|
1773
|
-
* Build a single shared texture atlas from all unique block states.
|
|
1774
|
-
*
|
|
1775
|
-
* The atlas can be reused across all chunks via `chunkMeshIteratorWithAtlas()`,
|
|
1776
|
-
* eliminating per-chunk atlas duplication for massive schematics.
|
|
1777
|
-
*/
|
|
1778
|
-
buildGlobalAtlas(pack: ResourcePackWrapper, config: MeshConfigWrapper): TextureAtlasWrapper;
|
|
1779
|
-
/**
|
|
1780
|
-
* Generate one mesh per chunk of the specified size (eager).
|
|
1781
|
-
*/
|
|
1782
|
-
meshByChunkSize(pack: ResourcePackWrapper, config: MeshConfigWrapper, chunk_size: number): ChunkMeshResultWrapper;
|
|
1783
|
-
/**
|
|
1784
|
-
* Create a lazy chunk mesh iterator.
|
|
1785
|
-
*
|
|
1786
|
-
* Call `advance()` to step to the next chunk, then `current()` to get the
|
|
1787
|
-
* mesh. Never loads the full world mesh into memory.
|
|
1788
|
-
*/
|
|
1789
|
-
chunkMeshIterator(pack: ResourcePackWrapper, config: MeshConfigWrapper, chunk_size: number): ChunkMeshIteratorWrapper;
|
|
1790
|
-
/**
|
|
1791
|
-
* Register a mesh exporter with the FormatManager, enabling save_as("mesh", ...).
|
|
1792
|
-
*/
|
|
1793
|
-
registerMeshExporter(pack: ResourcePackWrapper): void;
|
|
1794
|
-
/**
|
|
1795
|
-
* Create a lazy chunk mesh iterator that uses a pre-built global atlas.
|
|
1796
|
-
*
|
|
1797
|
-
* The global atlas is shared across all chunks, eliminating per-chunk atlas
|
|
1798
|
-
* duplication. Build the atlas first with `buildGlobalAtlas()`.
|
|
1799
|
-
*/
|
|
1800
|
-
chunkMeshIteratorWithAtlas(pack: ResourcePackWrapper, config: MeshConfigWrapper, chunk_size: number, atlas: TextureAtlasWrapper): ChunkMeshIteratorWrapper;
|
|
1801
|
-
/**
|
|
1802
|
-
* Generate a single mesh for the entire schematic.
|
|
1803
|
-
*
|
|
1804
|
-
* Returns a [`MeshOutputWrapper`] with per-layer typed arrays, atlas, and GLB data.
|
|
1805
|
-
*/
|
|
1806
|
-
toMesh(pack: ResourcePackWrapper, config: MeshConfigWrapper): MeshOutputWrapper;
|
|
1807
|
-
/**
|
|
1808
|
-
* Generate a USDZ mesh for the entire schematic.
|
|
1809
|
-
*/
|
|
1810
|
-
toUsdz(pack: ResourcePackWrapper, config: MeshConfigWrapper): MeshOutputWrapper;
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
export class ShapeWrapper {
|
|
1814
|
-
private constructor();
|
|
1815
|
-
free(): void;
|
|
1816
|
-
[Symbol.dispose](): void;
|
|
1817
|
-
/**
|
|
1818
|
-
* Create a Difference of two shapes (a AND NOT b)
|
|
1819
|
-
*/
|
|
1820
|
-
static difference(a: ShapeWrapper, b: ShapeWrapper): ShapeWrapper;
|
|
1821
|
-
/**
|
|
1822
|
-
* Create an Intersection of two shapes (a AND b)
|
|
1823
|
-
*/
|
|
1824
|
-
static intersection(a: ShapeWrapper, b: ShapeWrapper): ShapeWrapper;
|
|
1825
|
-
/**
|
|
1826
|
-
* Create a Union of two shapes (a OR b)
|
|
1827
|
-
*/
|
|
1828
|
-
static union(a: ShapeWrapper, b: ShapeWrapper): ShapeWrapper;
|
|
1829
|
-
/**
|
|
1830
|
-
* Create a Cylinder between two points
|
|
1831
|
-
*/
|
|
1832
|
-
static cylinderBetween(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, radius: number): ShapeWrapper;
|
|
1833
|
-
/**
|
|
1834
|
-
* Create a Cone shape
|
|
1835
|
-
*/
|
|
1836
|
-
static cone(ax: number, ay: number, az: number, dx: number, dy: number, dz: number, radius: number, height: number): ShapeWrapper;
|
|
1837
|
-
/**
|
|
1838
|
-
* Create a Disk shape (flat cylinder)
|
|
1839
|
-
*/
|
|
1840
|
-
static disk(cx: number, cy: number, cz: number, radius: number, nx: number, ny: number, nz: number, thickness?: number | null): ShapeWrapper;
|
|
1841
|
-
/**
|
|
1842
|
-
* Create a 3D Line with thickness
|
|
1843
|
-
*/
|
|
1844
|
-
static line(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, thickness?: number | null): ShapeWrapper;
|
|
1845
|
-
/**
|
|
1846
|
-
* Create a bounded Plane shape
|
|
1847
|
-
*/
|
|
1848
|
-
static plane(ox: number, oy: number, oz: number, ux: number, uy: number, uz: number, vx: number, vy: number, vz: number, u_ext: number, v_ext: number, thickness?: number | null): ShapeWrapper;
|
|
1849
|
-
/**
|
|
1850
|
-
* Create a Torus shape
|
|
1851
|
-
*/
|
|
1852
|
-
static torus(cx: number, cy: number, cz: number, major_r: number, minor_r: number, ax: number, ay: number, az: number): ShapeWrapper;
|
|
1853
|
-
/**
|
|
1854
|
-
* Create a Bezier curve with thickness
|
|
1855
|
-
*/
|
|
1856
|
-
static bezier(control_points_flat: Float64Array, thickness?: number | null, resolution?: number | null): ShapeWrapper;
|
|
1857
|
-
/**
|
|
1858
|
-
* Create a new Cuboid shape
|
|
1859
|
-
*/
|
|
1860
|
-
static cuboid(min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number): ShapeWrapper;
|
|
1861
|
-
/**
|
|
1862
|
-
* Create a Hollow version of any shape
|
|
1863
|
-
*/
|
|
1864
|
-
static hollow(shape: ShapeWrapper, thickness?: number | null): ShapeWrapper;
|
|
1865
|
-
/**
|
|
1866
|
-
* Create a new Sphere shape
|
|
1867
|
-
*/
|
|
1868
|
-
static sphere(cx: number, cy: number, cz: number, radius: number): ShapeWrapper;
|
|
1869
|
-
/**
|
|
1870
|
-
* Create a Pyramid shape
|
|
1871
|
-
*/
|
|
1872
|
-
static pyramid(bx: number, by: number, bz: number, half_w: number, half_d: number, height: number, ax: number, ay: number, az: number): ShapeWrapper;
|
|
1873
|
-
/**
|
|
1874
|
-
* Create a Cylinder with arbitrary axis
|
|
1875
|
-
*/
|
|
1876
|
-
static cylinder(bx: number, by: number, bz: number, ax: number, ay: number, az: number, radius: number, height: number): ShapeWrapper;
|
|
1877
|
-
/**
|
|
1878
|
-
* Create a filled Triangle shape
|
|
1879
|
-
*/
|
|
1880
|
-
static triangle(ax: number, ay: number, az: number, bx: number, by: number, bz: number, cx: number, cy: number, cz: number, thickness?: number | null): ShapeWrapper;
|
|
1881
|
-
/**
|
|
1882
|
-
* Create an Ellipsoid shape
|
|
1883
|
-
*/
|
|
1884
|
-
static ellipsoid(cx: number, cy: number, cz: number, rx: number, ry: number, rz: number): ShapeWrapper;
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
|
-
export class SimulationOptionsWrapper {
|
|
1888
|
-
free(): void;
|
|
1889
|
-
[Symbol.dispose](): void;
|
|
1890
|
-
/**
|
|
1891
|
-
* Adds a position to the custom IO list
|
|
1892
|
-
*/
|
|
1893
|
-
addCustomIo(x: number, y: number, z: number): void;
|
|
1894
|
-
/**
|
|
1895
|
-
* Clears the custom IO list
|
|
1896
|
-
*/
|
|
1897
|
-
clearCustomIo(): void;
|
|
1898
|
-
constructor();
|
|
1899
|
-
io_only: boolean;
|
|
1900
|
-
optimize: boolean;
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
|
-
export class SortStrategyWrapper {
|
|
1904
|
-
private constructor();
|
|
1905
|
-
free(): void;
|
|
1906
|
-
[Symbol.dispose](): void;
|
|
1907
|
-
/**
|
|
1908
|
-
* Sort by Y descending, then X descending, then Z descending
|
|
1909
|
-
*/
|
|
1910
|
-
static descending(): SortStrategyWrapper;
|
|
1911
|
-
/**
|
|
1912
|
-
* Parse sort strategy from string
|
|
1913
|
-
*
|
|
1914
|
-
* Accepts: "yxz", "xyz", "zyx", "y_desc", "x_desc", "z_desc",
|
|
1915
|
-
* "descending", "preserve", "reverse"
|
|
1916
|
-
*/
|
|
1917
|
-
static fromString(s: string): SortStrategyWrapper;
|
|
1918
|
-
/**
|
|
1919
|
-
* Sort by Euclidean distance from a reference point (ascending)
|
|
1920
|
-
* Closest positions first. Useful for radial layouts.
|
|
1921
|
-
*/
|
|
1922
|
-
static distanceFrom(x: number, y: number, z: number): SortStrategyWrapper;
|
|
1923
|
-
/**
|
|
1924
|
-
* Sort by Euclidean distance from a reference point (descending)
|
|
1925
|
-
* Farthest positions first.
|
|
1926
|
-
*/
|
|
1927
|
-
static distanceFromDesc(x: number, y: number, z: number): SortStrategyWrapper;
|
|
1928
|
-
/**
|
|
1929
|
-
* Sort by X first (ascending), then Y, then Z
|
|
1930
|
-
*/
|
|
1931
|
-
static xyz(): SortStrategyWrapper;
|
|
1932
|
-
/**
|
|
1933
|
-
* Sort by Y first (ascending), then X, then Z
|
|
1934
|
-
* Standard Minecraft layer-based ordering. This is the default.
|
|
1935
|
-
*/
|
|
1936
|
-
static yxz(): SortStrategyWrapper;
|
|
1937
|
-
/**
|
|
1938
|
-
* Sort by Z first (ascending), then Y, then X
|
|
1939
|
-
*/
|
|
1940
|
-
static zyx(): SortStrategyWrapper;
|
|
1941
|
-
/**
|
|
1942
|
-
* Reverse of whatever order positions were added
|
|
1943
|
-
*/
|
|
1944
|
-
static reverse(): SortStrategyWrapper;
|
|
1945
|
-
/**
|
|
1946
|
-
* Preserve the order positions were added (no sorting)
|
|
1947
|
-
* Useful when you've manually ordered positions or are using `fromBoundingBoxes`
|
|
1948
|
-
* where box order matters.
|
|
1949
|
-
*/
|
|
1950
|
-
static preserve(): SortStrategyWrapper;
|
|
1951
|
-
/**
|
|
1952
|
-
* Sort by X first (descending), then Y ascending, then Z ascending
|
|
1953
|
-
*/
|
|
1954
|
-
static xDescYZ(): SortStrategyWrapper;
|
|
1955
|
-
/**
|
|
1956
|
-
* Sort by Y first (descending), then X ascending, then Z ascending
|
|
1957
|
-
*/
|
|
1958
|
-
static yDescXZ(): SortStrategyWrapper;
|
|
1959
|
-
/**
|
|
1960
|
-
* Sort by Z first (descending), then Y ascending, then X ascending
|
|
1961
|
-
*/
|
|
1962
|
-
static zDescYX(): SortStrategyWrapper;
|
|
1963
|
-
/**
|
|
1964
|
-
* Get the name of this strategy
|
|
1965
|
-
*/
|
|
1966
|
-
readonly name: string;
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
export class StateModeConstants {
|
|
1970
|
-
private constructor();
|
|
1971
|
-
free(): void;
|
|
1972
|
-
[Symbol.dispose](): void;
|
|
1973
|
-
/**
|
|
1974
|
-
* Manual state control
|
|
1975
|
-
*/
|
|
1976
|
-
static readonly MANUAL: string;
|
|
1977
|
-
/**
|
|
1978
|
-
* Preserve state between executions
|
|
1979
|
-
*/
|
|
1980
|
-
static readonly STATEFUL: string;
|
|
1981
|
-
/**
|
|
1982
|
-
* Always reset before execution (default)
|
|
1983
|
-
*/
|
|
1984
|
-
static readonly STATELESS: string;
|
|
1985
|
-
}
|
|
1986
|
-
|
|
1987
|
-
export class StoreWrapper {
|
|
1988
|
-
free(): void;
|
|
1989
|
-
[Symbol.dispose](): void;
|
|
1990
|
-
/**
|
|
1991
|
-
* Atomically write `data` at `key` only if it does not already exist.
|
|
1992
|
-
* Returns `true` if written, `false` if the key already existed.
|
|
1993
|
-
*/
|
|
1994
|
-
putIfAbsent(key: string, data: Uint8Array): boolean;
|
|
1995
|
-
/**
|
|
1996
|
-
* Build a store backed by host-supplied JS functions ("host owns IO").
|
|
1997
|
-
*
|
|
1998
|
-
* `handlers` is a JS object with **synchronous** methods:
|
|
1999
|
-
* `get(key) -> Uint8Array | null`, `put(key, Uint8Array)`,
|
|
2000
|
-
* `has(key) -> bool`, `delete(key)`, `list(prefix) -> string[]`,
|
|
2001
|
-
* `health()`. Any thrown JS error surfaces as a store error.
|
|
2002
|
-
*/
|
|
2003
|
-
static fromCallbacks(handlers: any): StoreWrapper;
|
|
2004
|
-
/**
|
|
2005
|
-
* A keyset page of keys under `prefix`, sorted, starting strictly after
|
|
2006
|
-
* `after` (pass `null`/`undefined` for the first page), at most `limit`.
|
|
2007
|
-
* Returns `{ keys: string[], next: string | null }`; pass `next` back as
|
|
2008
|
-
* `after` to continue, or stop when it is `null`.
|
|
2009
|
-
*/
|
|
2010
|
-
listPaginated(prefix: string, after: string | null | undefined, limit: number): any;
|
|
2011
|
-
/**
|
|
2012
|
-
* Fetch `key`, or `undefined` if absent.
|
|
2013
|
-
*/
|
|
2014
|
-
get(key: string): Uint8Array | undefined;
|
|
2015
|
-
/**
|
|
2016
|
-
* Open a store from a URL. On the web, use `mem://`.
|
|
2017
|
-
*/
|
|
2018
|
-
constructor(url: string);
|
|
2019
|
-
/**
|
|
2020
|
-
* Store `data` at `key`, overwriting.
|
|
2021
|
-
*/
|
|
2022
|
-
put(key: string, data: Uint8Array): void;
|
|
2023
|
-
/**
|
|
2024
|
-
* Keys under `prefix`.
|
|
2025
|
-
*/
|
|
2026
|
-
list(prefix: string): string[];
|
|
2027
|
-
/**
|
|
2028
|
-
* Open a store from a URL (canonical name, matching Python/FFI `open`).
|
|
2029
|
-
* Equivalent to `new Store(url)`.
|
|
2030
|
-
*/
|
|
2031
|
-
static open(url: string): StoreWrapper;
|
|
2032
|
-
/**
|
|
2033
|
-
* Remove `key` (idempotent).
|
|
2034
|
-
*/
|
|
2035
|
-
delete(key: string): void;
|
|
2036
|
-
/**
|
|
2037
|
-
* Whether `key` exists.
|
|
2038
|
-
*/
|
|
2039
|
-
has(key: string): boolean;
|
|
2040
|
-
/**
|
|
2041
|
-
* Reject if the store is not usable.
|
|
2042
|
-
*/
|
|
2043
|
-
health(): void;
|
|
2044
|
-
}
|
|
2045
|
-
|
|
2046
|
-
export class TextureAtlasWrapper {
|
|
2047
|
-
private constructor();
|
|
2048
|
-
free(): void;
|
|
2049
|
-
[Symbol.dispose](): void;
|
|
2050
|
-
/**
|
|
2051
|
-
* RGBA pixel data as Uint8Array.
|
|
2052
|
-
*/
|
|
2053
|
-
toBytes(): Uint8Array;
|
|
2054
|
-
/**
|
|
2055
|
-
* Atlas width in pixels.
|
|
2056
|
-
*/
|
|
2057
|
-
readonly width: number;
|
|
2058
|
-
/**
|
|
2059
|
-
* Atlas height in pixels.
|
|
2060
|
-
*/
|
|
2061
|
-
readonly height: number;
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
export class TypedCircuitExecutorWrapper {
|
|
2065
|
-
private constructor();
|
|
2066
|
-
free(): void;
|
|
2067
|
-
[Symbol.dispose](): void;
|
|
2068
|
-
/**
|
|
2069
|
-
* Create executor from Insign annotations in schematic
|
|
2070
|
-
*/
|
|
2071
|
-
static fromInsign(schematic: SchematicWrapper): TypedCircuitExecutorWrapper;
|
|
2072
|
-
/**
|
|
2073
|
-
* Create executor from world and layout
|
|
2074
|
-
*/
|
|
2075
|
-
static fromLayout(world: MchprsWorldWrapper, layout: IoLayoutWrapper): TypedCircuitExecutorWrapper;
|
|
2076
|
-
/**
|
|
2077
|
-
* Get all input names
|
|
2078
|
-
*/
|
|
2079
|
-
inputNames(): string[];
|
|
2080
|
-
/**
|
|
2081
|
-
* Read a single output value without executing
|
|
2082
|
-
*/
|
|
2083
|
-
readOutput(name: string): ValueWrapper;
|
|
2084
|
-
/**
|
|
2085
|
-
* Get all output names
|
|
2086
|
-
*/
|
|
2087
|
-
outputNames(): string[];
|
|
2088
|
-
/**
|
|
2089
|
-
* Set state mode
|
|
2090
|
-
*/
|
|
2091
|
-
setStateMode(mode: string): void;
|
|
2092
|
-
/**
|
|
2093
|
-
* Get detailed layout information for debugging and visualization
|
|
2094
|
-
*
|
|
2095
|
-
* Returns a JS object with the structure:
|
|
2096
|
-
* ```javascript
|
|
2097
|
-
* {
|
|
2098
|
-
* inputs: {
|
|
2099
|
-
* "name": {
|
|
2100
|
-
* ioType: "UnsignedInt { bits: 8 }",
|
|
2101
|
-
* positions: [[x, y, z], ...], // In bit order (LSB first)
|
|
2102
|
-
* bitCount: 8
|
|
2103
|
-
* }
|
|
2104
|
-
* },
|
|
2105
|
-
* outputs: { ... }
|
|
2106
|
-
* }
|
|
2107
|
-
* ```
|
|
2108
|
-
*/
|
|
2109
|
-
getLayoutInfo(): any;
|
|
2110
|
-
/**
|
|
2111
|
-
* Sync the simulation state back to the schematic
|
|
2112
|
-
*
|
|
2113
|
-
* Call this after execute() to update the schematic with the current simulation state.
|
|
2114
|
-
* Returns the updated schematic.
|
|
2115
|
-
*/
|
|
2116
|
-
syncToSchematic(): SchematicWrapper;
|
|
2117
|
-
/**
|
|
2118
|
-
* Create executor from Insign annotations with custom simulation options
|
|
2119
|
-
*/
|
|
2120
|
-
static fromInsignWithOptions(schematic: SchematicWrapper, options: SimulationOptionsWrapper): TypedCircuitExecutorWrapper;
|
|
2121
|
-
/**
|
|
2122
|
-
* Create executor from world, layout, and options
|
|
2123
|
-
*/
|
|
2124
|
-
static fromLayoutWithOptions(world: MchprsWorldWrapper, layout: IoLayoutWrapper, options: SimulationOptionsWrapper): TypedCircuitExecutorWrapper;
|
|
2125
|
-
/**
|
|
2126
|
-
* Run the circuit with simplified arguments
|
|
2127
|
-
*/
|
|
2128
|
-
run(inputs: any, limit: number, mode: string): any;
|
|
2129
|
-
/**
|
|
2130
|
-
* Manually advance the simulation by a specified number of ticks
|
|
2131
|
-
*
|
|
2132
|
-
* This is useful for manual state control when using 'manual' state mode.
|
|
2133
|
-
* Unlike execute(), this does not set any inputs or read outputs.
|
|
2134
|
-
*/
|
|
2135
|
-
tick(ticks: number): void;
|
|
2136
|
-
/**
|
|
2137
|
-
* Manually flush the simulation state
|
|
2138
|
-
*
|
|
2139
|
-
* Ensures all pending changes are propagated through the redstone network.
|
|
2140
|
-
*/
|
|
2141
|
-
flush(): void;
|
|
2142
|
-
/**
|
|
2143
|
-
* Reset the simulation
|
|
2144
|
-
*/
|
|
2145
|
-
reset(): void;
|
|
2146
|
-
/**
|
|
2147
|
-
* Execute the circuit
|
|
2148
|
-
*/
|
|
2149
|
-
execute(inputs: any, mode: ExecutionModeWrapper): any;
|
|
2150
|
-
/**
|
|
2151
|
-
* Set a single input value without executing
|
|
2152
|
-
*/
|
|
2153
|
-
setInput(name: string, value: ValueWrapper): void;
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
export class ValueWrapper {
|
|
2157
|
-
private constructor();
|
|
2158
|
-
free(): void;
|
|
2159
|
-
[Symbol.dispose](): void;
|
|
2160
|
-
/**
|
|
2161
|
-
* Create a String value
|
|
2162
|
-
*/
|
|
2163
|
-
static fromString(value: string): ValueWrapper;
|
|
2164
|
-
/**
|
|
2165
|
-
* Convert to JavaScript value
|
|
2166
|
-
*/
|
|
2167
|
-
toJs(): any;
|
|
2168
|
-
/**
|
|
2169
|
-
* Create an F32 value
|
|
2170
|
-
*/
|
|
2171
|
-
static fromF32(value: number): ValueWrapper;
|
|
2172
|
-
/**
|
|
2173
|
-
* Create an I32 value
|
|
2174
|
-
*/
|
|
2175
|
-
static fromI32(value: number): ValueWrapper;
|
|
2176
|
-
/**
|
|
2177
|
-
* Create a U32 value
|
|
2178
|
-
*/
|
|
2179
|
-
static fromU32(value: number): ValueWrapper;
|
|
2180
|
-
/**
|
|
2181
|
-
* Create a Bool value
|
|
2182
|
-
*/
|
|
2183
|
-
static fromBool(value: boolean): ValueWrapper;
|
|
2184
|
-
/**
|
|
2185
|
-
* Get type name
|
|
2186
|
-
*/
|
|
2187
|
-
typeName(): string;
|
|
2188
|
-
}
|
|
2189
|
-
|
|
2190
|
-
export class WasmBuildingTool {
|
|
2191
|
-
private constructor();
|
|
2192
|
-
free(): void;
|
|
2193
|
-
[Symbol.dispose](): void;
|
|
2194
|
-
/**
|
|
2195
|
-
* Apply a brush to a shape on the given schematic
|
|
2196
|
-
*/
|
|
2197
|
-
static fill(schematic: SchematicWrapper, shape: ShapeWrapper, brush: BrushWrapper): void;
|
|
2198
|
-
/**
|
|
2199
|
-
* Repeat a shape+brush fill at regular offset intervals
|
|
2200
|
-
*/
|
|
2201
|
-
static rstack(schematic: SchematicWrapper, shape: ShapeWrapper, brush: BrushWrapper, count: number, offset_x: number, offset_y: number, offset_z: number): void;
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
export class WorldChunkIterWrapper {
|
|
2205
|
-
private constructor();
|
|
2206
|
-
free(): void;
|
|
2207
|
-
[Symbol.dispose](): void;
|
|
2208
|
-
/**
|
|
2209
|
-
* Returns the next chunk, or `null`/`undefined` at the end of the stream.
|
|
2210
|
-
* Throws if the chunk is corrupt or unreadable.
|
|
2211
|
-
*/
|
|
2212
|
-
next(): WorldChunkViewWrapper | undefined;
|
|
2213
|
-
has_next(): boolean;
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
|
-
export class WorldChunkViewWrapper {
|
|
2217
|
-
free(): void;
|
|
2218
|
-
[Symbol.dispose](): void;
|
|
2219
|
-
to_schematic(): SchematicWrapper;
|
|
2220
|
-
/**
|
|
2221
|
-
* Deduped union of all sections' biome palette entries, in order of
|
|
2222
|
-
* first appearance. Empty if no section carries biome data.
|
|
2223
|
-
*/
|
|
2224
|
-
biome_palette(): string[];
|
|
2225
|
-
cx(): number;
|
|
2226
|
-
cz(): number;
|
|
2227
|
-
/**
|
|
2228
|
-
* Create an empty chunk at the given chunk coordinates — the starting
|
|
2229
|
-
* point for generating chunks from scratch. Sections are created on
|
|
2230
|
-
* demand by `set_block`. In WASM there is no `WorldSink` (no filesystem),
|
|
2231
|
-
* so fabricated chunks are used via `to_schematic()` or direct inspection
|
|
2232
|
-
* (`get_block`, `y_range`, ...).
|
|
2233
|
-
*/
|
|
2234
|
-
constructor(cx: number, cz: number);
|
|
2235
|
-
/**
|
|
2236
|
-
* Returns `[min_y, max_y]` (inclusive on both ends).
|
|
2237
|
-
*/
|
|
2238
|
-
y_range(): Int32Array;
|
|
2239
|
-
/**
|
|
2240
|
-
* Returns the block name at world coordinates (e.g. `"minecraft:air"` for air cells),
|
|
2241
|
-
* or `undefined`/`null` if the coordinates fall outside the chunk's loaded sections.
|
|
2242
|
-
*/
|
|
2243
|
-
get_block(x: number, y: number, z: number): string | undefined;
|
|
2244
|
-
/**
|
|
2245
|
-
* Overwrite the biome of every currently-present section with
|
|
2246
|
-
* `biome_name` (e.g. `"minecraft:desert"`). Sections are created lazily
|
|
2247
|
-
* by `set_block`, so call this AFTER placing blocks. Coarse chunk-level
|
|
2248
|
-
* control; existing multi-biome data round-trips losslessly if you
|
|
2249
|
-
* don't call this.
|
|
2250
|
-
*/
|
|
2251
|
-
set_biome(biome_name: string): void;
|
|
2252
|
-
/**
|
|
2253
|
-
* Set the block at world coordinates `(x, y, z)` by name. Returns `true`
|
|
2254
|
-
* on success, `false` if `(x, z)` falls outside this chunk. Creates the
|
|
2255
|
-
* section if the Y level has none.
|
|
2256
|
-
*/
|
|
2257
|
-
set_block(x: number, y: number, z: number, block_name: string): boolean;
|
|
2258
|
-
}
|
|
2259
|
-
|
|
2260
|
-
export class WorldSourceWrapper {
|
|
2261
|
-
private constructor();
|
|
2262
|
-
free(): void;
|
|
2263
|
-
[Symbol.dispose](): void;
|
|
2264
|
-
chunks_bounded(min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number): WorldChunkIterWrapper;
|
|
2265
|
-
static from_mca_bytes(data: Uint8Array): WorldSourceWrapper;
|
|
2266
|
-
static from_zip_bytes(data: Uint8Array): WorldSourceWrapper;
|
|
2267
|
-
chunks(): WorldChunkIterWrapper;
|
|
2268
|
-
}
|
|
2269
|
-
|
|
2270
|
-
/**
|
|
2271
|
-
* Build a resource pack ZIP from multiple item model results.
|
|
2272
|
-
*
|
|
2273
|
-
* Merges all models into a single ZIP. Items sharing the same base item
|
|
2274
|
-
* get combined into one item definition with multiple custom_model_data cases.
|
|
2275
|
-
*/
|
|
2276
|
-
export function buildResourcePack(results: ItemModelResultWrapper[]): Uint8Array;
|
|
2277
|
-
|
|
2278
|
-
export function debug_json_schematic(schematic: SchematicWrapper): string;
|
|
2279
|
-
|
|
2280
|
-
export function debug_schematic(schematic: SchematicWrapper): string;
|
|
2281
|
-
|
|
2282
|
-
export function generate_gradient_between_blocks(start_block_id: string, end_block_id: string, steps: number, color_space: string, easing: string): any;
|
|
2283
|
-
|
|
2284
|
-
export function generate_gradient_between_colors(start_r: number, start_g: number, start_b: number, end_r: number, end_g: number, end_b: number, steps: number, color_space: string, easing: string): any;
|
|
2285
|
-
|
|
2286
|
-
export function get_all_colored_blocks(): any;
|
|
2287
|
-
|
|
2288
|
-
export function get_block_info(block_id: string): any;
|
|
2289
|
-
|
|
2290
|
-
export function get_color_spaces(): any;
|
|
2291
|
-
|
|
2292
|
-
export function get_easing_functions(): any;
|
|
2293
|
-
|
|
2294
|
-
/**
|
|
2295
|
-
* Evaluate an SDF JSON tree at a point; returns the signed distance.
|
|
2296
|
-
*/
|
|
2297
|
-
export function sdfEval(sdf_json: string, x: number, y: number, z: number): number;
|
|
2298
|
-
|
|
2299
|
-
export function sort_blocks_by_color_gradient(block_ids: string[]): any;
|
|
2300
|
-
|
|
2301
|
-
/**
|
|
2302
|
-
* Initialize WASM module with panic hook for better error messages
|
|
2303
|
-
*/
|
|
2304
|
-
export function start(): void;
|
|
2305
|
-
|
|
2306
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
2307
|
-
|
|
2308
|
-
export interface InitOutput {
|
|
2309
|
-
readonly memory: WebAssembly.Memory;
|
|
2310
|
-
readonly __wbg_circuitbuilderwrapper_free: (a: number, b: number) => void;
|
|
2311
|
-
readonly __wbg_executionmodewrapper_free: (a: number, b: number) => void;
|
|
2312
|
-
readonly __wbg_iolayoutbuilderwrapper_free: (a: number, b: number) => void;
|
|
2313
|
-
readonly __wbg_iolayoutwrapper_free: (a: number, b: number) => void;
|
|
2314
|
-
readonly __wbg_iotypewrapper_free: (a: number, b: number) => void;
|
|
2315
|
-
readonly __wbg_layoutfunctionwrapper_free: (a: number, b: number) => void;
|
|
2316
|
-
readonly __wbg_mchprsworldwrapper_free: (a: number, b: number) => void;
|
|
2317
|
-
readonly __wbg_outputconditionwrapper_free: (a: number, b: number) => void;
|
|
2318
|
-
readonly __wbg_simulationoptionswrapper_free: (a: number, b: number) => void;
|
|
2319
|
-
readonly __wbg_sortstrategywrapper_free: (a: number, b: number) => void;
|
|
2320
|
-
readonly __wbg_statemodeconstants_free: (a: number, b: number) => void;
|
|
2321
|
-
readonly __wbg_typedcircuitexecutorwrapper_free: (a: number, b: number) => void;
|
|
2322
|
-
readonly __wbg_valuewrapper_free: (a: number, b: number) => void;
|
|
2323
|
-
readonly circuitbuilderwrapper_build: (a: number) => [number, number, number];
|
|
2324
|
-
readonly circuitbuilderwrapper_buildValidated: (a: number) => [number, number, number];
|
|
2325
|
-
readonly circuitbuilderwrapper_fromInsign: (a: number) => [number, number, number];
|
|
2326
|
-
readonly circuitbuilderwrapper_inputCount: (a: number) => number;
|
|
2327
|
-
readonly circuitbuilderwrapper_inputNames: (a: number) => [number, number];
|
|
2328
|
-
readonly circuitbuilderwrapper_new: (a: number) => number;
|
|
2329
|
-
readonly circuitbuilderwrapper_outputCount: (a: number) => number;
|
|
2330
|
-
readonly circuitbuilderwrapper_outputNames: (a: number) => [number, number];
|
|
2331
|
-
readonly circuitbuilderwrapper_validate: (a: number) => [number, number];
|
|
2332
|
-
readonly circuitbuilderwrapper_withInput: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2333
|
-
readonly circuitbuilderwrapper_withInputAuto: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
2334
|
-
readonly circuitbuilderwrapper_withInputAutoSorted: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2335
|
-
readonly circuitbuilderwrapper_withInputSorted: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
2336
|
-
readonly circuitbuilderwrapper_withOptions: (a: number, b: number) => number;
|
|
2337
|
-
readonly circuitbuilderwrapper_withOutput: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2338
|
-
readonly circuitbuilderwrapper_withOutputAuto: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
2339
|
-
readonly circuitbuilderwrapper_withOutputAutoSorted: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2340
|
-
readonly circuitbuilderwrapper_withOutputSorted: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
2341
|
-
readonly circuitbuilderwrapper_withStateMode: (a: number, b: number, c: number) => [number, number, number];
|
|
2342
|
-
readonly executionmodewrapper_fixedTicks: (a: number) => number;
|
|
2343
|
-
readonly executionmodewrapper_untilChange: (a: number, b: number) => number;
|
|
2344
|
-
readonly executionmodewrapper_untilCondition: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2345
|
-
readonly executionmodewrapper_untilStable: (a: number, b: number) => number;
|
|
2346
|
-
readonly iolayoutbuilderwrapper_addInput: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
2347
|
-
readonly iolayoutbuilderwrapper_addInputAuto: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2348
|
-
readonly iolayoutbuilderwrapper_addInputFromRegion: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2349
|
-
readonly iolayoutbuilderwrapper_addInputFromRegionAuto: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
2350
|
-
readonly iolayoutbuilderwrapper_addInputRegion: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
2351
|
-
readonly iolayoutbuilderwrapper_addInputRegionAuto: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2352
|
-
readonly iolayoutbuilderwrapper_addOutput: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
2353
|
-
readonly iolayoutbuilderwrapper_addOutputAuto: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2354
|
-
readonly iolayoutbuilderwrapper_addOutputFromRegion: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2355
|
-
readonly iolayoutbuilderwrapper_addOutputFromRegionAuto: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
2356
|
-
readonly iolayoutbuilderwrapper_addOutputRegion: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
2357
|
-
readonly iolayoutbuilderwrapper_addOutputRegionAuto: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2358
|
-
readonly iolayoutbuilderwrapper_build: (a: number) => number;
|
|
2359
|
-
readonly iolayoutbuilderwrapper_new: () => number;
|
|
2360
|
-
readonly iolayoutwrapper_inputNames: (a: number) => [number, number];
|
|
2361
|
-
readonly iolayoutwrapper_outputNames: (a: number) => [number, number];
|
|
2362
|
-
readonly iotypewrapper_ascii: (a: number) => number;
|
|
2363
|
-
readonly iotypewrapper_boolean: () => number;
|
|
2364
|
-
readonly iotypewrapper_float32: () => number;
|
|
2365
|
-
readonly iotypewrapper_signedInt: (a: number) => number;
|
|
2366
|
-
readonly iotypewrapper_unsignedInt: (a: number) => number;
|
|
2367
|
-
readonly layoutfunctionwrapper_columnMajor: (a: number, b: number, c: number) => number;
|
|
2368
|
-
readonly layoutfunctionwrapper_custom: (a: number, b: number) => number;
|
|
2369
|
-
readonly layoutfunctionwrapper_oneToOne: () => number;
|
|
2370
|
-
readonly layoutfunctionwrapper_packed4: () => number;
|
|
2371
|
-
readonly layoutfunctionwrapper_rowMajor: (a: number, b: number, c: number) => number;
|
|
2372
|
-
readonly layoutfunctionwrapper_scanline: (a: number, b: number, c: number) => number;
|
|
2373
|
-
readonly mchprsworldwrapper_checkCustomIoChanges: (a: number) => void;
|
|
2374
|
-
readonly mchprsworldwrapper_clearCustomIoChanges: (a: number) => void;
|
|
2375
|
-
readonly mchprsworldwrapper_exportGraph: (a: number) => [number, number, number];
|
|
2376
|
-
readonly mchprsworldwrapper_exportGraphStructural: (a: number) => [number, number, number];
|
|
2377
|
-
readonly mchprsworldwrapper_flush: (a: number) => void;
|
|
2378
|
-
readonly mchprsworldwrapper_getSignalStrength: (a: number, b: number, c: number, d: number) => number;
|
|
2379
|
-
readonly mchprsworldwrapper_get_lever_power: (a: number, b: number, c: number, d: number) => number;
|
|
2380
|
-
readonly mchprsworldwrapper_get_redstone_power: (a: number, b: number, c: number, d: number) => number;
|
|
2381
|
-
readonly mchprsworldwrapper_get_schematic: (a: number) => number;
|
|
2382
|
-
readonly mchprsworldwrapper_get_truth_table: (a: number) => any;
|
|
2383
|
-
readonly mchprsworldwrapper_into_schematic: (a: number) => number;
|
|
2384
|
-
readonly mchprsworldwrapper_is_lit: (a: number, b: number, c: number, d: number) => number;
|
|
2385
|
-
readonly mchprsworldwrapper_new: (a: number) => [number, number, number];
|
|
2386
|
-
readonly mchprsworldwrapper_on_use_block: (a: number, b: number, c: number, d: number) => void;
|
|
2387
|
-
readonly mchprsworldwrapper_peekCustomIoChanges: (a: number) => any;
|
|
2388
|
-
readonly mchprsworldwrapper_pollCustomIoChanges: (a: number) => any;
|
|
2389
|
-
readonly mchprsworldwrapper_setSignalStrength: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2390
|
-
readonly mchprsworldwrapper_sync_to_schematic: (a: number) => void;
|
|
2391
|
-
readonly mchprsworldwrapper_tick: (a: number, b: number) => void;
|
|
2392
|
-
readonly mchprsworldwrapper_with_options: (a: number, b: number) => [number, number, number];
|
|
2393
|
-
readonly outputconditionwrapper_bitwiseAnd: (a: number) => number;
|
|
2394
|
-
readonly outputconditionwrapper_equals: (a: number) => number;
|
|
2395
|
-
readonly outputconditionwrapper_greaterThan: (a: number) => number;
|
|
2396
|
-
readonly outputconditionwrapper_lessThan: (a: number) => number;
|
|
2397
|
-
readonly outputconditionwrapper_notEquals: (a: number) => number;
|
|
2398
|
-
readonly schematicwrapper_fingerprint: (a: number, b: number, c: number) => [number, number, number, number];
|
|
2399
|
-
readonly schematicwrapper_footprint: (a: number, b: number, c: number) => [number, number, number, number];
|
|
2400
|
-
readonly schematicwrapper_footprintDistance: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
2401
|
-
readonly schematicwrapper_isDuplicateOf: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
2402
|
-
readonly schematicwrapper_signature: (a: number, b: number, c: number) => [number, number, number, number];
|
|
2403
|
-
readonly simulationoptionswrapper_addCustomIo: (a: number, b: number, c: number, d: number) => void;
|
|
2404
|
-
readonly simulationoptionswrapper_clearCustomIo: (a: number) => void;
|
|
2405
|
-
readonly simulationoptionswrapper_io_only: (a: number) => number;
|
|
2406
|
-
readonly simulationoptionswrapper_new: () => number;
|
|
2407
|
-
readonly simulationoptionswrapper_optimize: (a: number) => number;
|
|
2408
|
-
readonly simulationoptionswrapper_set_io_only: (a: number, b: number) => void;
|
|
2409
|
-
readonly simulationoptionswrapper_set_optimize: (a: number, b: number) => void;
|
|
2410
|
-
readonly sortstrategywrapper_descending: () => number;
|
|
2411
|
-
readonly sortstrategywrapper_distanceFrom: (a: number, b: number, c: number) => number;
|
|
2412
|
-
readonly sortstrategywrapper_distanceFromDesc: (a: number, b: number, c: number) => number;
|
|
2413
|
-
readonly sortstrategywrapper_fromString: (a: number, b: number) => [number, number, number];
|
|
2414
|
-
readonly sortstrategywrapper_name: (a: number) => [number, number];
|
|
2415
|
-
readonly sortstrategywrapper_preserve: () => number;
|
|
2416
|
-
readonly sortstrategywrapper_reverse: () => number;
|
|
2417
|
-
readonly sortstrategywrapper_xDescYZ: () => number;
|
|
2418
|
-
readonly sortstrategywrapper_xyz: () => number;
|
|
2419
|
-
readonly sortstrategywrapper_yxz: () => number;
|
|
2420
|
-
readonly sortstrategywrapper_zDescYX: () => number;
|
|
2421
|
-
readonly statemodeconstants_manual: () => [number, number];
|
|
2422
|
-
readonly statemodeconstants_stateful: () => [number, number];
|
|
2423
|
-
readonly statemodeconstants_stateless: () => [number, number];
|
|
2424
|
-
readonly typedcircuitexecutorwrapper_execute: (a: number, b: any, c: number) => [number, number, number];
|
|
2425
|
-
readonly typedcircuitexecutorwrapper_flush: (a: number) => void;
|
|
2426
|
-
readonly typedcircuitexecutorwrapper_fromInsign: (a: number) => [number, number, number];
|
|
2427
|
-
readonly typedcircuitexecutorwrapper_fromInsignWithOptions: (a: number, b: number) => [number, number, number];
|
|
2428
|
-
readonly typedcircuitexecutorwrapper_fromLayout: (a: number, b: number) => [number, number, number];
|
|
2429
|
-
readonly typedcircuitexecutorwrapper_fromLayoutWithOptions: (a: number, b: number, c: number) => [number, number, number];
|
|
2430
|
-
readonly typedcircuitexecutorwrapper_getLayoutInfo: (a: number) => any;
|
|
2431
|
-
readonly typedcircuitexecutorwrapper_inputNames: (a: number) => [number, number];
|
|
2432
|
-
readonly typedcircuitexecutorwrapper_outputNames: (a: number) => [number, number];
|
|
2433
|
-
readonly typedcircuitexecutorwrapper_readOutput: (a: number, b: number, c: number) => [number, number, number];
|
|
2434
|
-
readonly typedcircuitexecutorwrapper_reset: (a: number) => [number, number];
|
|
2435
|
-
readonly typedcircuitexecutorwrapper_run: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
2436
|
-
readonly typedcircuitexecutorwrapper_setInput: (a: number, b: number, c: number, d: number) => [number, number];
|
|
2437
|
-
readonly typedcircuitexecutorwrapper_setStateMode: (a: number, b: number, c: number) => [number, number];
|
|
2438
|
-
readonly typedcircuitexecutorwrapper_syncToSchematic: (a: number) => number;
|
|
2439
|
-
readonly typedcircuitexecutorwrapper_tick: (a: number, b: number) => void;
|
|
2440
|
-
readonly valuewrapper_fromBool: (a: number) => number;
|
|
2441
|
-
readonly valuewrapper_fromF32: (a: number) => number;
|
|
2442
|
-
readonly valuewrapper_fromI32: (a: number) => number;
|
|
2443
|
-
readonly valuewrapper_fromString: (a: number, b: number) => number;
|
|
2444
|
-
readonly valuewrapper_fromU32: (a: number) => number;
|
|
2445
|
-
readonly valuewrapper_toJs: (a: number) => any;
|
|
2446
|
-
readonly valuewrapper_typeName: (a: number) => [number, number];
|
|
2447
|
-
readonly schematicwrapper_create_simulation_world: (a: number) => [number, number, number];
|
|
2448
|
-
readonly sortstrategywrapper_yDescXZ: () => number;
|
|
2449
|
-
readonly sortstrategywrapper_zyx: () => number;
|
|
2450
|
-
readonly schematicwrapper_create_simulation_world_with_options: (a: number, b: number) => [number, number, number];
|
|
2451
|
-
readonly __wbg_blockposition_free: (a: number, b: number) => void;
|
|
2452
|
-
readonly __wbg_get_blockposition_x: (a: number) => number;
|
|
2453
|
-
readonly __wbg_get_blockposition_y: (a: number) => number;
|
|
2454
|
-
readonly __wbg_get_blockposition_z: (a: number) => number;
|
|
2455
|
-
readonly __wbg_set_blockposition_x: (a: number, b: number) => void;
|
|
2456
|
-
readonly __wbg_set_blockposition_y: (a: number, b: number) => void;
|
|
2457
|
-
readonly __wbg_set_blockposition_z: (a: number, b: number) => void;
|
|
2458
|
-
readonly blockposition_new: (a: number, b: number, c: number) => number;
|
|
2459
|
-
readonly __wbg_definitionregionwrapper_free: (a: number, b: number) => void;
|
|
2460
|
-
readonly definitionregionwrapper_addBounds: (a: number, b: any, c: any) => [number, number, number];
|
|
2461
|
-
readonly definitionregionwrapper_addFilter: (a: number, b: number, c: number) => [number, number, number];
|
|
2462
|
-
readonly definitionregionwrapper_addPoint: (a: number, b: number, c: number, d: number) => number;
|
|
2463
|
-
readonly definitionregionwrapper_boxCount: (a: number) => number;
|
|
2464
|
-
readonly definitionregionwrapper_center: (a: number) => any;
|
|
2465
|
-
readonly definitionregionwrapper_centerF32: (a: number) => any;
|
|
2466
|
-
readonly definitionregionwrapper_clone: (a: number) => number;
|
|
2467
|
-
readonly definitionregionwrapper_connectedComponents: (a: number) => number;
|
|
2468
|
-
readonly definitionregionwrapper_contains: (a: number, b: number, c: number, d: number) => number;
|
|
2469
|
-
readonly definitionregionwrapper_contract: (a: number, b: number) => number;
|
|
2470
|
-
readonly definitionregionwrapper_contracted: (a: number, b: number) => number;
|
|
2471
|
-
readonly definitionregionwrapper_dimensions: (a: number) => any;
|
|
2472
|
-
readonly definitionregionwrapper_excludeBlock: (a: number, b: number, c: number) => [number, number, number];
|
|
2473
|
-
readonly definitionregionwrapper_expand: (a: number, b: number, c: number, d: number) => number;
|
|
2474
|
-
readonly definitionregionwrapper_expanded: (a: number, b: number, c: number, d: number) => number;
|
|
2475
|
-
readonly definitionregionwrapper_filterByBlock: (a: number, b: number, c: number, d: number) => number;
|
|
2476
|
-
readonly definitionregionwrapper_filterByProperties: (a: number, b: number, c: any) => [number, number, number];
|
|
2477
|
-
readonly definitionregionwrapper_fromBoundingBoxes: (a: any) => [number, number, number];
|
|
2478
|
-
readonly definitionregionwrapper_fromBounds: (a: number, b: number) => number;
|
|
2479
|
-
readonly definitionregionwrapper_fromPositions: (a: any) => [number, number, number];
|
|
2480
|
-
readonly definitionregionwrapper_getAllMetadata: (a: number) => any;
|
|
2481
|
-
readonly definitionregionwrapper_getBlocks: (a: number) => [number, number, number];
|
|
2482
|
-
readonly definitionregionwrapper_getBounds: (a: number) => any;
|
|
2483
|
-
readonly definitionregionwrapper_getBox: (a: number, b: number) => any;
|
|
2484
|
-
readonly definitionregionwrapper_getBoxes: (a: number) => any;
|
|
2485
|
-
readonly definitionregionwrapper_getMetadata: (a: number, b: number, c: number) => any;
|
|
2486
|
-
readonly definitionregionwrapper_intersect: (a: number, b: number) => number;
|
|
2487
|
-
readonly definitionregionwrapper_intersected: (a: number, b: number) => number;
|
|
2488
|
-
readonly definitionregionwrapper_intersectsBounds: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
2489
|
-
readonly definitionregionwrapper_isContiguous: (a: number) => number;
|
|
2490
|
-
readonly definitionregionwrapper_isEmpty: (a: number) => number;
|
|
2491
|
-
readonly definitionregionwrapper_merge: (a: number, b: number) => number;
|
|
2492
|
-
readonly definitionregionwrapper_metadataKeys: (a: number) => any;
|
|
2493
|
-
readonly definitionregionwrapper_new: () => number;
|
|
2494
|
-
readonly definitionregionwrapper_positions: (a: number) => any;
|
|
2495
|
-
readonly definitionregionwrapper_positionsSorted: (a: number) => any;
|
|
2496
|
-
readonly definitionregionwrapper_setColor: (a: number, b: number) => number;
|
|
2497
|
-
readonly definitionregionwrapper_setMetadata: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2498
|
-
readonly definitionregionwrapper_shift: (a: number, b: number, c: number, d: number) => number;
|
|
2499
|
-
readonly definitionregionwrapper_shifted: (a: number, b: number, c: number, d: number) => number;
|
|
2500
|
-
readonly definitionregionwrapper_simplify: (a: number) => number;
|
|
2501
|
-
readonly definitionregionwrapper_subtract: (a: number, b: number) => number;
|
|
2502
|
-
readonly definitionregionwrapper_subtracted: (a: number, b: number) => number;
|
|
2503
|
-
readonly definitionregionwrapper_union: (a: number, b: number) => number;
|
|
2504
|
-
readonly definitionregionwrapper_unionInto: (a: number, b: number) => number;
|
|
2505
|
-
readonly definitionregionwrapper_volume: (a: number) => number;
|
|
2506
|
-
readonly definitionregionwrapper_withMetadata: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2507
|
-
readonly definitionregionwrapper_copy: (a: number) => number;
|
|
2508
|
-
readonly __wbg_diffwrapper_free: (a: number, b: number) => void;
|
|
2509
|
-
readonly __wbg_redstonegraphwrapper_free: (a: number, b: number) => void;
|
|
2510
|
-
readonly __wbg_worldchunkiterwrapper_free: (a: number, b: number) => void;
|
|
2511
|
-
readonly __wbg_worldchunkviewwrapper_free: (a: number, b: number) => void;
|
|
2512
|
-
readonly __wbg_worldsourcewrapper_free: (a: number, b: number) => void;
|
|
2513
|
-
readonly diffwrapper_added: (a: number) => number;
|
|
2514
|
-
readonly diffwrapper_changed: (a: number) => number;
|
|
2515
|
-
readonly diffwrapper_distance: (a: number) => number;
|
|
2516
|
-
readonly diffwrapper_fromJson: (a: number, b: number) => [number, number, number];
|
|
2517
|
-
readonly diffwrapper_markers: (a: number) => number;
|
|
2518
|
-
readonly diffwrapper_regionsJson: (a: number) => [number, number];
|
|
2519
|
-
readonly diffwrapper_removed: (a: number) => number;
|
|
2520
|
-
readonly diffwrapper_summaryJson: (a: number) => [number, number];
|
|
2521
|
-
readonly diffwrapper_support: (a: number) => number;
|
|
2522
|
-
readonly diffwrapper_swapped: (a: number) => number;
|
|
2523
|
-
readonly diffwrapper_toJson: (a: number) => [number, number];
|
|
2524
|
-
readonly diffwrapper_toOverlayGlb: (a: number, b: number, c: number) => [number, number, number];
|
|
2525
|
-
readonly redstonegraphwrapper_edgeCount: (a: number) => number;
|
|
2526
|
-
readonly redstonegraphwrapper_edges: (a: number) => [number, number, number];
|
|
2527
|
-
readonly redstonegraphwrapper_features: (a: number) => [number, number, number];
|
|
2528
|
-
readonly redstonegraphwrapper_featuresJson: (a: number) => [number, number, number, number];
|
|
2529
|
-
readonly redstonegraphwrapper_fingerprint: (a: number, b: number, c: number) => [number, number, number, number];
|
|
2530
|
-
readonly redstonegraphwrapper_fromJson: (a: number, b: number) => [number, number, number];
|
|
2531
|
-
readonly redstonegraphwrapper_nodeCount: (a: number) => number;
|
|
2532
|
-
readonly redstonegraphwrapper_nodes: (a: number) => [number, number, number];
|
|
2533
|
-
readonly redstonegraphwrapper_toJson: (a: number) => [number, number, number, number];
|
|
2534
|
-
readonly schematicwrapper_diff: (a: number, b: number, c: number, d: number, e: any) => [number, number, number];
|
|
2535
|
-
readonly worldchunkiterwrapper_has_next: (a: number) => number;
|
|
2536
|
-
readonly worldchunkiterwrapper_next: (a: number) => [number, number, number];
|
|
2537
|
-
readonly worldchunkviewwrapper_biome_palette: (a: number) => [number, number];
|
|
2538
|
-
readonly worldchunkviewwrapper_cx: (a: number) => number;
|
|
2539
|
-
readonly worldchunkviewwrapper_cz: (a: number) => number;
|
|
2540
|
-
readonly worldchunkviewwrapper_get_block: (a: number, b: number, c: number, d: number) => [number, number];
|
|
2541
|
-
readonly worldchunkviewwrapper_new: (a: number, b: number) => number;
|
|
2542
|
-
readonly worldchunkviewwrapper_set_biome: (a: number, b: number, c: number) => void;
|
|
2543
|
-
readonly worldchunkviewwrapper_set_block: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2544
|
-
readonly worldchunkviewwrapper_to_schematic: (a: number) => number;
|
|
2545
|
-
readonly worldchunkviewwrapper_y_range: (a: number) => [number, number];
|
|
2546
|
-
readonly worldsourcewrapper_chunks: (a: number) => [number, number, number];
|
|
2547
|
-
readonly worldsourcewrapper_chunks_bounded: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
2548
|
-
readonly worldsourcewrapper_from_mca_bytes: (a: number, b: number) => [number, number, number];
|
|
2549
|
-
readonly worldsourcewrapper_from_zip_bytes: (a: number, b: number) => [number, number, number];
|
|
2550
|
-
readonly __wbg_blockstatewrapper_free: (a: number, b: number) => void;
|
|
2551
|
-
readonly __wbg_lazychunkiterator_free: (a: number, b: number) => void;
|
|
2552
|
-
readonly __wbg_palettemanager_free: (a: number, b: number) => void;
|
|
2553
|
-
readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
|
|
2554
|
-
readonly __wbg_schematicwrapper_free: (a: number, b: number) => void;
|
|
2555
|
-
readonly blockstatewrapper_name: (a: number) => [number, number];
|
|
2556
|
-
readonly blockstatewrapper_new: (a: number, b: number) => number;
|
|
2557
|
-
readonly blockstatewrapper_properties: (a: number) => any;
|
|
2558
|
-
readonly blockstatewrapper_with_property: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2559
|
-
readonly debug_json_schematic: (a: number) => [number, number];
|
|
2560
|
-
readonly debug_schematic: (a: number) => [number, number];
|
|
2561
|
-
readonly lazychunkiterator_current_position: (a: number) => number;
|
|
2562
|
-
readonly lazychunkiterator_has_next: (a: number) => number;
|
|
2563
|
-
readonly lazychunkiterator_next: (a: number) => any;
|
|
2564
|
-
readonly lazychunkiterator_reset: (a: number) => void;
|
|
2565
|
-
readonly lazychunkiterator_skip_to: (a: number, b: number) => void;
|
|
2566
|
-
readonly lazychunkiterator_total_chunks: (a: number) => number;
|
|
2567
|
-
readonly palettemanager_getConcreteBlocks: () => [number, number];
|
|
2568
|
-
readonly palettemanager_getPaletteByKeywords: (a: number, b: number) => [number, number];
|
|
2569
|
-
readonly palettemanager_getTerracottaBlocks: () => [number, number];
|
|
2570
|
-
readonly palettemanager_getWoolBlocks: () => [number, number];
|
|
2571
|
-
readonly schematicbuilderwrapper_build: (a: number) => [number, number, number];
|
|
2572
|
-
readonly schematicbuilderwrapper_fromTemplate: (a: number, b: number) => [number, number, number];
|
|
2573
|
-
readonly schematicbuilderwrapper_layer: (a: number, b: any) => [number, number, number];
|
|
2574
|
-
readonly schematicbuilderwrapper_layers: (a: number, b: any) => [number, number, number];
|
|
2575
|
-
readonly schematicbuilderwrapper_map: (a: number, b: number, c: number, d: number) => number;
|
|
2576
|
-
readonly schematicbuilderwrapper_name: (a: number, b: number, c: number) => number;
|
|
2577
|
-
readonly schematicbuilderwrapper_new: () => number;
|
|
2578
|
-
readonly schematicbuilderwrapper_offset: (a: number, b: number, c: number, d: number) => number;
|
|
2579
|
-
readonly schematicbuilderwrapper_palette: (a: number, b: any) => [number, number, number];
|
|
2580
|
-
readonly schematicbuilderwrapper_toTemplate: (a: number) => [number, number];
|
|
2581
|
-
readonly schematicbuilderwrapper_useCompactPalette: (a: number) => number;
|
|
2582
|
-
readonly schematicbuilderwrapper_useMinimalPalette: (a: number) => number;
|
|
2583
|
-
readonly schematicbuilderwrapper_useStandardPalette: (a: number) => number;
|
|
2584
|
-
readonly schematicbuilderwrapper_validate: (a: number) => [number, number];
|
|
2585
|
-
readonly schematicwrapper_addDefinitionRegion: (a: number, b: number, c: number, d: number) => void;
|
|
2586
|
-
readonly schematicwrapper_addEntityFromSnbt: (a: number, b: number, c: number) => [number, number];
|
|
2587
|
-
readonly schematicwrapper_add_entity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
|
|
2588
|
-
readonly schematicwrapper_autostackResize1d: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
2589
|
-
readonly schematicwrapper_autostackResize2d: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
2590
|
-
readonly schematicwrapper_blocks: (a: number) => any;
|
|
2591
|
-
readonly schematicwrapper_blocks_indices: (a: number) => any;
|
|
2592
|
-
readonly schematicwrapper_buildExecutor: (a: number, b: any) => [number, number, number];
|
|
2593
|
-
readonly schematicwrapper_canonicalDataVersion: () => number;
|
|
2594
|
-
readonly schematicwrapper_chunks: (a: number, b: number, c: number, d: number) => any;
|
|
2595
|
-
readonly schematicwrapper_chunks_indices: (a: number, b: number, c: number, d: number) => any;
|
|
2596
|
-
readonly schematicwrapper_chunks_indices_with_strategy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
|
|
2597
|
-
readonly schematicwrapper_chunks_with_strategy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
|
|
2598
|
-
readonly schematicwrapper_compileInsign: (a: number) => [number, number, number];
|
|
2599
|
-
readonly schematicwrapper_convertToDataVersion: (a: number, b: number, c: number) => [number, number];
|
|
2600
|
-
readonly schematicwrapper_convertToVersion: (a: number, b: number) => [number, number];
|
|
2601
|
-
readonly schematicwrapper_copy_region: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: any) => [number, number];
|
|
2602
|
-
readonly schematicwrapper_createCircuit: (a: number, b: any, c: any) => [number, number, number];
|
|
2603
|
-
readonly schematicwrapper_createCircuitBuilder: (a: number) => number;
|
|
2604
|
-
readonly schematicwrapper_createDefinitionRegion: (a: number, b: number, c: number) => void;
|
|
2605
|
-
readonly schematicwrapper_createDefinitionRegionFromBounds: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2606
|
-
readonly schematicwrapper_createDefinitionRegionFromPoint: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2607
|
-
readonly schematicwrapper_createRegion: (a: number, b: number, c: number, d: any, e: any) => [number, number, number];
|
|
2608
|
-
readonly schematicwrapper_create_lazy_chunk_iterator: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
2609
|
-
readonly schematicwrapper_debug_info: (a: number) => [number, number];
|
|
2610
|
-
readonly schematicwrapper_definitionRegionAddBounds: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
2611
|
-
readonly schematicwrapper_definitionRegionAddPoint: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
2612
|
-
readonly schematicwrapper_definitionRegionSetMetadata: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
2613
|
-
readonly schematicwrapper_definitionRegionShift: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
2614
|
-
readonly schematicwrapper_detectStructures: (a: number) => any;
|
|
2615
|
-
readonly schematicwrapper_detectStructuresGraph: (a: number) => any;
|
|
2616
|
-
readonly schematicwrapper_entity_count: (a: number) => number;
|
|
2617
|
-
readonly schematicwrapper_extractSigns: (a: number) => any;
|
|
2618
|
-
readonly schematicwrapper_fillCuboid: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
2619
|
-
readonly schematicwrapper_fillSphere: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2620
|
-
readonly schematicwrapper_flip_region_x: (a: number, b: number, c: number) => [number, number];
|
|
2621
|
-
readonly schematicwrapper_flip_region_y: (a: number, b: number, c: number) => [number, number];
|
|
2622
|
-
readonly schematicwrapper_flip_region_z: (a: number, b: number, c: number) => [number, number];
|
|
2623
|
-
readonly schematicwrapper_flip_x: (a: number) => void;
|
|
2624
|
-
readonly schematicwrapper_flip_y: (a: number) => void;
|
|
2625
|
-
readonly schematicwrapper_flip_z: (a: number) => void;
|
|
2626
|
-
readonly schematicwrapper_fromSdf: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
2627
|
-
readonly schematicwrapper_fromSdfBounded: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => [number, number];
|
|
2628
|
-
readonly schematicwrapper_fromSnapshot: (a: number, b: number, c: number) => [number, number];
|
|
2629
|
-
readonly schematicwrapper_from_data: (a: number, b: number, c: number) => [number, number];
|
|
2630
|
-
readonly schematicwrapper_from_litematic: (a: number, b: number, c: number) => [number, number];
|
|
2631
|
-
readonly schematicwrapper_from_mca: (a: number, b: number, c: number) => [number, number];
|
|
2632
|
-
readonly schematicwrapper_from_mca_bounded: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number];
|
|
2633
|
-
readonly schematicwrapper_from_mcstructure: (a: number, b: number, c: number) => [number, number];
|
|
2634
|
-
readonly schematicwrapper_from_schematic: (a: number, b: number, c: number) => [number, number];
|
|
2635
|
-
readonly schematicwrapper_from_world_zip: (a: number, b: number, c: number) => [number, number];
|
|
2636
|
-
readonly schematicwrapper_from_world_zip_bounded: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number];
|
|
2637
|
-
readonly schematicwrapper_getAllBlockEntitiesSnbt: (a: number) => any;
|
|
2638
|
-
readonly schematicwrapper_getAuthor: (a: number) => [number, number];
|
|
2639
|
-
readonly schematicwrapper_getBlockEntitySnbt: (a: number, b: number, c: number, d: number) => any;
|
|
2640
|
-
readonly schematicwrapper_getChunkData: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
2641
|
-
readonly schematicwrapper_getCreated: (a: number) => [number, number];
|
|
2642
|
-
readonly schematicwrapper_getDefinitionRegion: (a: number, b: number, c: number) => [number, number, number];
|
|
2643
|
-
readonly schematicwrapper_getDefinitionRegionNames: (a: number) => any;
|
|
2644
|
-
readonly schematicwrapper_getDescription: (a: number) => [number, number];
|
|
2645
|
-
readonly schematicwrapper_getEntitiesSnbt: (a: number) => any;
|
|
2646
|
-
readonly schematicwrapper_getLmVersion: (a: number) => number;
|
|
2647
|
-
readonly schematicwrapper_getMcVersion: (a: number) => number;
|
|
2648
|
-
readonly schematicwrapper_getModified: (a: number) => [number, number];
|
|
2649
|
-
readonly schematicwrapper_getName: (a: number) => [number, number];
|
|
2650
|
-
readonly schematicwrapper_getSourceDataVersion: (a: number) => number;
|
|
2651
|
-
readonly schematicwrapper_getWeVersion: (a: number) => number;
|
|
2652
|
-
readonly schematicwrapper_get_all_block_entities: (a: number) => any;
|
|
2653
|
-
readonly schematicwrapper_get_all_palettes: (a: number) => any;
|
|
2654
|
-
readonly schematicwrapper_get_allocated_dimensions: (a: number) => [number, number];
|
|
2655
|
-
readonly schematicwrapper_get_available_schematic_versions: (a: number) => any;
|
|
2656
|
-
readonly schematicwrapper_get_block: (a: number, b: number, c: number, d: number) => [number, number];
|
|
2657
|
-
readonly schematicwrapper_get_block_count: (a: number) => number;
|
|
2658
|
-
readonly schematicwrapper_get_block_entity: (a: number, b: number, c: number, d: number) => any;
|
|
2659
|
-
readonly schematicwrapper_get_block_string: (a: number, b: number, c: number, d: number) => [number, number];
|
|
2660
|
-
readonly schematicwrapper_get_block_with_properties: (a: number, b: number, c: number, d: number) => number;
|
|
2661
|
-
readonly schematicwrapper_get_blocks: (a: number, b: number, c: number) => any;
|
|
2662
|
-
readonly schematicwrapper_get_bounding_box: (a: number) => any;
|
|
2663
|
-
readonly schematicwrapper_get_chunk_blocks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
2664
|
-
readonly schematicwrapper_get_chunk_blocks_indices: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
2665
|
-
readonly schematicwrapper_get_default_format_version: (a: number, b: number) => [number, number];
|
|
2666
|
-
readonly schematicwrapper_get_default_region_palette: (a: number) => any;
|
|
2667
|
-
readonly schematicwrapper_get_dimensions: (a: number) => [number, number];
|
|
2668
|
-
readonly schematicwrapper_get_entities: (a: number) => any;
|
|
2669
|
-
readonly schematicwrapper_get_export_settings_schema: (a: number, b: number) => [number, number];
|
|
2670
|
-
readonly schematicwrapper_get_format_versions: (a: number, b: number) => any;
|
|
2671
|
-
readonly schematicwrapper_get_import_settings_schema: (a: number, b: number) => [number, number];
|
|
2672
|
-
readonly schematicwrapper_get_optimization_info: (a: number) => any;
|
|
2673
|
-
readonly schematicwrapper_get_palette: (a: number) => any;
|
|
2674
|
-
readonly schematicwrapper_get_palette_from_region: (a: number, b: number, c: number) => any;
|
|
2675
|
-
readonly schematicwrapper_get_region_bounding_box: (a: number, b: number, c: number) => any;
|
|
2676
|
-
readonly schematicwrapper_get_region_names: (a: number) => [number, number];
|
|
2677
|
-
readonly schematicwrapper_get_supported_export_formats: () => any;
|
|
2678
|
-
readonly schematicwrapper_get_supported_import_formats: () => any;
|
|
2679
|
-
readonly schematicwrapper_get_tight_bounds_max: (a: number) => [number, number];
|
|
2680
|
-
readonly schematicwrapper_get_tight_bounds_min: (a: number) => [number, number];
|
|
2681
|
-
readonly schematicwrapper_get_tight_dimensions: (a: number) => [number, number];
|
|
2682
|
-
readonly schematicwrapper_get_volume: (a: number) => number;
|
|
2683
|
-
readonly schematicwrapper_new: () => number;
|
|
2684
|
-
readonly schematicwrapper_openFromStore: (a: number, b: number, c: number) => [number, number, number];
|
|
2685
|
-
readonly schematicwrapper_place: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2686
|
-
readonly schematicwrapper_prepareBlock: (a: number, b: number, c: number) => number;
|
|
2687
|
-
readonly schematicwrapper_print_schematic: (a: number) => [number, number];
|
|
2688
|
-
readonly schematicwrapper_removeBlockEntity: (a: number, b: number, c: number, d: number) => number;
|
|
2689
|
-
readonly schematicwrapper_removeDefinitionRegion: (a: number, b: number, c: number) => number;
|
|
2690
|
-
readonly schematicwrapper_remove_entity: (a: number, b: number) => number;
|
|
2691
|
-
readonly schematicwrapper_rotate_region_x: (a: number, b: number, c: number, d: number) => [number, number];
|
|
2692
|
-
readonly schematicwrapper_rotate_region_y: (a: number, b: number, c: number, d: number) => [number, number];
|
|
2693
|
-
readonly schematicwrapper_rotate_region_z: (a: number, b: number, c: number, d: number) => [number, number];
|
|
2694
|
-
readonly schematicwrapper_rotate_x: (a: number, b: number) => void;
|
|
2695
|
-
readonly schematicwrapper_rotate_y: (a: number, b: number) => void;
|
|
2696
|
-
readonly schematicwrapper_rotate_z: (a: number, b: number) => void;
|
|
2697
|
-
readonly schematicwrapper_saveToStore: (a: number, b: number, c: number, d: number) => [number, number];
|
|
2698
|
-
readonly schematicwrapper_save_as: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
2699
|
-
readonly schematicwrapper_setAuthor: (a: number, b: number, c: number) => void;
|
|
2700
|
-
readonly schematicwrapper_setBlockEntity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
|
|
2701
|
-
readonly schematicwrapper_setBlockWithNbt: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
|
|
2702
|
-
readonly schematicwrapper_setCreated: (a: number, b: number) => void;
|
|
2703
|
-
readonly schematicwrapper_setDescription: (a: number, b: number, c: number) => void;
|
|
2704
|
-
readonly schematicwrapper_setLmVersion: (a: number, b: number) => void;
|
|
2705
|
-
readonly schematicwrapper_setMcVersion: (a: number, b: number) => void;
|
|
2706
|
-
readonly schematicwrapper_setModified: (a: number, b: number) => void;
|
|
2707
|
-
readonly schematicwrapper_setName: (a: number, b: number, c: number) => void;
|
|
2708
|
-
readonly schematicwrapper_setSourceDataVersion: (a: number, b: number) => void;
|
|
2709
|
-
readonly schematicwrapper_setWeVersion: (a: number, b: number) => void;
|
|
2710
|
-
readonly schematicwrapper_set_block: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2711
|
-
readonly schematicwrapper_set_block_from_string: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
2712
|
-
readonly schematicwrapper_set_block_in_region: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
2713
|
-
readonly schematicwrapper_set_block_with_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
|
|
2714
|
-
readonly schematicwrapper_set_blocks: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2715
|
-
readonly schematicwrapper_toLitematicForVersion: (a: number, b: number) => [number, number, number];
|
|
2716
|
-
readonly schematicwrapper_toSnapshot: (a: number) => [number, number, number, number];
|
|
2717
|
-
readonly schematicwrapper_to_litematic: (a: number) => [number, number, number, number];
|
|
2718
|
-
readonly schematicwrapper_to_mcstructure: (a: number) => [number, number, number, number];
|
|
2719
|
-
readonly schematicwrapper_to_schematic: (a: number) => [number, number, number, number];
|
|
2720
|
-
readonly schematicwrapper_to_schematic_version: (a: number, b: number, c: number) => [number, number, number, number];
|
|
2721
|
-
readonly schematicwrapper_to_world: (a: number, b: number, c: number) => [number, number, number];
|
|
2722
|
-
readonly schematicwrapper_to_world_zip: (a: number, b: number, c: number) => [number, number, number, number];
|
|
2723
|
-
readonly sdfEval: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
2724
|
-
readonly start: () => void;
|
|
2725
|
-
readonly schematicwrapper_updateRegion: (a: number, b: number, c: number, d: number) => void;
|
|
2726
|
-
readonly __wbg_brushwrapper_free: (a: number, b: number) => void;
|
|
2727
|
-
readonly __wbg_shapewrapper_free: (a: number, b: number) => void;
|
|
2728
|
-
readonly __wbg_wasmbuildingtool_free: (a: number, b: number) => void;
|
|
2729
|
-
readonly brushwrapper_bilinear_gradient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number) => number;
|
|
2730
|
-
readonly brushwrapper_color: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2731
|
-
readonly brushwrapper_curveGradient: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
2732
|
-
readonly brushwrapper_linear_gradient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => number;
|
|
2733
|
-
readonly brushwrapper_point_gradient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
2734
|
-
readonly brushwrapper_shaded: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
2735
|
-
readonly brushwrapper_solid: (a: number, b: number) => [number, number, number];
|
|
2736
|
-
readonly shapewrapper_bezier: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
2737
|
-
readonly shapewrapper_cone: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
2738
|
-
readonly shapewrapper_cuboid: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2739
|
-
readonly shapewrapper_cylinder: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
2740
|
-
readonly shapewrapper_cylinderBetween: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
2741
|
-
readonly shapewrapper_difference: (a: number, b: number) => number;
|
|
2742
|
-
readonly shapewrapper_disk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
2743
|
-
readonly shapewrapper_ellipsoid: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2744
|
-
readonly shapewrapper_hollow: (a: number, b: number) => number;
|
|
2745
|
-
readonly shapewrapper_intersection: (a: number, b: number) => number;
|
|
2746
|
-
readonly shapewrapper_line: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
2747
|
-
readonly shapewrapper_plane: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => number;
|
|
2748
|
-
readonly shapewrapper_pyramid: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
2749
|
-
readonly shapewrapper_sphere: (a: number, b: number, c: number, d: number) => number;
|
|
2750
|
-
readonly shapewrapper_torus: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
2751
|
-
readonly shapewrapper_triangle: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
2752
|
-
readonly shapewrapper_union: (a: number, b: number) => number;
|
|
2753
|
-
readonly wasmbuildingtool_fill: (a: number, b: number, c: number) => void;
|
|
2754
|
-
readonly wasmbuildingtool_rstack: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2755
|
-
readonly __wbg_chunkmeshiteratorwrapper_free: (a: number, b: number) => void;
|
|
2756
|
-
readonly __wbg_chunkmeshresultwrapper_free: (a: number, b: number) => void;
|
|
2757
|
-
readonly __wbg_itemmodelconfigwrapper_free: (a: number, b: number) => void;
|
|
2758
|
-
readonly __wbg_itemmodelresultwrapper_free: (a: number, b: number) => void;
|
|
2759
|
-
readonly __wbg_meshconfigwrapper_free: (a: number, b: number) => void;
|
|
2760
|
-
readonly __wbg_meshoutputwrapper_free: (a: number, b: number) => void;
|
|
2761
|
-
readonly __wbg_multimeshresultwrapper_free: (a: number, b: number) => void;
|
|
2762
|
-
readonly __wbg_rawmeshexportwrapper_free: (a: number, b: number) => void;
|
|
2763
|
-
readonly __wbg_resourcepackwrapper_free: (a: number, b: number) => void;
|
|
2764
|
-
readonly __wbg_storewrapper_free: (a: number, b: number) => void;
|
|
2765
|
-
readonly __wbg_textureatlaswrapper_free: (a: number, b: number) => void;
|
|
2766
|
-
readonly buildResourcePack: (a: number, b: number) => [number, number, number];
|
|
2767
|
-
readonly chunkmeshiteratorwrapper_advance: (a: number) => [number, number, number];
|
|
2768
|
-
readonly chunkmeshiteratorwrapper_chunkCount: (a: number) => number;
|
|
2769
|
-
readonly chunkmeshiteratorwrapper_current: (a: number) => number;
|
|
2770
|
-
readonly chunkmeshiteratorwrapper_currentCoord: (a: number) => any;
|
|
2771
|
-
readonly chunkmeshiteratorwrapper_hasSharedAtlas: (a: number) => number;
|
|
2772
|
-
readonly chunkmeshiteratorwrapper_setProgressCallback: (a: number, b: any) => void;
|
|
2773
|
-
readonly chunkmeshiteratorwrapper_sharedAtlas: (a: number) => number;
|
|
2774
|
-
readonly chunkmeshresultwrapper_chunkCount: (a: number) => number;
|
|
2775
|
-
readonly chunkmeshresultwrapper_getChunkCoordinates: (a: number) => any;
|
|
2776
|
-
readonly chunkmeshresultwrapper_getMesh: (a: number, b: number, c: number, d: number) => number;
|
|
2777
|
-
readonly chunkmeshresultwrapper_toNucm: (a: number) => any;
|
|
2778
|
-
readonly chunkmeshresultwrapper_totalTriangleCount: (a: number) => number;
|
|
2779
|
-
readonly chunkmeshresultwrapper_totalVertexCount: (a: number) => number;
|
|
2780
|
-
readonly itemmodelconfigwrapper_center: (a: number) => number;
|
|
2781
|
-
readonly itemmodelconfigwrapper_customModelData: (a: number) => [number, number];
|
|
2782
|
-
readonly itemmodelconfigwrapper_item: (a: number) => [number, number];
|
|
2783
|
-
readonly itemmodelconfigwrapper_model_name: (a: number) => [number, number];
|
|
2784
|
-
readonly itemmodelconfigwrapper_namespace: (a: number) => [number, number];
|
|
2785
|
-
readonly itemmodelconfigwrapper_new: (a: number, b: number) => number;
|
|
2786
|
-
readonly itemmodelconfigwrapper_setScale: (a: number, b: number) => void;
|
|
2787
|
-
readonly itemmodelconfigwrapper_setScaleAuto: (a: number) => void;
|
|
2788
|
-
readonly itemmodelconfigwrapper_setScaleXyz: (a: number, b: number, c: number, d: number) => void;
|
|
2789
|
-
readonly itemmodelconfigwrapper_set_center: (a: number, b: number) => void;
|
|
2790
|
-
readonly itemmodelconfigwrapper_set_customModelData: (a: number, b: number, c: number) => void;
|
|
2791
|
-
readonly itemmodelconfigwrapper_set_item: (a: number, b: number, c: number) => void;
|
|
2792
|
-
readonly itemmodelconfigwrapper_set_model_name: (a: number, b: number, c: number) => void;
|
|
2793
|
-
readonly itemmodelconfigwrapper_set_namespace: (a: number, b: number, c: number) => void;
|
|
2794
|
-
readonly itemmodelconfigwrapper_set_textureResolution: (a: number, b: number) => void;
|
|
2795
|
-
readonly itemmodelconfigwrapper_textureResolution: (a: number) => number;
|
|
2796
|
-
readonly itemmodelresultwrapper_dimensions: (a: number) => any;
|
|
2797
|
-
readonly itemmodelresultwrapper_elementCount: (a: number) => number;
|
|
2798
|
-
readonly itemmodelresultwrapper_getTexture: (a: number, b: number, c: number) => any;
|
|
2799
|
-
readonly itemmodelresultwrapper_modelJson: (a: number) => [number, number];
|
|
2800
|
-
readonly itemmodelresultwrapper_planeCount: (a: number) => number;
|
|
2801
|
-
readonly itemmodelresultwrapper_scale: (a: number) => any;
|
|
2802
|
-
readonly itemmodelresultwrapper_textureCount: (a: number) => number;
|
|
2803
|
-
readonly itemmodelresultwrapper_textureNames: (a: number) => any;
|
|
2804
|
-
readonly itemmodelresultwrapper_toResourcePackZip: (a: number) => [number, number, number];
|
|
2805
|
-
readonly meshconfigwrapper_ambientOcclusion: (a: number) => number;
|
|
2806
|
-
readonly meshconfigwrapper_aoIntensity: (a: number) => number;
|
|
2807
|
-
readonly meshconfigwrapper_biome: (a: number) => [number, number];
|
|
2808
|
-
readonly meshconfigwrapper_cullHiddenFaces: (a: number) => number;
|
|
2809
|
-
readonly meshconfigwrapper_cullOccludedBlocks: (a: number) => number;
|
|
2810
|
-
readonly meshconfigwrapper_greedyMeshing: (a: number) => number;
|
|
2811
|
-
readonly meshconfigwrapper_new: () => number;
|
|
2812
|
-
readonly meshconfigwrapper_setAmbientOcclusion: (a: number, b: number) => void;
|
|
2813
|
-
readonly meshconfigwrapper_setAoIntensity: (a: number, b: number) => void;
|
|
2814
|
-
readonly meshconfigwrapper_setAtlasMaxSize: (a: number, b: number) => void;
|
|
2815
|
-
readonly meshconfigwrapper_setBiome: (a: number, b: number, c: number) => void;
|
|
2816
|
-
readonly meshconfigwrapper_setCullHiddenFaces: (a: number, b: number) => void;
|
|
2817
|
-
readonly meshconfigwrapper_setCullOccludedBlocks: (a: number, b: number) => void;
|
|
2818
|
-
readonly meshconfigwrapper_setGreedyMeshing: (a: number, b: number) => void;
|
|
2819
|
-
readonly meshoutputwrapper_atlasHeight: (a: number) => number;
|
|
2820
|
-
readonly meshoutputwrapper_atlasRgba: (a: number) => any;
|
|
2821
|
-
readonly meshoutputwrapper_atlasWidth: (a: number) => number;
|
|
2822
|
-
readonly meshoutputwrapper_bounds: (a: number) => any;
|
|
2823
|
-
readonly meshoutputwrapper_chunkCoord: (a: number) => any;
|
|
2824
|
-
readonly meshoutputwrapper_cutoutColors: (a: number) => any;
|
|
2825
|
-
readonly meshoutputwrapper_cutoutIndices: (a: number) => any;
|
|
2826
|
-
readonly meshoutputwrapper_cutoutNormals: (a: number) => any;
|
|
2827
|
-
readonly meshoutputwrapper_cutoutPositions: (a: number) => any;
|
|
2828
|
-
readonly meshoutputwrapper_cutoutUvs: (a: number) => any;
|
|
2829
|
-
readonly meshoutputwrapper_getStats: (a: number) => any;
|
|
2830
|
-
readonly meshoutputwrapper_glbData: (a: number) => [number, number, number];
|
|
2831
|
-
readonly meshoutputwrapper_hasTransparency: (a: number) => number;
|
|
2832
|
-
readonly meshoutputwrapper_isEmpty: (a: number) => number;
|
|
2833
|
-
readonly meshoutputwrapper_lodLevel: (a: number) => number;
|
|
2834
|
-
readonly meshoutputwrapper_opaqueColors: (a: number) => any;
|
|
2835
|
-
readonly meshoutputwrapper_opaqueIndices: (a: number) => any;
|
|
2836
|
-
readonly meshoutputwrapper_opaqueNormals: (a: number) => any;
|
|
2837
|
-
readonly meshoutputwrapper_opaquePositions: (a: number) => any;
|
|
2838
|
-
readonly meshoutputwrapper_opaqueUvs: (a: number) => any;
|
|
2839
|
-
readonly meshoutputwrapper_toNucm: (a: number) => any;
|
|
2840
|
-
readonly meshoutputwrapper_toUsdz: (a: number) => [number, number, number];
|
|
2841
|
-
readonly meshoutputwrapper_totalTriangles: (a: number) => number;
|
|
2842
|
-
readonly meshoutputwrapper_totalVertices: (a: number) => number;
|
|
2843
|
-
readonly meshoutputwrapper_transparentColors: (a: number) => any;
|
|
2844
|
-
readonly meshoutputwrapper_transparentIndices: (a: number) => any;
|
|
2845
|
-
readonly meshoutputwrapper_transparentNormals: (a: number) => any;
|
|
2846
|
-
readonly meshoutputwrapper_transparentPositions: (a: number) => any;
|
|
2847
|
-
readonly meshoutputwrapper_transparentUvs: (a: number) => any;
|
|
2848
|
-
readonly multimeshresultwrapper_getMesh: (a: number, b: number, c: number) => number;
|
|
2849
|
-
readonly multimeshresultwrapper_getRegionNames: (a: number) => any;
|
|
2850
|
-
readonly multimeshresultwrapper_totalTriangleCount: (a: number) => number;
|
|
2851
|
-
readonly multimeshresultwrapper_totalVertexCount: (a: number) => number;
|
|
2852
|
-
readonly rawmeshexportwrapper_colorsFlat: (a: number) => [number, number];
|
|
2853
|
-
readonly rawmeshexportwrapper_indices: (a: number) => [number, number];
|
|
2854
|
-
readonly rawmeshexportwrapper_normalsFlat: (a: number) => [number, number];
|
|
2855
|
-
readonly rawmeshexportwrapper_positionsFlat: (a: number) => [number, number];
|
|
2856
|
-
readonly rawmeshexportwrapper_textureHeight: (a: number) => number;
|
|
2857
|
-
readonly rawmeshexportwrapper_textureRgba: (a: number) => [number, number];
|
|
2858
|
-
readonly rawmeshexportwrapper_textureWidth: (a: number) => number;
|
|
2859
|
-
readonly rawmeshexportwrapper_triangleCount: (a: number) => number;
|
|
2860
|
-
readonly rawmeshexportwrapper_uvsFlat: (a: number) => [number, number];
|
|
2861
|
-
readonly rawmeshexportwrapper_vertexCount: (a: number) => number;
|
|
2862
|
-
readonly resourcepackwrapper_addBlockstateJson: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
2863
|
-
readonly resourcepackwrapper_addModelJson: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
2864
|
-
readonly resourcepackwrapper_addTexture: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
2865
|
-
readonly resourcepackwrapper_blockstateCount: (a: number) => number;
|
|
2866
|
-
readonly resourcepackwrapper_fromBytesList: (a: any) => [number, number, number];
|
|
2867
|
-
readonly resourcepackwrapper_getBlockstateJson: (a: number, b: number, c: number) => [number, number];
|
|
2868
|
-
readonly resourcepackwrapper_getModelJson: (a: number, b: number, c: number) => [number, number];
|
|
2869
|
-
readonly resourcepackwrapper_getStats: (a: number) => any;
|
|
2870
|
-
readonly resourcepackwrapper_getTextureInfo: (a: number, b: number, c: number) => any;
|
|
2871
|
-
readonly resourcepackwrapper_getTexturePixels: (a: number, b: number, c: number) => [number, number];
|
|
2872
|
-
readonly resourcepackwrapper_listBlockstates: (a: number) => any;
|
|
2873
|
-
readonly resourcepackwrapper_listModels: (a: number) => any;
|
|
2874
|
-
readonly resourcepackwrapper_listTextures: (a: number) => any;
|
|
2875
|
-
readonly resourcepackwrapper_modelCount: (a: number) => number;
|
|
2876
|
-
readonly resourcepackwrapper_namespaces: (a: number) => any;
|
|
2877
|
-
readonly resourcepackwrapper_new: (a: number, b: number) => [number, number, number];
|
|
2878
|
-
readonly resourcepackwrapper_textureCount: (a: number) => number;
|
|
2879
|
-
readonly schematicwrapper_buildGlobalAtlas: (a: number, b: number, c: number) => [number, number, number];
|
|
2880
|
-
readonly schematicwrapper_chunkMeshIterator: (a: number, b: number, c: number, d: number) => number;
|
|
2881
|
-
readonly schematicwrapper_chunkMeshIteratorWithAtlas: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2882
|
-
readonly schematicwrapper_meshByChunk: (a: number, b: number, c: number) => [number, number, number];
|
|
2883
|
-
readonly schematicwrapper_meshByChunkSize: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
2884
|
-
readonly schematicwrapper_meshByRegion: (a: number, b: number, c: number) => [number, number, number];
|
|
2885
|
-
readonly schematicwrapper_registerMeshExporter: (a: number, b: number) => [number, number];
|
|
2886
|
-
readonly schematicwrapper_toItemModel: (a: number, b: number, c: number) => [number, number, number];
|
|
2887
|
-
readonly schematicwrapper_toMesh: (a: number, b: number, c: number) => [number, number, number];
|
|
2888
|
-
readonly schematicwrapper_toRawMesh: (a: number, b: number, c: number) => [number, number, number];
|
|
2889
|
-
readonly schematicwrapper_toUsdz: (a: number, b: number, c: number) => [number, number, number];
|
|
2890
|
-
readonly storewrapper_delete: (a: number, b: number, c: number) => [number, number];
|
|
2891
|
-
readonly storewrapper_fromCallbacks: (a: any) => [number, number, number];
|
|
2892
|
-
readonly storewrapper_get: (a: number, b: number, c: number) => [number, number, number, number];
|
|
2893
|
-
readonly storewrapper_has: (a: number, b: number, c: number) => [number, number, number];
|
|
2894
|
-
readonly storewrapper_health: (a: number) => [number, number];
|
|
2895
|
-
readonly storewrapper_list: (a: number, b: number, c: number) => [number, number, number, number];
|
|
2896
|
-
readonly storewrapper_listPaginated: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
2897
|
-
readonly storewrapper_new: (a: number, b: number) => [number, number, number];
|
|
2898
|
-
readonly storewrapper_open: (a: number, b: number) => [number, number, number];
|
|
2899
|
-
readonly storewrapper_put: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
2900
|
-
readonly storewrapper_putIfAbsent: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
2901
|
-
readonly textureatlaswrapper_toBytes: (a: number) => any;
|
|
2902
|
-
readonly meshoutputwrapper_vertexCount: (a: number) => number;
|
|
2903
|
-
readonly meshoutputwrapper_triangleCount: (a: number) => number;
|
|
2904
|
-
readonly meshoutputwrapper_toGlb: (a: number) => [number, number, number];
|
|
2905
|
-
readonly meshconfigwrapper_atlasMaxSize: (a: number) => number;
|
|
2906
|
-
readonly multimeshresultwrapper_meshCount: (a: number) => number;
|
|
2907
|
-
readonly textureatlaswrapper_height: (a: number) => number;
|
|
2908
|
-
readonly textureatlaswrapper_width: (a: number) => number;
|
|
2909
|
-
readonly generate_gradient_between_blocks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
|
|
2910
|
-
readonly generate_gradient_between_colors: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
|
|
2911
|
-
readonly get_all_colored_blocks: () => any;
|
|
2912
|
-
readonly get_block_info: (a: number, b: number) => any;
|
|
2913
|
-
readonly get_color_spaces: () => any;
|
|
2914
|
-
readonly get_easing_functions: () => any;
|
|
2915
|
-
readonly sort_blocks_by_color_gradient: (a: number, b: number) => any;
|
|
2916
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
2917
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
2918
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
|
2919
|
-
readonly __externref_table_alloc: () => number;
|
|
2920
|
-
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
2921
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
2922
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
2923
|
-
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
2924
|
-
readonly __wbindgen_start: () => void;
|
|
2925
|
-
}
|
|
2926
|
-
|
|
2927
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
2928
|
-
|
|
2929
|
-
/**
|
|
2930
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
2931
|
-
* a precompiled `WebAssembly.Module`.
|
|
2932
|
-
*
|
|
2933
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
2934
|
-
*
|
|
2935
|
-
* @returns {InitOutput}
|
|
2936
|
-
*/
|
|
2937
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
2938
|
-
|
|
2939
|
-
/**
|
|
2940
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
2941
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
2942
|
-
*
|
|
2943
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
2944
|
-
*
|
|
2945
|
-
* @returns {Promise<InitOutput>}
|
|
2946
|
-
*/
|
|
2947
|
-
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|