@minecraft/server 2.12.0-rc.1.26.70-preview.21 → 2.12.0-rc.1.26.70-preview.22

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.
Files changed (2) hide show
  1. package/index.d.ts +2 -48
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Type definitions for Minecraft Bedrock Edition script APIs
2
- // Project: https://docs.microsoft.com/minecraft/creator/
2
+ // Project: https://learn.microsoft.com/minecraft/creator/
3
3
  // Definitions by: Jake Shirley <https://github.com/JakeShirley>
4
- // Mike Ammerlaan <https://github.com/mammerla>
4
+ // Raphael Landaverde <https://github.com/rlandav>
5
5
 
6
6
  /* *****************************************************************************
7
7
  Copyright (c) Microsoft Corporation.
@@ -8430,7 +8430,6 @@ export class Dimension {
8430
8430
  */
8431
8431
  spawnParticle(effectName: string, location: Vector3, molangVariables?: MolangVariableMap): void;
8432
8432
  /**
8433
- * @rc
8434
8433
  * @remarks
8435
8434
  * Spawns an experience orb at a specified location in the
8436
8435
  * dimension.
@@ -11517,7 +11516,6 @@ export class EntityIsStunnedComponent extends EntityComponent {
11517
11516
  export class EntityIsTamedComponent extends EntityComponent {
11518
11517
  private constructor();
11519
11518
  /**
11520
- * @rc
11521
11519
  * @remarks
11522
11520
  * Returns the player that has tamed the entity, or 'undefined'
11523
11521
  * if the entity has no player owner.
@@ -11528,7 +11526,6 @@ export class EntityIsTamedComponent extends EntityComponent {
11528
11526
  */
11529
11527
  readonly tamedToPlayer?: Player;
11530
11528
  /**
11531
- * @rc
11532
11529
  * @remarks
11533
11530
  * Returns the id of the player that has tamed the entity, or
11534
11531
  * 'undefined' if the entity has no player owner.
@@ -21421,7 +21418,6 @@ export class SoundInstance {
21421
21418
  */
21422
21419
  readonly soundEventId: string;
21423
21420
  /**
21424
- * @rc
21425
21421
  * @remarks
21426
21422
  * Fades this sound instance from its current volume multiplier
21427
21423
  * to the target multiplier over the specified duration. Volume
@@ -21441,7 +21437,6 @@ export class SoundInstance {
21441
21437
  */
21442
21438
  fade(duration: number, targetVolume: number): void;
21443
21439
  /**
21444
- * @rc
21445
21440
  * @remarks
21446
21441
  * Pauses this sound.
21447
21442
  *
@@ -21450,7 +21445,6 @@ export class SoundInstance {
21450
21445
  */
21451
21446
  pause(): void;
21452
21447
  /**
21453
- * @rc
21454
21448
  * @remarks
21455
21449
  * Resumes this sound after a pause.
21456
21450
  *
@@ -21459,7 +21453,6 @@ export class SoundInstance {
21459
21453
  */
21460
21454
  resume(): void;
21461
21455
  /**
21462
- * @rc
21463
21456
  * @remarks
21464
21457
  * Sets the playback position of this sound instance.
21465
21458
  *
@@ -21476,7 +21469,6 @@ export class SoundInstance {
21476
21469
  */
21477
21470
  seekTo(seconds: number): void;
21478
21471
  /**
21479
- * @rc
21480
21472
  * @remarks
21481
21473
  * Sets the pitch of this sound instance.
21482
21474
  *
@@ -21489,7 +21481,6 @@ export class SoundInstance {
21489
21481
  */
21490
21482
  setPitch(pitch: number): void;
21491
21483
  /**
21492
- * @rc
21493
21484
  * @remarks
21494
21485
  * Sets the volume multiplier of this sound instance relative
21495
21486
  * to the volume of the selected sound variant.
@@ -21575,7 +21566,6 @@ export class StartupEvent {
21575
21566
  */
21576
21567
  readonly itemComponentRegistry: ItemComponentRegistry;
21577
21568
  /**
21578
- * @rc
21579
21569
  * @remarks
21580
21570
  * @privilege early-execution-readable - This property can be read in early-execution mode.
21581
21571
  *
@@ -22341,7 +22331,6 @@ export class TextPrimitive extends PrimitiveShape {
22341
22331
  */
