nucleation 0.2.18 → 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.
Files changed (125) hide show
  1. package/Autostack.d.ts +43 -0
  2. package/Autostack.mjs +134 -0
  3. package/BlockPos.d.ts +28 -0
  4. package/BlockPos.mjs +129 -0
  5. package/BlockState.d.ts +39 -0
  6. package/BlockState.mjs +134 -0
  7. package/Brush.d.ts +59 -0
  8. package/Brush.mjs +203 -0
  9. package/BuildingTool.d.ts +29 -0
  10. package/BuildingTool.mjs +74 -0
  11. package/ChunkMeshResult.d.ts +75 -0
  12. package/ChunkMeshResult.mjs +253 -0
  13. package/CircuitBuilder.d.ts +118 -0
  14. package/CircuitBuilder.mjs +516 -0
  15. package/DefinitionRegion.d.ts +274 -0
  16. package/DefinitionRegion.mjs +973 -0
  17. package/Diff.d.ts +88 -0
  18. package/Diff.mjs +316 -0
  19. package/Dimensions.d.ts +28 -0
  20. package/Dimensions.mjs +129 -0
  21. package/ExecutionMode.d.ts +42 -0
  22. package/ExecutionMode.mjs +127 -0
  23. package/Fingerprint.d.ts +44 -0
  24. package/Fingerprint.mjs +197 -0
  25. package/InterpolationSpace.d.ts +25 -0
  26. package/InterpolationSpace.mjs +73 -0
  27. package/IoLayout.d.ts +26 -0
  28. package/IoLayout.mjs +81 -0
  29. package/IoLayoutBuilder.d.ts +73 -0
  30. package/IoLayoutBuilder.mjs +315 -0
  31. package/IoType.d.ts +41 -0
  32. package/IoType.mjs +125 -0
  33. package/ItemModelConfig.d.ts +65 -0
  34. package/ItemModelConfig.mjs +223 -0
  35. package/ItemModelPackBuilder.d.ts +32 -0
  36. package/ItemModelPackBuilder.mjs +104 -0
  37. package/ItemModelResult.d.ts +72 -0
  38. package/ItemModelResult.mjs +268 -0
  39. package/ItemScale.d.ts +31 -0
  40. package/ItemScale.mjs +132 -0
  41. package/LayoutFunction.d.ts +52 -0
  42. package/LayoutFunction.mjs +159 -0
  43. package/MchprsWorld.d.ts +131 -0
  44. package/MchprsWorld.mjs +423 -0
  45. package/MeshBounds.d.ts +40 -0
  46. package/MeshBounds.mjs +180 -0
  47. package/MeshConfig.d.ts +101 -0
  48. package/MeshConfig.mjs +306 -0
  49. package/MeshJob.d.ts +44 -0
  50. package/MeshJob.mjs +116 -0
  51. package/MeshPhase.d.ts +38 -0
  52. package/MeshPhase.mjs +90 -0
  53. package/MeshProgress.d.ts +32 -0
  54. package/MeshProgress.mjs +133 -0
  55. package/MeshResult.d.ts +60 -0
  56. package/MeshResult.mjs +206 -0
  57. package/MultiMeshResult.d.ts +50 -0
  58. package/MultiMeshResult.mjs +166 -0
  59. package/Nbt.d.ts +50 -0
  60. package/Nbt.mjs +161 -0
  61. package/NucleationError.d.ts +36 -0
  62. package/NucleationError.mjs +104 -0
  63. package/OutputCondition.d.ts +45 -0
  64. package/OutputCondition.mjs +129 -0
  65. package/README.md +28 -197
  66. package/RawMeshExport.d.ts +74 -0
  67. package/RawMeshExport.mjs +243 -0
  68. package/RedstoneGraph.d.ts +58 -0
  69. package/RedstoneGraph.mjs +242 -0
  70. package/RegionBounds.d.ts +41 -0
  71. package/RegionBounds.mjs +181 -0
  72. package/RenderConfig.d.ts +66 -0
  73. package/RenderConfig.mjs +170 -0
  74. package/Renderer.d.ts +35 -0
  75. package/Renderer.mjs +139 -0
  76. package/ResourcePack.d.ts +105 -0
  77. package/ResourcePack.mjs +447 -0
  78. package/ResourcePackList.d.ts +32 -0
  79. package/ResourcePackList.mjs +96 -0
  80. package/Schematic.d.ts +655 -0
  81. package/Schematic.mjs +2647 -0
  82. package/SchematicBuilder.d.ts +103 -0
  83. package/SchematicBuilder.mjs +401 -0
  84. package/SchematicRegions.d.ts +93 -0
  85. package/SchematicRegions.mjs +411 -0
  86. package/Scripting.d.ts +40 -0
  87. package/Scripting.mjs +138 -0
  88. package/Sdf.d.ts +31 -0
  89. package/Sdf.mjs +107 -0
  90. package/Shape.d.ts +108 -0
  91. package/Shape.mjs +336 -0
  92. package/SortStrategy.d.ts +86 -0
  93. package/SortStrategy.mjs +272 -0
  94. package/Store.d.ts +83 -0
  95. package/Store.mjs +369 -0
  96. package/StoreIo.d.ts +71 -0
  97. package/StoreIo.mjs +292 -0
  98. package/TextureAtlas.d.ts +40 -0
  99. package/TextureAtlas.mjs +122 -0
  100. package/TextureInfo.d.ts +34 -0
  101. package/TextureInfo.mjs +148 -0
  102. package/TypedCircuitExecutor.d.ts +101 -0
  103. package/TypedCircuitExecutor.mjs +378 -0
  104. package/Value.d.ts +73 -0
  105. package/Value.mjs +275 -0
  106. package/WorldChunkView.d.ts +63 -0
  107. package/WorldChunkView.mjs +201 -0
  108. package/WorldSink.d.ts +50 -0
  109. package/WorldSink.mjs +177 -0
  110. package/WorldStream.d.ts +45 -0
  111. package/WorldStream.mjs +184 -0
  112. package/diplomat-runtime.d.ts +15 -0
  113. package/diplomat-runtime.mjs +774 -0
  114. package/diplomat-wasm.mjs +52 -0
  115. package/diplomat.config.mjs +6 -0
  116. package/index.d.ts +113 -0
  117. package/index.mjs +116 -0
  118. package/{nucleation_bg.wasm → nucleation.wasm} +0 -0
  119. package/package.json +19 -41
  120. package/LICENSE +0 -21
  121. package/api.js +0 -608
  122. package/nucleation-cdn-loader.js +0 -15
  123. package/nucleation-original.js +0 -8383
  124. package/nucleation.d.ts +0 -2947
  125. 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
