@minecraft/server 2.11.0-rc.1.26.60-preview.25 → 2.11.0-rc.1.26.60-preview.28
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 +8 -8
- package/index.d.ts +33 -7
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# `@minecraft/server`
|
|
2
|
-
|
|
3
|
-
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
4
|
-
|
|
5
|
-
## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
|
|
6
|
-
|
|
7
|
-
See full documentation for this module here:
|
|
8
|
-
|
|
1
|
+
# `@minecraft/server`
|
|
2
|
+
|
|
3
|
+
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
4
|
+
|
|
5
|
+
## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
|
|
6
|
+
|
|
7
|
+
See full documentation for this module here:
|
|
8
|
+
|
|
9
9
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
|
package/index.d.ts
CHANGED
|
@@ -11468,6 +11468,28 @@ export class EntityIsStunnedComponent extends EntityComponent {
|
|
|
11468
11468
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
11469
11469
|
export class EntityIsTamedComponent extends EntityComponent {
|
|
11470
11470
|
private constructor();
|
|
11471
|
+
/**
|
|
11472
|
+
* @rc
|
|
11473
|
+
* @remarks
|
|
11474
|
+
* Returns the player that has tamed the entity, or 'undefined'
|
|
11475
|
+
* if the entity has no player owner.
|
|
11476
|
+
*
|
|
11477
|
+
* @throws This property can throw when used.
|
|
11478
|
+
*
|
|
11479
|
+
* {@link InvalidEntityError}
|
|
11480
|
+
*/
|
|
11481
|
+
readonly tamedToPlayer?: Player;
|
|
11482
|
+
/**
|
|
11483
|
+
* @rc
|
|
11484
|
+
* @remarks
|
|
11485
|
+
* Returns the id of the player that has tamed the entity, or
|
|
11486
|
+
* 'undefined' if the entity has no player owner.
|
|
11487
|
+
*
|
|
11488
|
+
* @throws This property can throw when used.
|
|
11489
|
+
*
|
|
11490
|
+
* {@link InvalidEntityError}
|
|
11491
|
+
*/
|
|
11492
|
+
readonly tamedToPlayerId?: string;
|
|
11471
11493
|
static readonly componentId = 'minecraft:is_tamed';
|
|
11472
11494
|
}
|
|
11473
11495
|
|
|
@@ -21041,10 +21063,11 @@ export class SoundInstance {
|
|
|
21041
21063
|
/**
|
|
21042
21064
|
* @rc
|
|
21043
21065
|
* @remarks
|
|
21044
|
-
* Fades this sound instance from its current volume
|
|
21045
|
-
* target
|
|
21046
|
-
*
|
|
21047
|
-
*
|
|
21066
|
+
* Fades this sound instance from its current volume multiplier
|
|
21067
|
+
* to the target multiplier over the specified duration. Volume
|
|
21068
|
+
* multipliers are relative to the selected sound variant's
|
|
21069
|
+
* volume. To fade in from silence, call `setVolume(0.0)`
|
|
21070
|
+
* first; to fade out, pass a target volume of `0.0`.
|
|
21048
21071
|
*
|
|
21049
21072
|
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
21050
21073
|
*
|
|
@@ -21052,7 +21075,8 @@ export class SoundInstance {
|
|
|
21052
21075
|
* Duration of the fade in seconds. Must be non-negative.
|
|
21053
21076
|
* Minimum value: 0
|
|
21054
21077
|
* @param targetVolume
|
|
21055
|
-
* Volume to fade to
|
|
21078
|
+
* Volume multiplier to fade to, relative to the selected sound
|
|
21079
|
+
* variant's volume. Must be non-negative.
|
|
21056
21080
|
* Minimum value: 0
|
|
21057
21081
|
*/
|
|
21058
21082
|
fade(duration: number, targetVolume: number): void;
|
|
@@ -21107,12 +21131,14 @@ export class SoundInstance {
|
|
|
21107
21131
|
/**
|
|
21108
21132
|
* @rc
|
|
21109
21133
|
* @remarks
|
|
21110
|
-
* Sets the volume of this sound instance
|
|
21134
|
+
* Sets the volume multiplier of this sound instance relative
|
|
21135
|
+
* to the volume of the selected sound variant.
|
|
21111
21136
|
*
|
|
21112
21137
|
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
21113
21138
|
*
|
|
21114
21139
|
* @param volume
|
|
21115
|
-
* Volume
|
|
21140
|
+
* Volume multiplier between 0.0 and 10.0. A value of 1.0 uses
|
|
21141
|
+
* the selected sound variant's volume.
|
|
21116
21142
|
* Bounds: [0, 10]
|
|
21117
21143
|
*/
|
|
21118
21144
|
setVolume(volume: number): void;
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.11.0-rc.1.26.60-preview.
|
|
4
|
-
"description": "",
|
|
5
|
-
"contributors": [
|
|
6
|
-
{
|
|
7
|
-
"name": "Jake Shirley",
|
|
8
|
-
"email": "jake@xbox.com"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"name": "Mike Ammerlaan",
|
|
12
|
-
"email": "mikeam@microsoft.com"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@minecraft/common": "^1.2.0",
|
|
17
|
-
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.60-preview.
|
|
18
|
-
},
|
|
19
|
-
"license": "MIT"
|
|
1
|
+
{
|
|
2
|
+
"name": "@minecraft/server",
|
|
3
|
+
"version": "2.11.0-rc.1.26.60-preview.28",
|
|
4
|
+
"description": "",
|
|
5
|
+
"contributors": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Jake Shirley",
|
|
8
|
+
"email": "jake@xbox.com"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Mike Ammerlaan",
|
|
12
|
+
"email": "mikeam@microsoft.com"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@minecraft/common": "^1.2.0",
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.60-preview.28"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT"
|
|
20
20
|
}
|