nucleation 0.1.125 → 0.1.126

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.
@@ -203,6 +203,47 @@ function takeFromExternrefTable0(idx) {
203
203
  return value;
204
204
  }
205
205
 
206
+ function getArrayJsValueFromWasm0(ptr, len) {
207
+ ptr = ptr >>> 0;
208
+ const mem = getDataViewMemory0();
209
+ const result = [];
210
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
211
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
212
+ }
213
+ wasm.__externref_drop_slice(ptr, len);
214
+ return result;
215
+ }
216
+
217
+ let cachedUint32ArrayMemory0 = null;
218
+
219
+ function getUint32ArrayMemory0() {
220
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
221
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
222
+ }
223
+ return cachedUint32ArrayMemory0;
224
+ }
225
+
226
+ function passArray32ToWasm0(arg, malloc) {
227
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
228
+ getUint32ArrayMemory0().set(arg, ptr / 4);
229
+ WASM_VECTOR_LEN = arg.length;
230
+ return ptr;
231
+ }
232
+
233
+ function passArrayJsValueToWasm0(array, malloc) {
234
+ const ptr = malloc(array.length * 4, 4) >>> 0;
235
+ for (let i = 0; i < array.length; i++) {
236
+ const add = addToExternrefTable0(array[i]);
237
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
238
+ }
239
+ WASM_VECTOR_LEN = array.length;
240
+ return ptr;
241
+ }
242
+
243
+ function _assertChar(c) {
244
+ if (typeof(c) === 'number' && (c >= 0x110000 || (c >= 0xD800 && c < 0xE000))) throw new Error(`expected a valid Unicode scalar value, found ${c}`);
245
+ }
246
+
206
247
  function getArrayU8FromWasm0(ptr, len) {
207
248
  ptr = ptr >>> 0;
208
249
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -214,27 +255,23 @@ function passArray8ToWasm0(arg, malloc) {
214
255
  WASM_VECTOR_LEN = arg.length;
215
256
  return ptr;
216
257
  }
217
-
218
- function getArrayJsValueFromWasm0(ptr, len) {
219
- ptr = ptr >>> 0;
220
- const mem = getDataViewMemory0();
221
- const result = [];
222
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
223
- result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
224
- }
225
- wasm.__externref_drop_slice(ptr, len);
226
- return result;
258
+ /**
259
+ * Initialize WASM module with panic hook for better error messages
260
+ */
261
+ export function start() {
262
+ wasm.start();
227
263
  }
264
+
228
265
  /**
229
266
  * @param {SchematicWrapper} schematic
230
267
  * @returns {string}
231
268
  */
232
- export function debug_json_schematic(schematic) {
269
+ export function debug_schematic(schematic) {
233
270
  let deferred1_0;
234
271
  let deferred1_1;
235
272
  try {
236
273
  _assertClass(schematic, SchematicWrapper);
237
- const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
274
+ const ret = wasm.debug_schematic(schematic.__wbg_ptr);
238
275
  deferred1_0 = ret[0];
239
276
  deferred1_1 = ret[1];
240
277
  return getStringFromWasm0(ret[0], ret[1]);
@@ -243,23 +280,16 @@ export function debug_json_schematic(schematic) {
243
280
  }
244
281
  }
245
282
 
246
- /**
247
- * Initialize WASM module with panic hook for better error messages
248
- */
249
- export function start() {
250
- wasm.start();
251
- }
252
-
253
283
  /**
254
284
  * @param {SchematicWrapper} schematic
255
285
  * @returns {string}
256
286
  */
257
- export function debug_schematic(schematic) {
287
+ export function debug_json_schematic(schematic) {
258
288
  let deferred1_0;
259
289
  let deferred1_1;
260
290
  try {
261
291
  _assertClass(schematic, SchematicWrapper);
262
- const ret = wasm.debug_schematic(schematic.__wbg_ptr);
292
+ const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
263
293
  deferred1_0 = ret[0];
264
294
  deferred1_1 = ret[1];
265
295
  return getStringFromWasm0(ret[0], ret[1]);
@@ -268,36 +298,6 @@ export function debug_schematic(schematic) {
268
298
  }
269
299
  }
270
300
 
271
- let cachedUint32ArrayMemory0 = null;
272
-
273
- function getUint32ArrayMemory0() {
274
- if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
275
- cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
276
- }
277
- return cachedUint32ArrayMemory0;
278
- }
279
-
280
- function passArray32ToWasm0(arg, malloc) {
281
- const ptr = malloc(arg.length * 4, 4) >>> 0;
282
- getUint32ArrayMemory0().set(arg, ptr / 4);
283
- WASM_VECTOR_LEN = arg.length;
284
- return ptr;
285
- }
286
-
287
- function passArrayJsValueToWasm0(array, malloc) {
288
- const ptr = malloc(array.length * 4, 4) >>> 0;
289
- for (let i = 0; i < array.length; i++) {
290
- const add = addToExternrefTable0(array[i]);
291
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
292
- }
293
- WASM_VECTOR_LEN = array.length;
294
- return ptr;
295
- }
296
-
297
- function _assertChar(c) {
298
- if (typeof(c) === 'number' && (c >= 0x110000 || (c >= 0xD800 && c < 0xE000))) throw new Error(`expected a valid Unicode scalar value, found ${c}`);
299
- }
300
-
301
301
  const BlockPositionFinalization = (typeof FinalizationRegistry === 'undefined')
302
302
  ? { register: () => {}, unregister: () => {} }
303
303
  : new FinalizationRegistry(ptr => wasm.__wbg_blockposition_free(ptr >>> 0, 1));
@@ -706,6 +706,35 @@ export class DefinitionRegionWrapper {
706
706
  var ptr1 = max.__destroy_into_raw();
707
707
  wasm.definitionregionwrapper_addBounds(this.__wbg_ptr, ptr0, ptr1);
708
708
  }
709
+ /**
710
+ * Get the center point of the region as f32 (for rendering)
711
+ *
712
+ * Returns [x, y, z] as floats or null if empty
713
+ * @returns {any}
714
+ */
715
+ centerF32() {
716
+ const ret = wasm.definitionregionwrapper_centerF32(this.__wbg_ptr);
717
+ return ret;
718
+ }
719
+ /**
720
+ * Create a new region contracted by the given amount (immutable)
721
+ * @param {number} amount
722
+ * @returns {DefinitionRegionWrapper}
723
+ */
724
+ contracted(amount) {
725
+ const ret = wasm.definitionregionwrapper_contracted(this.__wbg_ptr, amount);
726
+ return DefinitionRegionWrapper.__wrap(ret);
727
+ }
728
+ /**
729
+ * Get the dimensions (width, height, length) of the overall bounding box
730
+ *
731
+ * Returns [width, height, length] or [0, 0, 0] if empty
732
+ * @returns {Array<any>}
733
+ */
734
+ dimensions() {
735
+ const ret = wasm.definitionregionwrapper_dimensions(this.__wbg_ptr);
736
+ return ret;
737
+ }
709
738
  /**
710
739
  * Get the overall bounding box encompassing all boxes in this region
711
740
  * Returns an object with {min: [x,y,z], max: [x,y,z]} or null if empty
@@ -756,6 +785,27 @@ export class DefinitionRegionWrapper {
756
785
  const ret = wasm.definitionregionwrapper_intersected(this.__wbg_ptr, other.__wbg_ptr);
757
786
  return DefinitionRegionWrapper.__wrap(ret);
758
787
  }
788
+ /**
789
+ * Clone this region (alias for copy)
790
+ * @returns {DefinitionRegionWrapper}
791
+ */
792
+ clone() {
793
+ const ret = wasm.definitionregionwrapper_clone(this.__wbg_ptr);
794
+ return DefinitionRegionWrapper.__wrap(ret);
795
+ }
796
+ /**
797
+ * Get a metadata value by key
798
+ *
799
+ * Returns the value string or null if not found
800
+ * @param {string} key
801
+ * @returns {any}
802
+ */
803
+ getMetadata(key) {
804
+ const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
805
+ const len0 = WASM_VECTOR_LEN;
806
+ const ret = wasm.definitionregionwrapper_getMetadata(this.__wbg_ptr, ptr0, len0);
807
+ return ret;
808
+ }
759
809
  /**
760
810
  * @param {string} key
761
811
  * @param {string} value
@@ -778,6 +828,28 @@ export class DefinitionRegionWrapper {
778
828
  const ret = wasm.definitionregionwrapper_isContiguous(this.__wbg_ptr);
779
829
  return ret !== 0;
780
830
  }
831
+ /**
832
+ * Get all metadata keys
833
+ * @returns {Array<any>}
834
+ */
835
+ metadataKeys() {
836
+ const ret = wasm.definitionregionwrapper_metadataKeys(this.__wbg_ptr);
837
+ return ret;
838
+ }
839
+ /**
840
+ * Create a DefinitionRegion from an array of positions
841
+ *
842
+ * Takes an array of [x, y, z] arrays. Adjacent points will be merged into boxes.
843
+ * @param {any} positions
844
+ * @returns {DefinitionRegionWrapper}
845
+ */
846
+ static fromPositions(positions) {
847
+ const ret = wasm.definitionregionwrapper_fromPositions(positions);
848
+ if (ret[2]) {
849
+ throw takeFromExternrefTable0(ret[1]);
850
+ }
851
+ return DefinitionRegionWrapper.__wrap(ret[0]);
852
+ }
781
853
  /**
782
854
  * @param {SchematicWrapper} schematic
783
855
  * @param {string} block_name
@@ -790,6 +862,14 @@ export class DefinitionRegionWrapper {
790
862
  const ret = wasm.definitionregionwrapper_filterByBlock(this.__wbg_ptr, schematic.__wbg_ptr, ptr0, len0);
791
863
  return DefinitionRegionWrapper.__wrap(ret);
792
864
  }
865
+ /**
866
+ * Get all metadata as a JS object
867
+ * @returns {any}
868
+ */
869
+ getAllMetadata() {
870
+ const ret = wasm.definitionregionwrapper_getAllMetadata(this.__wbg_ptr);
871
+ return ret;
872
+ }
793
873
  /**
794
874
  * Get positions in globally sorted order (Y, then X, then Z)
795
875
  *
@@ -801,6 +881,37 @@ export class DefinitionRegionWrapper {
801
881
  const ret = wasm.definitionregionwrapper_positionsSorted(this.__wbg_ptr);
802
882
  return ret;
803
883
  }
884
+ /**
885
+ * Check if this region intersects with a bounding box
886
+ *
887
+ * Useful for frustum culling in renderers.
888
+ * @param {number} min_x
889
+ * @param {number} min_y
890
+ * @param {number} min_z
891
+ * @param {number} max_x
892
+ * @param {number} max_y
893
+ * @param {number} max_z
894
+ * @returns {boolean}
895
+ */
896
+ intersectsBounds(min_x, min_y, min_z, max_x, max_y, max_z) {
897
+ const ret = wasm.definitionregionwrapper_intersectsBounds(this.__wbg_ptr, min_x, min_y, min_z, max_x, max_y, max_z);
898
+ return ret !== 0;
899
+ }
900
+ /**
901
+ * Create a DefinitionRegion from multiple bounding boxes
902
+ *
903
+ * Takes an array of {min: [x,y,z], max: [x,y,z]} objects.
904
+ * Unlike fromPositions which merges adjacent points, this keeps boxes as provided.
905
+ * @param {any} boxes
906
+ * @returns {DefinitionRegionWrapper}
907
+ */
908
+ static fromBoundingBoxes(boxes) {
909
+ const ret = wasm.definitionregionwrapper_fromBoundingBoxes(boxes);
910
+ if (ret[2]) {
911
+ throw takeFromExternrefTable0(ret[1]);
912
+ }
913
+ return DefinitionRegionWrapper.__wrap(ret[0]);
914
+ }
804
915
  /**
805
916
  * Get the number of connected components in this region
806
917
  * @returns {number}
@@ -830,6 +941,14 @@ export class DefinitionRegionWrapper {
830
941
  DefinitionRegionWrapperFinalization.register(this, this.__wbg_ptr, this);
831
942
  return this;
832
943
  }
944
+ /**
945
+ * Create a deep copy of this region
946
+ * @returns {DefinitionRegionWrapper}
947
+ */
948
+ copy() {
949
+ const ret = wasm.definitionregionwrapper_clone(this.__wbg_ptr);
950
+ return DefinitionRegionWrapper.__wrap(ret);
951
+ }
833
952
  /**
834
953
  * @param {DefinitionRegionWrapper} other
835
954
  */
@@ -856,6 +975,16 @@ export class DefinitionRegionWrapper {
856
975
  const ret = wasm.definitionregionwrapper_union(this.__wbg_ptr, other.__wbg_ptr);
857
976
  return DefinitionRegionWrapper.__wrap(ret);
858
977
  }
978
+ /**
979
+ * Get the center point of the region (integer coordinates)
980
+ *
981
+ * Returns [x, y, z] or null if empty
982
+ * @returns {any}
983
+ */
984
+ center() {
985
+ const ret = wasm.definitionregionwrapper_center(this.__wbg_ptr);
986
+ return ret;
987
+ }
859
988
  /**
860
989
  * Expand all boxes by the given amounts in each direction
861
990
  * @param {number} x
@@ -873,6 +1002,28 @@ export class DefinitionRegionWrapper {
873
1002
  const ret = wasm.definitionregionwrapper_volume(this.__wbg_ptr);
874
1003
  return ret >>> 0;
875
1004
  }
1005
+ /**
1006
+ * Get a specific bounding box by index
1007
+ *
1008
+ * Returns {min: [x,y,z], max: [x,y,z]} or null if index is out of bounds
1009
+ * @param {number} index
1010
+ * @returns {any}
1011
+ */
1012
+ getBox(index) {
1013
+ const ret = wasm.definitionregionwrapper_getBox(this.__wbg_ptr, index);
1014
+ return ret;
1015
+ }
1016
+ /**
1017
+ * Create a new region shifted by the given offset (immutable)
1018
+ * @param {number} x
1019
+ * @param {number} y
1020
+ * @param {number} z
1021
+ * @returns {DefinitionRegionWrapper}
1022
+ */
1023
+ shifted(x, y, z) {
1024
+ const ret = wasm.definitionregionwrapper_shifted(this.__wbg_ptr, x, y, z);
1025
+ return DefinitionRegionWrapper.__wrap(ret);
1026
+ }
876
1027
  /**
877
1028
  * Check if the region contains a specific point
878
1029
  * @param {number} x
@@ -891,6 +1042,17 @@ export class DefinitionRegionWrapper {
891
1042
  contract(amount) {
892
1043
  wasm.definitionregionwrapper_contract(this.__wbg_ptr, amount);
893
1044
  }
1045
+ /**
1046
+ * Create a new region expanded by the given amounts (immutable)
1047
+ * @param {number} x
1048
+ * @param {number} y
1049
+ * @param {number} z
1050
+ * @returns {DefinitionRegionWrapper}
1051
+ */
1052
+ expanded(x, y, z) {
1053
+ const ret = wasm.definitionregionwrapper_expanded(this.__wbg_ptr, x, y, z);
1054
+ return DefinitionRegionWrapper.__wrap(ret);
1055
+ }
894
1056
  /**
895
1057
  * Check if the region is empty
896
1058
  * @returns {boolean}
@@ -921,6 +1083,25 @@ export class DefinitionRegionWrapper {
921
1083
  addPoint(x, y, z) {
922
1084
  wasm.definitionregionwrapper_addPoint(this.__wbg_ptr, x, y, z);
923
1085
  }
1086
+ /**
1087
+ * Get the number of bounding boxes in this region
1088
+ * @returns {number}
1089
+ */
1090
+ boxCount() {
1091
+ const ret = wasm.definitionregionwrapper_boxCount(this.__wbg_ptr);
1092
+ return ret >>> 0;
1093
+ }
1094
+ /**
1095
+ * Get all bounding boxes in this region
1096
+ *
1097
+ * Returns an array of {min: [x,y,z], max: [x,y,z]} objects.
1098
+ * Useful for rendering each box separately.
1099
+ * @returns {Array<any>}
1100
+ */
1101
+ getBoxes() {
1102
+ const ret = wasm.definitionregionwrapper_getBoxes(this.__wbg_ptr);
1103
+ return ret;
1104
+ }
924
1105
  /**
925
1106
  * Keep only points present in both regions (intersection)
926
1107
  * @param {DefinitionRegionWrapper} other
@@ -2000,6 +2181,34 @@ export class SchematicWrapper {
2000
2181
  const ptr = this.__destroy_into_raw();
2001
2182
  wasm.__wbg_schematicwrapper_free(ptr, 0);
2002
2183
  }
2184
+ /**
2185
+ * Creates a simulation world for this schematic with default options
2186
+ *
2187
+ * This allows you to simulate redstone circuits and interact with them.
2188
+ * @returns {MchprsWorldWrapper}
2189
+ */
2190
+ create_simulation_world() {
2191
+ const ret = wasm.schematicwrapper_create_simulation_world(this.__wbg_ptr);
2192
+ if (ret[2]) {
2193
+ throw takeFromExternrefTable0(ret[1]);
2194
+ }
2195
+ return MchprsWorldWrapper.__wrap(ret[0]);
2196
+ }
2197
+ /**
2198
+ * Creates a simulation world for this schematic with custom options
2199
+ *
2200
+ * This allows you to configure simulation behavior like wire state tracking.
2201
+ * @param {SimulationOptionsWrapper} options
2202
+ * @returns {MchprsWorldWrapper}
2203
+ */
2204
+ create_simulation_world_with_options(options) {
2205
+ _assertClass(options, SimulationOptionsWrapper);
2206
+ const ret = wasm.schematicwrapper_create_simulation_world_with_options(this.__wbg_ptr, options.__wbg_ptr);
2207
+ if (ret[2]) {
2208
+ throw takeFromExternrefTable0(ret[1]);
2209
+ }
2210
+ return MchprsWorldWrapper.__wrap(ret[0]);
2211
+ }
2003
2212
  /**
2004
2213
  * @returns {string}
2005
2214
  */
@@ -2643,34 +2852,6 @@ export class SchematicWrapper {
2643
2852
  const len0 = WASM_VECTOR_LEN;
2644
2853
  wasm.schematicwrapper_set_block(this.__wbg_ptr, x, y, z, ptr0, len0);
2645
2854
  }
2646
- /**
2647
- * Creates a simulation world for this schematic with default options
2648
- *
2649
- * This allows you to simulate redstone circuits and interact with them.
2650
- * @returns {MchprsWorldWrapper}
2651
- */
2652
- create_simulation_world() {
2653
- const ret = wasm.schematicwrapper_create_simulation_world(this.__wbg_ptr);
2654
- if (ret[2]) {
2655
- throw takeFromExternrefTable0(ret[1]);
2656
- }
2657
- return MchprsWorldWrapper.__wrap(ret[0]);
2658
- }
2659
- /**
2660
- * Creates a simulation world for this schematic with custom options
2661
- *
2662
- * This allows you to configure simulation behavior like wire state tracking.
2663
- * @param {SimulationOptionsWrapper} options
2664
- * @returns {MchprsWorldWrapper}
2665
- */
2666
- create_simulation_world_with_options(options) {
2667
- _assertClass(options, SimulationOptionsWrapper);
2668
- const ret = wasm.schematicwrapper_create_simulation_world_with_options(this.__wbg_ptr, options.__wbg_ptr);
2669
- if (ret[2]) {
2670
- throw takeFromExternrefTable0(ret[1]);
2671
- }
2672
- return MchprsWorldWrapper.__wrap(ret[0]);
2673
- }
2674
2855
  }
2675
2856
  if (Symbol.dispose) SchematicWrapper.prototype[Symbol.dispose] = SchematicWrapper.prototype.free;
2676
2857
 
package/nucleation.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function debug_json_schematic(schematic: SchematicWrapper): string;
4
3
  /**
5
4
  * Initialize WASM module with panic hook for better error messages
6
5
  */
7
6
  export function start(): void;
8
7
  export function debug_schematic(schematic: SchematicWrapper): string;
8
+ export function debug_json_schematic(schematic: SchematicWrapper): string;
9
9
  export class BlockPosition {
10
10
  free(): void;
11
11
  [Symbol.dispose](): void;
@@ -94,6 +94,22 @@ export class DefinitionRegionWrapper {
94
94
  free(): void;
95
95
  [Symbol.dispose](): void;
96
96
  addBounds(min: BlockPosition, max: BlockPosition): void;
97
+ /**
98
+ * Get the center point of the region as f32 (for rendering)
99
+ *
100
+ * Returns [x, y, z] as floats or null if empty
101
+ */
102
+ centerF32(): any;
103
+ /**
104
+ * Create a new region contracted by the given amount (immutable)
105
+ */
106
+ contracted(amount: number): DefinitionRegionWrapper;
107
+ /**
108
+ * Get the dimensions (width, height, length) of the overall bounding box
109
+ *
110
+ * Returns [width, height, length] or [0, 0, 0] if empty
111
+ */
112
+ dimensions(): Array<any>;
97
113
  /**
98
114
  * Get the overall bounding box encompassing all boxes in this region
99
115
  * Returns an object with {min: [x,y,z], max: [x,y,z]} or null if empty
@@ -112,12 +128,36 @@ export class DefinitionRegionWrapper {
112
128
  * Create a new region with only points in both (immutable)
113
129
  */
114
130
  intersected(other: DefinitionRegionWrapper): DefinitionRegionWrapper;
131
+ /**
132
+ * Clone this region (alias for copy)
133
+ */
134
+ clone(): DefinitionRegionWrapper;
135
+ /**
136
+ * Get a metadata value by key
137
+ *
138
+ * Returns the value string or null if not found
139
+ */
140
+ getMetadata(key: string): any;
115
141
  setMetadata(key: string, value: string): DefinitionRegionWrapper;
116
142
  /**
117
143
  * Check if all points in the region are connected (6-connectivity)
118
144
  */
119
145
  isContiguous(): boolean;
146
+ /**
147
+ * Get all metadata keys
148
+ */
149
+ metadataKeys(): Array<any>;
150
+ /**
151
+ * Create a DefinitionRegion from an array of positions
152
+ *
153
+ * Takes an array of [x, y, z] arrays. Adjacent points will be merged into boxes.
154
+ */
155
+ static fromPositions(positions: any): DefinitionRegionWrapper;
120
156
  filterByBlock(schematic: SchematicWrapper, block_name: string): DefinitionRegionWrapper;
157
+ /**
158
+ * Get all metadata as a JS object
159
+ */
160
+ getAllMetadata(): any;
121
161
  /**
122
162
  * Get positions in globally sorted order (Y, then X, then Z)
123
163
  *
@@ -125,6 +165,19 @@ export class DefinitionRegionWrapper {
125
165
  * how the region was constructed. Use this for IO bit assignment.
126
166
  */
127
167
  positionsSorted(): Array<any>;
168
+ /**
169
+ * Check if this region intersects with a bounding box
170
+ *
171
+ * Useful for frustum culling in renderers.
172
+ */
173
+ intersectsBounds(min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number): boolean;
174
+ /**
175
+ * Create a DefinitionRegion from multiple bounding boxes
176
+ *
177
+ * Takes an array of {min: [x,y,z], max: [x,y,z]} objects.
178
+ * Unlike fromPositions which merges adjacent points, this keeps boxes as provided.
179
+ */
180
+ static fromBoundingBoxes(boxes: any): DefinitionRegionWrapper;
128
181
  /**
129
182
  * Get the number of connected components in this region
130
183
  */
@@ -135,6 +188,10 @@ export class DefinitionRegionWrapper {
135
188
  */
136
189
  filterByProperties(schematic: SchematicWrapper, properties: any): DefinitionRegionWrapper;
137
190
  constructor();
191
+ /**
192
+ * Create a deep copy of this region
193
+ */
194
+ copy(): DefinitionRegionWrapper;
138
195
  merge(other: DefinitionRegionWrapper): void;
139
196
  /**
140
197
  * Translate all boxes by the given offset
@@ -144,6 +201,12 @@ export class DefinitionRegionWrapper {
144
201
  * Create a new region that is the union of this region and another
145
202
  */
146
203
  union(other: DefinitionRegionWrapper): DefinitionRegionWrapper;
204
+ /**
205
+ * Get the center point of the region (integer coordinates)
206
+ *
207
+ * Returns [x, y, z] or null if empty
208
+ */
209
+ center(): any;
147
210
  /**
148
211
  * Expand all boxes by the given amounts in each direction
149
212
  */
@@ -152,6 +215,16 @@ export class DefinitionRegionWrapper {
152
215
  * Get total volume (number of blocks) covered by all boxes
153
216
  */
154
217
  volume(): number;
218
+ /**
219
+ * Get a specific bounding box by index
220
+ *
221
+ * Returns {min: [x,y,z], max: [x,y,z]} or null if index is out of bounds
222
+ */
223
+ getBox(index: number): any;
224
+ /**
225
+ * Create a new region shifted by the given offset (immutable)
226
+ */
227
+ shifted(x: number, y: number, z: number): DefinitionRegionWrapper;
155
228
  /**
156
229
  * Check if the region contains a specific point
157
230
  */
@@ -160,6 +233,10 @@ export class DefinitionRegionWrapper {
160
233
  * Contract all boxes by the given amount uniformly
161
234
  */
162
235
  contract(amount: number): void;
236
+ /**
237
+ * Create a new region expanded by the given amounts (immutable)
238
+ */
239
+ expanded(x: number, y: number, z: number): DefinitionRegionWrapper;
163
240
  /**
164
241
  * Check if the region is empty
165
242
  */
@@ -173,6 +250,17 @@ export class DefinitionRegionWrapper {
173
250
  */
174
251
  subtract(other: DefinitionRegionWrapper): void;
175
252
  addPoint(x: number, y: number, z: number): void;
253
+ /**
254
+ * Get the number of bounding boxes in this region
255
+ */
256
+ boxCount(): number;
257
+ /**
258
+ * Get all bounding boxes in this region
259
+ *
260
+ * Returns an array of {min: [x,y,z], max: [x,y,z]} objects.
261
+ * Useful for rendering each box separately.
262
+ */
263
+ getBoxes(): Array<any>;
176
264
  /**
177
265
  * Keep only points present in both regions (intersection)
178
266
  */
@@ -502,6 +590,18 @@ export class SchematicBuilderWrapper {
502
590
  export class SchematicWrapper {
503
591
  free(): void;
504
592
  [Symbol.dispose](): void;
593
+ /**
594
+ * Creates a simulation world for this schematic with default options
595
+ *
596
+ * This allows you to simulate redstone circuits and interact with them.
597
+ */
598
+ create_simulation_world(): MchprsWorldWrapper;
599
+ /**
600
+ * Creates a simulation world for this schematic with custom options
601
+ *
602
+ * This allows you to configure simulation behavior like wire state tracking.
603
+ */
604
+ create_simulation_world_with_options(options: SimulationOptionsWrapper): MchprsWorldWrapper;
505
605
  debug_info(): string;
506
606
  get_volume(): number;
507
607
  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;
@@ -653,18 +753,6 @@ export class SchematicWrapper {
653
753
  from_data(data: Uint8Array): void;
654
754
  get_block(x: number, y: number, z: number): string | undefined;
655
755
  set_block(x: number, y: number, z: number, block_name: string): void;
656
- /**
657
- * Creates a simulation world for this schematic with default options
658
- *
659
- * This allows you to simulate redstone circuits and interact with them.
660
- */
661
- create_simulation_world(): MchprsWorldWrapper;
662
- /**
663
- * Creates a simulation world for this schematic with custom options
664
- *
665
- * This allows you to configure simulation behavior like wire state tracking.
666
- */
667
- create_simulation_world_with_options(options: SimulationOptionsWrapper): MchprsWorldWrapper;
668
756
  }
669
757
  export class SimulationOptionsWrapper {
670
758
  free(): void;
@@ -829,80 +917,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
829
917
 
830
918
  export interface InitOutput {
831
919
  readonly memory: WebAssembly.Memory;
832
- readonly __wbg_blockstatewrapper_free: (a: number, b: number) => void;
833
- readonly __wbg_lazychunkiterator_free: (a: number, b: number) => void;
834
- readonly __wbg_schematicwrapper_free: (a: number, b: number) => void;
835
- readonly blockstatewrapper_name: (a: number) => [number, number];
836
- readonly blockstatewrapper_new: (a: number, b: number) => number;
837
- readonly blockstatewrapper_properties: (a: number) => any;
838
- readonly blockstatewrapper_with_property: (a: number, b: number, c: number, d: number, e: number) => void;
839
- readonly debug_json_schematic: (a: number) => [number, number];
840
- readonly debug_schematic: (a: number) => [number, number];
841
- readonly lazychunkiterator_current_position: (a: number) => number;
842
- readonly lazychunkiterator_has_next: (a: number) => number;
843
- readonly lazychunkiterator_next: (a: number) => any;
844
- readonly lazychunkiterator_reset: (a: number) => void;
845
- readonly lazychunkiterator_skip_to: (a: number, b: number) => void;
846
- readonly lazychunkiterator_total_chunks: (a: number) => number;
847
- readonly schematicwrapper_blocks: (a: number) => any;
848
- readonly schematicwrapper_blocks_indices: (a: number) => any;
849
- readonly schematicwrapper_chunks: (a: number, b: number, c: number, d: number) => any;
850
- readonly schematicwrapper_chunks_indices: (a: number, b: number, c: number, d: number) => any;
851
- 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;
852
- readonly schematicwrapper_chunks_with_strategy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
853
- readonly schematicwrapper_compileInsign: (a: number) => [number, number, number];
854
- 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];
855
- 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;
856
- readonly schematicwrapper_debug_info: (a: number) => [number, number];
857
- readonly schematicwrapper_extractSigns: (a: number) => any;
858
- readonly schematicwrapper_flip_region_x: (a: number, b: number, c: number) => [number, number];
859
- readonly schematicwrapper_flip_region_y: (a: number, b: number, c: number) => [number, number];
860
- readonly schematicwrapper_flip_region_z: (a: number, b: number, c: number) => [number, number];
861
- readonly schematicwrapper_flip_x: (a: number) => void;
862
- readonly schematicwrapper_flip_y: (a: number) => void;
863
- readonly schematicwrapper_flip_z: (a: number) => void;
864
- readonly schematicwrapper_from_data: (a: number, b: number, c: number) => [number, number];
865
- readonly schematicwrapper_from_litematic: (a: number, b: number, c: number) => [number, number];
866
- readonly schematicwrapper_from_schematic: (a: number, b: number, c: number) => [number, number];
867
- readonly schematicwrapper_getChunkData: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
868
- readonly schematicwrapper_get_all_block_entities: (a: number) => any;
869
- readonly schematicwrapper_get_all_palettes: (a: number) => any;
870
- readonly schematicwrapper_get_allocated_dimensions: (a: number) => [number, number];
871
- readonly schematicwrapper_get_available_schematic_versions: (a: number) => any;
872
- readonly schematicwrapper_get_block: (a: number, b: number, c: number, d: number) => [number, number];
873
- readonly schematicwrapper_get_block_count: (a: number) => number;
874
- readonly schematicwrapper_get_block_entity: (a: number, b: number, c: number, d: number) => any;
875
- readonly schematicwrapper_get_block_string: (a: number, b: number, c: number, d: number) => [number, number];
876
- readonly schematicwrapper_get_block_with_properties: (a: number, b: number, c: number, d: number) => number;
877
- readonly schematicwrapper_get_bounding_box: (a: number) => any;
878
- readonly schematicwrapper_get_chunk_blocks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
879
- readonly schematicwrapper_get_chunk_blocks_indices: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
880
- readonly schematicwrapper_get_default_region_palette: (a: number) => any;
881
- readonly schematicwrapper_get_dimensions: (a: number) => [number, number];
882
- readonly schematicwrapper_get_optimization_info: (a: number) => any;
883
- readonly schematicwrapper_get_palette: (a: number) => any;
884
- readonly schematicwrapper_get_palette_from_region: (a: number, b: number, c: number) => any;
885
- readonly schematicwrapper_get_region_bounding_box: (a: number, b: number, c: number) => any;
886
- readonly schematicwrapper_get_region_names: (a: number) => [number, number];
887
- readonly schematicwrapper_get_tight_bounds_max: (a: number) => [number, number];
888
- readonly schematicwrapper_get_tight_bounds_min: (a: number) => [number, number];
889
- readonly schematicwrapper_get_tight_dimensions: (a: number) => [number, number];
890
- readonly schematicwrapper_get_volume: (a: number) => number;
891
- readonly schematicwrapper_new: () => number;
892
- readonly schematicwrapper_print_schematic: (a: number) => [number, number];
893
- readonly schematicwrapper_rotate_region_x: (a: number, b: number, c: number, d: number) => [number, number];
894
- readonly schematicwrapper_rotate_region_y: (a: number, b: number, c: number, d: number) => [number, number];
895
- readonly schematicwrapper_rotate_region_z: (a: number, b: number, c: number, d: number) => [number, number];
896
- readonly schematicwrapper_rotate_x: (a: number, b: number) => void;
897
- readonly schematicwrapper_rotate_y: (a: number, b: number) => void;
898
- readonly schematicwrapper_rotate_z: (a: number, b: number) => void;
899
- readonly schematicwrapper_setBlockWithNbt: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
900
- readonly schematicwrapper_set_block: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
901
- readonly schematicwrapper_set_block_with_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
902
- readonly schematicwrapper_to_litematic: (a: number) => [number, number, number, number];
903
- readonly schematicwrapper_to_schematic: (a: number) => [number, number, number, number];
904
- readonly schematicwrapper_to_schematic_version: (a: number, b: number, c: number) => [number, number, number, number];
905
- readonly start: () => void;
906
920
  readonly __wbg_circuitbuilderwrapper_free: (a: number, b: number) => void;
907
921
  readonly __wbg_executionmodewrapper_free: (a: number, b: number) => void;
908
922
  readonly __wbg_iolayoutbuilderwrapper_free: (a: number, b: number) => void;
@@ -1018,47 +1032,138 @@ export interface InitOutput {
1018
1032
  readonly schematicwrapper_create_simulation_world_with_options: (a: number, b: number) => [number, number, number];
1019
1033
  readonly schematicwrapper_create_simulation_world: (a: number) => [number, number, number];
1020
1034
  readonly __wbg_iolayoutwrapper_free: (a: number, b: number) => void;
1021
- readonly __wbg_blockposition_free: (a: number, b: number) => void;
1022
1035
  readonly __wbg_definitionregionwrapper_free: (a: number, b: number) => void;
1023
- readonly __wbg_get_blockposition_x: (a: number) => number;
1024
- readonly __wbg_get_blockposition_y: (a: number) => number;
1025
- readonly __wbg_get_blockposition_z: (a: number) => number;
1026
- readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
1027
- readonly __wbg_set_blockposition_x: (a: number, b: number) => void;
1028
- readonly __wbg_set_blockposition_y: (a: number, b: number) => void;
1029
- readonly __wbg_set_blockposition_z: (a: number, b: number) => void;
1030
- readonly blockposition_new: (a: number, b: number, c: number) => number;
1031
1036
  readonly definitionregionwrapper_addBounds: (a: number, b: number, c: number) => void;
1032
1037
  readonly definitionregionwrapper_addPoint: (a: number, b: number, c: number, d: number) => void;
1038
+ readonly definitionregionwrapper_boxCount: (a: number) => number;
1039
+ readonly definitionregionwrapper_center: (a: number) => any;
1040
+ readonly definitionregionwrapper_centerF32: (a: number) => any;
1041
+ readonly definitionregionwrapper_clone: (a: number) => number;
1033
1042
  readonly definitionregionwrapper_connectedComponents: (a: number) => number;
1034
1043
  readonly definitionregionwrapper_contains: (a: number, b: number, c: number, d: number) => number;
1035
1044
  readonly definitionregionwrapper_contract: (a: number, b: number) => void;
1045
+ readonly definitionregionwrapper_contracted: (a: number, b: number) => number;
1046
+ readonly definitionregionwrapper_dimensions: (a: number) => any;
1036
1047
  readonly definitionregionwrapper_expand: (a: number, b: number, c: number, d: number) => void;
1048
+ readonly definitionregionwrapper_expanded: (a: number, b: number, c: number, d: number) => number;
1037
1049
  readonly definitionregionwrapper_filterByBlock: (a: number, b: number, c: number, d: number) => number;
1038
1050
  readonly definitionregionwrapper_filterByProperties: (a: number, b: number, c: any) => [number, number, number];
1051
+ readonly definitionregionwrapper_fromBoundingBoxes: (a: any) => [number, number, number];
1039
1052
  readonly definitionregionwrapper_fromBounds: (a: number, b: number) => number;
1053
+ readonly definitionregionwrapper_fromPositions: (a: any) => [number, number, number];
1054
+ readonly definitionregionwrapper_getAllMetadata: (a: number) => any;
1040
1055
  readonly definitionregionwrapper_getBounds: (a: number) => any;
1056
+ readonly definitionregionwrapper_getBox: (a: number, b: number) => any;
1057
+ readonly definitionregionwrapper_getBoxes: (a: number) => any;
1058
+ readonly definitionregionwrapper_getMetadata: (a: number, b: number, c: number) => any;
1041
1059
  readonly definitionregionwrapper_intersect: (a: number, b: number) => void;
1042
1060
  readonly definitionregionwrapper_intersected: (a: number, b: number) => number;
1061
+ readonly definitionregionwrapper_intersectsBounds: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
1043
1062
  readonly definitionregionwrapper_isContiguous: (a: number) => number;
1044
1063
  readonly definitionregionwrapper_isEmpty: (a: number) => number;
1045
1064
  readonly definitionregionwrapper_merge: (a: number, b: number) => void;
1065
+ readonly definitionregionwrapper_metadataKeys: (a: number) => any;
1046
1066
  readonly definitionregionwrapper_new: () => number;
1047
1067
  readonly definitionregionwrapper_positions: (a: number) => any;
1048
1068
  readonly definitionregionwrapper_positionsSorted: (a: number) => any;
1049
1069
  readonly definitionregionwrapper_setMetadata: (a: number, b: number, c: number, d: number, e: number) => number;
1050
1070
  readonly definitionregionwrapper_shift: (a: number, b: number, c: number, d: number) => void;
1071
+ readonly definitionregionwrapper_shifted: (a: number, b: number, c: number, d: number) => number;
1051
1072
  readonly definitionregionwrapper_simplify: (a: number) => void;
1052
1073
  readonly definitionregionwrapper_subtract: (a: number, b: number) => void;
1053
1074
  readonly definitionregionwrapper_subtracted: (a: number, b: number) => number;
1054
1075
  readonly definitionregionwrapper_union: (a: number, b: number) => number;
1055
1076
  readonly definitionregionwrapper_unionInto: (a: number, b: number) => void;
1056
1077
  readonly definitionregionwrapper_volume: (a: number) => number;
1078
+ readonly definitionregionwrapper_copy: (a: number) => number;
1079
+ readonly __wbg_blockposition_free: (a: number, b: number) => void;
1080
+ readonly __wbg_get_blockposition_x: (a: number) => number;
1081
+ readonly __wbg_get_blockposition_y: (a: number) => number;
1082
+ readonly __wbg_get_blockposition_z: (a: number) => number;
1083
+ readonly __wbg_set_blockposition_x: (a: number, b: number) => void;
1084
+ readonly __wbg_set_blockposition_y: (a: number, b: number) => void;
1085
+ readonly __wbg_set_blockposition_z: (a: number, b: number) => void;
1086
+ readonly blockposition_new: (a: number, b: number, c: number) => number;
1087
+ readonly __wbg_blockstatewrapper_free: (a: number, b: number) => void;
1088
+ readonly __wbg_lazychunkiterator_free: (a: number, b: number) => void;
1089
+ readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
1090
+ readonly __wbg_schematicwrapper_free: (a: number, b: number) => void;
1091
+ readonly blockstatewrapper_name: (a: number) => [number, number];
1092
+ readonly blockstatewrapper_new: (a: number, b: number) => number;
1093
+ readonly blockstatewrapper_properties: (a: number) => any;
1094
+ readonly blockstatewrapper_with_property: (a: number, b: number, c: number, d: number, e: number) => void;
1095
+ readonly debug_json_schematic: (a: number) => [number, number];
1096
+ readonly debug_schematic: (a: number) => [number, number];
1097
+ readonly lazychunkiterator_current_position: (a: number) => number;
1098
+ readonly lazychunkiterator_has_next: (a: number) => number;
1099
+ readonly lazychunkiterator_next: (a: number) => any;
1100
+ readonly lazychunkiterator_reset: (a: number) => void;
1101
+ readonly lazychunkiterator_skip_to: (a: number, b: number) => void;
1102
+ readonly lazychunkiterator_total_chunks: (a: number) => number;
1057
1103
  readonly schematicbuilderwrapper_build: (a: number) => [number, number, number];
1058
1104
  readonly schematicbuilderwrapper_fromTemplate: (a: number, b: number) => [number, number, number];
1059
1105
  readonly schematicbuilderwrapper_map: (a: number, b: number, c: number, d: number) => number;
1060
1106
  readonly schematicbuilderwrapper_name: (a: number, b: number, c: number) => number;
1061
1107
  readonly schematicbuilderwrapper_new: () => number;
1108
+ readonly schematicwrapper_blocks: (a: number) => any;
1109
+ readonly schematicwrapper_blocks_indices: (a: number) => any;
1110
+ readonly schematicwrapper_chunks: (a: number, b: number, c: number, d: number) => any;
1111
+ readonly schematicwrapper_chunks_indices: (a: number, b: number, c: number, d: number) => any;
1112
+ 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;
1113
+ readonly schematicwrapper_chunks_with_strategy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
1114
+ readonly schematicwrapper_compileInsign: (a: number) => [number, number, number];
1115
+ 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];
1116
+ 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;
1117
+ readonly schematicwrapper_debug_info: (a: number) => [number, number];
1118
+ readonly schematicwrapper_extractSigns: (a: number) => any;
1119
+ readonly schematicwrapper_flip_region_x: (a: number, b: number, c: number) => [number, number];
1120
+ readonly schematicwrapper_flip_region_y: (a: number, b: number, c: number) => [number, number];
1121
+ readonly schematicwrapper_flip_region_z: (a: number, b: number, c: number) => [number, number];
1122
+ readonly schematicwrapper_flip_x: (a: number) => void;
1123
+ readonly schematicwrapper_flip_y: (a: number) => void;
1124
+ readonly schematicwrapper_flip_z: (a: number) => void;
1125
+ readonly schematicwrapper_from_data: (a: number, b: number, c: number) => [number, number];
1126
+ readonly schematicwrapper_from_litematic: (a: number, b: number, c: number) => [number, number];
1127
+ readonly schematicwrapper_from_schematic: (a: number, b: number, c: number) => [number, number];
1128
+ readonly schematicwrapper_getChunkData: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
1129
+ readonly schematicwrapper_get_all_block_entities: (a: number) => any;
1130
+ readonly schematicwrapper_get_all_palettes: (a: number) => any;
1131
+ readonly schematicwrapper_get_allocated_dimensions: (a: number) => [number, number];
1132
+ readonly schematicwrapper_get_available_schematic_versions: (a: number) => any;
1133
+ readonly schematicwrapper_get_block: (a: number, b: number, c: number, d: number) => [number, number];
1134
+ readonly schematicwrapper_get_block_count: (a: number) => number;
1135
+ readonly schematicwrapper_get_block_entity: (a: number, b: number, c: number, d: number) => any;
1136
+ readonly schematicwrapper_get_block_string: (a: number, b: number, c: number, d: number) => [number, number];
1137
+ readonly schematicwrapper_get_block_with_properties: (a: number, b: number, c: number, d: number) => number;
1138
+ readonly schematicwrapper_get_bounding_box: (a: number) => any;
1139
+ readonly schematicwrapper_get_chunk_blocks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
1140
+ readonly schematicwrapper_get_chunk_blocks_indices: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
1141
+ readonly schematicwrapper_get_default_region_palette: (a: number) => any;
1142
+ readonly schematicwrapper_get_dimensions: (a: number) => [number, number];
1143
+ readonly schematicwrapper_get_optimization_info: (a: number) => any;
1144
+ readonly schematicwrapper_get_palette: (a: number) => any;
1145
+ readonly schematicwrapper_get_palette_from_region: (a: number, b: number, c: number) => any;
1146
+ readonly schematicwrapper_get_region_bounding_box: (a: number, b: number, c: number) => any;
1147
+ readonly schematicwrapper_get_region_names: (a: number) => [number, number];
1148
+ readonly schematicwrapper_get_tight_bounds_max: (a: number) => [number, number];
1149
+ readonly schematicwrapper_get_tight_bounds_min: (a: number) => [number, number];
1150
+ readonly schematicwrapper_get_tight_dimensions: (a: number) => [number, number];
1151
+ readonly schematicwrapper_get_volume: (a: number) => number;
1152
+ readonly schematicwrapper_new: () => number;
1153
+ readonly schematicwrapper_print_schematic: (a: number) => [number, number];
1154
+ readonly schematicwrapper_rotate_region_x: (a: number, b: number, c: number, d: number) => [number, number];
1155
+ readonly schematicwrapper_rotate_region_y: (a: number, b: number, c: number, d: number) => [number, number];
1156
+ readonly schematicwrapper_rotate_region_z: (a: number, b: number, c: number, d: number) => [number, number];
1157
+ readonly schematicwrapper_rotate_x: (a: number, b: number) => void;
1158
+ readonly schematicwrapper_rotate_y: (a: number, b: number) => void;
1159
+ readonly schematicwrapper_rotate_z: (a: number, b: number) => void;
1160
+ readonly schematicwrapper_setBlockWithNbt: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
1161
+ readonly schematicwrapper_set_block: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1162
+ readonly schematicwrapper_set_block_with_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
1163
+ readonly schematicwrapper_to_litematic: (a: number) => [number, number, number, number];
1164
+ readonly schematicwrapper_to_schematic: (a: number) => [number, number, number, number];
1165
+ readonly schematicwrapper_to_schematic_version: (a: number, b: number, c: number) => [number, number, number, number];
1166
+ readonly start: () => void;
1062
1167
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1063
1168
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1064
1169
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Nano nano@schem.at"
6
6
  ],
7
7
  "description": "A high-performance Minecraft schematic parser and utility library",
8
- "version": "0.1.125",
8
+ "version": "0.1.126",
9
9
  "license": "AGPL-3.0-only",
10
10
  "repository": {
11
11
  "type": "git",