nucleation 0.1.156 → 0.1.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/nucleation.d.ts CHANGED
@@ -55,6 +55,74 @@ export class BrushWrapper {
55
55
  static shaded(r: number, g: number, b: number, lx: number, ly: number, lz: number, palette_filter?: string[] | null): BrushWrapper;
56
56
  }
57
57
 
58
+ export class ChunkMeshIteratorWrapper {
59
+ private constructor();
60
+ free(): void;
61
+ [Symbol.dispose](): void;
62
+ /**
63
+ * Total number of chunks in the iterator.
64
+ */
65
+ chunkCount(): number;
66
+ /**
67
+ * Get the shared atlas (if any). Returns null if no shared atlas was set.
68
+ */
69
+ sharedAtlas(): TextureAtlasWrapper | undefined;
70
+ /**
71
+ * Get the chunk coordinate of the current mesh as [cx, cy, cz].
72
+ */
73
+ currentCoord(): any;
74
+ /**
75
+ * Set a progress callback invoked after each chunk is meshed.
76
+ *
77
+ * The callback receives a JS object with fields:
78
+ * `{ phase: string, chunksDone: number, chunksTotal: number, verticesSoFar: number, trianglesSoFar: number }`
79
+ */
80
+ setProgressCallback(callback: Function): void;
81
+ /**
82
+ * Advance to the next chunk. Returns `true` if a chunk is available.
83
+ */
84
+ advance(): boolean;
85
+ /**
86
+ * Get the current chunk mesh (after a successful `advance()`).
87
+ * Returns null if no current mesh.
88
+ */
89
+ current(): MeshOutputWrapper | undefined;
90
+ /**
91
+ * Whether this iterator uses a shared global atlas.
92
+ */
93
+ readonly hasSharedAtlas: boolean;
94
+ }
95
+
96
+ export class ChunkMeshResultWrapper {
97
+ private constructor();
98
+ free(): void;
99
+ [Symbol.dispose](): void;
100
+ /**
101
+ * Get the chunk coordinates as an array of [x, y, z] arrays.
102
+ */
103
+ getChunkCoordinates(): Array<any>;
104
+ /**
105
+ * Serialize all chunks to NUCM binary cache format as Uint8Array.
106
+ */
107
+ toNucm(): Uint8Array;
108
+ /**
109
+ * Get the mesh for a specific chunk.
110
+ */
111
+ getMesh(cx: number, cy: number, cz: number): MeshOutputWrapper | undefined;
112
+ /**
113
+ * Get the number of chunks.
114
+ */
115
+ readonly chunkCount: number;
116
+ /**
117
+ * Get the total vertex count.
118
+ */
119
+ readonly totalVertexCount: number;
120
+ /**
121
+ * Get the total triangle count.
122
+ */
123
+ readonly totalTriangleCount: number;
124
+ }
125
+
58
126
  export class CircuitBuilderWrapper {
59
127
  free(): void;
60
128
  [Symbol.dispose](): void;
@@ -587,6 +655,233 @@ export class MchprsWorldWrapper {
587
655
  is_lit(x: number, y: number, z: number): boolean;
588
656
  }
589
657
 
658
+ export class MeshConfigWrapper {
659
+ free(): void;
660
+ [Symbol.dispose](): void;
661
+ /**
662
+ * Set the AO intensity (0.0 = no darkening, 1.0 = full darkening).
663
+ */
664
+ setAoIntensity(intensity: number): void;
665
+ /**
666
+ * Set the maximum atlas texture size.
667
+ */
668
+ setAtlasMaxSize(size: number): void;
669
+ /**
670
+ * Enable or disable greedy meshing.
671
+ */
672
+ setGreedyMeshing(enabled: boolean): void;
673
+ /**
674
+ * Enable or disable ambient occlusion.
675
+ */
676
+ setAmbientOcclusion(enabled: boolean): void;
677
+ /**
678
+ * Enable or disable face culling between adjacent blocks.
679
+ */
680
+ setCullHiddenFaces(enabled: boolean): void;
681
+ /**
682
+ * Enable or disable occluded block culling.
683
+ */
684
+ setCullOccludedBlocks(enabled: boolean): void;
685
+ /**
686
+ * Create a new MeshConfig with default settings.
687
+ */
688
+ constructor();
689
+ /**
690
+ * Set the biome for tinting (e.g., "plains", "swamp").
691
+ */
692
+ setBiome(biome: string): void;
693
+ /**
694
+ * Get the AO intensity.
695
+ */
696
+ readonly aoIntensity: number;
697
+ /**
698
+ * Get the maximum atlas size.
699
+ */
700
+ readonly atlasMaxSize: number;
701
+ /**
702
+ * Get whether greedy meshing is enabled.
703
+ */
704
+ readonly greedyMeshing: boolean;
705
+ /**
706
+ * Get whether ambient occlusion is enabled.
707
+ */
708
+ readonly ambientOcclusion: boolean;
709
+ /**
710
+ * Get whether face culling is enabled.
711
+ */
712
+ readonly cullHiddenFaces: boolean;
713
+ /**
714
+ * Get whether occluded block culling is enabled.
715
+ */
716
+ readonly cullOccludedBlocks: boolean;
717
+ /**
718
+ * Get the biome name.
719
+ */
720
+ readonly biome: string | undefined;
721
+ }
722
+
723
+ export class MeshOutputWrapper {
724
+ private constructor();
725
+ free(): void;
726
+ [Symbol.dispose](): void;
727
+ /**
728
+ * Shared texture atlas RGBA pixel data as Uint8Array.
729
+ */
730
+ atlasRgba(): Uint8Array;
731
+ /**
732
+ * Cutout layer texture coordinates as Float32Array.
733
+ */
734
+ cutoutUvs(): Float32Array;
735
+ /**
736
+ * Opaque layer texture coordinates as Float32Array (u,v per vertex).
737
+ */
738
+ opaqueUvs(): Float32Array;
739
+ /**
740
+ * Chunk coordinate as [cx, cy, cz] or null if not a chunk mesh.
741
+ */
742
+ chunkCoord(): any;
743
+ /**
744
+ * Cutout layer vertex colors as Float32Array.
745
+ */
746
+ cutoutColors(): Float32Array;
747
+ /**
748
+ * Opaque layer vertex colors as Float32Array (r,g,b,a per vertex).
749
+ */
750
+ opaqueColors(): Float32Array;
751
+ /**
752
+ * Cutout layer triangle indices as Uint32Array.
753
+ */
754
+ cutoutIndices(): Uint32Array;
755
+ /**
756
+ * Cutout layer vertex normals as Float32Array.
757
+ */
758
+ cutoutNormals(): Float32Array;
759
+ /**
760
+ * Opaque layer triangle indices as Uint32Array.
761
+ */
762
+ opaqueIndices(): Uint32Array;
763
+ /**
764
+ * Opaque layer vertex normals as Float32Array.
765
+ */
766
+ opaqueNormals(): Float32Array;
767
+ /**
768
+ * Transparent layer texture coordinates as Float32Array.
769
+ */
770
+ transparentUvs(): Float32Array;
771
+ /**
772
+ * Cutout layer vertex positions as Float32Array.
773
+ */
774
+ cutoutPositions(): Float32Array;
775
+ /**
776
+ * Opaque layer vertex positions as Float32Array (x,y,z per vertex).
777
+ */
778
+ opaquePositions(): Float32Array;
779
+ /**
780
+ * Transparent layer vertex colors as Float32Array.
781
+ */
782
+ transparentColors(): Float32Array;
783
+ /**
784
+ * Transparent layer triangle indices as Uint32Array.
785
+ */
786
+ transparentIndices(): Uint32Array;
787
+ /**
788
+ * Transparent layer vertex normals as Float32Array.
789
+ */
790
+ transparentNormals(): Float32Array;
791
+ /**
792
+ * Transparent layer vertex positions as Float32Array.
793
+ */
794
+ transparentPositions(): Float32Array;
795
+ /**
796
+ * Get GLB binary data as Uint8Array.
797
+ */
798
+ toGlb(): Uint8Array;
799
+ /**
800
+ * Get NUCM binary cache data as Uint8Array.
801
+ *
802
+ * Serializes this single mesh chunk to the `.nucm` binary format.
803
+ */
804
+ toNucm(): Uint8Array;
805
+ /**
806
+ * Get USDZ binary data as Uint8Array.
807
+ */
808
+ toUsdz(): Uint8Array;
809
+ /**
810
+ * Get mesh statistics as a JS object.
811
+ */
812
+ getStats(): object;
813
+ /**
814
+ * Atlas width in pixels.
815
+ */
816
+ readonly atlasWidth: number;
817
+ /**
818
+ * Atlas height in pixels.
819
+ */
820
+ readonly atlasHeight: number;
821
+ /**
822
+ * Get the vertex count (backward-compat).
823
+ */
824
+ readonly vertexCount: number;
825
+ /**
826
+ * Total vertex count across all layers.
827
+ */
828
+ readonly totalVertices: number;
829
+ /**
830
+ * Get the triangle count (backward-compat).
831
+ */
832
+ readonly triangleCount: number;
833
+ /**
834
+ * Total triangle count across all layers.
835
+ */
836
+ readonly totalTriangles: number;
837
+ /**
838
+ * Whether the mesh has transparent geometry.
839
+ */
840
+ readonly hasTransparency: boolean;
841
+ /**
842
+ * Get the bounding box as [minX, minY, minZ, maxX, maxY, maxZ].
843
+ */
844
+ readonly bounds: Array<any>;
845
+ /**
846
+ * Get the GLB binary data (backward-compat getter).
847
+ */
848
+ readonly glbData: Uint8Array;
849
+ /**
850
+ * Whether all layers are empty.
851
+ */
852
+ readonly isEmpty: boolean;
853
+ /**
854
+ * LOD level (0 = full detail).
855
+ */
856
+ readonly lodLevel: number;
857
+ }
858
+
859
+ export class MultiMeshResultWrapper {
860
+ private constructor();
861
+ free(): void;
862
+ [Symbol.dispose](): void;
863
+ /**
864
+ * Get the region names.
865
+ */
866
+ getRegionNames(): Array<any>;
867
+ /**
868
+ * Get the mesh for a specific region.
869
+ */
870
+ getMesh(region_name: string): MeshOutputWrapper | undefined;
871
+ /**
872
+ * Get the number of meshes.
873
+ */
874
+ readonly meshCount: number;
875
+ /**
876
+ * Get the total vertex count across all regions.
877
+ */
878
+ readonly totalVertexCount: number;
879
+ /**
880
+ * Get the total triangle count across all regions.
881
+ */
882
+ readonly totalTriangleCount: number;
883
+ }
884
+
590
885
  export class OutputConditionWrapper {
591
886
  private constructor();
592
887
  free(): void;
@@ -636,6 +931,122 @@ export class PaletteManager {
636
931
  static getPaletteByKeywords(keywords: string[]): string[];
637
932
  }
638
933
 
934
+ export class RawMeshExportWrapper {
935
+ private constructor();
936
+ free(): void;
937
+ [Symbol.dispose](): void;
938
+ /**
939
+ * Get vertex colors as a flat Float32Array.
940
+ */
941
+ colorsFlat(): Float32Array;
942
+ /**
943
+ * Get vertex normals as a flat Float32Array.
944
+ */
945
+ normalsFlat(): Float32Array;
946
+ /**
947
+ * Get texture atlas RGBA pixel data.
948
+ */
949
+ textureRgba(): Uint8Array;
950
+ /**
951
+ * Get vertex positions as a flat Float32Array.
952
+ */
953
+ positionsFlat(): Float32Array;
954
+ /**
955
+ * Get triangle indices.
956
+ */
957
+ indices(): Uint32Array;
958
+ /**
959
+ * Get texture coordinates as a flat Float32Array.
960
+ */
961
+ uvsFlat(): Float32Array;
962
+ /**
963
+ * Get the vertex count.
964
+ */
965
+ readonly vertexCount: number;
966
+ /**
967
+ * Get texture atlas width.
968
+ */
969
+ readonly textureWidth: number;
970
+ /**
971
+ * Get texture atlas height.
972
+ */
973
+ readonly textureHeight: number;
974
+ /**
975
+ * Get the triangle count.
976
+ */
977
+ readonly triangleCount: number;
978
+ }
979
+
980
+ export class ResourcePackWrapper {
981
+ free(): void;
982
+ [Symbol.dispose](): void;
983
+ /**
984
+ * Add a texture from raw RGBA8 pixel data.
985
+ */
986
+ addTexture(name: string, width: number, height: number, pixels: Uint8Array): void;
987
+ /**
988
+ * List all model names.
989
+ */
990
+ listModels(): Array<any>;
991
+ /**
992
+ * List all texture names.
993
+ */
994
+ listTextures(): Array<any>;
995
+ /**
996
+ * Add a block model from a JSON string.
997
+ */
998
+ addModelJson(name: string, json: string): void;
999
+ /**
1000
+ * Get a block model as a JSON string. Returns null if not found.
1001
+ */
1002
+ getModelJson(name: string): string | undefined;
1003
+ /**
1004
+ * Get texture info as a JS object with width, height, isAnimated, frameCount.
1005
+ * Returns null if not found.
1006
+ */
1007
+ getTextureInfo(name: string): any;
1008
+ /**
1009
+ * List all blockstate names.
1010
+ */
1011
+ listBlockstates(): Array<any>;
1012
+ /**
1013
+ * Get raw RGBA8 pixel data for a texture. Returns null if not found.
1014
+ */
1015
+ getTexturePixels(name: string): Uint8Array | undefined;
1016
+ /**
1017
+ * Add a blockstate definition from a JSON string.
1018
+ */
1019
+ addBlockstateJson(name: string, json: string): void;
1020
+ /**
1021
+ * Get a blockstate definition as a JSON string. Returns null if not found.
1022
+ */
1023
+ getBlockstateJson(name: string): string | undefined;
1024
+ /**
1025
+ * Load a resource pack from bytes (ZIP file contents).
1026
+ */
1027
+ constructor(data: Uint8Array);
1028
+ /**
1029
+ * Get statistics about the resource pack as a JS object.
1030
+ */
1031
+ getStats(): object;
1032
+ /**
1033
+ * Get the namespaces in the resource pack.
1034
+ */
1035
+ readonly namespaces: Array<any>;
1036
+ /**
1037
+ * Get the number of models in the resource pack.
1038
+ */
1039
+ readonly modelCount: number;
1040
+ /**
1041
+ * Get the number of textures in the resource pack.
1042
+ */
1043
+ readonly textureCount: number;
1044
+ /**
1045
+ * Get the number of blockstates in the resource pack.
1046
+ */
1047
+ readonly blockstateCount: number;
1048
+ }
1049
+
639
1050
  export class SchematicBuilderWrapper {
640
1051
  free(): void;
641
1052
  [Symbol.dispose](): void;
@@ -680,6 +1091,57 @@ export class SchematicWrapper {
680
1091
  * This allows you to configure simulation behavior like wire state tracking.
681
1092
  */
682
1093
  create_simulation_world_with_options(options: SimulationOptionsWrapper): MchprsWorldWrapper;
1094
+ /**
1095
+ * Generate raw mesh data for custom rendering pipelines.
1096
+ */
1097
+ toRawMesh(pack: ResourcePackWrapper, config: MeshConfigWrapper): RawMeshExportWrapper;
1098
+ /**
1099
+ * Generate one mesh per 16x16x16 chunk (eager, all at once).
1100
+ */
1101
+ meshByChunk(pack: ResourcePackWrapper, config: MeshConfigWrapper): ChunkMeshResultWrapper;
1102
+ /**
1103
+ * Generate one mesh per region.
1104
+ */
1105
+ meshByRegion(pack: ResourcePackWrapper, config: MeshConfigWrapper): MultiMeshResultWrapper;
1106
+ /**
1107
+ * Build a single shared texture atlas from all unique block states.
1108
+ *
1109
+ * The atlas can be reused across all chunks via `chunkMeshIteratorWithAtlas()`,
1110
+ * eliminating per-chunk atlas duplication for massive schematics.
1111
+ */
1112
+ buildGlobalAtlas(pack: ResourcePackWrapper, config: MeshConfigWrapper): TextureAtlasWrapper;
1113
+ /**
1114
+ * Generate one mesh per chunk of the specified size (eager).
1115
+ */
1116
+ meshByChunkSize(pack: ResourcePackWrapper, config: MeshConfigWrapper, chunk_size: number): ChunkMeshResultWrapper;
1117
+ /**
1118
+ * Create a lazy chunk mesh iterator.
1119
+ *
1120
+ * Call `advance()` to step to the next chunk, then `current()` to get the
1121
+ * mesh. Never loads the full world mesh into memory.
1122
+ */
1123
+ chunkMeshIterator(pack: ResourcePackWrapper, config: MeshConfigWrapper, chunk_size: number): ChunkMeshIteratorWrapper;
1124
+ /**
1125
+ * Register a mesh exporter with the FormatManager, enabling save_as("mesh", ...).
1126
+ */
1127
+ registerMeshExporter(pack: ResourcePackWrapper): void;
1128
+ /**
1129
+ * Create a lazy chunk mesh iterator that uses a pre-built global atlas.
1130
+ *
1131
+ * The global atlas is shared across all chunks, eliminating per-chunk atlas
1132
+ * duplication. Build the atlas first with `buildGlobalAtlas()`.
1133
+ */
1134
+ chunkMeshIteratorWithAtlas(pack: ResourcePackWrapper, config: MeshConfigWrapper, chunk_size: number, atlas: TextureAtlasWrapper): ChunkMeshIteratorWrapper;
1135
+ /**
1136
+ * Generate a single mesh for the entire schematic.
1137
+ *
1138
+ * Returns a [`MeshOutputWrapper`] with per-layer typed arrays, atlas, and GLB data.
1139
+ */
1140
+ toMesh(pack: ResourcePackWrapper, config: MeshConfigWrapper): MeshOutputWrapper;
1141
+ /**
1142
+ * Generate a USDZ mesh for the entire schematic.
1143
+ */
1144
+ toUsdz(pack: ResourcePackWrapper, config: MeshConfigWrapper): MeshOutputWrapper;
683
1145
  /**
684
1146
  * Add a mobile entity to the schematic.
685
1147
  */
@@ -1032,6 +1494,24 @@ export class StateModeConstants {
1032
1494
  static readonly STATELESS: string;
1033
1495
  }
1034
1496
 
1497
+ export class TextureAtlasWrapper {
1498
+ private constructor();
1499
+ free(): void;
1500
+ [Symbol.dispose](): void;
1501
+ /**
1502
+ * RGBA pixel data as Uint8Array.
1503
+ */
1504
+ toBytes(): Uint8Array;
1505
+ /**
1506
+ * Atlas width in pixels.
1507
+ */
1508
+ readonly width: number;
1509
+ /**
1510
+ * Atlas height in pixels.
1511
+ */
1512
+ readonly height: number;
1513
+ }
1514
+
1035
1515
  export class TypedCircuitExecutorWrapper {
1036
1516
  private constructor();
1037
1517
  free(): void;
@@ -1204,6 +1684,7 @@ export interface InitOutput {
1204
1684
  readonly __wbg_layoutfunctionwrapper_free: (a: number, b: number) => void;
1205
1685
  readonly __wbg_mchprsworldwrapper_free: (a: number, b: number) => void;
1206
1686
  readonly __wbg_outputconditionwrapper_free: (a: number, b: number) => void;
1687
+ readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
1207
1688
  readonly __wbg_simulationoptionswrapper_free: (a: number, b: number) => void;
1208
1689
  readonly __wbg_sortstrategywrapper_free: (a: number, b: number) => void;
1209
1690
  readonly __wbg_statemodeconstants_free: (a: number, b: number) => void;
@@ -1328,6 +1809,12 @@ export interface InitOutput {
1328
1809
  readonly outputconditionwrapper_greaterThan: (a: number) => number;
1329
1810
  readonly outputconditionwrapper_lessThan: (a: number) => number;
1330
1811
  readonly outputconditionwrapper_notEquals: (a: number) => number;
1812
+ readonly schematicbuilderwrapper_build: (a: number) => [number, number, number];
1813
+ readonly schematicbuilderwrapper_fromTemplate: (a: number, b: number) => [number, number, number];
1814
+ readonly schematicbuilderwrapper_layers: (a: number, b: any) => [number, number, number];
1815
+ readonly schematicbuilderwrapper_map: (a: number, b: number, c: number, d: number) => number;
1816
+ readonly schematicbuilderwrapper_name: (a: number, b: number, c: number) => number;
1817
+ readonly schematicbuilderwrapper_new: () => number;
1331
1818
  readonly simulationoptionswrapper_addCustomIo: (a: number, b: number, c: number, d: number) => void;
1332
1819
  readonly simulationoptionswrapper_clearCustomIo: (a: number) => void;
1333
1820
  readonly simulationoptionswrapper_io_only: (a: number) => number;
@@ -1378,13 +1865,34 @@ export interface InitOutput {
1378
1865
  readonly definitionregionwrapper_copy: (a: number) => number;
1379
1866
  readonly schematicwrapper_create_simulation_world: (a: number) => [number, number, number];
1380
1867
  readonly __wbg_blockstatewrapper_free: (a: number, b: number) => void;
1868
+ readonly __wbg_chunkmeshiteratorwrapper_free: (a: number, b: number) => void;
1869
+ readonly __wbg_chunkmeshresultwrapper_free: (a: number, b: number) => void;
1381
1870
  readonly __wbg_lazychunkiterator_free: (a: number, b: number) => void;
1382
- readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
1871
+ readonly __wbg_meshconfigwrapper_free: (a: number, b: number) => void;
1872
+ readonly __wbg_meshoutputwrapper_free: (a: number, b: number) => void;
1873
+ readonly __wbg_multimeshresultwrapper_free: (a: number, b: number) => void;
1874
+ readonly __wbg_palettemanager_free: (a: number, b: number) => void;
1875
+ readonly __wbg_rawmeshexportwrapper_free: (a: number, b: number) => void;
1876
+ readonly __wbg_resourcepackwrapper_free: (a: number, b: number) => void;
1383
1877
  readonly __wbg_schematicwrapper_free: (a: number, b: number) => void;
1878
+ readonly __wbg_textureatlaswrapper_free: (a: number, b: number) => void;
1384
1879
  readonly blockstatewrapper_name: (a: number) => [number, number];
1385
1880
  readonly blockstatewrapper_new: (a: number, b: number) => number;
1386
1881
  readonly blockstatewrapper_properties: (a: number) => any;
1387
1882
  readonly blockstatewrapper_with_property: (a: number, b: number, c: number, d: number, e: number) => void;
1883
+ readonly chunkmeshiteratorwrapper_advance: (a: number) => [number, number, number];
1884
+ readonly chunkmeshiteratorwrapper_chunkCount: (a: number) => number;
1885
+ readonly chunkmeshiteratorwrapper_current: (a: number) => number;
1886
+ readonly chunkmeshiteratorwrapper_currentCoord: (a: number) => any;
1887
+ readonly chunkmeshiteratorwrapper_hasSharedAtlas: (a: number) => number;
1888
+ readonly chunkmeshiteratorwrapper_setProgressCallback: (a: number, b: any) => void;
1889
+ readonly chunkmeshiteratorwrapper_sharedAtlas: (a: number) => number;
1890
+ readonly chunkmeshresultwrapper_chunkCount: (a: number) => number;
1891
+ readonly chunkmeshresultwrapper_getChunkCoordinates: (a: number) => any;
1892
+ readonly chunkmeshresultwrapper_getMesh: (a: number, b: number, c: number, d: number) => number;
1893
+ readonly chunkmeshresultwrapper_toNucm: (a: number) => any;
1894
+ readonly chunkmeshresultwrapper_totalTriangleCount: (a: number) => number;
1895
+ readonly chunkmeshresultwrapper_totalVertexCount: (a: number) => number;
1388
1896
  readonly debug_json_schematic: (a: number) => [number, number];
1389
1897
  readonly debug_schematic: (a: number) => [number, number];
1390
1898
  readonly lazychunkiterator_current_position: (a: number) => number;
@@ -1393,17 +1901,91 @@ export interface InitOutput {
1393
1901
  readonly lazychunkiterator_reset: (a: number) => void;
1394
1902
  readonly lazychunkiterator_skip_to: (a: number, b: number) => void;
1395
1903
  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;
1904
+ readonly meshconfigwrapper_ambientOcclusion: (a: number) => number;
1905
+ readonly meshconfigwrapper_aoIntensity: (a: number) => number;
1906
+ readonly meshconfigwrapper_biome: (a: number) => [number, number];
1907
+ readonly meshconfigwrapper_cullHiddenFaces: (a: number) => number;
1908
+ readonly meshconfigwrapper_cullOccludedBlocks: (a: number) => number;
1909
+ readonly meshconfigwrapper_greedyMeshing: (a: number) => number;
1910
+ readonly meshconfigwrapper_new: () => number;
1911
+ readonly meshconfigwrapper_setAmbientOcclusion: (a: number, b: number) => void;
1912
+ readonly meshconfigwrapper_setAoIntensity: (a: number, b: number) => void;
1913
+ readonly meshconfigwrapper_setAtlasMaxSize: (a: number, b: number) => void;
1914
+ readonly meshconfigwrapper_setBiome: (a: number, b: number, c: number) => void;
1915
+ readonly meshconfigwrapper_setCullHiddenFaces: (a: number, b: number) => void;
1916
+ readonly meshconfigwrapper_setCullOccludedBlocks: (a: number, b: number) => void;
1917
+ readonly meshconfigwrapper_setGreedyMeshing: (a: number, b: number) => void;
1918
+ readonly meshoutputwrapper_atlasHeight: (a: number) => number;
1919
+ readonly meshoutputwrapper_atlasRgba: (a: number) => any;
1920
+ readonly meshoutputwrapper_atlasWidth: (a: number) => number;
1921
+ readonly meshoutputwrapper_bounds: (a: number) => any;
1922
+ readonly meshoutputwrapper_chunkCoord: (a: number) => any;
1923
+ readonly meshoutputwrapper_cutoutColors: (a: number) => any;
1924
+ readonly meshoutputwrapper_cutoutIndices: (a: number) => any;
1925
+ readonly meshoutputwrapper_cutoutNormals: (a: number) => any;
1926
+ readonly meshoutputwrapper_cutoutPositions: (a: number) => any;
1927
+ readonly meshoutputwrapper_cutoutUvs: (a: number) => any;
1928
+ readonly meshoutputwrapper_getStats: (a: number) => any;
1929
+ readonly meshoutputwrapper_glbData: (a: number) => [number, number, number];
1930
+ readonly meshoutputwrapper_hasTransparency: (a: number) => number;
1931
+ readonly meshoutputwrapper_isEmpty: (a: number) => number;
1932
+ readonly meshoutputwrapper_lodLevel: (a: number) => number;
1933
+ readonly meshoutputwrapper_opaqueColors: (a: number) => any;
1934
+ readonly meshoutputwrapper_opaqueIndices: (a: number) => any;
1935
+ readonly meshoutputwrapper_opaqueNormals: (a: number) => any;
1936
+ readonly meshoutputwrapper_opaquePositions: (a: number) => any;
1937
+ readonly meshoutputwrapper_opaqueUvs: (a: number) => any;
1938
+ readonly meshoutputwrapper_toNucm: (a: number) => any;
1939
+ readonly meshoutputwrapper_toUsdz: (a: number) => [number, number, number];
1940
+ readonly meshoutputwrapper_totalTriangles: (a: number) => number;
1941
+ readonly meshoutputwrapper_totalVertices: (a: number) => number;
1942
+ readonly meshoutputwrapper_transparentColors: (a: number) => any;
1943
+ readonly meshoutputwrapper_transparentIndices: (a: number) => any;
1944
+ readonly meshoutputwrapper_transparentNormals: (a: number) => any;
1945
+ readonly meshoutputwrapper_transparentPositions: (a: number) => any;
1946
+ readonly meshoutputwrapper_transparentUvs: (a: number) => any;
1947
+ readonly multimeshresultwrapper_getMesh: (a: number, b: number, c: number) => number;
1948
+ readonly multimeshresultwrapper_getRegionNames: (a: number) => any;
1949
+ readonly multimeshresultwrapper_totalTriangleCount: (a: number) => number;
1950
+ readonly multimeshresultwrapper_totalVertexCount: (a: number) => number;
1951
+ readonly palettemanager_getConcreteBlocks: () => [number, number];
1952
+ readonly palettemanager_getPaletteByKeywords: (a: number, b: number) => [number, number];
1953
+ readonly palettemanager_getTerracottaBlocks: () => [number, number];
1954
+ readonly palettemanager_getWoolBlocks: () => [number, number];
1955
+ readonly rawmeshexportwrapper_colorsFlat: (a: number) => [number, number];
1956
+ readonly rawmeshexportwrapper_indices: (a: number) => [number, number];
1957
+ readonly rawmeshexportwrapper_normalsFlat: (a: number) => [number, number];
1958
+ readonly rawmeshexportwrapper_positionsFlat: (a: number) => [number, number];
1959
+ readonly rawmeshexportwrapper_textureHeight: (a: number) => number;
1960
+ readonly rawmeshexportwrapper_textureRgba: (a: number) => [number, number];
1961
+ readonly rawmeshexportwrapper_textureWidth: (a: number) => number;
1962
+ readonly rawmeshexportwrapper_triangleCount: (a: number) => number;
1963
+ readonly rawmeshexportwrapper_uvsFlat: (a: number) => [number, number];
1964
+ readonly rawmeshexportwrapper_vertexCount: (a: number) => number;
1965
+ readonly resourcepackwrapper_addBlockstateJson: (a: number, b: number, c: number, d: number, e: number) => [number, number];
1966
+ readonly resourcepackwrapper_addModelJson: (a: number, b: number, c: number, d: number, e: number) => [number, number];
1967
+ readonly resourcepackwrapper_addTexture: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
1968
+ readonly resourcepackwrapper_blockstateCount: (a: number) => number;
1969
+ readonly resourcepackwrapper_getBlockstateJson: (a: number, b: number, c: number) => [number, number];
1970
+ readonly resourcepackwrapper_getModelJson: (a: number, b: number, c: number) => [number, number];
1971
+ readonly resourcepackwrapper_getStats: (a: number) => any;
1972
+ readonly resourcepackwrapper_getTextureInfo: (a: number, b: number, c: number) => any;
1973
+ readonly resourcepackwrapper_getTexturePixels: (a: number, b: number, c: number) => [number, number];
1974
+ readonly resourcepackwrapper_listBlockstates: (a: number) => any;
1975
+ readonly resourcepackwrapper_listModels: (a: number) => any;
1976
+ readonly resourcepackwrapper_listTextures: (a: number) => any;
1977
+ readonly resourcepackwrapper_modelCount: (a: number) => number;
1978
+ readonly resourcepackwrapper_namespaces: (a: number) => any;
1979
+ readonly resourcepackwrapper_new: (a: number, b: number) => [number, number, number];
1980
+ readonly resourcepackwrapper_textureCount: (a: number) => number;
1402
1981
  readonly schematicwrapper_addDefinitionRegion: (a: number, b: number, c: number, d: number) => void;
1403
1982
  readonly schematicwrapper_add_entity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
1404
1983
  readonly schematicwrapper_blocks: (a: number) => any;
1405
1984
  readonly schematicwrapper_blocks_indices: (a: number) => any;
1406
1985
  readonly schematicwrapper_buildExecutor: (a: number, b: any) => [number, number, number];
1986
+ readonly schematicwrapper_buildGlobalAtlas: (a: number, b: number, c: number) => [number, number, number];
1987
+ readonly schematicwrapper_chunkMeshIterator: (a: number, b: number, c: number, d: number) => number;
1988
+ readonly schematicwrapper_chunkMeshIteratorWithAtlas: (a: number, b: number, c: number, d: number, e: number) => number;
1407
1989
  readonly schematicwrapper_chunks: (a: number, b: number, c: number, d: number) => any;
1408
1990
  readonly schematicwrapper_chunks_indices: (a: number, b: number, c: number, d: number) => any;
1409
1991
  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;
@@ -1482,8 +2064,12 @@ export interface InitOutput {
1482
2064
  readonly schematicwrapper_get_tight_bounds_min: (a: number) => [number, number];
1483
2065
  readonly schematicwrapper_get_tight_dimensions: (a: number) => [number, number];
1484
2066
  readonly schematicwrapper_get_volume: (a: number) => number;
2067
+ readonly schematicwrapper_meshByChunk: (a: number, b: number, c: number) => [number, number, number];
2068
+ readonly schematicwrapper_meshByChunkSize: (a: number, b: number, c: number, d: number) => [number, number, number];
2069
+ readonly schematicwrapper_meshByRegion: (a: number, b: number, c: number) => [number, number, number];
1485
2070
  readonly schematicwrapper_new: () => number;
1486
2071
  readonly schematicwrapper_print_schematic: (a: number) => [number, number];
2072
+ readonly schematicwrapper_registerMeshExporter: (a: number, b: number) => [number, number];
1487
2073
  readonly schematicwrapper_removeDefinitionRegion: (a: number, b: number, c: number) => number;
1488
2074
  readonly schematicwrapper_remove_entity: (a: number, b: number) => number;
1489
2075
  readonly schematicwrapper_rotate_region_x: (a: number, b: number, c: number, d: number) => [number, number];
@@ -1507,19 +2093,25 @@ export interface InitOutput {
1507
2093
  readonly schematicwrapper_set_block_in_region: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
1508
2094
  readonly schematicwrapper_set_block_with_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
1509
2095
  readonly schematicwrapper_set_blocks: (a: number, b: number, c: number, d: number, e: number) => number;
2096
+ readonly schematicwrapper_toMesh: (a: number, b: number, c: number) => [number, number, number];
2097
+ readonly schematicwrapper_toRawMesh: (a: number, b: number, c: number) => [number, number, number];
1510
2098
  readonly schematicwrapper_to_litematic: (a: number) => [number, number, number, number];
1511
2099
  readonly schematicwrapper_to_mcstructure: (a: number) => [number, number, number, number];
1512
2100
  readonly schematicwrapper_to_schematic: (a: number) => [number, number, number, number];
1513
2101
  readonly schematicwrapper_to_schematic_version: (a: number, b: number, c: number) => [number, number, number, number];
1514
2102
  readonly schematicwrapper_to_world: (a: number, b: number, c: number) => [number, number, number];
1515
2103
  readonly schematicwrapper_to_world_zip: (a: number, b: number, c: number) => [number, number, number, number];
2104
+ readonly textureatlaswrapper_toBytes: (a: number) => any;
1516
2105
  readonly start: () => void;
2106
+ readonly meshoutputwrapper_vertexCount: (a: number) => number;
2107
+ readonly meshoutputwrapper_triangleCount: (a: number) => number;
2108
+ readonly meshoutputwrapper_toGlb: (a: number) => [number, number, number];
2109
+ readonly schematicwrapper_toUsdz: (a: number, b: number, c: number) => [number, number, number];
1517
2110
  readonly schematicwrapper_updateRegion: (a: number, b: number, c: number, d: number) => void;
1518
- readonly __wbg_palettemanager_free: (a: number, b: number) => void;
1519
- readonly palettemanager_getConcreteBlocks: () => [number, number];
1520
- readonly palettemanager_getPaletteByKeywords: (a: number, b: number) => [number, number];
1521
- readonly palettemanager_getTerracottaBlocks: () => [number, number];
1522
- readonly palettemanager_getWoolBlocks: () => [number, number];
2111
+ readonly meshconfigwrapper_atlasMaxSize: (a: number) => number;
2112
+ readonly multimeshresultwrapper_meshCount: (a: number) => number;
2113
+ readonly textureatlaswrapper_height: (a: number) => number;
2114
+ readonly textureatlaswrapper_width: (a: number) => number;
1523
2115
  readonly __wbg_brushwrapper_free: (a: number, b: number) => void;
1524
2116
  readonly __wbg_shapewrapper_free: (a: number, b: number) => void;
1525
2117
  readonly __wbg_wasmbuildingtool_free: (a: number, b: number) => void;
@@ -1549,10 +2141,10 @@ export interface InitOutput {
1549
2141
  readonly sort_blocks_by_color_gradient: (a: number, b: number) => any;
1550
2142
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1551
2143
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1552
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1553
2144
  readonly __wbindgen_exn_store: (a: number) => void;
1554
2145
  readonly __externref_table_alloc: () => number;
1555
2146
  readonly __wbindgen_externrefs: WebAssembly.Table;
2147
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1556
2148
  readonly __externref_table_dealloc: (a: number) => void;
1557
2149
  readonly __externref_drop_slice: (a: number, b: number) => void;
1558
2150
  readonly __wbindgen_start: () => void;