nucleation 0.1.74 → 0.1.77
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/README.md +3 -0
- package/nucleation-original.js +16 -0
- package/nucleation.d.ts +5 -0
- package/nucleation_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -168,6 +168,9 @@ maturin develop --features python
|
|
|
168
168
|
cargo test
|
|
169
169
|
cargo test --features simulation
|
|
170
170
|
./test-wasm.sh # WASM tests with simulation
|
|
171
|
+
|
|
172
|
+
# Pre-push verification (recommended before pushing)
|
|
173
|
+
./pre-push.sh # Runs all checks that CI runs
|
|
171
174
|
```
|
|
172
175
|
|
|
173
176
|
---
|
package/nucleation-original.js
CHANGED
|
@@ -800,6 +800,22 @@ export class SchematicWrapper {
|
|
|
800
800
|
const ret = wasm.schematicwrapper_get_block_entity(this.__wbg_ptr, x, y, z);
|
|
801
801
|
return ret;
|
|
802
802
|
}
|
|
803
|
+
/**
|
|
804
|
+
* Get block as formatted string with properties (e.g., "minecraft:lever[powered=true,facing=north]")
|
|
805
|
+
* @param {number} x
|
|
806
|
+
* @param {number} y
|
|
807
|
+
* @param {number} z
|
|
808
|
+
* @returns {string | undefined}
|
|
809
|
+
*/
|
|
810
|
+
get_block_string(x, y, z) {
|
|
811
|
+
const ret = wasm.schematicwrapper_get_block_string(this.__wbg_ptr, x, y, z);
|
|
812
|
+
let v1;
|
|
813
|
+
if (ret[0] !== 0) {
|
|
814
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
815
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
816
|
+
}
|
|
817
|
+
return v1;
|
|
818
|
+
}
|
|
803
819
|
/**
|
|
804
820
|
* @returns {any}
|
|
805
821
|
*/
|
package/nucleation.d.ts
CHANGED
|
@@ -116,6 +116,10 @@ export class SchematicWrapper {
|
|
|
116
116
|
*/
|
|
117
117
|
get_all_palettes(): any;
|
|
118
118
|
get_block_entity(x: number, y: number, z: number): any;
|
|
119
|
+
/**
|
|
120
|
+
* Get block as formatted string with properties (e.g., "minecraft:lever[powered=true,facing=north]")
|
|
121
|
+
*/
|
|
122
|
+
get_block_string(x: number, y: number, z: number): string | undefined;
|
|
119
123
|
get_bounding_box(): any;
|
|
120
124
|
get_chunk_blocks(offset_x: number, offset_y: number, offset_z: number, width: number, height: number, length: number): Array<any>;
|
|
121
125
|
get_region_names(): string[];
|
|
@@ -205,6 +209,7 @@ export interface InitOutput {
|
|
|
205
209
|
readonly schematicwrapper_get_block: (a: number, b: number, c: number, d: number) => [number, number];
|
|
206
210
|
readonly schematicwrapper_get_block_count: (a: number) => number;
|
|
207
211
|
readonly schematicwrapper_get_block_entity: (a: number, b: number, c: number, d: number) => any;
|
|
212
|
+
readonly schematicwrapper_get_block_string: (a: number, b: number, c: number, d: number) => [number, number];
|
|
208
213
|
readonly schematicwrapper_get_block_with_properties: (a: number, b: number, c: number, d: number) => number;
|
|
209
214
|
readonly schematicwrapper_get_bounding_box: (a: number) => any;
|
|
210
215
|
readonly schematicwrapper_get_chunk_blocks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
package/nucleation_bg.wasm
CHANGED
|
Binary file
|