nucleation 0.1.155 → 0.1.156

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.
@@ -2563,6 +2563,24 @@ export class SchematicWrapper {
2563
2563
  }
2564
2564
  return MchprsWorldWrapper.__wrap(ret[0]);
2565
2565
  }
2566
+ /**
2567
+ * Add a mobile entity to the schematic.
2568
+ * @param {string} id
2569
+ * @param {number} x
2570
+ * @param {number} y
2571
+ * @param {number} z
2572
+ * @param {string | null} [nbt_json]
2573
+ */
2574
+ add_entity(id, x, y, z, nbt_json) {
2575
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2576
+ const len0 = WASM_VECTOR_LEN;
2577
+ var ptr1 = isLikeNone(nbt_json) ? 0 : passStringToWasm0(nbt_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2578
+ var len1 = WASM_VECTOR_LEN;
2579
+ const ret = wasm.schematicwrapper_add_entity(this.__wbg_ptr, ptr0, len0, x, y, z, ptr1, len1);
2580
+ if (ret[1]) {
2581
+ throw takeFromExternrefTable0(ret[0]);
2582
+ }
2583
+ }
2566
2584
  /**
2567
2585
  * @returns {string}
2568
2586
  */
@@ -2700,6 +2718,22 @@ export class SchematicWrapper {
2700
2718
  setCreated(created) {
2701
2719
  wasm.schematicwrapper_setCreated(this.__wbg_ptr, created);
2702
2720
  }
2721
+ /**
2722
+ * Get the number of mobile entities (not block entities).
2723
+ * @returns {number}
2724
+ */
2725
+ entity_count() {
2726
+ const ret = wasm.schematicwrapper_entity_count(this.__wbg_ptr);
2727
+ return ret >>> 0;
2728
+ }
2729
+ /**
2730
+ * Get all mobile entities as a JS array of objects.
2731
+ * @returns {any}
2732
+ */
2733
+ get_entities() {
2734
+ const ret = wasm.schematicwrapper_get_entities(this.__wbg_ptr);
2735
+ return ret;
2736
+ }
2703
2737
  /**
2704
2738
  * @returns {number | undefined}
2705
2739
  */
@@ -2737,6 +2771,21 @@ export class SchematicWrapper {
2737
2771
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
2738
2772
  return v1;
2739
2773
  }
2774
+ /**
2775
+ * @param {string | null} [options_json]
2776
+ * @returns {Uint8Array}
2777
+ */
2778
+ to_world_zip(options_json) {
2779
+ var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2780
+ var len0 = WASM_VECTOR_LEN;
2781
+ const ret = wasm.schematicwrapper_to_world_zip(this.__wbg_ptr, ptr0, len0);
2782
+ if (ret[3]) {
2783
+ throw takeFromExternrefTable0(ret[2]);
2784
+ }
2785
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
2786
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
2787
+ return v2;
2788
+ }
2740
2789
  /**
2741
2790
  * @param {string} name
2742
2791
  * @param {any} min
@@ -2797,6 +2846,15 @@ export class SchematicWrapper {
2797
2846
  throw takeFromExternrefTable0(ret[0]);
2798
2847
  }
2799
2848
  }
2849
+ /**
2850
+ * Remove a mobile entity by index. Returns true if removed.
2851
+ * @param {number} index
2852
+ * @returns {boolean}
2853
+ */
2854
+ remove_entity(index) {
2855
+ const ret = wasm.schematicwrapper_remove_entity(this.__wbg_ptr, index);
2856
+ return ret !== 0;
2857
+ }
2800
2858
  /**
2801
2859
  * @param {string} name
2802
2860
  * @param {DefinitionRegionWrapper} region
@@ -2886,6 +2944,17 @@ export class SchematicWrapper {
2886
2944
  throw takeFromExternrefTable0(ret[0]);
2887
2945
  }
2888
2946
  }
2947
+ /**
2948
+ * @param {Uint8Array} data
2949
+ */
2950
+ from_world_zip(data) {
2951
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
2952
+ const len0 = WASM_VECTOR_LEN;
2953
+ const ret = wasm.schematicwrapper_from_world_zip(this.__wbg_ptr, ptr0, len0);
2954
+ if (ret[1]) {
2955
+ throw takeFromExternrefTable0(ret[0]);
2956
+ }
2957
+ }
2889
2958
  /**
2890
2959
  * Get optimized chunk data including blocks and relevant tile entities
2891
2960
  * Returns { blocks: [[x,y,z,palette_index],...], entities: [{id, position, nbt},...] }
@@ -3042,6 +3111,23 @@ export class SchematicWrapper {
3042
3111
  const len0 = WASM_VECTOR_LEN;
3043
3112
  wasm.schematicwrapper_setDescription(this.__wbg_ptr, ptr0, len0);
3044
3113
  }
3114
+ /**
3115
+ * @param {Uint8Array} data
3116
+ * @param {number} min_x
3117
+ * @param {number} min_y
3118
+ * @param {number} min_z
3119
+ * @param {number} max_x
3120
+ * @param {number} max_y
3121
+ * @param {number} max_z
3122
+ */
3123
+ from_mca_bounded(data, min_x, min_y, min_z, max_x, max_y, max_z) {
3124
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
3125
+ const len0 = WASM_VECTOR_LEN;
3126
+ const ret = wasm.schematicwrapper_from_mca_bounded(this.__wbg_ptr, ptr0, len0, min_x, min_y, min_z, max_x, max_y, max_z);
3127
+ if (ret[1]) {
3128
+ throw takeFromExternrefTable0(ret[0]);
3129
+ }
3130
+ }
3045
3131
  /**
3046
3132
  * @param {Uint8Array} data
3047
3133
  */
@@ -3280,6 +3366,23 @@ export class SchematicWrapper {
3280
3366
  const ret = wasm.schematicwrapper_createCircuitBuilder(this.__wbg_ptr);
3281
3367
  return CircuitBuilderWrapper.__wrap(ret);
3282
3368
  }
3369
+ /**
3370
+ * @param {Uint8Array} data
3371
+ * @param {number} min_x
3372
+ * @param {number} min_y
3373
+ * @param {number} min_z
3374
+ * @param {number} max_x
3375
+ * @param {number} max_y
3376
+ * @param {number} max_z
3377
+ */
3378
+ from_world_zip_bounded(data, min_x, min_y, min_z, max_x, max_y, max_z) {
3379
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
3380
+ const len0 = WASM_VECTOR_LEN;
3381
+ const ret = wasm.schematicwrapper_from_world_zip_bounded(this.__wbg_ptr, ptr0, len0, min_x, min_y, min_z, max_x, max_y, max_z);
3382
+ if (ret[1]) {
3383
+ throw takeFromExternrefTable0(ret[0]);
3384
+ }
3385
+ }
3283
3386
  /**
3284
3387
  * @returns {any}
3285
3388
  */
@@ -3428,6 +3531,38 @@ export class SchematicWrapper {
3428
3531
  const ret = wasm.schematicwrapper_get_default_region_palette(this.__wbg_ptr);
3429
3532
  return ret;
3430
3533
  }
3534
+ /**
3535
+ * Get the settings schema for an export format (returns JSON string or undefined).
3536
+ * @param {string} format
3537
+ * @returns {string | undefined}
3538
+ */
3539
+ static get_export_settings_schema(format) {
3540
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3541
+ const len0 = WASM_VECTOR_LEN;
3542
+ const ret = wasm.schematicwrapper_get_export_settings_schema(ptr0, len0);
3543
+ let v2;
3544
+ if (ret[0] !== 0) {
3545
+ v2 = getStringFromWasm0(ret[0], ret[1]).slice();
3546
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3547
+ }
3548
+ return v2;
3549
+ }
3550
+ /**
3551
+ * Get the settings schema for an import format (returns JSON string or undefined).
3552
+ * @param {string} format
3553
+ * @returns {string | undefined}
3554
+ */
3555
+ static get_import_settings_schema(format) {
3556
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3557
+ const len0 = WASM_VECTOR_LEN;
3558
+ const ret = wasm.schematicwrapper_get_import_settings_schema(ptr0, len0);
3559
+ let v2;
3560
+ if (ret[0] !== 0) {
3561
+ v2 = getStringFromWasm0(ret[0], ret[1]).slice();
3562
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3563
+ }
3564
+ return v2;
3565
+ }
3431
3566
  /**
3432
3567
  * @param {string} name
3433
3568
  * @param {number} x
@@ -3590,20 +3725,34 @@ export class SchematicWrapper {
3590
3725
  /**
3591
3726
  * @param {string} format
3592
3727
  * @param {string | null} [version]
3728
+ * @param {string | null} [settings]
3593
3729
  * @returns {Uint8Array}
3594
3730
  */
3595
- save_as(format, version) {
3731
+ save_as(format, version, settings) {
3596
3732
  const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3597
3733
  const len0 = WASM_VECTOR_LEN;
3598
3734
  var ptr1 = isLikeNone(version) ? 0 : passStringToWasm0(version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3599
3735
  var len1 = WASM_VECTOR_LEN;
3600
- const ret = wasm.schematicwrapper_save_as(this.__wbg_ptr, ptr0, len0, ptr1, len1);
3736
+ var ptr2 = isLikeNone(settings) ? 0 : passStringToWasm0(settings, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3737
+ var len2 = WASM_VECTOR_LEN;
3738
+ const ret = wasm.schematicwrapper_save_as(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
3601
3739
  if (ret[3]) {
3602
3740
  throw takeFromExternrefTable0(ret[2]);
3603
3741
  }
3604
- var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
3742
+ var v4 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
3605
3743
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3606
- return v3;
3744
+ return v4;
3745
+ }
3746
+ /**
3747
+ * @param {Uint8Array} data
3748
+ */
3749
+ from_mca(data) {
3750
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
3751
+ const len0 = WASM_VECTOR_LEN;
3752
+ const ret = wasm.schematicwrapper_from_mca(this.__wbg_ptr, ptr0, len0);
3753
+ if (ret[1]) {
3754
+ throw takeFromExternrefTable0(ret[0]);
3755
+ }
3607
3756
  }
3608
3757
  /**
3609
3758
  * @returns {string | undefined}
@@ -3649,6 +3798,19 @@ export class SchematicWrapper {
3649
3798
  const len0 = WASM_VECTOR_LEN;
3650
3799
  wasm.schematicwrapper_setName(this.__wbg_ptr, ptr0, len0);
3651
3800
  }
3801
+ /**
3802
+ * @param {string | null} [options_json]
3803
+ * @returns {any}
3804
+ */
3805
+ to_world(options_json) {
3806
+ var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3807
+ var len0 = WASM_VECTOR_LEN;
3808
+ const ret = wasm.schematicwrapper_to_world(this.__wbg_ptr, ptr0, len0);
3809
+ if (ret[2]) {
3810
+ throw takeFromExternrefTable0(ret[1]);
3811
+ }
3812
+ return takeFromExternrefTable0(ret[0]);
3813
+ }
3652
3814
  /**
3653
3815
  * @param {Uint8Array} data
3654
3816
  */
@@ -4673,6 +4835,10 @@ function __wbg_get_imports() {
4673
4835
  const ret = new Int32Array(getArrayI32FromWasm0(arg0, arg1));
4674
4836
  return ret;
4675
4837
  };
4838
+ imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
4839
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
4840
+ return ret;
4841
+ };
4676
4842
  imports.wbg.__wbg_new_with_length_12c6de4fac33117a = function(arg0) {
4677
4843
  const ret = new Array(arg0 >>> 0);
4678
4844
  return ret;
package/nucleation.d.ts CHANGED
@@ -680,6 +680,10 @@ export class SchematicWrapper {
680
680
  * This allows you to configure simulation behavior like wire state tracking.
681
681
  */
682
682
  create_simulation_world_with_options(options: SimulationOptionsWrapper): MchprsWorldWrapper;
683
+ /**
684
+ * Add a mobile entity to the schematic.
685
+ */
686
+ add_entity(id: string, x: number, y: number, z: number, nbt_json?: string | null): void;
683
687
  debug_info(): string;
684
688
  getAuthor(): string | undefined;
685
689
  /**
@@ -702,10 +706,19 @@ export class SchematicWrapper {
702
706
  getCreated(): number | undefined;
703
707
  get_palette(): any;
704
708
  setCreated(created: number): void;
709
+ /**
710
+ * Get the number of mobile entities (not block entities).
711
+ */
712
+ entity_count(): number;
713
+ /**
714
+ * Get all mobile entities as a JS array of objects.
715
+ */
716
+ get_entities(): any;
705
717
  getModified(): number | undefined;
706
718
  setModified(modified: number): void;
707
719
  to_litematic(): Uint8Array;
708
720
  to_schematic(): Uint8Array;
721
+ to_world_zip(options_json?: string | null): Uint8Array;
709
722
  createRegion(name: string, min: any, max: any): DefinitionRegionWrapper;
710
723
  /**
711
724
  * Extract all sign text from the schematic
@@ -724,6 +737,10 @@ export class SchematicWrapper {
724
737
  * Flip a specific region along the Z axis
725
738
  */
726
739
  flip_region_z(region_name: string): void;
740
+ /**
741
+ * Remove a mobile entity by index. Returns true if removed.
742
+ */
743
+ remove_entity(index: number): boolean;
727
744
  updateRegion(name: string, region: DefinitionRegionWrapper): void;
728
745
  /**
729
746
  * All blocks as palette indices - for when you need everything at once but efficiently
@@ -745,6 +762,7 @@ export class SchematicWrapper {
745
762
  createCircuit(inputs: any, outputs: any): TypedCircuitExecutorWrapper;
746
763
  from_litematic(data: Uint8Array): void;
747
764
  from_schematic(data: Uint8Array): void;
765
+ from_world_zip(data: Uint8Array): void;
748
766
  /**
749
767
  * Get optimized chunk data including blocks and relevant tile entities
750
768
  * Returns { blocks: [[x,y,z,palette_index],...], entities: [{id, position, nbt},...] }
@@ -774,6 +792,7 @@ export class SchematicWrapper {
774
792
  */
775
793
  rotate_region_z(region_name: string, degrees: number): void;
776
794
  setDescription(description: string): void;
795
+ from_mca_bounded(data: Uint8Array, min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number): void;
777
796
  from_mcstructure(data: Uint8Array): void;
778
797
  /**
779
798
  * Get all palettes once - eliminates repeated string transfers
@@ -816,6 +835,7 @@ export class SchematicWrapper {
816
835
  get_optimization_info(): any;
817
836
  set_block_from_string(x: number, y: number, z: number, block_string: string): void;
818
837
  createCircuitBuilder(): CircuitBuilderWrapper;
838
+ 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;
819
839
  get_all_block_entities(): any;
820
840
  definitionRegionShift(name: string, x: number, y: number, z: number): void;
821
841
  get_palette_from_region(region_name: string): any;
@@ -837,6 +857,14 @@ export class SchematicWrapper {
837
857
  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;
838
858
  static get_default_format_version(format: string): string | undefined;
839
859
  get_default_region_palette(): any;
860
+ /**
861
+ * Get the settings schema for an export format (returns JSON string or undefined).
862
+ */
863
+ static get_export_settings_schema(format: string): string | undefined;
864
+ /**
865
+ * Get the settings schema for an import format (returns JSON string or undefined).
866
+ */
867
+ static get_import_settings_schema(format: string): string | undefined;
840
868
  definitionRegionAddPoint(name: string, x: number, y: number, z: number): void;
841
869
  getDefinitionRegionNames(): Array<any>;
842
870
  /**
@@ -865,7 +893,8 @@ export class SchematicWrapper {
865
893
  * Flip the schematic along the Z axis
866
894
  */
867
895
  flip_z(): void;
868
- save_as(format: string, version?: string | null): Uint8Array;
896
+ save_as(format: string, version?: string | null, settings?: string | null): Uint8Array;
897
+ from_mca(data: Uint8Array): void;
869
898
  getName(): string | undefined;
870
899
  /**
871
900
  * Rotate the schematic around the X axis
@@ -883,6 +912,7 @@ export class SchematicWrapper {
883
912
  */
884
913
  rotate_z(degrees: number): void;
885
914
  setName(name: string): void;
915
+ to_world(options_json?: string | null): any;
886
916
  from_data(data: Uint8Array): void;
887
917
  get_block(x: number, y: number, z: number): string | undefined;
888
918
  set_block(x: number, y: number, z: number, block_name: string): void;
@@ -1174,7 +1204,6 @@ export interface InitOutput {
1174
1204
  readonly __wbg_layoutfunctionwrapper_free: (a: number, b: number) => void;
1175
1205
  readonly __wbg_mchprsworldwrapper_free: (a: number, b: number) => void;
1176
1206
  readonly __wbg_outputconditionwrapper_free: (a: number, b: number) => void;
1177
- readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
1178
1207
  readonly __wbg_simulationoptionswrapper_free: (a: number, b: number) => void;
1179
1208
  readonly __wbg_sortstrategywrapper_free: (a: number, b: number) => void;
1180
1209
  readonly __wbg_statemodeconstants_free: (a: number, b: number) => void;
@@ -1299,12 +1328,6 @@ export interface InitOutput {
1299
1328
  readonly outputconditionwrapper_greaterThan: (a: number) => number;
1300
1329
  readonly outputconditionwrapper_lessThan: (a: number) => number;
1301
1330
  readonly outputconditionwrapper_notEquals: (a: number) => number;
1302
- readonly schematicbuilderwrapper_build: (a: number) => [number, number, number];
1303
- readonly schematicbuilderwrapper_fromTemplate: (a: number, b: number) => [number, number, number];
1304
- readonly schematicbuilderwrapper_layers: (a: number, b: any) => [number, number, number];
1305
- readonly schematicbuilderwrapper_map: (a: number, b: number, c: number, d: number) => number;
1306
- readonly schematicbuilderwrapper_name: (a: number, b: number, c: number) => number;
1307
- readonly schematicbuilderwrapper_new: () => number;
1308
1331
  readonly simulationoptionswrapper_addCustomIo: (a: number, b: number, c: number, d: number) => void;
1309
1332
  readonly simulationoptionswrapper_clearCustomIo: (a: number) => void;
1310
1333
  readonly simulationoptionswrapper_io_only: (a: number) => number;
@@ -1354,17 +1377,10 @@ export interface InitOutput {
1354
1377
  readonly sortstrategywrapper_zyx: () => number;
1355
1378
  readonly definitionregionwrapper_copy: (a: number) => number;
1356
1379
  readonly schematicwrapper_create_simulation_world: (a: number) => [number, number, number];
1357
- readonly __wbg_blockposition_free: (a: number, b: number) => void;
1358
1380
  readonly __wbg_blockstatewrapper_free: (a: number, b: number) => void;
1359
- readonly __wbg_get_blockposition_x: (a: number) => number;
1360
- readonly __wbg_get_blockposition_y: (a: number) => number;
1361
- readonly __wbg_get_blockposition_z: (a: number) => number;
1362
1381
  readonly __wbg_lazychunkiterator_free: (a: number, b: number) => void;
1382
+ readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
1363
1383
  readonly __wbg_schematicwrapper_free: (a: number, b: number) => void;
1364
- readonly __wbg_set_blockposition_x: (a: number, b: number) => void;
1365
- readonly __wbg_set_blockposition_y: (a: number, b: number) => void;
1366
- readonly __wbg_set_blockposition_z: (a: number, b: number) => void;
1367
- readonly blockposition_new: (a: number, b: number, c: number) => number;
1368
1384
  readonly blockstatewrapper_name: (a: number) => [number, number];
1369
1385
  readonly blockstatewrapper_new: (a: number, b: number) => number;
1370
1386
  readonly blockstatewrapper_properties: (a: number) => any;
@@ -1377,7 +1393,14 @@ export interface InitOutput {
1377
1393
  readonly lazychunkiterator_reset: (a: number) => void;
1378
1394
  readonly lazychunkiterator_skip_to: (a: number, b: number) => void;
1379
1395
  readonly lazychunkiterator_total_chunks: (a: number) => number;
1396
+ readonly schematicbuilderwrapper_build: (a: number) => [number, number, number];
1397
+ readonly schematicbuilderwrapper_fromTemplate: (a: number, b: number) => [number, number, number];
1398
+ readonly schematicbuilderwrapper_layers: (a: number, b: any) => [number, number, number];
1399
+ readonly schematicbuilderwrapper_map: (a: number, b: number, c: number, d: number) => number;
1400
+ readonly schematicbuilderwrapper_name: (a: number, b: number, c: number) => number;
1401
+ readonly schematicbuilderwrapper_new: () => number;
1380
1402
  readonly schematicwrapper_addDefinitionRegion: (a: number, b: number, c: number, d: number) => void;
1403
+ readonly schematicwrapper_add_entity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
1381
1404
  readonly schematicwrapper_blocks: (a: number) => any;
1382
1405
  readonly schematicwrapper_blocks_indices: (a: number) => any;
1383
1406
  readonly schematicwrapper_buildExecutor: (a: number, b: any) => [number, number, number];
@@ -1399,6 +1422,7 @@ export interface InitOutput {
1399
1422
  readonly schematicwrapper_definitionRegionAddPoint: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
1400
1423
  readonly schematicwrapper_definitionRegionSetMetadata: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
1401
1424
  readonly schematicwrapper_definitionRegionShift: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
1425
+ readonly schematicwrapper_entity_count: (a: number) => number;
1402
1426
  readonly schematicwrapper_extractSigns: (a: number) => any;
1403
1427
  readonly schematicwrapper_fillCuboid: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
1404
1428
  readonly schematicwrapper_fillSphere: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
@@ -1410,8 +1434,12 @@ export interface InitOutput {
1410
1434
  readonly schematicwrapper_flip_z: (a: number) => void;
1411
1435
  readonly schematicwrapper_from_data: (a: number, b: number, c: number) => [number, number];
1412
1436
  readonly schematicwrapper_from_litematic: (a: number, b: number, c: number) => [number, number];
1437
+ readonly schematicwrapper_from_mca: (a: number, b: number, c: number) => [number, number];
1438
+ 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];
1413
1439
  readonly schematicwrapper_from_mcstructure: (a: number, b: number, c: number) => [number, number];
1414
1440
  readonly schematicwrapper_from_schematic: (a: number, b: number, c: number) => [number, number];
1441
+ readonly schematicwrapper_from_world_zip: (a: number, b: number, c: number) => [number, number];
1442
+ 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];
1415
1443
  readonly schematicwrapper_getAuthor: (a: number) => [number, number];
1416
1444
  readonly schematicwrapper_getChunkData: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
1417
1445
  readonly schematicwrapper_getCreated: (a: number) => [number, number];
@@ -1439,7 +1467,10 @@ export interface InitOutput {
1439
1467
  readonly schematicwrapper_get_default_format_version: (a: number, b: number) => [number, number];
1440
1468
  readonly schematicwrapper_get_default_region_palette: (a: number) => any;
1441
1469
  readonly schematicwrapper_get_dimensions: (a: number) => [number, number];
1470
+ readonly schematicwrapper_get_entities: (a: number) => any;
1471
+ readonly schematicwrapper_get_export_settings_schema: (a: number, b: number) => [number, number];
1442
1472
  readonly schematicwrapper_get_format_versions: (a: number, b: number) => any;
1473
+ readonly schematicwrapper_get_import_settings_schema: (a: number, b: number) => [number, number];
1443
1474
  readonly schematicwrapper_get_optimization_info: (a: number) => any;
1444
1475
  readonly schematicwrapper_get_palette: (a: number) => any;
1445
1476
  readonly schematicwrapper_get_palette_from_region: (a: number, b: number, c: number) => any;
@@ -1454,13 +1485,14 @@ export interface InitOutput {
1454
1485
  readonly schematicwrapper_new: () => number;
1455
1486
  readonly schematicwrapper_print_schematic: (a: number) => [number, number];
1456
1487
  readonly schematicwrapper_removeDefinitionRegion: (a: number, b: number, c: number) => number;
1488
+ readonly schematicwrapper_remove_entity: (a: number, b: number) => number;
1457
1489
  readonly schematicwrapper_rotate_region_x: (a: number, b: number, c: number, d: number) => [number, number];
1458
1490
  readonly schematicwrapper_rotate_region_y: (a: number, b: number, c: number, d: number) => [number, number];
1459
1491
  readonly schematicwrapper_rotate_region_z: (a: number, b: number, c: number, d: number) => [number, number];
1460
1492
  readonly schematicwrapper_rotate_x: (a: number, b: number) => void;
1461
1493
  readonly schematicwrapper_rotate_y: (a: number, b: number) => void;
1462
1494
  readonly schematicwrapper_rotate_z: (a: number, b: number) => void;
1463
- readonly schematicwrapper_save_as: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
1495
+ readonly schematicwrapper_save_as: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
1464
1496
  readonly schematicwrapper_setAuthor: (a: number, b: number, c: number) => void;
1465
1497
  readonly schematicwrapper_setBlockWithNbt: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
1466
1498
  readonly schematicwrapper_setCreated: (a: number, b: number) => void;
@@ -1479,6 +1511,8 @@ export interface InitOutput {
1479
1511
  readonly schematicwrapper_to_mcstructure: (a: number) => [number, number, number, number];
1480
1512
  readonly schematicwrapper_to_schematic: (a: number) => [number, number, number, number];
1481
1513
  readonly schematicwrapper_to_schematic_version: (a: number, b: number, c: number) => [number, number, number, number];
1514
+ readonly schematicwrapper_to_world: (a: number, b: number, c: number) => [number, number, number];
1515
+ readonly schematicwrapper_to_world_zip: (a: number, b: number, c: number) => [number, number, number, number];
1482
1516
  readonly start: () => void;
1483
1517
  readonly schematicwrapper_updateRegion: (a: number, b: number, c: number, d: number) => void;
1484
1518
  readonly __wbg_palettemanager_free: (a: number, b: number) => void;
@@ -1498,6 +1532,14 @@ export interface InitOutput {
1498
1532
  readonly shapewrapper_cuboid: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1499
1533
  readonly shapewrapper_sphere: (a: number, b: number, c: number, d: number) => number;
1500
1534
  readonly wasmbuildingtool_fill: (a: number, b: number, c: number) => void;
1535
+ readonly __wbg_blockposition_free: (a: number, b: number) => void;
1536
+ readonly __wbg_get_blockposition_x: (a: number) => number;
1537
+ readonly __wbg_get_blockposition_y: (a: number) => number;
1538
+ readonly __wbg_get_blockposition_z: (a: number) => number;
1539
+ readonly __wbg_set_blockposition_x: (a: number, b: number) => void;
1540
+ readonly __wbg_set_blockposition_y: (a: number, b: number) => void;
1541
+ readonly __wbg_set_blockposition_z: (a: number, b: number) => void;
1542
+ readonly blockposition_new: (a: number, b: number, c: number) => number;
1501
1543
  readonly generate_gradient_between_blocks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
1502
1544
  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;
1503
1545
  readonly get_all_colored_blocks: () => any;
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.155",
8
+ "version": "0.1.156",
9
9
  "license": "AGPL-3.0-only",
10
10
  "repository": {
11
11
  "type": "git",