@minecraft/server 2.9.0-beta.1.26.30-preview.21 → 2.9.0-beta.1.26.30-preview.25
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 +24 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -8662,9 +8662,11 @@ export class Dimension {
|
|
|
8662
8662
|
* An error will be thrown if pitch is less than 0.01.
|
|
8663
8663
|
* An error will be thrown if volume is less than 0.0.
|
|
8664
8664
|
*
|
|
8665
|
+
* {@link minecraftcommon.EngineError}
|
|
8666
|
+
*
|
|
8665
8667
|
* {@link minecraftcommon.PropertyOutOfBoundsError}
|
|
8666
8668
|
*/
|
|
8667
|
-
playSound(soundId: string, location: Vector3, soundOptions?: WorldSoundOptions):
|
|
8669
|
+
playSound(soundId: string, location: Vector3, soundOptions?: WorldSoundOptions): SoundInstance;
|
|
8668
8670
|
/**
|
|
8669
8671
|
* @remarks
|
|
8670
8672
|
* Runs a command synchronously using the context of the
|
|
@@ -17826,6 +17828,10 @@ export class Player extends Entity {
|
|
|
17826
17828
|
* @param soundOptions
|
|
17827
17829
|
* Additional optional options for the sound.
|
|
17828
17830
|
* @throws This function can throw errors.
|
|
17831
|
+
*
|
|
17832
|
+
* {@link minecraftcommon.EngineError}
|
|
17833
|
+
*
|
|
17834
|
+
* {@link Error}
|
|
17829
17835
|
* @example playMusicAndSound.ts
|
|
17830
17836
|
* ```typescript
|
|
17831
17837
|
* import { world, MusicOptions, WorldSoundOptions, PlayerSoundOptions, DimensionLocation } from '@minecraft/server';
|
|
@@ -17855,7 +17861,7 @@ export class Player extends Entity {
|
|
|
17855
17861
|
* }
|
|
17856
17862
|
* ```
|
|
17857
17863
|
*/
|
|
17858
|
-
playSound(soundId: string, soundOptions?: PlayerSoundOptions):
|
|
17864
|
+
playSound(soundId: string, soundOptions?: PlayerSoundOptions): SoundInstance;
|
|
17859
17865
|
/**
|
|
17860
17866
|
* @beta
|
|
17861
17867
|
* @remarks
|
|
@@ -21383,6 +21389,22 @@ export class SmeltItemFunction extends LootItemFunction {
|
|
|
21383
21389
|
private constructor();
|
|
21384
21390
|
}
|
|
21385
21391
|
|
|
21392
|
+
/**
|
|
21393
|
+
* @beta
|
|
21394
|
+
* Represents a handle to a sound that has been played.
|
|
21395
|
+
*/
|
|
21396
|
+
export class SoundInstance {
|
|
21397
|
+
private constructor();
|
|
21398
|
+
/**
|
|
21399
|
+
* @remarks
|
|
21400
|
+
* Stops this sound from playing.
|
|
21401
|
+
*
|
|
21402
|
+
* This function can't be called in restricted-execution mode.
|
|
21403
|
+
*
|
|
21404
|
+
*/
|
|
21405
|
+
stop(): void;
|
|
21406
|
+
}
|
|
21407
|
+
|
|
21386
21408
|
/**
|
|
21387
21409
|
* Loot item function that applies one or several predefined
|
|
21388
21410
|
* enchants to the dropped item.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.9.0-beta.1.26.30-preview.
|
|
3
|
+
"version": "2.9.0-beta.1.26.30-preview.25",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.2.0",
|
|
17
|
-
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.30-preview.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.30-preview.25"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|