@minecraft/server-gametest 1.0.0-beta.preview.1.19.50.21 → 1.0.0-beta.release.1.19.40
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 +12 -13
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* ```json
|
|
17
17
|
* {
|
|
18
18
|
* "module_name": "@minecraft/server-gametest",
|
|
19
|
-
* "version": "1.0.0-internal.
|
|
19
|
+
* "version": "1.0.0-internal.release.1.19.40"
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -337,7 +337,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
337
337
|
* Current location of the player.
|
|
338
338
|
* @throws This property can throw when used.
|
|
339
339
|
*/
|
|
340
|
-
readonly location: minecraftserver.
|
|
340
|
+
readonly location: minecraftserver.Location;
|
|
341
341
|
/**
|
|
342
342
|
* Name of the player.
|
|
343
343
|
* @throws This property can throw when used.
|
|
@@ -739,12 +739,12 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
739
739
|
* @throws This function can throw errors.
|
|
740
740
|
*/
|
|
741
741
|
rotateBody(angleInDegrees: number): void;
|
|
742
|
+
runCommand(commandString: string): any;
|
|
742
743
|
/**
|
|
743
744
|
* @remarks
|
|
744
745
|
* Runs a particular command asynchronously from the context of
|
|
745
|
-
* this entity.
|
|
746
|
-
*
|
|
747
|
-
* operations.
|
|
746
|
+
* this entity. Note that there is a maximum queue of 128
|
|
747
|
+
* asynchronous commands that can be run in a given tick.
|
|
748
748
|
* @param commandString
|
|
749
749
|
* Command to run. Note that command strings should not start
|
|
750
750
|
* with slash.
|
|
@@ -808,7 +808,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
808
808
|
* X/Y/Z components of the velocity.
|
|
809
809
|
* @throws This function can throw errors.
|
|
810
810
|
*/
|
|
811
|
-
setVelocity(velocity: minecraftserver.
|
|
811
|
+
setVelocity(velocity: minecraftserver.IVec3): void;
|
|
812
812
|
/**
|
|
813
813
|
* @remarks
|
|
814
814
|
* Sets the item cooldown time for a particular cooldown
|
|
@@ -861,7 +861,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
861
861
|
* @throws This function can throw errors.
|
|
862
862
|
*/
|
|
863
863
|
teleport(
|
|
864
|
-
location: minecraftserver.
|
|
864
|
+
location: minecraftserver.IVec3,
|
|
865
865
|
dimension: minecraftserver.Dimension,
|
|
866
866
|
xRotation: number,
|
|
867
867
|
yRotation: number,
|
|
@@ -881,9 +881,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
881
881
|
* @throws This function can throw errors.
|
|
882
882
|
*/
|
|
883
883
|
teleportFacing(
|
|
884
|
-
location: minecraftserver.
|
|
884
|
+
location: minecraftserver.IVec3,
|
|
885
885
|
dimension: minecraftserver.Dimension,
|
|
886
|
-
facingLocation: minecraftserver.
|
|
886
|
+
facingLocation: minecraftserver.IVec3,
|
|
887
887
|
keepVelocity?: boolean,
|
|
888
888
|
): void;
|
|
889
889
|
/**
|
|
@@ -1447,7 +1447,6 @@ export class Test {
|
|
|
1447
1447
|
* @throws This function can throw errors.
|
|
1448
1448
|
*/
|
|
1449
1449
|
killAllEntities(): void;
|
|
1450
|
-
onPlayerJump(mob: minecraftserver.Entity, jumpAmount: number): void;
|
|
1451
1450
|
/**
|
|
1452
1451
|
* @remarks
|
|
1453
1452
|
* Presses a button at a block location.
|
|
@@ -1501,7 +1500,7 @@ export class Test {
|
|
|
1501
1500
|
* A location relative to the GameTest command block.
|
|
1502
1501
|
* @throws This function can throw errors.
|
|
1503
1502
|
*/
|
|
1504
|
-
relativeBlockLocation(worldBlockLocation: minecraftserver.
|
|
1503
|
+
relativeBlockLocation(worldBlockLocation: minecraftserver.BlockLocation): minecraftserver.BlockLocation;
|
|
1505
1504
|
/**
|
|
1506
1505
|
* @remarks
|
|
1507
1506
|
* From a location, returns a new location with coordinates
|
|
@@ -1516,7 +1515,7 @@ export class Test {
|
|
|
1516
1515
|
* A location relative to the GameTest command block.
|
|
1517
1516
|
* @throws This function can throw errors.
|
|
1518
1517
|
*/
|
|
1519
|
-
relativeLocation(worldLocation: minecraftserver.
|
|
1518
|
+
relativeLocation(worldLocation: minecraftserver.Location): minecraftserver.Location;
|
|
1520
1519
|
/**
|
|
1521
1520
|
* @remarks
|
|
1522
1521
|
* Removes a simulated player from the world.
|
|
@@ -1983,7 +1982,7 @@ export class Test {
|
|
|
1983
1982
|
* An absolute location relative to the GameTest command block.
|
|
1984
1983
|
* @throws This function can throw errors.
|
|
1985
1984
|
*/
|
|
1986
|
-
worldLocation(relativeLocation: minecraftserver.
|
|
1985
|
+
worldLocation(relativeLocation: minecraftserver.Location): minecraftserver.Location;
|
|
1987
1986
|
protected constructor();
|
|
1988
1987
|
}
|
|
1989
1988
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-gametest",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.release.1.19.40",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/server": "1.
|
|
16
|
+
"@minecraft/server": "1.0.0-beta.release.1.19.40"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|