22342
22332
  depthTest: boolean;
22343
22333
  /**
22344
- * @rc
22345
22334
  * @remarks
22346
22335
  * This value determines the gap between lines for the
22347
22336
  * TextPrimitive. By default the line gap height is 0.
@@ -22489,7 +22478,6 @@ export class TickingAreaManager {
22489
22478
  }
22490
22479
 
22491
22480
  /**
22492
- * @rc
22493
22481
  * A named point in time on a world clock that can occur once
22494
22482
  * or periodically.
22495
22483
  */
@@ -22996,7 +22984,6 @@ export class World {
22996
22984
  */
22997
22985
  getAllPlayers(): Player[];
22998
22986
  /**
22999
- * @rc
23000
22987
  * @remarks
23001
22988
  * Retrieves a world clock by its name.
23002
22989
  *
@@ -23932,7 +23919,6 @@ export class WorldAfterEvents {
23932
23919
  */
23933
23920
  readonly weatherChange: WeatherChangeAfterEventSignal;
23934
23921
  /**
23935
- * @rc
23936
23922
  * @remarks
23937
23923
  * This event fires when a {@link WorldClock} is paused.
23938
23924
  *
@@ -23941,7 +23927,6 @@ export class WorldAfterEvents {
23941
23927
  */
23942
23928
  readonly worldClockOnPaused: WorldClockOnPausedAfterEventSignal;
23943
23929
  /**
23944
- * @rc
23945
23930
  * @remarks
23946
23931
  * This event fires when a {@link WorldClock} is resumed.
23947
23932
  *
@@ -23950,7 +23935,6 @@ export class WorldAfterEvents {
23950
23935
  */
23951
23936
  readonly worldClockOnResumed: WorldClockOnResumedAfterEventSignal;
23952
23937
  /**
23953
- * @rc
23954
23938
  * @remarks
23955
23939
  * This event fires when the time of a {@link WorldClock} hits
23956
23940
  * a {@link TimeMarker} on the clock. This can happen during a
@@ -23961,7 +23945,6 @@ export class WorldAfterEvents {
23961
23945
  */
23962
23946
  readonly worldClockOnTimeMarker: WorldClockOnTimeMarkerAfterEventSignal;
23963
23947
  /**
23964
- * @rc
23965
23948
  * @remarks
23966
23949
  * This event fires when a {@link WorldClock} time is changed.
23967
23950
  * This can happen when the time is directly set through
@@ -24097,7 +24080,6 @@ export class WorldBeforeEvents {
24097
24080
  */
24098
24081
  readonly weatherChange: WeatherChangeBeforeEventSignal;
24099
24082
  /**
24100
- * @rc
24101
24083
  * @remarks
24102
24084
  * This event fires when a {@link WorldClock} reaches its
24103
24085
  * maximum time and is about to restart.
@@ -24109,7 +24091,6 @@ export class WorldBeforeEvents {
24109
24091
  }
24110
24092
 
24111
24093
  /**
24112
- * @rc
24113
24094
  * A class that represents a particular clock within a world.
24114
24095
  */
24115
24096
  export class WorldClock {
@@ -24236,7 +24217,6 @@ export class WorldClock {
24236
24217
  }
24237
24218
 
24238
24219
  /**
24239
- * @rc
24240
24220
  * Contains information related to a {@link WorldClock} being
24241
24221
  * paused.
24242
24222
  */
@@ -24251,7 +24231,6 @@ export class WorldClockOnPausedAfterEvent {
24251
24231
  }
24252
24232
 
24253
24233
  /**
24254
- * @rc
24255
24234
  * Manages callbacks that are connected to a {@link WorldClock}
24256
24235
  * being paused.
24257
24236
  */
@@ -24285,7 +24264,6 @@ export class WorldClockOnPausedAfterEventSignal {
24285
24264
  }
24286
24265
 
24287
24266
  /**
24288
- * @rc
24289
24267
  * Contains information related to a {@link WorldClock}
24290
24268
  * restarting.
24291
24269
  */
@@ -24316,7 +24294,6 @@ export class WorldClockOnRestartBeforeEvent {
24316
24294
  }
24317
24295
 
24318
24296
  /**
24319
- * @rc
24320
24297
  * Manages callbacks that are connected to a {@link WorldClock}
24321
24298
  * restarting.
24322
24299
  */
@@ -24356,7 +24333,6 @@ export class WorldClockOnRestartBeforeEventSignal {
24356
24333
  }
24357
24334
 
24358
24335
  /**
24359
- * @rc
24360
24336
  * Contains information related to a {@link WorldClock} being
24361
24337
  * resumed.
24362
24338
  */
@@ -24371,7 +24347,6 @@ export class WorldClockOnResumedAfterEvent {
24371
24347
  }
24372
24348
 
24373
24349
  /**
24374
- * @rc
24375
24350
  * Manages callbacks that are connected to a {@link WorldClock}
24376
24351
  * being resumed.
24377
24352
  */
@@ -24405,7 +24380,6 @@ export class WorldClockOnResumedAfterEventSignal {
24405
24380
  }
24406
24381
 
24407
24382
  /**
24408
- * @rc
24409
24383
  * Contains information related to when the time of a
24410
24384
  * {@link WorldClock} hits a {@link TimeMarker}.
24411
24385
  */
@@ -24426,7 +24400,6 @@ export class WorldClockOnTimeMarkerAfterEvent {
24426
24400
  }
24427
24401
 
24428
24402
  /**
24429
- * @rc
24430
24403
  * Manages callbacks that are connected to when the time of a
24431
24404
  * {@link WorldClock} hits a {@link TimeMarker}.
24432
24405
  */
@@ -24460,7 +24433,6 @@ export class WorldClockOnTimeMarkerAfterEventSignal {
24460
24433
  }
24461
24434
 
24462
24435
  /**
24463
- * @rc
24464
24436
  * Contains information related to changes to the time of a
24465
24437
  * {@link WorldClock}.
24466
24438
  */
@@ -24475,7 +24447,6 @@ export class WorldClockOnTimeModifiedAfterEvent {
24475
24447
  }
24476
24448
 
24477
24449
  /**
24478
- * @rc
24479
24450
  * Manages callbacks that are connected to changes to the time
24480
24451
  * of a {@link WorldClock}.
24481
24452
  */
@@ -24509,7 +24480,6 @@ export class WorldClockOnTimeModifiedAfterEventSignal {
24509
24480
  }
24510
24481
 
24511
24482
  /**
24512
- * @rc
24513
24483
  * Provides the functionality for registering custom world
24514
24484
  * clocks. World clocks can only be registered during the
24515
24485
  * system startup event.
@@ -26725,7 +26695,6 @@ export interface PlayerSoundOptions {
26725
26695
  */
26726
26696
  location?: Vector3;
26727
26697
  /**
26728
- * @rc
26729
26698
  * @remarks
26730
26699
  * Number of additional times to repeat the sound after the
26731
26700
  * initial play. `0` (the default) plays the sound once, `-1`
@@ -27634,7 +27603,6 @@ export interface TickingAreaOptions {
27634
27603
  }
27635
27604
 
27636
27605
  /**
27637
- * @rc
27638
27606
  * Options for creating time markers for world clocks.
27639
27607
  */
27640
27608
  export interface TimeMarkerOptions {
@@ -27802,7 +27770,6 @@ export interface WaypointTextureSelector {
27802
27770
  }
27803
27771
 
27804
27772
  /**
27805
- * @rc
27806
27773
  * Contains parameters for world clock events that filters out
27807
27774
  * which events are passed to the provided callback.
27808
27775
  */
@@ -27816,7 +27783,6 @@ export interface WorldClockEventOptions {
27816
27783
  }
27817
27784
 
27818
27785
  /**
27819
- * @rc
27820
27786
  * Contains additional options for registering world clocks.
27821
27787
  */
27822
27788
  export interface WorldClockRegistrationOptions {
@@ -27830,7 +27796,6 @@ export interface WorldClockRegistrationOptions {
27830
27796
  }
27831
27797
 
27832
27798
  /**
27833
- * @rc
27834
27799
  * Contains parameters for world clock time marker events that
27835
27800
  * filters out which events are passed to the provided
27836
27801
  * callback.
@@ -27858,7 +27823,6 @@ export interface WorldClockTimeMarkerEventOptions {
27858
27823
  export interface WorldSoundOptions {
27859
27824
  isBroadcast?: boolean;
27860
27825
  /**
27861
- * @rc
27862
27826
  * @remarks
27863
27827
  * Number of additional times to repeat the sound after the
27864
27828
  * initial play. `0` (the default) plays the sound once, `-1`
@@ -28318,7 +28282,6 @@ export class UnloadedChunksError extends Error {
28318
28282
  }
28319
28283
 
28320
28284
  /**
28321
- * @rc
28322
28285
  * Error thrown by {@link WorldClock.addTimeMarker} when
28323
28286
  * failing to add a time marker to a world clock.
28324
28287
  */
@@ -28328,7 +28291,6 @@ export class WorldClockAddTimeMarkerError extends Error {
28328
28291
  }
28329
28292
 
28330
28293
  /**
28331
- * @rc
28332
28294
  * Thrown when trying to register a world clock outside of the
28333
28295
  * system startup event.
28334
28296
  */
@@ -28338,7 +28300,6 @@ export class WorldClockInvalidRegistryError extends Error {
28338
28300
  }
28339
28301
 
28340
28302
  /**
28341
- * @rc
28342
28303
  * Error thrown when a time marker is invalid. This can occur
28343
28304
  * when trying to access data on a time marker that has been
28344
28305
  * removed.
@@ -28349,7 +28310,6 @@ export class WorldClockInvalidTimeMarkerError extends Error {
28349
28310
  }
28350
28311
 
28351
28312
  /**
28352
- * @rc
28353
28313
  * Error thrown when a world clock is not found in the world
28354
28314
  * clock registry.
28355
28315
  */
@@ -28359,7 +28319,6 @@ export class WorldClockNotFoundError extends Error {
28359
28319
  }
28360
28320
 
28361
28321
  /**
28362
- * @rc
28363
28322
  * Error thrown by {@link WorldClockRegistry.registerClock}
28364
28323
  * when failing to register a world clock.
28365
28324
  */
@@ -28369,7 +28328,6 @@ export class WorldClockRegistrationError extends Error {
28369
28328
  }
28370
28329
 
28371
28330
  /**
28372
- * @rc
28373
28331
  * Thrown after using the /reload command when trying to
28374
28332
  * register a world clock that was not previously registered.
28375
28333
  * New world clocks cannot be added during a reload.
@@ -28380,7 +28338,6 @@ export class WorldClockReloadNewWorldClockError extends Error {
28380
28338
  }
28381
28339
 
28382
28340
  /**
28383
- * @rc
28384
28341
  * Error thrown after using the /reload command when trying to
28385
28342
  * re-register an existing world clock with an invalid time
28386
28343
  * marker.
@@ -28391,7 +28348,6 @@ export class WorldClockReloadTimeMarkerError extends Error {
28391
28348
  }
28392
28349
 
28393
28350
  /**
28394
- * @rc
28395
28351
  * Error thrown by {@link WorldClock.removeTimeMarker} when
28396
28352
  * trying to remove a time marker with the 'minecraft'
28397
28353
  * namespace from a world clock.
@@ -28402,7 +28358,6 @@ export class WorldClockRemoveMinecraftTimeMarkerError extends Error {
28402
28358
  }
28403
28359
 
28404
28360
  /**
28405
- * @rc
28406
28361
  * Error thrown by {@link WorldClock.rewindTo} when the world
28407
28362
  * clock's time is already before the time marker's first
28408
28363
  * occurrence.
@@ -28413,7 +28368,6 @@ export class WorldClockRewindError extends Error {
28413
28368
  }
28414
28369
 
28415
28370
  /**
28416
- * @rc
28417
28371
  * Error thrown when performing actions on a world clock with a
28418
28372
  * time marker that does not exist.
28419
28373
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "2.12.0-rc.1.26.70-preview.21",
3
+ "version": "2.12.0-rc.1.26.70-preview.22",
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.70-preview.21"
17
+ "@minecraft/vanilla-data": ">=1.20.70 || 1.26.70-preview.22"
18
18
  },
19
19
  "license": "MIT"
20
20
  }