@minecraft/server 2.8.0-rc.1.26.30-preview.32 → 2.8.0-rc.1.26.40-preview.23
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 +45 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -7510,8 +7510,12 @@ export class Dimension {
|
|
|
7510
7510
|
* locations that satisfied the block filter.
|
|
7511
7511
|
* @throws This function can throw errors.
|
|
7512
7512
|
*
|
|
7513
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
7514
|
+
*
|
|
7513
7515
|
* {@link Error}
|
|
7514
7516
|
*
|
|
7517
|
+
* {@link minecraftcommon.InvalidArgumentError}
|
|
7518
|
+
*
|
|
7515
7519
|
* {@link UnloadedChunksError}
|
|
7516
7520
|
*/
|
|
7517
7521
|
getBlocks(volume: BlockVolumeBase, filter: BlockFilter, allowUnloadedChunks?: boolean): ListBlockVolume;
|
|
@@ -7768,9 +7772,11 @@ export class Dimension {
|
|
|
7768
7772
|
* An error will be thrown if pitch is less than 0.01.
|
|
7769
7773
|
* An error will be thrown if volume is less than 0.0.
|
|
7770
7774
|
*
|
|
7775
|
+
* {@link minecraftcommon.EngineError}
|
|
7776
|
+
*
|
|
7771
7777
|
* {@link minecraftcommon.PropertyOutOfBoundsError}
|
|
7772
7778
|
*/
|
|
7773
|
-
playSound(soundId: string, location: Vector3, soundOptions?: WorldSoundOptions):
|
|
7779
|
+
playSound(soundId: string, location: Vector3, soundOptions?: WorldSoundOptions): SoundInstance;
|
|
7774
7780
|
/**
|
|
7775
7781
|
* @remarks
|
|
7776
7782
|
* Runs a command synchronously using the context of the
|
|
@@ -8578,6 +8584,26 @@ export class Entity {
|
|
|
8578
8584
|
* {@link InvalidEntityError}
|
|
8579
8585
|
*/
|
|
8580
8586
|
readonly location: Vector3;
|
|
8587
|
+
/**
|
|
8588
|
+
* @rc
|
|
8589
|
+
* @remarks
|
|
8590
|
+
* Boolean which determines if the player nameplate should be
|
|
8591
|
+
* depth tested for visibility.
|
|
8592
|
+
*
|
|
8593
|
+
* This property can't be edited in restricted-execution mode.
|
|
8594
|
+
*
|
|
8595
|
+
*/
|
|
8596
|
+
nameplateDepthTested: boolean;
|
|
8597
|
+
/**
|
|
8598
|
+
* @rc
|
|
8599
|
+
* @remarks
|
|
8600
|
+
* Float that determines the render distance of this entity's
|
|
8601
|
+
* nameplate.
|
|
8602
|
+
*
|
|
8603
|
+
* This property can't be edited in restricted-execution mode.
|
|
8604
|
+
*
|
|
8605
|
+
*/
|
|
8606
|
+
nameplateRenderDistance: number;
|
|
8581
8607
|
/**
|
|
8582
8608
|
* @remarks
|
|
8583
8609
|
* Given name of the entity.
|
|
@@ -16617,6 +16643,10 @@ export class Player extends Entity {
|
|
|
16617
16643
|
* @param soundOptions
|
|
16618
16644
|
* Additional optional options for the sound.
|
|
16619
16645
|
* @throws This function can throw errors.
|
|
16646
|
+
*
|
|
16647
|
+
* {@link minecraftcommon.EngineError}
|
|
16648
|
+
*
|
|
16649
|
+
* {@link Error}
|
|
16620
16650
|
* @example playMusicAndSound.ts
|
|
16621
16651
|
* ```typescript
|
|
16622
16652
|
* import { world, MusicOptions, WorldSoundOptions, PlayerSoundOptions, DimensionLocation } from '@minecraft/server';
|
|
@@ -16646,7 +16676,7 @@ export class Player extends Entity {
|
|
|
16646
16676
|
* }
|
|
16647
16677
|
* ```
|
|
16648
16678
|
*/
|
|
16649
|
-
playSound(soundId: string, soundOptions?: PlayerSoundOptions):
|
|
16679
|
+
playSound(soundId: string, soundOptions?: PlayerSoundOptions): SoundInstance;
|
|
16650
16680
|
/**
|
|
16651
16681
|
* @remarks
|
|
16652
16682
|
* Queues an additional music track that only this particular
|
|
@@ -19934,6 +19964,19 @@ export class SmeltItemFunction extends LootItemFunction {
|
|
|
19934
19964
|
private constructor();
|
|
19935
19965
|
}
|
|
19936
19966
|
|
|
19967
|
+
/**
|
|
19968
|
+
* Represents a handle to a sound that has been played. The
|
|
19969
|
+
* handle is required to control the sound while it is playing
|
|
19970
|
+
* (for example, to call `stop`, `setVolume`, `setPitch`,
|
|
19971
|
+
* `fade`, or `seekTo`). Infinitely-looping sounds (started
|
|
19972
|
+
* with `loop: -1`) stop automatically when the last
|
|
19973
|
+
* `SoundInstance` reference is dropped; retain the handle for
|
|
19974
|
+
* as long as the sound should keep playing.
|
|
19975
|
+
*/
|
|
19976
|
+
export class SoundInstance {
|
|
19977
|
+
private constructor();
|
|
19978
|
+
}
|
|
19979
|
+
|
|
19937
19980
|
/**
|
|
19938
19981
|
* Loot item function that applies one or several predefined
|
|
19939
19982
|
* enchants to the dropped item.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.8.0-rc.1.26.
|
|
3
|
+
"version": "2.8.0-rc.1.26.40-preview.23",
|
|
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.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.40-preview.23"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|