@minecraft/server-gametest 1.0.0-beta.1.20.20-preview.20 → 1.0.0-beta.1.20.20-preview.22
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/index.d.ts +6 -7
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* ```json
|
|
18
18
|
* {
|
|
19
19
|
* "module_name": "@minecraft/server-gametest",
|
|
20
|
-
* "version": "1.0.0-internal.1.20.20-preview.
|
|
20
|
+
* "version": "1.0.0-internal.1.20.20-preview.22"
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
@@ -937,7 +937,7 @@ export class Test {
|
|
|
937
937
|
* @throws This function can throw errors.
|
|
938
938
|
*/
|
|
939
939
|
assertBlockPresent(
|
|
940
|
-
blockType: minecraftserver.BlockType,
|
|
940
|
+
blockType: minecraftserver.BlockType | string,
|
|
941
941
|
blockLocation: minecraftserver.Vector3,
|
|
942
942
|
isPresent?: boolean,
|
|
943
943
|
): void;
|
|
@@ -1606,7 +1606,7 @@ export class Test {
|
|
|
1606
1606
|
* Location of the block to set.
|
|
1607
1607
|
* @throws This function can throw errors.
|
|
1608
1608
|
*/
|
|
1609
|
-
setBlockType(blockType: minecraftserver.BlockType, blockLocation: minecraftserver.Vector3): void;
|
|
1609
|
+
setBlockType(blockType: minecraftserver.BlockType | string, blockLocation: minecraftserver.Vector3): void;
|
|
1610
1610
|
/**
|
|
1611
1611
|
* @remarks
|
|
1612
1612
|
* For blocks that are fluid containers - like a cauldron -
|
|
@@ -1709,12 +1709,11 @@ export class Test {
|
|
|
1709
1709
|
* @throws This function can throw errors.
|
|
1710
1710
|
* @example spawnEmeralds.js
|
|
1711
1711
|
* ```typescript
|
|
1712
|
-
* const oneEmerald = new ItemStack(MinecraftItemTypes.
|
|
1713
|
-
* const fiveEmeralds = new ItemStack(MinecraftItemTypes.
|
|
1712
|
+
* const oneEmerald = new ItemStack(MinecraftItemTypes.Emerald, 1, 0);
|
|
1713
|
+
* const fiveEmeralds = new ItemStack(MinecraftItemTypes.Emerald, 5, 0);
|
|
1714
1714
|
*
|
|
1715
1715
|
* test.spawnItem(oneEmerald, { x: 3.5, y: 3, z: 1.5 });
|
|
1716
1716
|
* test.spawnItem(fiveEmeralds, { x: 1.5, y: 3, z: 1.5 });
|
|
1717
|
-
*
|
|
1718
1717
|
* ```
|
|
1719
1718
|
*/
|
|
1720
1719
|
spawnItem(itemStack: minecraftserver.ItemStack, location: minecraftserver.Vector3): minecraftserver.Entity;
|
|
@@ -1906,7 +1905,7 @@ export class Test {
|
|
|
1906
1905
|
* @throws This function can throw errors.
|
|
1907
1906
|
*/
|
|
1908
1907
|
succeedWhenBlockPresent(
|
|
1909
|
-
blockType: minecraftserver.BlockType,
|
|
1908
|
+
blockType: minecraftserver.BlockType | string,
|
|
1910
1909
|
blockLocation: minecraftserver.Vector3,
|
|
1911
1910
|
isPresent?: boolean,
|
|
1912
1911
|
): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-gametest",
|
|
3
|
-
"version": "1.0.0-beta.1.20.20-preview.
|
|
3
|
+
"version": "1.0.0-beta.1.20.20-preview.22",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/server": "^1.5.0-beta.1.20.20-preview.
|
|
16
|
+
"@minecraft/server": "^1.5.0-beta.1.20.20-preview.22"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|