- * Compute the content fingerprint as a hex string.
1316
- *
1317
- * `preset` defaults to `"exact"`. Unknown preset → Err.
1318
- */
1319
- fingerprint(preset?: string | null): string;
1320
- /**
1321
- * Whether this schematic is a duplicate of `other` under `preset`.
1322
- *
1323
- * `preset` defaults to `"exact"`. Unknown preset → Err.
1324
- */
1325
- isDuplicateOf(other: SchematicWrapper, preset?: string | null): boolean;
1326
- /**
1327
- * Footprint distance between this schematic and `other` (0.0 = identical).
1328
- *
1329
- * `preset` defaults to `"exact"`. Unknown preset → Err.
1330
- */
1331
- footprintDistance(other: SchematicWrapper, preset?: string | null): number;
1332
- /**
1333
- * The translation/scale-invariant FFT shape footprint as a fixed-length
1334
- * vector (the raw feature for clustering / nearest-neighbour search).
1335
- *
1336
- * `preset` defaults to `"exact"`. Unknown preset → Err.
1337
- */
1338
- footprint(preset?: string | null): Float32Array;
1339
- /**
1340
- * Compute the structural signature as a JSON string.
1341
- *
1342
- * `preset` defaults to `"exact"`. Unknown preset → Err.
1343
- */
1344
- signature(preset?: string | null): string;
1345
- /**
1346
- * Add a mobile entity to the schematic.
1347
- */
1348
- add_entity(id: string, x: number, y: number, z: number, nbt_json?: string | null): void;
1349
- debug_info(): string;
1350
- getAuthor(): string | undefined;
1351
- /**
1352
- * Batch get block names at multiple positions.
1353
- * `positions` is a flat Int32Array of [x0,y0,z0, x1,y1,z1, ...].
1354
- * Returns a JS Array of block name strings (null for empty/out-of-bounds).
1355
- */
1356
- get_blocks(positions: Int32Array): Array<any>;
1357
- get_volume(): number;
1358
- setAuthor(author: string): void;
1359
- /**
1360
- * Batch set blocks at multiple positions to the same block name.
1361
- * `positions` is a flat Int32Array of [x0,y0,z0, x1,y1,z1, ...].
1362
- * Returns the number of blocks set.
1363
- */
1364
- set_blocks(positions: Int32Array, block_name: string): number;
1365
- 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;
1366
- fillCuboid(min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number, block_state: string): void;
1367
- fillSphere(cx: number, cy: number, cz: number, radius: number, block_state: string): void;
1368
- getCreated(): number | undefined;
1369
- get_palette(): any;
1370
- setCreated(created: number): void;
1371
- /**
1372
- * Fast binary snapshot serialization — bypasses format manager for maximum speed.
1373
- */
1374
- toSnapshot(): Uint8Array;
1375
- /**
1376
- * Get the number of mobile entities (not block entities).
1377
- */
1378
- entity_count(): number;
1379
- /**
1380
- * Get all mobile entities as a JS array of objects.
1381
- */
1382
- get_entities(): any;
1383
- getModified(): number | undefined;
1384
- setModified(modified: number): void;
1385
- to_litematic(): Uint8Array;
1386
- to_schematic(): Uint8Array;
1387
- to_world_zip(options_json?: string | null): Uint8Array;
1388
- createRegion(name: string, min: any, max: any): DefinitionRegionWrapper;
1389
- /**
1390
- * Flip a specific region along the X axis
1391
- */
1392
- flip_region_x(region_name: string): void;
1393
- /**
1394
- * Flip a specific region along the Y axis
1395
- */
1396
- flip_region_y(region_name: string): void;
1397
- /**
1398
- * Flip a specific region along the Z axis
1399
- */
1400
- flip_region_z(region_name: string): void;
1401
- /**
1402
- * Fast binary snapshot deserialization — bypasses format manager for maximum speed.
1403
- */
1404
- fromSnapshot(data: Uint8Array): void;
1405
- /**
1406
- * Pre-resolve a plain block id to a palette index. Pair with
1407
- * `place(x, y, z, idx)` for the absolute fastest per-block placement
1408
- * in tight loops with multiple unique ids.
1409
- */
1410
- prepareBlock(block_name: string): number;
1411
- /**
1412
- * Remove a mobile entity by index. Returns true if removed.
1413
- */
1414
- remove_entity(index: number): boolean;
1415
- /**
1416
- * Save this schematic into a [`StoreWrapper`] at `key`. The export format is
1417
- * inferred from the `key`'s extension (e.g. `.litematic`, `.schem`). Works
1418
- * with `mem://` stores and the `Store.fromCallbacks(...)` JS-callback store.
1419
- */
1420
- saveToStore(store: StoreWrapper, key: string): void;
1421
- updateRegion(name: string, region: DefinitionRegionWrapper): void;
1422
- /**
1423
- * All blocks as palette indices - for when you need everything at once but efficiently
1424
- * Returns array of [x, y, z, palette_index]
1425
- */
1426
- blocks_indices(): Array<any>;
1427
- buildExecutor(config: any): TypedCircuitExecutorWrapper;
1428
- /**
1429
- * Optimized chunks iterator that returns palette indices instead of full block data
1430
- * Returns array of: { chunk_x, chunk_y, chunk_z, blocks: [[x,y,z,palette_index],...] }
1431
- */
1432
- chunks_indices(chunk_width: number, chunk_height: number, chunk_length: number): Array<any>;
1433
- createCircuit(inputs: any, outputs: any): TypedCircuitExecutorWrapper;
1434
- from_litematic(data: Uint8Array): void;
1435
- from_schematic(data: Uint8Array): void;
1436
- from_world_zip(data: Uint8Array): void;
1437
- /**
1438
- * Get optimized chunk data including blocks and relevant tile entities
1439
- * Returns { blocks: [[x,y,z,palette_index],...], entities: [{id, position, nbt},...] }
1440
- */
1441
- getChunkData(chunk_x: number, chunk_y: number, chunk_z: number, chunk_width: number, chunk_height: number, chunk_length: number): any;
1442
- get_dimensions(): Int32Array;
1443
- getLmVersion(): number | undefined;
1444
- getMcVersion(): number | undefined;
1445
- getWeVersion(): number | undefined;
1446
- setLmVersion(version: number): void;
1447
- setMcVersion(version: number): void;
1448
- setWeVersion(version: number): void;
1449
- to_mcstructure(): Uint8Array;
1450
- get_block_count(): number;
1451
- getDescription(): string | undefined;
1452
- /**
1453
- * Open a schematic directly from a [`StoreWrapper`] at `key`. The format is
1454
- * inferred from the stored bytes. This is the meaningful way to load from
1455
- * host/remote storage on the web: it works with `mem://` stores and with
1456
- * the JS-callback store created via `Store.fromCallbacks(...)`.
1457
- */
1458
- static openFromStore(store: StoreWrapper, key: string): SchematicWrapper;
1459
- print_schematic(): string;
1460
- /**
1461
- * Rotate a specific region around the X axis
1462
- */
1463
- rotate_region_x(region_name: string, degrees: number): void;
1464
- /**
1465
- * Rotate a specific region around the Y axis
1466
- */
1467
- rotate_region_y(region_name: string, degrees: number): void;
1468
- /**
1469
- * Rotate a specific region around the Z axis
1470
- */
1471
- rotate_region_z(region_name: string, degrees: number): void;
1472
- setDescription(description: string): void;
1473
- from_mca_bounded(data: Uint8Array, min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number): void;
1474
- from_mcstructure(data: Uint8Array): void;
1475
- /**
1476
- * Same as `fromSdf` with explicit inclusive sampling bounds.
1477
- */
1478
- 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;
1479
- /**
1480
- * Get all palettes once - eliminates repeated string transfers
1481
- * Returns: { default: [BlockState], regions: { regionName: [BlockState] } }
1482
- */
1483
- get_all_palettes(): any;
1484
- /**
1485
- * Get the structured block entity at a position as `{id, position, nbt}`,
1486
- * or NULL if there is none. Returns *every* block-entity type (chests,
1487
- * signs, furnaces, banners, spawners, …) — not just chests — so the editor
1488
- * can read all the NBT nucleation preserves. (For a precision-faithful
1489
- * representation of `Long`/`LongArray` fields, see `getBlockEntitySnbt`.)
1490
- */
1491
- get_block_entity(x: number, y: number, z: number): any;
1492
- /**
1493
- * Get block as formatted string with properties (e.g., "minecraft:lever[powered=true,facing=north]")
1494
- */
1495
- get_block_string(x: number, y: number, z: number): string | undefined;
1496
- get_bounding_box(): any;
1497
- get_chunk_blocks(offset_x: number, offset_y: number, offset_z: number, width: number, height: number, length: number): Array<any>;
1498
- get_region_names(): string[];
1499
- /**
1500
- * Set (or replace) a block entity at a position from an SNBT string. This is
1501
- * the faithful, fully-typed write path the editor uses to persist
1502
- * container contents, sign text, banner patterns, item components, etc.
1503
- * SNBT preserves every NBT tag type with no precision loss.
1504
- */
1505
- setBlockEntity(x: number, y: number, z: number, id: string, snbt: string): void;
1506
- /**
1507
- * Faithful, precision-safe read of every mobile entity as an SNBT string
1508
- * (the full entity compound incl. `id`/`Pos`, typed). Mirrors
1509
- * `getBlockEntitySnbt` so the editor can carry entity NBT verbatim.
1510
- */
1511
- getEntitiesSnbt(): Array<any>;
1512
- /**
1513
- * Convert to `target_data_version` using the schematic's *captured* source
1514
- * version (`source_data_version`, else `mc_version`, else canonical) as the
1515
- * origin, updating the metadata version to the target. Returns the JSON loss
1516
- * report (empty `[]` when lossless). This is the ergonomic save/load entry:
1517
- * `convertToVersion(CANONICAL)` on load, `convertToVersion(target)` before
1518
- * exporting for an older version.
1519
- */
1520
- convertToVersion(target_data_version: number): string;
1521
- setBlockWithNbt(x: number, y: number, z: number, block_name: string, nbt_data: any): void;
1522
- static get_format_versions(format: string): Array<any>;
1523
- /**
1524
- * Remove the block entity at a position. Returns true if one was removed.
1525
- */
1526
- removeBlockEntity(x: number, y: number, z: number): boolean;
1527
- set_block_in_region(region_name: string, x: number, y: number, z: number, block_name: string): boolean;
1528
- /**
1529
- * Add a mobile entity from a full SNBT entity compound (must contain `id`
1530
- * and `Pos`). The faithful, fully-typed entity write path — mirrors
1531
- * `setBlockEntity` for block entities.
1532
- */
1533
- addEntityFromSnbt(snbt: string): void;
1534
- 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>;
1535
- /**
1536
- * Get the tight bounding box max coordinates [x, y, z]
1537
- * Returns null if no non-air blocks have been placed
1538
- */
1539
- get_tight_bounds_max(): Int32Array | undefined;
1540
- /**
1541
- * Get the tight bounding box min coordinates [x, y, z]
1542
- * Returns null if no non-air blocks have been placed
1543
- */
1544
- get_tight_bounds_min(): Int32Array | undefined;
1545
- /**
1546
- * Get the tight dimensions of actual block content (excluding pre-allocated space)
1547
- * Returns [width, height, length] or [0, 0, 0] if no non-air blocks exist
1548
- */
1549
- get_tight_dimensions(): Int32Array;
1550
- to_schematic_version(version: string): Uint8Array;
1551
- addDefinitionRegion(name: string, region: DefinitionRegionWrapper): void;
1552
- /**
1553
- * Faithful, precision-safe block-entity read: the block entity's NBT as an
1554
- * SNBT string (typed — `123L`, `1b`, etc.), or NULL if none. Unlike the
1555
- * structured `nbt` object (which collapses `Long` to a JS double), SNBT
1556
- * round-trips losslessly through `setBlockEntity`, so the editor can carry
1557
- * untouched block entities verbatim.
1558
- */
1559
- getBlockEntitySnbt(x: number, y: number, z: number): any;
1560
- getDefinitionRegion(name: string): DefinitionRegionWrapper;
1561
- /**
1562
- * Get optimization stats
1563
- */
1564
- get_optimization_info(): any;
1565
- set_block_from_string(x: number, y: number, z: number, block_string: string): void;
1566
- /**
1567
- * The canonical in-memory data version (the forward-conversion target).
1568
- */
1569
- static canonicalDataVersion(): number;
1570
- createCircuitBuilder(): CircuitBuilderWrapper;
1571
- 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;
1572
- get_all_block_entities(): any;
1573
- /**
1574
- * Convert this schematic's block states / block entities / items between
1575
- * Minecraft data versions, in place, returning a JSON array describing any
1576
- * data loss (empty `[]` when lossless).
1577
- *
1578
- * Forward (target >= source) is faithful and lossless — the report is always
1579
- * `[]`. Reverse (target < source, used to save for an older version) can be
1580
- * lossy (the 1.13 Flattening, 1.20.5 components, item `Damage`, …); each
1581
- * approximation/drop is reported as `{version, kind, severity, path, detail}`
1582
- * so the tool can warn the user before saving. Conversion is never silent
1583
- * about loss.
1584
- */
1585
- convertToDataVersion(target_data_version: number, source_data_version: number): string;
1586
- definitionRegionShift(name: string, x: number, y: number, z: number): void;
1587
- get_palette_from_region(region_name: string): any;
1588
- get_region_bounding_box(region_name: string): any;
1589
- /**
1590
- * The Minecraft data version of the file this schematic was loaded from
1591
- * (captured by importers), or `None` for versionless/freshly-built schematics.
1592
- */
1593
- getSourceDataVersion(): number | undefined;
1594
- /**
1595
- * Override the source data version — for formats that carry no Java data
1596
- * version (classic `.schematic` ≈ 1343, raw imports), so the caller can tell
1597
- * the converter what to convert *from*.
1598
- */
1599
- setSourceDataVersion(version: number): void;
1600
- createDefinitionRegion(name: string): void;
1601
- /**
1602
- * Get the allocated dimensions (full buffer size including pre-allocated space)
1603
- * Use this if you need to know the internal buffer size
1604
- */
1605
- get_allocated_dimensions(): Int32Array;
1606
- /**
1607
- * Get specific chunk blocks as palette indices (for lazy loading individual chunks)
1608
- * Returns array of [x, y, z, palette_index]
1609
- */
1610
- get_chunk_blocks_indices(offset_x: number, offset_y: number, offset_z: number, width: number, height: number, length: number): Array<any>;
1611
- removeDefinitionRegion(name: string): boolean;
1612
- /**
1613
- * Serialize a `.litematic` targeting a specific Minecraft data version: a COPY
1614
- * of the schematic's content is converted to `target_data_version` and the
1615
- * matching schematic Version header (4=1.12 / 5=1.13–1.17 / 6=1.18–1.20.4 /
1616
- * 7=1.20.5+) is written. Returns `{ bytes: Uint8Array, loss: <json> }`; `loss`
1617
- * is the data-loss report from any down-conversion (empty `{}` when lossless),
1618
- * so the UI can warn the user. The schematic itself is left unchanged.
1619
- */
1620
- toLitematicForVersion(target_data_version: number): any;
1621
- get_block_with_properties(x: number, y: number, z: number): BlockStateWrapper | undefined;
1622
- set_block_with_properties(x: number, y: number, z: number, block_name: string, properties: any): void;
1623
- 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;
1624
- static get_default_format_version(format: string): string | undefined;
1625
- get_default_region_palette(): any;
1626
- /**
1627
- * Get the settings schema for an export format (returns JSON string or undefined).
1628
- */
1629
- static get_export_settings_schema(format: string): string | undefined;
1630
- /**
1631
- * Get the settings schema for an import format (returns JSON string or undefined).
1632
- */
1633
- static get_import_settings_schema(format: string): string | undefined;
1634
- definitionRegionAddPoint(name: string, x: number, y: number, z: number): void;
1635
- /**
1636
- * Every block entity as `{id, position:[x,y,z], snbt}` — the batch,
1637
- * precision-faithful read the editor bridge uses on load to attach each
1638
- * block entity's full NBT (as a typed SNBT string) to its block. The `snbt`
1639
- * is the block entity's inner data only (no `Id`/`Pos`); pair it with `id`
1640
- * and the position when writing back via `setBlockEntity`.
1641
- */
1642
- getAllBlockEntitiesSnbt(): Array<any>;
1643
- getDefinitionRegionNames(): Array<any>;
1644
- /**
1645
- * Optimized chunks with strategy - returns palette indices
1646
- */
1647
- 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>;
1648
- definitionRegionAddBounds(name: string, min: BlockPosition, max: BlockPosition): void;
1649
- static get_supported_export_formats(): Array<any>;
1650
- static get_supported_import_formats(): Array<any>;
1651
- definitionRegionSetMetadata(name: string, key: string, value: string): void;
1652
- get_available_schematic_versions(): Array<any>;
1653
- createDefinitionRegionFromPoint(name: string, x: number, y: number, z: number): void;
1654
- createDefinitionRegionFromBounds(name: string, min: BlockPosition, max: BlockPosition): void;
1655
- constructor();
1656
- /**
1657
- * Place a block by pre-resolved palette index. Caller must have called
1658
- * `prepareBlock(name)` first to obtain `palette_index`.
1659
- */
1660
- place(x: number, y: number, z: number, palette_index: number): void;
1661
- blocks(): Array<any>;
1662
- chunks(chunk_width: number, chunk_height: number, chunk_length: number): Array<any>;
1663
- /**
1664
- * Flip the schematic along the X axis
1665
- */
1666
- flip_x(): void;
1667
- /**
1668
- * Flip the schematic along the Y axis
1669
- */
1670
- flip_y(): void;
1671
- /**
1672
- * Flip the schematic along the Z axis
1673
- */
1674
- flip_z(): void;
1675
- save_as(format: string, version?: string | null, settings?: string | null): Uint8Array;
1676
- from_mca(data: Uint8Array): void;
1677
- /**
1678
- * Replace this schematic by sampling an SDF JSON tree with material
1679
- * rules JSON (auto bounds from the tree's AABB).
1680
- */
1681
- fromSdf(sdf_json: string, rules_json: string): void;
1682
- getName(): string | undefined;
1683
- /**
1684
- * Rotate the schematic around the X axis
1685
- * Degrees must be 90, 180, or 270
1686
- */
1687
- rotate_x(degrees: number): void;
1688
- /**
1689
- * Rotate the schematic around the Y axis (horizontal plane)
1690
- * Degrees must be 90, 180, or 270
1691
- */
1692
- rotate_y(degrees: number): void;
1693
- /**
1694
- * Rotate the schematic around the Z axis
1695
- * Degrees must be 90, 180, or 270
1696
- */
1697
- rotate_z(degrees: number): void;
1698
- setName(name: string): void;
1699
- to_world(options_json?: string | null): any;
1700
- from_data(data: Uint8Array): void;
1701
- get_block(x: number, y: number, z: number): string | undefined;
1702
- set_block(x: number, y: number, z: number, block_name: string): void;
1703
- /**
1704
- * Extract all sign text from the schematic
1705
- * Returns a JavaScript array of objects: [{pos: [x,y,z], text: "..."}]
1706
- */
1707
- extractSigns(): any;
1708
- /**
1709
- * Compile Insign annotations from the schematic's signs
1710
- * Returns a JavaScript object with compiled region metadata
1711
- * This returns raw Insign data - interpretation is up to the consumer
1712
- */
1713
- compileInsign(): any;
1714
- /**
1715
- * Detect repeating structures (by region coverage). Returns an array of
1716
- * objects: `{ mode, vectors, coverage, region_min, region_max, cell_min,
1717
- * cell_max, label }`.
1718
- */
1719
- detectStructures(): any;
1720
- /**
1721
- * Resize a 1D / diagonal periodic structure along its period vector,
1722
- * producing `units` repeating cells.
1723
- */
1724
- autostackResize1d(vx: number, vy: number, vz: number, units: number): SchematicWrapper;
1725
- /**
1726
- * Resize a 2D periodic structure to `n1`×`n2` cells along the two vectors.
1727
- */
1728
- autostackResize2d(v1x: number, v1y: number, v1z: number, v2x: number, v2y: number, v2z: number, n1: number, n2: number): SchematicWrapper;
1729
- /**
1730
- * Graph-based detection: recovers **diagonal** lattice periods (e.g. a
1731
- * diagonal carry-chain adder) that the pure-voxel `detectStructures` misses,
1732
- * by extracting the redstone logic graph. Returns the same object shape.
1733
- * Requires the `simulation` feature; returns `[]` for non-redstone builds.
1734
- */
1735
- detectStructuresGraph(): any;
1736
- /**
1737
- * Generate raw mesh data for custom rendering pipelines.
1738
- */
1739
- toRawMesh(pack: ResourcePackWrapper, config: MeshConfigWrapper): RawMeshExportWrapper;
1740
- /**
1741
- * Generate one mesh per 16x16x16 chunk (eager, all at once).
1742
- */
1743
- meshByChunk(pack: ResourcePackWrapper, config: MeshConfigWrapper): ChunkMeshResultWrapper;
1744
- /**
1745
- * Generate a Minecraft item model using the plane-based approach.
1746
- */
1747
- toItemModel(pack: ResourcePackWrapper, config: ItemModelConfigWrapper): ItemModelResultWrapper;
1748
- /**
1749
- * Generate one mesh per region.
1750
- */
1751
- meshByRegion(pack: ResourcePackWrapper, config: MeshConfigWrapper): MultiMeshResultWrapper;
1752
- /**
1753
- * Build a single shared texture atlas from all unique block states.
1754
- *
1755
- * The atlas can be reused across all chunks via `chunkMeshIteratorWithAtlas()`,
1756
- * eliminating per-chunk atlas duplication for massive schematics.
1757
- */
1758
- buildGlobalAtlas(pack: ResourcePackWrapper, config: MeshConfigWrapper): TextureAtlasWrapper;
1759
- /**
1760
- * Generate one mesh per chunk of the specified size (eager).
1761
- */
1762
- meshByChunkSize(pack: ResourcePackWrapper, config: MeshConfigWrapper, chunk_size: number): ChunkMeshResultWrapper;
1763
- /**
1764
- * Create a lazy chunk mesh iterator.
1765
- *
1766
- * Call `advance()` to step to the next chunk, then `current()` to get the
1767
- * mesh. Never loads the full world mesh into memory.
1768
- */
1769
- chunkMeshIterator(pack: ResourcePackWrapper, config: MeshConfigWrapper, chunk_size: number): ChunkMeshIteratorWrapper;
1770
- /**
1771
- * Register a mesh exporter with the FormatManager, enabling save_as("mesh", ...).
1772
- */
1773
- registerMeshExporter(pack: ResourcePackWrapper): void;
1774
- /**
1775
- * Create a lazy chunk mesh iterator that uses a pre-built global atlas.
1776
- *
1777
- * The global atlas is shared across all chunks, eliminating per-chunk atlas
1778
- * duplication. Build the atlas first with `buildGlobalAtlas()`.
1779
- */
1780
- chunkMeshIteratorWithAtlas(pack: ResourcePackWrapper, config: MeshConfigWrapper, chunk_size: number, atlas: TextureAtlasWrapper): ChunkMeshIteratorWrapper;
1781
- /**
1782
- * Generate a single mesh for the entire schematic.
1783
- *
1784
- * Returns a [`MeshOutputWrapper`] with per-layer typed arrays, atlas, and GLB data.
1785
- */
1786
- toMesh(pack: ResourcePackWrapper, config: MeshConfigWrapper): MeshOutputWrapper;
1787
- /**
1788
- * Generate a USDZ mesh for the entire schematic.
1789
- */
1790
- toUsdz(pack: ResourcePackWrapper, config: MeshConfigWrapper): MeshOutputWrapper;
1791
- /**
1792
- * Structurally diff this schematic against `other`.
1793
- *
1794
- * `preset` defaults to `"exact"`. `options` is an optional object
1795
- * `{cost_add?, cost_delete?, cost_change?, cost_swap?, swap_dominance_pct?,
1796
- * symmetry?}`. Returns a [`DiffWrapper`]. Unknown preset/symmetry → Err.
1797
- */
1798
- diff(other: SchematicWrapper, preset: string | null | undefined, options: any): DiffWrapper;
1799
- /**
1800
- * Creates a simulation world for this schematic with default options
1801
- *
1802
- * This allows you to simulate redstone circuits and interact with them.
1803
- */
1804
- create_simulation_world(): MchprsWorldWrapper;
1805
- /**
1806
- * Creates a simulation world for this schematic with custom options
1807
- *
1808
- * This allows you to configure simulation behavior like wire state tracking.
1809
- */
1810
- create_simulation_world_with_options(options: SimulationOptionsWrapper): MchprsWorldWrapper;
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
- * A keyset page of keys under `prefix`, sorted, starting strictly after
1997
- * `after` (pass `null`/`undefined` for the first page), at most `limit`.
1998
- * Returns `{ keys: string[], next: string | null }`; pass `next` back as
1999
- * `after` to continue, or stop when it is `null`.
2000
- */
2001
- listPaginated(prefix: string, after: string | null | undefined, limit: number): any;
2002
- /**
2003
- * Fetch `key`, or `undefined` if absent.
2004
- */
2005
- get(key: string): Uint8Array | undefined;
2006
- /**
2007
- * Open a store from a URL. On the web, use `mem://`.
2008
- */
2009
- constructor(url: string);
2010
- /**
2011
- * Store `data` at `key`, overwriting.
2012
- */
2013
- put(key: string, data: Uint8Array): void;
2014
- /**
2015
- * Keys under `prefix`.
2016
- */
2017
- list(prefix: string): string[];
2018
- /**
2019
- * Open a store from a URL (canonical name, matching Python/FFI `open`).
2020
- * Equivalent to `new Store(url)`.
2021
- */
2022
- static open(url: string): StoreWrapper;
2023
- /**
2024
- * Remove `key` (idempotent).
2025
- */
2026
- delete(key: string): void;
2027
- /**
2028
- * Whether `key` exists.
2029
- */
2030
- has(key: string): boolean;
2031
- /**
2032
- * Reject if the store is not usable.
2033
- */
2034
- health(): void;
2035
- /**
2036
- * Build a store backed by host-supplied JS functions ("host owns IO").
2037
- *
2038
- * `handlers` is a JS object with **synchronous** methods:
2039
- * `get(key) -> Uint8Array | null`, `put(key, Uint8Array)`,
2040
- * `has(key) -> bool`, `delete(key)`, `list(prefix) -> string[]`,
2041
- * `health()`. Any thrown JS error surfaces as a store error.
2042
- */
2043
- static fromCallbacks(handlers: any): StoreWrapper;
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_executionmodewrapper_free: (a: number, b: number) => void;
2311
- readonly __wbg_iolayoutbuilderwrapper_free: (a: number, b: number) => void;
2312
- readonly __wbg_iolayoutwrapper_free: (a: number, b: number) => void;
2313
- readonly __wbg_iotypewrapper_free: (a: number, b: number) => void;
2314
- readonly __wbg_layoutfunctionwrapper_free: (a: number, b: number) => void;
2315
- readonly __wbg_outputconditionwrapper_free: (a: number, b: number) => void;
2316
- readonly __wbg_typedcircuitexecutorwrapper_free: (a: number, b: number) => void;
2317
- readonly __wbg_valuewrapper_free: (a: number, b: number) => void;
2318
- readonly executionmodewrapper_fixedTicks: (a: number) => number;
2319
- readonly executionmodewrapper_untilChange: (a: number, b: number) => number;
2320
- readonly executionmodewrapper_untilCondition: (a: number, b: number, c: number, d: number, e: number) => number;
2321
- readonly executionmodewrapper_untilStable: (a: number, b: number) => number;
2322
- readonly iolayoutbuilderwrapper_addInput: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
2323
- readonly iolayoutbuilderwrapper_addInputAuto: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2324
- readonly iolayoutbuilderwrapper_addInputFromRegion: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2325
- readonly iolayoutbuilderwrapper_addInputFromRegionAuto: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
2326
- readonly iolayoutbuilderwrapper_addInputRegion: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
2327
- readonly iolayoutbuilderwrapper_addInputRegionAuto: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2328
- readonly iolayoutbuilderwrapper_addOutput: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
2329
- readonly iolayoutbuilderwrapper_addOutputAuto: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2330
- readonly iolayoutbuilderwrapper_addOutputFromRegion: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2331
- readonly iolayoutbuilderwrapper_addOutputFromRegionAuto: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
2332
- readonly iolayoutbuilderwrapper_addOutputRegion: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
2333
- readonly iolayoutbuilderwrapper_addOutputRegionAuto: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2334
- readonly iolayoutbuilderwrapper_build: (a: number) => number;
2335
- readonly iolayoutbuilderwrapper_new: () => number;
2336
- readonly iolayoutwrapper_inputNames: (a: number) => [number, number];
2337
- readonly iolayoutwrapper_outputNames: (a: number) => [number, number];
2338
- readonly iotypewrapper_ascii: (a: number) => number;
2339
- readonly iotypewrapper_boolean: () => number;
2340
- readonly iotypewrapper_float32: () => number;
2341
- readonly iotypewrapper_signedInt: (a: number) => number;
2342
- readonly iotypewrapper_unsignedInt: (a: number) => number;
2343
- readonly layoutfunctionwrapper_columnMajor: (a: number, b: number, c: number) => number;
2344
- readonly layoutfunctionwrapper_custom: (a: number, b: number) => number;
2345
- readonly layoutfunctionwrapper_oneToOne: () => number;
2346
- readonly layoutfunctionwrapper_packed4: () => number;
2347
- readonly layoutfunctionwrapper_rowMajor: (a: number, b: number, c: number) => number;
2348
- readonly layoutfunctionwrapper_scanline: (a: number, b: number, c: number) => number;
2349
- readonly outputconditionwrapper_bitwiseAnd: (a: number) => number;
2350
- readonly outputconditionwrapper_equals: (a: number) => number;
2351
- readonly outputconditionwrapper_greaterThan: (a: number) => number;
2352
- readonly outputconditionwrapper_lessThan: (a: number) => number;
2353
- readonly outputconditionwrapper_notEquals: (a: number) => number;
2354
- readonly typedcircuitexecutorwrapper_execute: (a: number, b: any, c: number) => [number, number, number];
2355
- readonly typedcircuitexecutorwrapper_flush: (a: number) => void;
2356
- readonly typedcircuitexecutorwrapper_fromInsign: (a: number) => [number, number, number];
2357
- readonly typedcircuitexecutorwrapper_fromInsignWithOptions: (a: number, b: number) => [number, number, number];
2358
- readonly typedcircuitexecutorwrapper_fromLayout: (a: number, b: number) => [number, number, number];
2359
- readonly typedcircuitexecutorwrapper_fromLayoutWithOptions: (a: number, b: number, c: number) => [number, number, number];
2360
- readonly typedcircuitexecutorwrapper_getLayoutInfo: (a: number) => any;
2361
- readonly typedcircuitexecutorwrapper_inputNames: (a: number) => [number, number];
2362
- readonly typedcircuitexecutorwrapper_outputNames: (a: number) => [number, number];
2363
- readonly typedcircuitexecutorwrapper_readOutput: (a: number, b: number, c: number) => [number, number, number];
2364
- readonly typedcircuitexecutorwrapper_reset: (a: number) => [number, number];
2365
- readonly typedcircuitexecutorwrapper_run: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
2366
- readonly typedcircuitexecutorwrapper_setInput: (a: number, b: number, c: number, d: number) => [number, number];
2367
- readonly typedcircuitexecutorwrapper_setStateMode: (a: number, b: number, c: number) => [number, number];
2368
- readonly typedcircuitexecutorwrapper_syncToSchematic: (a: number) => number;
2369
- readonly typedcircuitexecutorwrapper_tick: (a: number, b: number) => void;
2370
- readonly valuewrapper_fromBool: (a: number) => number;
2371
- readonly valuewrapper_fromF32: (a: number) => number;
2372
- readonly valuewrapper_fromI32: (a: number) => number;
2373
- readonly valuewrapper_fromString: (a: number, b: number) => number;
2374
- readonly valuewrapper_fromU32: (a: number) => number;
2375
- readonly valuewrapper_toJs: (a: number) => any;
2376
- readonly valuewrapper_typeName: (a: number) => [number, number];
2377
- readonly __wbg_blockstatewrapper_free: (a: number, b: number) => void;
2378
- readonly __wbg_brushwrapper_free: (a: number, b: number) => void;
2379
- readonly __wbg_definitionregionwrapper_free: (a: number, b: number) => void;
2380
- readonly __wbg_lazychunkiterator_free: (a: number, b: number) => void;
2381
- readonly __wbg_palettemanager_free: (a: number, b: number) => void;
2382
- readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
2383
- readonly __wbg_schematicwrapper_free: (a: number, b: number) => void;
2384
- readonly __wbg_shapewrapper_free: (a: number, b: number) => void;
2385
- readonly __wbg_wasmbuildingtool_free: (a: number, b: number) => void;
2386
- readonly blockstatewrapper_name: (a: number) => [number, number];
2387
- readonly blockstatewrapper_new: (a: number, b: number) => number;
2388
- readonly blockstatewrapper_properties: (a: number) => any;
2389
- readonly blockstatewrapper_with_property: (a: number, b: number, c: number, d: number, e: number) => void;
2390
- 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;
2391
- readonly brushwrapper_color: (a: number, b: number, c: number, d: number, e: number) => number;
2392
- readonly brushwrapper_curveGradient: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
2393
- 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;
2394
- 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];
2395
- readonly brushwrapper_shaded: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
2396
- readonly brushwrapper_solid: (a: number, b: number) => [number, number, number];
2397
- readonly debug_json_schematic: (a: number) => [number, number];
2398
- readonly debug_schematic: (a: number) => [number, number];
2399
- readonly definitionregionwrapper_addBounds: (a: number, b: any, c: any) => [number, number, number];
2400
- readonly definitionregionwrapper_addFilter: (a: number, b: number, c: number) => [number, number, number];
2401
- readonly definitionregionwrapper_addPoint: (a: number, b: number, c: number, d: number) => number;
2402
- readonly definitionregionwrapper_boxCount: (a: number) => number;
2403
- readonly definitionregionwrapper_center: (a: number) => any;
2404
- readonly definitionregionwrapper_centerF32: (a: number) => any;
2405
- readonly definitionregionwrapper_clone: (a: number) => number;
2406
- readonly definitionregionwrapper_connectedComponents: (a: number) => number;
2407
- readonly definitionregionwrapper_contains: (a: number, b: number, c: number, d: number) => number;
2408
- readonly definitionregionwrapper_contract: (a: number, b: number) => number;
2409
- readonly definitionregionwrapper_contracted: (a: number, b: number) => number;
2410
- readonly definitionregionwrapper_dimensions: (a: number) => any;
2411
- readonly definitionregionwrapper_excludeBlock: (a: number, b: number, c: number) => [number, number, number];
2412
- readonly definitionregionwrapper_expand: (a: number, b: number, c: number, d: number) => number;
2413
- readonly definitionregionwrapper_expanded: (a: number, b: number, c: number, d: number) => number;
2414
- readonly definitionregionwrapper_filterByBlock: (a: number, b: number, c: number, d: number) => number;
2415
- readonly definitionregionwrapper_filterByProperties: (a: number, b: number, c: any) => [number, number, number];
2416
- readonly definitionregionwrapper_fromBoundingBoxes: (a: any) => [number, number, number];
2417
- readonly definitionregionwrapper_fromBounds: (a: number, b: number) => number;
2418
- readonly definitionregionwrapper_fromPositions: (a: any) => [number, number, number];
2419
- readonly definitionregionwrapper_getAllMetadata: (a: number) => any;
2420
- readonly definitionregionwrapper_getBlocks: (a: number) => [number, number, number];
2421
- readonly definitionregionwrapper_getBounds: (a: number) => any;
2422
- readonly definitionregionwrapper_getBox: (a: number, b: number) => any;
2423
- readonly definitionregionwrapper_getBoxes: (a: number) => any;
2424
- readonly definitionregionwrapper_getMetadata: (a: number, b: number, c: number) => any;
2425
- readonly definitionregionwrapper_intersect: (a: number, b: number) => number;
2426
- readonly definitionregionwrapper_intersected: (a: number, b: number) => number;
2427
- readonly definitionregionwrapper_intersectsBounds: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
2428
- readonly definitionregionwrapper_isContiguous: (a: number) => number;
2429
- readonly definitionregionwrapper_isEmpty: (a: number) => number;
2430
- readonly definitionregionwrapper_merge: (a: number, b: number) => number;
2431
- readonly definitionregionwrapper_metadataKeys: (a: number) => any;
2432
- readonly definitionregionwrapper_new: () => number;
2433
- readonly definitionregionwrapper_positions: (a: number) => any;
2434
- readonly definitionregionwrapper_positionsSorted: (a: number) => any;
2435
- readonly definitionregionwrapper_setColor: (a: number, b: number) => number;
2436
- readonly definitionregionwrapper_setMetadata: (a: number, b: number, c: number, d: number, e: number) => number;
2437
- readonly definitionregionwrapper_shift: (a: number, b: number, c: number, d: number) => number;
2438
- readonly definitionregionwrapper_shifted: (a: number, b: number, c: number, d: number) => number;
2439
- readonly definitionregionwrapper_simplify: (a: number) => number;
2440
- readonly definitionregionwrapper_subtract: (a: number, b: number) => number;
2441
- readonly definitionregionwrapper_subtracted: (a: number, b: number) => number;
2442
- readonly definitionregionwrapper_union: (a: number, b: number) => number;
2443
- readonly definitionregionwrapper_unionInto: (a: number, b: number) => number;
2444
- readonly definitionregionwrapper_volume: (a: number) => number;
2445
- readonly lazychunkiterator_current_position: (a: number) => number;
2446
- readonly lazychunkiterator_has_next: (a: number) => number;
2447
- readonly lazychunkiterator_next: (a: number) => any;
2448
- readonly lazychunkiterator_reset: (a: number) => void;
2449
- readonly lazychunkiterator_skip_to: (a: number, b: number) => void;
2450
- readonly lazychunkiterator_total_chunks: (a: number) => number;
2451
- readonly palettemanager_getConcreteBlocks: () => [number, number];
2452
- readonly palettemanager_getPaletteByKeywords: (a: number, b: number) => [number, number];
2453
- readonly palettemanager_getTerracottaBlocks: () => [number, number];
2454
- readonly palettemanager_getWoolBlocks: () => [number, number];
2455
- readonly schematicbuilderwrapper_build: (a: number) => [number, number, number];
2456
- readonly schematicbuilderwrapper_fromTemplate: (a: number, b: number) => [number, number, number];
2457
- readonly schematicbuilderwrapper_layer: (a: number, b: any) => [number, number, number];
2458
- readonly schematicbuilderwrapper_layers: (a: number, b: any) => [number, number, number];
2459
- readonly schematicbuilderwrapper_map: (a: number, b: number, c: number, d: number) => number;
2460
- readonly schematicbuilderwrapper_name: (a: number, b: number, c: number) => number;
2461
- readonly schematicbuilderwrapper_new: () => number;
2462
- readonly schematicbuilderwrapper_offset: (a: number, b: number, c: number, d: number) => number;
2463
- readonly schematicbuilderwrapper_palette: (a: number, b: any) => [number, number, number];
2464
- readonly schematicbuilderwrapper_toTemplate: (a: number) => [number, number];
2465
- readonly schematicbuilderwrapper_useCompactPalette: (a: number) => number;
2466
- readonly schematicbuilderwrapper_useMinimalPalette: (a: number) => number;
2467
- readonly schematicbuilderwrapper_useStandardPalette: (a: number) => number;
2468
- readonly schematicbuilderwrapper_validate: (a: number) => [number, number];
2469
- readonly schematicwrapper_addDefinitionRegion: (a: number, b: number, c: number, d: number) => void;
2470
- readonly schematicwrapper_addEntityFromSnbt: (a: number, b: number, c: number) => [number, number];
2471
- readonly schematicwrapper_add_entity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
2472
- readonly schematicwrapper_autostackResize1d: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
2473
- readonly schematicwrapper_autostackResize2d: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
2474
- readonly schematicwrapper_blocks: (a: number) => any;
2475
- readonly schematicwrapper_blocks_indices: (a: number) => any;
2476
- readonly schematicwrapper_buildExecutor: (a: number, b: any) => [number, number, number];
2477
- readonly schematicwrapper_canonicalDataVersion: () => number;
2478
- readonly schematicwrapper_chunks: (a: number, b: number, c: number, d: number) => any;
2479
- readonly schematicwrapper_chunks_indices: (a: number, b: number, c: number, d: number) => any;
2480
- 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;
2481
- readonly schematicwrapper_chunks_with_strategy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
2482
- readonly schematicwrapper_compileInsign: (a: number) => [number, number, number];
2483
- readonly schematicwrapper_convertToDataVersion: (a: number, b: number, c: number) => [number, number];
2484
- readonly schematicwrapper_convertToVersion: (a: number, b: number) => [number, number];
2485
- 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];
2486
- readonly schematicwrapper_createCircuit: (a: number, b: any, c: any) => [number, number, number];
2487
- readonly schematicwrapper_createCircuitBuilder: (a: number) => number;
2488
- readonly schematicwrapper_createDefinitionRegion: (a: number, b: number, c: number) => void;
2489
- readonly schematicwrapper_createDefinitionRegionFromBounds: (a: number, b: number, c: number, d: number, e: number) => void;
2490
- readonly schematicwrapper_createDefinitionRegionFromPoint: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
2491
- readonly schematicwrapper_createRegion: (a: number, b: number, c: number, d: any, e: any) => [number, number, number];
2492
- 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;
2493
- readonly schematicwrapper_debug_info: (a: number) => [number, number];
2494
- readonly schematicwrapper_definitionRegionAddBounds: (a: number, b: number, c: number, d: number, e: number) => [number, number];
2495
- readonly schematicwrapper_definitionRegionAddPoint: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
2496
- readonly schematicwrapper_definitionRegionSetMetadata: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
2497
- readonly schematicwrapper_definitionRegionShift: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
2498
- readonly schematicwrapper_detectStructures: (a: number) => any;
2499
- readonly schematicwrapper_detectStructuresGraph: (a: number) => any;
2500
- readonly schematicwrapper_entity_count: (a: number) => number;
2501
- readonly schematicwrapper_extractSigns: (a: number) => any;
2502
- readonly schematicwrapper_fillCuboid: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
2503
- readonly schematicwrapper_fillSphere: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
2504
- readonly schematicwrapper_fingerprint: (a: number, b: number, c: number) => [number, number, number, number];
2505
- readonly schematicwrapper_flip_region_x: (a: number, b: number, c: number) => [number, number];
2506
- readonly schematicwrapper_flip_region_y: (a: number, b: number, c: number) => [number, number];
2507
- readonly schematicwrapper_flip_region_z: (a: number, b: number, c: number) => [number, number];
2508
- readonly schematicwrapper_flip_x: (a: number) => void;
2509
- readonly schematicwrapper_flip_y: (a: number) => void;
2510
- readonly schematicwrapper_flip_z: (a: number) => void;
2511
- readonly schematicwrapper_footprint: (a: number, b: number, c: number) => [number, number, number, number];
2512
- readonly schematicwrapper_footprintDistance: (a: number, b: number, c: number, d: number) => [number, number, number];
2513
- readonly schematicwrapper_fromSdf: (a: number, b: number, c: number, d: number, e: number) => [number, number];
2514
- 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];
2515
- readonly schematicwrapper_fromSnapshot: (a: number, b: number, c: number) => [number, number];
2516
- readonly schematicwrapper_from_data: (a: number, b: number, c: number) => [number, number];
2517
- readonly schematicwrapper_from_litematic: (a: number, b: number, c: number) => [number, number];
2518
- readonly schematicwrapper_from_mca: (a: number, b: number, c: number) => [number, number];
2519
- 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];
2520
- readonly schematicwrapper_from_mcstructure: (a: number, b: number, c: number) => [number, number];
2521
- readonly schematicwrapper_from_schematic: (a: number, b: number, c: number) => [number, number];
2522
- readonly schematicwrapper_from_world_zip: (a: number, b: number, c: number) => [number, number];
2523
- 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];
2524
- readonly schematicwrapper_getAllBlockEntitiesSnbt: (a: number) => any;
2525
- readonly schematicwrapper_getAuthor: (a: number) => [number, number];
2526
- readonly schematicwrapper_getBlockEntitySnbt: (a: number, b: number, c: number, d: number) => any;
2527
- readonly schematicwrapper_getChunkData: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
2528
- readonly schematicwrapper_getCreated: (a: number) => [number, number];
2529
- readonly schematicwrapper_getDefinitionRegion: (a: number, b: number, c: number) => [number, number, number];
2530
- readonly schematicwrapper_getDefinitionRegionNames: (a: number) => any;
2531
- readonly schematicwrapper_getDescription: (a: number) => [number, number];
2532
- readonly schematicwrapper_getEntitiesSnbt: (a: number) => any;
2533
- readonly schematicwrapper_getLmVersion: (a: number) => number;
2534
- readonly schematicwrapper_getMcVersion: (a: number) => number;
2535
- readonly schematicwrapper_getModified: (a: number) => [number, number];
2536
- readonly schematicwrapper_getName: (a: number) => [number, number];
2537
- readonly schematicwrapper_getSourceDataVersion: (a: number) => number;
2538
- readonly schematicwrapper_getWeVersion: (a: number) => number;
2539
- readonly schematicwrapper_get_all_block_entities: (a: number) => any;
2540
- readonly schematicwrapper_get_all_palettes: (a: number) => any;
2541
- readonly schematicwrapper_get_allocated_dimensions: (a: number) => [number, number];
2542
- readonly schematicwrapper_get_available_schematic_versions: (a: number) => any;
2543
- readonly schematicwrapper_get_block: (a: number, b: number, c: number, d: number) => [number, number];
2544
- readonly schematicwrapper_get_block_count: (a: number) => number;
2545
- readonly schematicwrapper_get_block_entity: (a: number, b: number, c: number, d: number) => any;
2546
- readonly schematicwrapper_get_block_string: (a: number, b: number, c: number, d: number) => [number, number];
2547
- readonly schematicwrapper_get_block_with_properties: (a: number, b: number, c: number, d: number) => number;
2548
- readonly schematicwrapper_get_blocks: (a: number, b: number, c: number) => any;
2549
- readonly schematicwrapper_get_bounding_box: (a: number) => any;
2550
- readonly schematicwrapper_get_chunk_blocks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
2551
- readonly schematicwrapper_get_chunk_blocks_indices: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
2552
- readonly schematicwrapper_get_default_format_version: (a: number, b: number) => [number, number];
2553
- readonly schematicwrapper_get_default_region_palette: (a: number) => any;
2554
- readonly schematicwrapper_get_dimensions: (a: number) => [number, number];
2555
- readonly schematicwrapper_get_entities: (a: number) => any;
2556
- readonly schematicwrapper_get_export_settings_schema: (a: number, b: number) => [number, number];
2557
- readonly schematicwrapper_get_format_versions: (a: number, b: number) => any;
2558
- readonly schematicwrapper_get_import_settings_schema: (a: number, b: number) => [number, number];
2559
- readonly schematicwrapper_get_optimization_info: (a: number) => any;
2560
- readonly schematicwrapper_get_palette: (a: number) => any;
2561
- readonly schematicwrapper_get_palette_from_region: (a: number, b: number, c: number) => any;
2562
- readonly schematicwrapper_get_region_bounding_box: (a: number, b: number, c: number) => any;
2563
- readonly schematicwrapper_get_region_names: (a: number) => [number, number];
2564
- readonly schematicwrapper_get_supported_export_formats: () => any;
2565
- readonly schematicwrapper_get_supported_import_formats: () => any;
2566
- readonly schematicwrapper_get_tight_bounds_max: (a: number) => [number, number];
2567
- readonly schematicwrapper_get_tight_bounds_min: (a: number) => [number, number];
2568
- readonly schematicwrapper_get_tight_dimensions: (a: number) => [number, number];
2569
- readonly schematicwrapper_get_volume: (a: number) => number;
2570
- readonly schematicwrapper_isDuplicateOf: (a: number, b: number, c: number, d: number) => [number, number, number];
2571
- readonly schematicwrapper_new: () => number;
2572
- readonly schematicwrapper_openFromStore: (a: number, b: number, c: number) => [number, number, number];
2573
- readonly schematicwrapper_place: (a: number, b: number, c: number, d: number, e: number) => void;
2574
- readonly schematicwrapper_prepareBlock: (a: number, b: number, c: number) => number;
2575
- readonly schematicwrapper_print_schematic: (a: number) => [number, number];
2576
- readonly schematicwrapper_removeBlockEntity: (a: number, b: number, c: number, d: number) => number;
2577
- readonly schematicwrapper_removeDefinitionRegion: (a: number, b: number, c: number) => number;
2578
- readonly schematicwrapper_remove_entity: (a: number, b: number) => number;
2579
- readonly schematicwrapper_rotate_region_x: (a: number, b: number, c: number, d: number) => [number, number];
2580
- readonly schematicwrapper_rotate_region_y: (a: number, b: number, c: number, d: number) => [number, number];
2581
- readonly schematicwrapper_rotate_region_z: (a: number, b: number, c: number, d: number) => [number, number];
2582
- readonly schematicwrapper_rotate_x: (a: number, b: number) => void;
2583
- readonly schematicwrapper_rotate_y: (a: number, b: number) => void;
2584
- readonly schematicwrapper_rotate_z: (a: number, b: number) => void;
2585
- readonly schematicwrapper_saveToStore: (a: number, b: number, c: number, d: number) => [number, number];
2586
- readonly schematicwrapper_save_as: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
2587
- readonly schematicwrapper_setAuthor: (a: number, b: number, c: number) => void;
2588
- readonly schematicwrapper_setBlockEntity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
2589
- readonly schematicwrapper_setBlockWithNbt: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
2590
- readonly schematicwrapper_setCreated: (a: number, b: number) => void;
2591
- readonly schematicwrapper_setDescription: (a: number, b: number, c: number) => void;
2592
- readonly schematicwrapper_setLmVersion: (a: number, b: number) => void;
2593
- readonly schematicwrapper_setMcVersion: (a: number, b: number) => void;
2594
- readonly schematicwrapper_setModified: (a: number, b: number) => void;
2595
- readonly schematicwrapper_setName: (a: number, b: number, c: number) => void;
2596
- readonly schematicwrapper_setSourceDataVersion: (a: number, b: number) => void;
2597
- readonly schematicwrapper_setWeVersion: (a: number, b: number) => void;
2598
- readonly schematicwrapper_set_block: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
2599
- readonly schematicwrapper_set_block_from_string: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
2600
- readonly schematicwrapper_set_block_in_region: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
2601
- readonly schematicwrapper_set_block_with_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
2602
- readonly schematicwrapper_set_blocks: (a: number, b: number, c: number, d: number, e: number) => number;
2603
- readonly schematicwrapper_signature: (a: number, b: number, c: number) => [number, number, number, number];
2604
- readonly schematicwrapper_toLitematicForVersion: (a: number, b: number) => [number, number, number];
2605
- readonly schematicwrapper_toSnapshot: (a: number) => [number, number, number, number];
2606
- readonly schematicwrapper_to_litematic: (a: number) => [number, number, number, number];
2607
- readonly schematicwrapper_to_mcstructure: (a: number) => [number, number, number, number];
2608
- readonly schematicwrapper_to_schematic: (a: number) => [number, number, number, number];
2609
- readonly schematicwrapper_to_schematic_version: (a: number, b: number, c: number) => [number, number, number, number];
2610
- readonly schematicwrapper_to_world: (a: number, b: number, c: number) => [number, number, number];
2611
- readonly schematicwrapper_to_world_zip: (a: number, b: number, c: number) => [number, number, number, number];
2612
- readonly sdfEval: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
2613
- readonly shapewrapper_bezier: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
2614
- readonly shapewrapper_cone: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
2615
- readonly shapewrapper_cuboid: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
2616
- readonly shapewrapper_cylinder: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
2617
- readonly shapewrapper_cylinderBetween: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
2618
- readonly shapewrapper_difference: (a: number, b: number) => number;
2619
- readonly shapewrapper_disk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
2620
- readonly shapewrapper_ellipsoid: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
2621
- readonly shapewrapper_hollow: (a: number, b: number) => number;
2622
- readonly shapewrapper_intersection: (a: number, b: number) => number;
2623
- readonly shapewrapper_line: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
2624
- 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;
2625
- readonly shapewrapper_pyramid: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
2626
- readonly shapewrapper_sphere: (a: number, b: number, c: number, d: number) => number;
2627
- readonly shapewrapper_torus: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
2628
- 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;
2629
- readonly shapewrapper_union: (a: number, b: number) => number;
2630
- readonly wasmbuildingtool_fill: (a: number, b: number, c: number) => void;
2631
- readonly wasmbuildingtool_rstack: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
2632
- readonly start: () => void;
2633
- readonly schematicwrapper_updateRegion: (a: number, b: number, c: number, d: number) => void;
2634
- readonly definitionregionwrapper_withMetadata: (a: number, b: number, c: number, d: number, e: number) => number;
2635
- readonly definitionregionwrapper_copy: (a: number) => number;
2636
- readonly __wbg_chunkmeshiteratorwrapper_free: (a: number, b: number) => void;
2637
- readonly __wbg_chunkmeshresultwrapper_free: (a: number, b: number) => void;
2638
- readonly __wbg_diffwrapper_free: (a: number, b: number) => void;
2639
- readonly __wbg_itemmodelconfigwrapper_free: (a: number, b: number) => void;
2640
- readonly __wbg_itemmodelresultwrapper_free: (a: number, b: number) => void;
2641
- readonly __wbg_meshconfigwrapper_free: (a: number, b: number) => void;
2642
- readonly __wbg_meshoutputwrapper_free: (a: number, b: number) => void;
2643
- readonly __wbg_multimeshresultwrapper_free: (a: number, b: number) => void;
2644
- readonly __wbg_rawmeshexportwrapper_free: (a: number, b: number) => void;
2645
- readonly __wbg_redstonegraphwrapper_free: (a: number, b: number) => void;
2646
- readonly __wbg_resourcepackwrapper_free: (a: number, b: number) => void;
2647
- readonly __wbg_storewrapper_free: (a: number, b: number) => void;
2648
- readonly __wbg_textureatlaswrapper_free: (a: number, b: number) => void;
2649
- readonly __wbg_worldchunkiterwrapper_free: (a: number, b: number) => void;
2650
- readonly __wbg_worldchunkviewwrapper_free: (a: number, b: number) => void;
2651
- readonly __wbg_worldsourcewrapper_free: (a: number, b: number) => void;
2652
- readonly buildResourcePack: (a: number, b: number) => [number, number, number];
2653
- readonly chunkmeshiteratorwrapper_advance: (a: number) => [number, number, number];
2654
- readonly chunkmeshiteratorwrapper_chunkCount: (a: number) => number;
2655
- readonly chunkmeshiteratorwrapper_current: (a: number) => number;
2656
- readonly chunkmeshiteratorwrapper_currentCoord: (a: number) => any;
2657
- readonly chunkmeshiteratorwrapper_hasSharedAtlas: (a: number) => number;
2658
- readonly chunkmeshiteratorwrapper_setProgressCallback: (a: number, b: any) => void;
2659
- readonly chunkmeshiteratorwrapper_sharedAtlas: (a: number) => number;
2660
- readonly chunkmeshresultwrapper_chunkCount: (a: number) => number;
2661
- readonly chunkmeshresultwrapper_getChunkCoordinates: (a: number) => any;
2662
- readonly chunkmeshresultwrapper_getMesh: (a: number, b: number, c: number, d: number) => number;
2663
- readonly chunkmeshresultwrapper_toNucm: (a: number) => any;
2664
- readonly chunkmeshresultwrapper_totalTriangleCount: (a: number) => number;
2665
- readonly chunkmeshresultwrapper_totalVertexCount: (a: number) => number;
2666
- readonly diffwrapper_added: (a: number) => number;
2667
- readonly diffwrapper_changed: (a: number) => number;
2668
- readonly diffwrapper_distance: (a: number) => number;
2669
- readonly diffwrapper_fromJson: (a: number, b: number) => [number, number, number];
2670
- readonly diffwrapper_markers: (a: number) => number;
2671
- readonly diffwrapper_regionsJson: (a: number) => [number, number];
2672
- readonly diffwrapper_removed: (a: number) => number;
2673
- readonly diffwrapper_summaryJson: (a: number) => [number, number];
2674
- readonly diffwrapper_support: (a: number) => number;
2675
- readonly diffwrapper_swapped: (a: number) => number;
2676
- readonly diffwrapper_toJson: (a: number) => [number, number];
2677
- readonly diffwrapper_toOverlayGlb: (a: number, b: number, c: number) => [number, number, number];
2678
- readonly itemmodelconfigwrapper_center: (a: number) => number;
2679
- readonly itemmodelconfigwrapper_customModelData: (a: number) => [number, number];
2680
- readonly itemmodelconfigwrapper_item: (a: number) => [number, number];
2681
- readonly itemmodelconfigwrapper_model_name: (a: number) => [number, number];
2682
- readonly itemmodelconfigwrapper_namespace: (a: number) => [number, number];
2683
- readonly itemmodelconfigwrapper_new: (a: number, b: number) => number;
2684
- readonly itemmodelconfigwrapper_setScale: (a: number, b: number) => void;
2685
- readonly itemmodelconfigwrapper_setScaleAuto: (a: number) => void;
2686
- readonly itemmodelconfigwrapper_setScaleXyz: (a: number, b: number, c: number, d: number) => void;
2687
- readonly itemmodelconfigwrapper_set_center: (a: number, b: number) => void;
2688
- readonly itemmodelconfigwrapper_set_customModelData: (a: number, b: number, c: number) => void;
2689
- readonly itemmodelconfigwrapper_set_item: (a: number, b: number, c: number) => void;
2690
- readonly itemmodelconfigwrapper_set_model_name: (a: number, b: number, c: number) => void;
2691
- readonly itemmodelconfigwrapper_set_namespace: (a: number, b: number, c: number) => void;
2692
- readonly itemmodelconfigwrapper_set_textureResolution: (a: number, b: number) => void;
2693
- readonly itemmodelconfigwrapper_textureResolution: (a: number) => number;
2694
- readonly itemmodelresultwrapper_dimensions: (a: number) => any;
2695
- readonly itemmodelresultwrapper_elementCount: (a: number) => number;
2696
- readonly itemmodelresultwrapper_getTexture: (a: number, b: number, c: number) => any;
2697
- readonly itemmodelresultwrapper_modelJson: (a: number) => [number, number];
2698
- readonly itemmodelresultwrapper_planeCount: (a: number) => number;
2699
- readonly itemmodelresultwrapper_scale: (a: number) => any;
2700
- readonly itemmodelresultwrapper_textureCount: (a: number) => number;
2701
- readonly itemmodelresultwrapper_textureNames: (a: number) => any;
2702
- readonly itemmodelresultwrapper_toResourcePackZip: (a: number) => [number, number, number];
2703
- readonly meshconfigwrapper_ambientOcclusion: (a: number) => number;
2704
- readonly meshconfigwrapper_aoIntensity: (a: number) => number;
2705
- readonly meshconfigwrapper_biome: (a: number) => [number, number];
2706
- readonly meshconfigwrapper_cullHiddenFaces: (a: number) => number;
2707
- readonly meshconfigwrapper_cullOccludedBlocks: (a: number) => number;
2708
- readonly meshconfigwrapper_greedyMeshing: (a: number) => number;
2709
- readonly meshconfigwrapper_new: () => number;
2710
- readonly meshconfigwrapper_setAmbientOcclusion: (a: number, b: number) => void;
2711
- readonly meshconfigwrapper_setAoIntensity: (a: number, b: number) => void;
2712
- readonly meshconfigwrapper_setAtlasMaxSize: (a: number, b: number) => void;
2713
- readonly meshconfigwrapper_setBiome: (a: number, b: number, c: number) => void;
2714
- readonly meshconfigwrapper_setCullHiddenFaces: (a: number, b: number) => void;
2715
- readonly meshconfigwrapper_setCullOccludedBlocks: (a: number, b: number) => void;
2716
- readonly meshconfigwrapper_setGreedyMeshing: (a: number, b: number) => void;
2717
- readonly meshoutputwrapper_atlasHeight: (a: number) => number;
2718
- readonly meshoutputwrapper_atlasRgba: (a: number) => any;
2719
- readonly meshoutputwrapper_atlasWidth: (a: number) => number;
2720
- readonly meshoutputwrapper_bounds: (a: number) => any;
2721
- readonly meshoutputwrapper_chunkCoord: (a: number) => any;
2722
- readonly meshoutputwrapper_cutoutColors: (a: number) => any;
2723
- readonly meshoutputwrapper_cutoutIndices: (a: number) => any;
2724
- readonly meshoutputwrapper_cutoutNormals: (a: number) => any;
2725
- readonly meshoutputwrapper_cutoutPositions: (a: number) => any;
2726
- readonly meshoutputwrapper_cutoutUvs: (a: number) => any;
2727
- readonly meshoutputwrapper_getStats: (a: number) => any;
2728
- readonly meshoutputwrapper_glbData: (a: number) => [number, number, number];
2729
- readonly meshoutputwrapper_hasTransparency: (a: number) => number;
2730
- readonly meshoutputwrapper_isEmpty: (a: number) => number;
2731
- readonly meshoutputwrapper_lodLevel: (a: number) => number;
2732
- readonly meshoutputwrapper_opaqueColors: (a: number) => any;
2733
- readonly meshoutputwrapper_opaqueIndices: (a: number) => any;
2734
- readonly meshoutputwrapper_opaqueNormals: (a: number) => any;
2735
- readonly meshoutputwrapper_opaquePositions: (a: number) => any;
2736
- readonly meshoutputwrapper_opaqueUvs: (a: number) => any;
2737
- readonly meshoutputwrapper_toNucm: (a: number) => any;
2738
- readonly meshoutputwrapper_toUsdz: (a: number) => [number, number, number];
2739
- readonly meshoutputwrapper_totalTriangles: (a: number) => number;
2740
- readonly meshoutputwrapper_totalVertices: (a: number) => number;
2741
- readonly meshoutputwrapper_transparentColors: (a: number) => any;
2742
- readonly meshoutputwrapper_transparentIndices: (a: number) => any;
2743
- readonly meshoutputwrapper_transparentNormals: (a: number) => any;
2744
- readonly meshoutputwrapper_transparentPositions: (a: number) => any;
2745
- readonly meshoutputwrapper_transparentUvs: (a: number) => any;
2746
- readonly multimeshresultwrapper_getMesh: (a: number, b: number, c: number) => number;
2747
- readonly multimeshresultwrapper_getRegionNames: (a: number) => any;
2748
- readonly multimeshresultwrapper_totalTriangleCount: (a: number) => number;
2749
- readonly multimeshresultwrapper_totalVertexCount: (a: number) => number;
2750
- readonly rawmeshexportwrapper_colorsFlat: (a: number) => [number, number];
2751
- readonly rawmeshexportwrapper_indices: (a: number) => [number, number];
2752
- readonly rawmeshexportwrapper_normalsFlat: (a: number) => [number, number];
2753
- readonly rawmeshexportwrapper_positionsFlat: (a: number) => [number, number];
2754
- readonly rawmeshexportwrapper_textureHeight: (a: number) => number;
2755
- readonly rawmeshexportwrapper_textureRgba: (a: number) => [number, number];
2756
- readonly rawmeshexportwrapper_textureWidth: (a: number) => number;
2757
- readonly rawmeshexportwrapper_triangleCount: (a: number) => number;
2758
- readonly rawmeshexportwrapper_uvsFlat: (a: number) => [number, number];
2759
- readonly rawmeshexportwrapper_vertexCount: (a: number) => number;
2760
- readonly redstonegraphwrapper_edgeCount: (a: number) => number;
2761
- readonly redstonegraphwrapper_edges: (a: number) => [number, number, number];
2762
- readonly redstonegraphwrapper_features: (a: number) => [number, number, number];
2763
- readonly redstonegraphwrapper_featuresJson: (a: number) => [number, number, number, number];
2764
- readonly redstonegraphwrapper_fingerprint: (a: number, b: number, c: number) => [number, number, number, number];
2765
- readonly redstonegraphwrapper_fromJson: (a: number, b: number) => [number, number, number];
2766
- readonly redstonegraphwrapper_nodeCount: (a: number) => number;
2767
- readonly redstonegraphwrapper_nodes: (a: number) => [number, number, number];
2768
- readonly redstonegraphwrapper_toJson: (a: number) => [number, number, number, number];
2769
- readonly resourcepackwrapper_addBlockstateJson: (a: number, b: number, c: number, d: number, e: number) => [number, number];
2770
- readonly resourcepackwrapper_addModelJson: (a: number, b: number, c: number, d: number, e: number) => [number, number];
2771
- readonly resourcepackwrapper_addTexture: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
2772
- readonly resourcepackwrapper_blockstateCount: (a: number) => number;
2773
- readonly resourcepackwrapper_fromBytesList: (a: any) => [number, number, number];
2774
- readonly resourcepackwrapper_getBlockstateJson: (a: number, b: number, c: number) => [number, number];
2775
- readonly resourcepackwrapper_getModelJson: (a: number, b: number, c: number) => [number, number];
2776
- readonly resourcepackwrapper_getStats: (a: number) => any;
2777
- readonly resourcepackwrapper_getTextureInfo: (a: number, b: number, c: number) => any;
2778
- readonly resourcepackwrapper_getTexturePixels: (a: number, b: number, c: number) => [number, number];
2779
- readonly resourcepackwrapper_listBlockstates: (a: number) => any;
2780
- readonly resourcepackwrapper_listModels: (a: number) => any;
2781
- readonly resourcepackwrapper_listTextures: (a: number) => any;
2782
- readonly resourcepackwrapper_modelCount: (a: number) => number;
2783
- readonly resourcepackwrapper_namespaces: (a: number) => any;
2784
- readonly resourcepackwrapper_new: (a: number, b: number) => [number, number, number];
2785
- readonly resourcepackwrapper_textureCount: (a: number) => number;
2786
- readonly schematicwrapper_buildGlobalAtlas: (a: number, b: number, c: number) => [number, number, number];
2787
- readonly schematicwrapper_chunkMeshIterator: (a: number, b: number, c: number, d: number) => number;
2788
- readonly schematicwrapper_chunkMeshIteratorWithAtlas: (a: number, b: number, c: number, d: number, e: number) => number;
2789
- readonly schematicwrapper_diff: (a: number, b: number, c: number, d: number, e: any) => [number, number, number];
2790
- readonly schematicwrapper_meshByChunk: (a: number, b: number, c: number) => [number, number, number];
2791
- readonly schematicwrapper_meshByChunkSize: (a: number, b: number, c: number, d: number) => [number, number, number];
2792
- readonly schematicwrapper_meshByRegion: (a: number, b: number, c: number) => [number, number, number];
2793
- readonly schematicwrapper_registerMeshExporter: (a: number, b: number) => [number, number];
2794
- readonly schematicwrapper_toItemModel: (a: number, b: number, c: number) => [number, number, number];
2795
- readonly schematicwrapper_toMesh: (a: number, b: number, c: number) => [number, number, number];
2796
- readonly schematicwrapper_toRawMesh: (a: number, b: number, c: number) => [number, number, number];
2797
- readonly schematicwrapper_toUsdz: (a: number, b: number, c: number) => [number, number, number];
2798
- readonly storewrapper_delete: (a: number, b: number, c: number) => [number, number];
2799
- readonly storewrapper_fromCallbacks: (a: any) => [number, number, number];
2800
- readonly storewrapper_get: (a: number, b: number, c: number) => [number, number, number, number];
2801
- readonly storewrapper_has: (a: number, b: number, c: number) => [number, number, number];
2802
- readonly storewrapper_health: (a: number) => [number, number];
2803
- readonly storewrapper_list: (a: number, b: number, c: number) => [number, number, number, number];
2804
- readonly storewrapper_listPaginated: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2805
- readonly storewrapper_new: (a: number, b: number) => [number, number, number];
2806
- readonly storewrapper_open: (a: number, b: number) => [number, number, number];
2807
- readonly storewrapper_put: (a: number, b: number, c: number, d: number, e: number) => [number, number];
2808
- readonly storewrapper_putIfAbsent: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
2809
- readonly textureatlaswrapper_toBytes: (a: number) => any;
2810
- readonly worldchunkiterwrapper_has_next: (a: number) => number;
2811
- readonly worldchunkiterwrapper_next: (a: number) => [number, number, number];
2812
- readonly worldchunkviewwrapper_biome_palette: (a: number) => [number, number];
2813
- readonly worldchunkviewwrapper_cx: (a: number) => number;
2814
- readonly worldchunkviewwrapper_cz: (a: number) => number;
2815
- readonly worldchunkviewwrapper_get_block: (a: number, b: number, c: number, d: number) => [number, number];
2816
- readonly worldchunkviewwrapper_new: (a: number, b: number) => number;
2817
- readonly worldchunkviewwrapper_set_biome: (a: number, b: number, c: number) => void;
2818
- readonly worldchunkviewwrapper_set_block: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
2819
- readonly worldchunkviewwrapper_to_schematic: (a: number) => number;
2820
- readonly worldchunkviewwrapper_y_range: (a: number) => [number, number];
2821
- readonly worldsourcewrapper_chunks: (a: number) => [number, number, number];
2822
- readonly worldsourcewrapper_chunks_bounded: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
2823
- readonly worldsourcewrapper_from_mca_bytes: (a: number, b: number) => [number, number, number];
2824
- readonly worldsourcewrapper_from_zip_bytes: (a: number, b: number) => [number, number, number];
2825
- readonly meshoutputwrapper_triangleCount: (a: number) => number;
2826
- readonly meshoutputwrapper_vertexCount: (a: number) => number;
2827
- readonly meshoutputwrapper_toGlb: (a: number) => [number, number, number];
2828
- readonly meshconfigwrapper_atlasMaxSize: (a: number) => number;
2829
- readonly multimeshresultwrapper_meshCount: (a: number) => number;
2830
- readonly textureatlaswrapper_height: (a: number) => number;
2831
- readonly textureatlaswrapper_width: (a: number) => number;
2832
- readonly __wbg_blockposition_free: (a: number, b: number) => void;
2833
- readonly __wbg_circuitbuilderwrapper_free: (a: number, b: number) => void;
2834
- readonly __wbg_get_blockposition_x: (a: number) => number;
2835
- readonly __wbg_get_blockposition_y: (a: number) => number;
2836
- readonly __wbg_get_blockposition_z: (a: number) => number;
2837
- readonly __wbg_mchprsworldwrapper_free: (a: number, b: number) => void;
2838
- readonly __wbg_set_blockposition_x: (a: number, b: number) => void;
2839
- readonly __wbg_set_blockposition_y: (a: number, b: number) => void;
2840
- readonly __wbg_set_blockposition_z: (a: number, b: number) => void;
2841
- readonly __wbg_simulationoptionswrapper_free: (a: number, b: number) => void;
2842
- readonly __wbg_sortstrategywrapper_free: (a: number, b: number) => void;
2843
- readonly __wbg_statemodeconstants_free: (a: number, b: number) => void;
2844
- readonly blockposition_new: (a: number, b: number, c: number) => number;
2845
- readonly circuitbuilderwrapper_build: (a: number) => [number, number, number];
2846
- readonly circuitbuilderwrapper_buildValidated: (a: number) => [number, number, number];
2847
- readonly circuitbuilderwrapper_fromInsign: (a: number) => [number, number, number];
2848
- readonly circuitbuilderwrapper_inputCount: (a: number) => number;
2849
- readonly circuitbuilderwrapper_inputNames: (a: number) => [number, number];
2850
- readonly circuitbuilderwrapper_new: (a: number) => number;
2851
- readonly circuitbuilderwrapper_outputCount: (a: number) => number;
2852
- readonly circuitbuilderwrapper_outputNames: (a: number) => [number, number];
2853
- readonly circuitbuilderwrapper_validate: (a: number) => [number, number];
2854
- readonly circuitbuilderwrapper_withInput: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2855
- readonly circuitbuilderwrapper_withInputAuto: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
2856
- readonly circuitbuilderwrapper_withInputAutoSorted: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2857
- readonly circuitbuilderwrapper_withInputSorted: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
2858
- readonly circuitbuilderwrapper_withOptions: (a: number, b: number) => number;
2859
- readonly circuitbuilderwrapper_withOutput: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2860
- readonly circuitbuilderwrapper_withOutputAuto: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
2861
- readonly circuitbuilderwrapper_withOutputAutoSorted: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
2862
- readonly circuitbuilderwrapper_withOutputSorted: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
2863
- readonly circuitbuilderwrapper_withStateMode: (a: number, b: number, c: number) => [number, number, number];
2864
- readonly mchprsworldwrapper_checkCustomIoChanges: (a: number) => void;
2865
- readonly mchprsworldwrapper_clearCustomIoChanges: (a: number) => void;
2866
- readonly mchprsworldwrapper_exportGraph: (a: number) => [number, number, number];
2867
- readonly mchprsworldwrapper_exportGraphStructural: (a: number) => [number, number, number];
2868
- readonly mchprsworldwrapper_flush: (a: number) => void;
2869
- readonly mchprsworldwrapper_getSignalStrength: (a: number, b: number, c: number, d: number) => number;
2870
- readonly mchprsworldwrapper_get_lever_power: (a: number, b: number, c: number, d: number) => number;
2871
- readonly mchprsworldwrapper_get_redstone_power: (a: number, b: number, c: number, d: number) => number;
2872
- readonly mchprsworldwrapper_get_schematic: (a: number) => number;
2873
- readonly mchprsworldwrapper_get_truth_table: (a: number) => any;
2874
- readonly mchprsworldwrapper_into_schematic: (a: number) => number;
2875
- readonly mchprsworldwrapper_is_lit: (a: number, b: number, c: number, d: number) => number;
2876
- readonly mchprsworldwrapper_new: (a: number) => [number, number, number];
2877
- readonly mchprsworldwrapper_on_use_block: (a: number, b: number, c: number, d: number) => void;
2878
- readonly mchprsworldwrapper_peekCustomIoChanges: (a: number) => any;
2879
- readonly mchprsworldwrapper_pollCustomIoChanges: (a: number) => any;
2880
- readonly mchprsworldwrapper_setSignalStrength: (a: number, b: number, c: number, d: number, e: number) => void;
2881
- readonly mchprsworldwrapper_sync_to_schematic: (a: number) => void;
2882
- readonly mchprsworldwrapper_tick: (a: number, b: number) => void;
2883
- readonly mchprsworldwrapper_with_options: (a: number, b: number) => [number, number, number];
2884
- readonly simulationoptionswrapper_addCustomIo: (a: number, b: number, c: number, d: number) => void;
2885
- readonly simulationoptionswrapper_clearCustomIo: (a: number) => void;
2886
- readonly simulationoptionswrapper_io_only: (a: number) => number;
2887
- readonly simulationoptionswrapper_new: () => number;
2888
- readonly simulationoptionswrapper_optimize: (a: number) => number;
2889
- readonly simulationoptionswrapper_set_io_only: (a: number, b: number) => void;
2890
- readonly simulationoptionswrapper_set_optimize: (a: number, b: number) => void;
2891
- readonly sortstrategywrapper_descending: () => number;
2892
- readonly sortstrategywrapper_distanceFrom: (a: number, b: number, c: number) => number;
2893
- readonly sortstrategywrapper_distanceFromDesc: (a: number, b: number, c: number) => number;
2894
- readonly sortstrategywrapper_fromString: (a: number, b: number) => [number, number, number];
2895
- readonly sortstrategywrapper_name: (a: number) => [number, number];
2896
- readonly sortstrategywrapper_preserve: () => number;
2897
- readonly sortstrategywrapper_reverse: () => number;
2898
- readonly sortstrategywrapper_xDescYZ: () => number;
2899
- readonly sortstrategywrapper_xyz: () => number;
2900
- readonly sortstrategywrapper_yDescXZ: () => number;
2901
- readonly sortstrategywrapper_yxz: () => number;
2902
- readonly sortstrategywrapper_zDescYX: () => number;
2903
- readonly sortstrategywrapper_zyx: () => number;
2904
- readonly statemodeconstants_manual: () => [number, number];
2905
- readonly statemodeconstants_stateful: () => [number, number];
2906
- readonly statemodeconstants_stateless: () => [number, number];
2907
- readonly schematicwrapper_create_simulation_world: (a: number) => [number, number, number];
2908
- readonly schematicwrapper_create_simulation_world_with_options: (a: number, b: number) => [number, 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>;