@minecraft/server 2.12.0-beta.1.26.60-preview.29 → 2.12.0-beta.1.26.60-stable
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 +0 -46
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -9469,7 +9469,6 @@ export class Dimension {
|
|
|
9469
9469
|
*/
|
|
9470
9470
|
spawnParticle(effectName: string, location: Vector3, molangVariables?: MolangVariableMap): void;
|
|
9471
9471
|
/**
|
|
9472
|
-
* @rc
|
|
9473
9472
|
* @remarks
|
|
9474
9473
|
* Spawns an experience orb at a specified location in the
|
|
9475
9474
|
* dimension.
|
|
@@ -12608,7 +12607,6 @@ export class EntityIsStunnedComponent extends EntityComponent {
|
|
|
12608
12607
|
export class EntityIsTamedComponent extends EntityComponent {
|
|
12609
12608
|
private constructor();
|
|
12610
12609
|
/**
|
|
12611
|
-
* @rc
|
|
12612
12610
|
* @remarks
|
|
12613
12611
|
* Returns the player that has tamed the entity, or 'undefined'
|
|
12614
12612
|
* if the entity has no player owner.
|
|
@@ -12619,7 +12617,6 @@ export class EntityIsTamedComponent extends EntityComponent {
|
|
|
12619
12617
|
*/
|
|
12620
12618
|
readonly tamedToPlayer?: Player;
|
|
12621
12619
|
/**
|
|
12622
|
-
* @rc
|
|
12623
12620
|
* @remarks
|
|
12624
12621
|
* Returns the id of the player that has tamed the entity, or
|
|
12625
12622
|
* 'undefined' if the entity has no player owner.
|
|
@@ -23345,7 +23342,6 @@ export class SoundInstance {
|
|
|
23345
23342
|
*/
|
|
23346
23343
|
readonly soundEventId: string;
|
|
23347
23344
|
/**
|
|
23348
|
-
* @rc
|
|
23349
23345
|
* @remarks
|
|
23350
23346
|
* Fades this sound instance from its current volume multiplier
|
|
23351
23347
|
* to the target multiplier over the specified duration. Volume
|
|
@@ -23365,7 +23361,6 @@ export class SoundInstance {
|
|
|
23365
23361
|
*/
|
|
23366
23362
|
fade(duration: number, targetVolume: number): void;
|
|
23367
23363
|
/**
|
|
23368
|
-
* @rc
|
|
23369
23364
|
* @remarks
|
|
23370
23365
|
* Pauses this sound.
|
|
23371
23366
|
*
|
|
@@ -23374,7 +23369,6 @@ export class SoundInstance {
|
|
|
23374
23369
|
*/
|
|
23375
23370
|
pause(): void;
|
|
23376
23371
|
/**
|
|
23377
|
-
* @rc
|
|
23378
23372
|
* @remarks
|
|
23379
23373
|
* Resumes this sound after a pause.
|
|
23380
23374
|
*
|
|
@@ -23383,7 +23377,6 @@ export class SoundInstance {
|
|
|
23383
23377
|
*/
|
|
23384
23378
|
resume(): void;
|
|
23385
23379
|
/**
|
|
23386
|
-
* @rc
|
|
23387
23380
|
* @remarks
|
|
23388
23381
|
* Sets the playback position of this sound instance.
|
|
23389
23382
|
*
|
|
@@ -23400,7 +23393,6 @@ export class SoundInstance {
|
|
|
23400
23393
|
*/
|
|
23401
23394
|
seekTo(seconds: number): void;
|
|
23402
23395
|
/**
|
|
23403
|
-
* @rc
|
|
23404
23396
|
* @remarks
|
|
23405
23397
|
* Sets the pitch of this sound instance.
|
|
23406
23398
|
*
|
|
@@ -23413,7 +23405,6 @@ export class SoundInstance {
|
|
|
23413
23405
|
*/
|
|
23414
23406
|
setPitch(pitch: number): void;
|
|
23415
23407
|
/**
|
|
23416
|
-
* @rc
|
|
23417
23408
|
* @remarks
|
|
23418
23409
|
* Sets the volume multiplier of this sound instance relative
|
|
23419
23410
|
* to the volume of the selected sound variant.
|
|
@@ -23499,7 +23490,6 @@ export class StartupEvent {
|
|
|
23499
23490
|
*/
|
|
23500
23491
|
readonly itemComponentRegistry: ItemComponentRegistry;
|
|
23501
23492
|
/**
|
|
23502
|
-
* @rc
|
|
23503
23493
|
* @remarks
|
|
23504
23494
|
* @privilege early-execution-readable - This property can be read in early-execution mode.
|
|
23505
23495
|
*
|
|
@@ -24278,7 +24268,6 @@ export class TextPrimitive extends PrimitiveShape {
|
|
|
24278
24268
|
*/
|
|
24279
24269
|
depthTest: boolean;
|
|
24280
24270
|
/**
|
|
24281
|
-
* @rc
|
|
24282
24271
|
* @remarks
|
|
24283
24272
|
* This value determines the gap between lines for the
|
|
24284
24273
|
* TextPrimitive. By default the line gap height is 0.
|
|
@@ -24426,7 +24415,6 @@ export class TickingAreaManager {
|
|
|
24426
24415
|
}
|
|
24427
24416
|
|
|
24428
24417
|
/**
|
|
24429
|
-
* @rc
|
|
24430
24418
|
* A named point in time on a world clock that can occur once
|
|
24431
24419
|
* or periodically.
|
|
24432
24420
|
*/
|
|
@@ -25021,7 +25009,6 @@ export class World {
|
|
|
25021
25009
|
*/
|
|
25022
25010
|
getAllPlayers(): Player[];
|
|
25023
25011
|
/**
|
|
25024
|
-
* @rc
|
|
25025
25012
|
* @remarks
|
|
25026
25013
|
* Retrieves a world clock by its name.
|
|
25027
25014
|
*
|
|
@@ -26025,7 +26012,6 @@ export class WorldAfterEvents {
|
|
|
26025
26012
|
*/
|
|
26026
26013
|
readonly weatherChange: WeatherChangeAfterEventSignal;
|
|
26027
26014
|
/**
|
|
26028
|
-
* @rc
|
|
26029
26015
|
* @remarks
|
|
26030
26016
|
* This event fires when a {@link WorldClock} is paused.
|
|
26031
26017
|
*
|
|
@@ -26034,7 +26020,6 @@ export class WorldAfterEvents {
|
|
|
26034
26020
|
*/
|
|
26035
26021
|
readonly worldClockOnPaused: WorldClockOnPausedAfterEventSignal;
|
|
26036
26022
|
/**
|
|
26037
|
-
* @rc
|
|
26038
26023
|
* @remarks
|
|
26039
26024
|
* This event fires when a {@link WorldClock} is resumed.
|
|
26040
26025
|
*
|
|
@@ -26043,7 +26028,6 @@ export class WorldAfterEvents {
|
|
|
26043
26028
|
*/
|
|
26044
26029
|
readonly worldClockOnResumed: WorldClockOnResumedAfterEventSignal;
|
|
26045
26030
|
/**
|
|
26046
|
-
* @rc
|
|
26047
26031
|
* @remarks
|
|
26048
26032
|
* This event fires when the time of a {@link WorldClock} hits
|
|
26049
26033
|
* a {@link TimeMarker} on the clock. This can happen during a
|
|
@@ -26054,7 +26038,6 @@ export class WorldAfterEvents {
|
|
|
26054
26038
|
*/
|
|
26055
26039
|
readonly worldClockOnTimeMarker: WorldClockOnTimeMarkerAfterEventSignal;
|
|
26056
26040
|
/**
|
|
26057
|
-
* @rc
|
|
26058
26041
|
* @remarks
|
|
26059
26042
|
* This event fires when a {@link WorldClock} time is changed.
|
|
26060
26043
|
* This can happen when the time is directly set through
|
|
@@ -26243,7 +26226,6 @@ export class WorldBeforeEvents {
|
|
|
26243
26226
|
*/
|
|
26244
26227
|
readonly weatherChange: WeatherChangeBeforeEventSignal;
|
|
26245
26228
|
/**
|
|
26246
|
-
* @rc
|
|
26247
26229
|
* @remarks
|
|
26248
26230
|
* This event fires when a {@link WorldClock} reaches its
|
|
26249
26231
|
* maximum time and is about to restart.
|
|
@@ -26255,7 +26237,6 @@ export class WorldBeforeEvents {
|
|
|
26255
26237
|
}
|
|
26256
26238
|
|
|
26257
26239
|
/**
|
|
26258
|
-
* @rc
|
|
26259
26240
|
* A class that represents a particular clock within a world.
|
|
26260
26241
|
*/
|
|
26261
26242
|
export class WorldClock {
|
|
@@ -26382,7 +26363,6 @@ export class WorldClock {
|
|
|
26382
26363
|
}
|
|
26383
26364
|
|
|
26384
26365
|
/**
|
|
26385
|
-
* @rc
|
|
26386
26366
|
* Contains information related to a {@link WorldClock} being
|
|
26387
26367
|
* paused.
|
|
26388
26368
|
*/
|
|
@@ -26397,7 +26377,6 @@ export class WorldClockOnPausedAfterEvent {
|
|
|
26397
26377
|
}
|
|
26398
26378
|
|
|
26399
26379
|
/**
|
|
26400
|
-
* @rc
|
|
26401
26380
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
26402
26381
|
* being paused.
|
|
26403
26382
|
*/
|
|
@@ -26431,7 +26410,6 @@ export class WorldClockOnPausedAfterEventSignal {
|
|
|
26431
26410
|
}
|
|
26432
26411
|
|
|
26433
26412
|
/**
|
|
26434
|
-
* @rc
|
|
26435
26413
|
* Contains information related to a {@link WorldClock}
|
|
26436
26414
|
* restarting.
|
|
26437
26415
|
*/
|
|
@@ -26462,7 +26440,6 @@ export class WorldClockOnRestartBeforeEvent {
|
|
|
26462
26440
|
}
|
|
26463
26441
|
|
|
26464
26442
|
/**
|
|
26465
|
-
* @rc
|
|
26466
26443
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
26467
26444
|
* restarting.
|
|
26468
26445
|
*/
|
|
@@ -26502,7 +26479,6 @@ export class WorldClockOnRestartBeforeEventSignal {
|
|
|
26502
26479
|
}
|
|
26503
26480
|
|
|
26504
26481
|
/**
|
|
26505
|
-
* @rc
|
|
26506
26482
|
* Contains information related to a {@link WorldClock} being
|
|
26507
26483
|
* resumed.
|
|
26508
26484
|
*/
|
|
@@ -26517,7 +26493,6 @@ export class WorldClockOnResumedAfterEvent {
|
|
|
26517
26493
|
}
|
|
26518
26494
|
|
|
26519
26495
|
/**
|
|
26520
|
-
* @rc
|
|
26521
26496
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
26522
26497
|
* being resumed.
|
|
26523
26498
|
*/
|
|
@@ -26551,7 +26526,6 @@ export class WorldClockOnResumedAfterEventSignal {
|
|
|
26551
26526
|
}
|
|
26552
26527
|
|
|
26553
26528
|
/**
|
|
26554
|
-
* @rc
|
|
26555
26529
|
* Contains information related to when the time of a
|
|
26556
26530
|
* {@link WorldClock} hits a {@link TimeMarker}.
|
|
26557
26531
|
*/
|
|
@@ -26572,7 +26546,6 @@ export class WorldClockOnTimeMarkerAfterEvent {
|
|
|
26572
26546
|
}
|
|
26573
26547
|
|
|
26574
26548
|
/**
|
|
26575
|
-
* @rc
|
|
26576
26549
|
* Manages callbacks that are connected to when the time of a
|
|
26577
26550
|
* {@link WorldClock} hits a {@link TimeMarker}.
|
|
26578
26551
|
*/
|
|
@@ -26606,7 +26579,6 @@ export class WorldClockOnTimeMarkerAfterEventSignal {
|
|
|
26606
26579
|
}
|
|
26607
26580
|
|
|
26608
26581
|
/**
|
|
26609
|
-
* @rc
|
|
26610
26582
|
* Contains information related to changes to the time of a
|
|
26611
26583
|
* {@link WorldClock}.
|
|
26612
26584
|
*/
|
|
@@ -26621,7 +26593,6 @@ export class WorldClockOnTimeModifiedAfterEvent {
|
|
|
26621
26593
|
}
|
|
26622
26594
|
|
|
26623
26595
|
/**
|
|
26624
|
-
* @rc
|
|
26625
26596
|
* Manages callbacks that are connected to changes to the time
|
|
26626
26597
|
* of a {@link WorldClock}.
|
|
26627
26598
|
*/
|
|
@@ -26655,7 +26626,6 @@ export class WorldClockOnTimeModifiedAfterEventSignal {
|
|
|
26655
26626
|
}
|
|
26656
26627
|
|
|
26657
26628
|
/**
|
|
26658
|
-
* @rc
|
|
26659
26629
|
* Provides the functionality for registering custom world
|
|
26660
26630
|
* clocks. World clocks can only be registered during the
|
|
26661
26631
|
* system startup event.
|
|
@@ -28923,7 +28893,6 @@ export interface PlayerSoundOptions {
|
|
|
28923
28893
|
*/
|
|
28924
28894
|
location?: Vector3;
|
|
28925
28895
|
/**
|
|
28926
|
-
* @rc
|
|
28927
28896
|
* @remarks
|
|
28928
28897
|
* Number of additional times to repeat the sound after the
|
|
28929
28898
|
* initial play. `0` (the default) plays the sound once, `-1`
|
|
@@ -29832,7 +29801,6 @@ export interface TickingAreaOptions {
|
|
|
29832
29801
|
}
|
|
29833
29802
|
|
|
29834
29803
|
/**
|
|
29835
|
-
* @rc
|
|
29836
29804
|
* Options for creating time markers for world clocks.
|
|
29837
29805
|
*/
|
|
29838
29806
|
export interface TimeMarkerOptions {
|
|
@@ -30000,7 +29968,6 @@ export interface WaypointTextureSelector {
|
|
|
30000
29968
|
}
|
|
30001
29969
|
|
|
30002
29970
|
/**
|
|
30003
|
-
* @rc
|
|
30004
29971
|
* Contains parameters for world clock events that filters out
|
|
30005
29972
|
* which events are passed to the provided callback.
|
|
30006
29973
|
*/
|
|
@@ -30014,7 +29981,6 @@ export interface WorldClockEventOptions {
|
|
|
30014
29981
|
}
|
|
30015
29982
|
|
|
30016
29983
|
/**
|
|
30017
|
-
* @rc
|
|
30018
29984
|
* Contains additional options for registering world clocks.
|
|
30019
29985
|
*/
|
|
30020
29986
|
export interface WorldClockRegistrationOptions {
|
|
@@ -30028,7 +29994,6 @@ export interface WorldClockRegistrationOptions {
|
|
|
30028
29994
|
}
|
|
30029
29995
|
|
|
30030
29996
|
/**
|
|
30031
|
-
* @rc
|
|
30032
29997
|
* Contains parameters for world clock time marker events that
|
|
30033
29998
|
* filters out which events are passed to the provided
|
|
30034
29999
|
* callback.
|
|
@@ -30056,7 +30021,6 @@ export interface WorldClockTimeMarkerEventOptions {
|
|
|
30056
30021
|
export interface WorldSoundOptions {
|
|
30057
30022
|
isBroadcast?: boolean;
|
|
30058
30023
|
/**
|
|
30059
|
-
* @rc
|
|
30060
30024
|
* @remarks
|
|
30061
30025
|
* Number of additional times to repeat the sound after the
|
|
30062
30026
|
* initial play. `0` (the default) plays the sound once, `-1`
|
|
@@ -30533,7 +30497,6 @@ export class UnloadedChunksError extends Error {
|
|
|
30533
30497
|
}
|
|
30534
30498
|
|
|
30535
30499
|
/**
|
|
30536
|
-
* @rc
|
|
30537
30500
|
* Error thrown by {@link WorldClock.addTimeMarker} when
|
|
30538
30501
|
* failing to add a time marker to a world clock.
|
|
30539
30502
|
*/
|
|
@@ -30543,7 +30506,6 @@ export class WorldClockAddTimeMarkerError extends Error {
|
|
|
30543
30506
|
}
|
|
30544
30507
|
|
|
30545
30508
|
/**
|
|
30546
|
-
* @rc
|
|
30547
30509
|
* Thrown when trying to register a world clock outside of the
|
|
30548
30510
|
* system startup event.
|
|
30549
30511
|
*/
|
|
@@ -30553,7 +30515,6 @@ export class WorldClockInvalidRegistryError extends Error {
|
|
|
30553
30515
|
}
|
|
30554
30516
|
|
|
30555
30517
|
/**
|
|
30556
|
-
* @rc
|
|
30557
30518
|
* Error thrown when a time marker is invalid. This can occur
|
|
30558
30519
|
* when trying to access data on a time marker that has been
|
|
30559
30520
|
* removed.
|
|
@@ -30564,7 +30525,6 @@ export class WorldClockInvalidTimeMarkerError extends Error {
|
|
|
30564
30525
|
}
|
|
30565
30526
|
|
|
30566
30527
|
/**
|
|
30567
|
-
* @rc
|
|
30568
30528
|
* Error thrown when a world clock is not found in the world
|
|
30569
30529
|
* clock registry.
|
|
30570
30530
|
*/
|
|
@@ -30574,7 +30534,6 @@ export class WorldClockNotFoundError extends Error {
|
|
|
30574
30534
|
}
|
|
30575
30535
|
|
|
30576
30536
|
/**
|
|
30577
|
-
* @rc
|
|
30578
30537
|
* Error thrown by {@link WorldClockRegistry.registerClock}
|
|
30579
30538
|
* when failing to register a world clock.
|
|
30580
30539
|
*/
|
|
@@ -30584,7 +30543,6 @@ export class WorldClockRegistrationError extends Error {
|
|
|
30584
30543
|
}
|
|
30585
30544
|
|
|
30586
30545
|
/**
|
|
30587
|
-
* @rc
|
|
30588
30546
|
* Thrown after using the /reload command when trying to
|
|
30589
30547
|
* register a world clock that was not previously registered.
|
|
30590
30548
|
* New world clocks cannot be added during a reload.
|
|
@@ -30595,7 +30553,6 @@ export class WorldClockReloadNewWorldClockError extends Error {
|
|
|
30595
30553
|
}
|
|
30596
30554
|
|
|
30597
30555
|
/**
|
|
30598
|
-
* @rc
|
|
30599
30556
|
* Error thrown after using the /reload command when trying to
|
|
30600
30557
|
* re-register an existing world clock with an invalid time
|
|
30601
30558
|
* marker.
|
|
@@ -30606,7 +30563,6 @@ export class WorldClockReloadTimeMarkerError extends Error {
|
|
|
30606
30563
|
}
|
|
30607
30564
|
|
|
30608
30565
|
/**
|
|
30609
|
-
* @rc
|
|
30610
30566
|
* Error thrown by {@link WorldClock.removeTimeMarker} when
|
|
30611
30567
|
* trying to remove a time marker with the 'minecraft'
|
|
30612
30568
|
* namespace from a world clock.
|
|
@@ -30617,7 +30573,6 @@ export class WorldClockRemoveMinecraftTimeMarkerError extends Error {
|
|
|
30617
30573
|
}
|
|
30618
30574
|
|
|
30619
30575
|
/**
|
|
30620
|
-
* @rc
|
|
30621
30576
|
* Error thrown by {@link WorldClock.rewindTo} when the world
|
|
30622
30577
|
* clock's time is already before the time marker's first
|
|
30623
30578
|
* occurrence.
|
|
@@ -30628,7 +30583,6 @@ export class WorldClockRewindError extends Error {
|
|
|
30628
30583
|
}
|
|
30629
30584
|
|
|
30630
30585
|
/**
|
|
30631
|
-
* @rc
|
|
30632
30586
|
* Error thrown when performing actions on a world clock with a
|
|
30633
30587
|
* time marker that does not exist.
|
|
30634
30588
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.12.0-beta.1.26.60-
|
|
3
|
+
"version": "2.12.0-beta.1.26.60-stable",
|
|
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
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|