@minecraft/server 2.10.0-beta.1.26.40-preview.29 → 2.10.0-beta.1.26.40-preview.30
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 +122 -5
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -220,6 +220,34 @@ export enum CameraShakeType {
|
|
|
220
220
|
Rotational = 'Rotational',
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
/**
|
|
224
|
+
* @beta
|
|
225
|
+
* An enumeration for the clone modes used when cloning blocks.
|
|
226
|
+
*/
|
|
227
|
+
export enum CloneMode {
|
|
228
|
+
/**
|
|
229
|
+
* @remarks
|
|
230
|
+
* Clones the blocks from the source region to the destination,
|
|
231
|
+
* leaving the source intact.
|
|
232
|
+
*
|
|
233
|
+
*/
|
|
234
|
+
Copy = 0,
|
|
235
|
+
/**
|
|
236
|
+
* @remarks
|
|
237
|
+
* Clones the blocks from the source region to the destination,
|
|
238
|
+
* allowing the source and destination regions to overlap.
|
|
239
|
+
*
|
|
240
|
+
*/
|
|
241
|
+
ForceCopy = 1,
|
|
242
|
+
/**
|
|
243
|
+
* @remarks
|
|
244
|
+
* Clones the blocks from the source region to the destination
|
|
245
|
+
* and replaces the source region with air.
|
|
246
|
+
*
|
|
247
|
+
*/
|
|
248
|
+
Move = 2,
|
|
249
|
+
}
|
|
250
|
+
|
|
223
251
|
/**
|
|
224
252
|
* The required permission level to execute the custom command.
|
|
225
253
|
*/
|
|
@@ -8408,6 +8436,40 @@ export class Dimension {
|
|
|
8408
8436
|
biomeToFind: BiomeType | string,
|
|
8409
8437
|
options?: BiomeSearchOptions,
|
|
8410
8438
|
): Vector3 | undefined;
|
|
8439
|
+
/**
|
|
8440
|
+
* @beta
|
|
8441
|
+
* @remarks
|
|
8442
|
+
* Clones a region of blocks from one area of the dimension to
|
|
8443
|
+
* another.
|
|
8444
|
+
*
|
|
8445
|
+
* This function can't be called in restricted-execution mode.
|
|
8446
|
+
*
|
|
8447
|
+
* @param beginLocation
|
|
8448
|
+
* The lower northwest starting corner of the area to clone
|
|
8449
|
+
* from.
|
|
8450
|
+
* @param endLocation
|
|
8451
|
+
* The upper southeast ending corner of the area to clone from.
|
|
8452
|
+
* @param destination
|
|
8453
|
+
* The lower northwest starting corner of the area to clone to.
|
|
8454
|
+
* @param cloneMode
|
|
8455
|
+
* Specifies how the cloned blocks should be placed at the
|
|
8456
|
+
* destination.
|
|
8457
|
+
* @param filter
|
|
8458
|
+
* An optional block filter used to include only matching
|
|
8459
|
+
* blocks from the source area.
|
|
8460
|
+
* @throws This function can throw errors.
|
|
8461
|
+
*
|
|
8462
|
+
* {@link Error}
|
|
8463
|
+
*
|
|
8464
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
8465
|
+
*/
|
|
8466
|
+
cloneBlocks(
|
|
8467
|
+
beginLocation: Vector3,
|
|
8468
|
+
endLocation: Vector3,
|
|
8469
|
+
destination: Vector3,
|
|
8470
|
+
cloneMode: CloneMode,
|
|
8471
|
+
filter?: BlockFilter,
|
|
8472
|
+
): void;
|
|
8411
8473
|
/**
|
|
8412
8474
|
* @remarks
|
|
8413
8475
|
* Checks if an area contains the specified biomes. If the area
|
|
@@ -17489,7 +17551,7 @@ export class LootingEnchantFunction extends LootItemFunction {
|
|
|
17489
17551
|
export class LootItem extends LootPoolEntry {
|
|
17490
17552
|
private constructor();
|
|
17491
17553
|
/**
|
|
17492
|
-
* @
|
|
17554
|
+
* @rc
|
|
17493
17555
|
*/
|
|
17494
17556
|
readonly conditions: LootItemCondition[];
|
|
17495
17557
|
readonly functions: LootItemFunction[];
|
|
@@ -20933,6 +20995,18 @@ export class PrimitiveShapesManager {
|
|
|
20933
20995
|
* {@link PrimitiveShapeError}
|
|
20934
20996
|
*/
|
|
20935
20997
|
addText(text: TextPrimitive, dimension?: Dimension): void;
|
|
20998
|
+
/**
|
|
20999
|
+
* @beta
|
|
21000
|
+
* @remarks
|
|
21001
|
+
* Fetches and queries all primitive shapes stored in the
|
|
21002
|
+
* manager and returns the results as an array of shape
|
|
21003
|
+
* handles.
|
|
21004
|
+
*
|
|
21005
|
+
* @param options
|
|
21006
|
+
* Optional options for querying existing shapes to narrow down
|
|
21007
|
+
* the results.
|
|
21008
|
+
*/
|
|
21009
|
+
getShapes(options?: PrimitiveShapeQueryOptions): PrimitiveShape[];
|
|
20936
21010
|
/**
|
|
20937
21011
|
* @remarks
|
|
20938
21012
|
* Removes all text primitives from the world.
|
|
@@ -22352,13 +22426,14 @@ export class SoundDurationInfo {
|
|
|
22352
22426
|
readonly isActive: boolean;
|
|
22353
22427
|
/**
|
|
22354
22428
|
* @remarks
|
|
22355
|
-
* Returns the
|
|
22356
|
-
*
|
|
22429
|
+
* Returns the current playback position within the sound, in
|
|
22430
|
+
* seconds, measured from the beginning of the sound.
|
|
22357
22431
|
*
|
|
22358
22432
|
* This function can't be called in restricted-execution mode.
|
|
22359
22433
|
*
|
|
22360
22434
|
* @returns
|
|
22361
|
-
*
|
|
22435
|
+
* Current playback position in seconds, measured from the
|
|
22436
|
+
* beginning of the sound.
|
|
22362
22437
|
*/
|
|
22363
22438
|
getPlaybackPosition(): number;
|
|
22364
22439
|
}
|
|
@@ -22448,7 +22523,12 @@ export class SoundInstance {
|
|
|
22448
22523
|
*
|
|
22449
22524
|
* @param seconds
|
|
22450
22525
|
* Position to seek to in seconds. Must be non-negative.
|
|
22451
|
-
*
|
|
22526
|
+
* Bounds: [0, 107374184]
|
|
22527
|
+
* @throws
|
|
22528
|
+
* Throws if `seconds` is negative, or if the sound has a known
|
|
22529
|
+
* duration and `seconds` is greater than that duration.
|
|
22530
|
+
*
|
|
22531
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
22452
22532
|
*/
|
|
22453
22533
|
seekTo(seconds: number): void;
|
|
22454
22534
|
/**
|
|
@@ -27446,6 +27526,43 @@ export interface PlayerVisibilityRules extends EntityVisibilityRules {
|
|
|
27446
27526
|
showSpectatorToSpectator?: boolean;
|
|
27447
27527
|
}
|
|
27448
27528
|
|
|
27529
|
+
/**
|
|
27530
|
+
* @beta
|
|
27531
|
+
* Contains optional filters that control which primitive
|
|
27532
|
+
* shapes are returned from a primitive shapes query.
|
|
27533
|
+
*/
|
|
27534
|
+
export interface PrimitiveShapeQueryOptions {
|
|
27535
|
+
/**
|
|
27536
|
+
* @remarks
|
|
27537
|
+
* If specified, only returns shapes attached to this entity.
|
|
27538
|
+
*
|
|
27539
|
+
*/
|
|
27540
|
+
attachedTo?: Entity;
|
|
27541
|
+
/**
|
|
27542
|
+
* @remarks
|
|
27543
|
+
* Adds a seed location to the query that is used in
|
|
27544
|
+
* conjunction with distance properties.
|
|
27545
|
+
*
|
|
27546
|
+
*/
|
|
27547
|
+
location?: Vector3;
|
|
27548
|
+
/**
|
|
27549
|
+
* @remarks
|
|
27550
|
+
* If specified, only includes shapes that are less than this
|
|
27551
|
+
* distance away from the location specified in the location
|
|
27552
|
+
* property.
|
|
27553
|
+
*
|
|
27554
|
+
*/
|
|
27555
|
+
maxDistance?: number;
|
|
27556
|
+
/**
|
|
27557
|
+
* @remarks
|
|
27558
|
+
* If specified, only includes shapes that are at least this
|
|
27559
|
+
* distance away from the location specified in the location
|
|
27560
|
+
* property.
|
|
27561
|
+
*
|
|
27562
|
+
*/
|
|
27563
|
+
minDistance?: number;
|
|
27564
|
+
}
|
|
27565
|
+
|
|
27449
27566
|
/**
|
|
27450
27567
|
* Key frame that holds the progress of the camera animation.
|
|
27451
27568
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.10.0-beta.1.26.40-preview.
|
|
3
|
+
"version": "2.10.0-beta.1.26.40-preview.30",
|
|
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.40-preview.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.40-preview.30"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|