@minecraft/server 2.13.0-beta.1.26.70-preview.21 → 2.13.0-beta.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.
- package/index.d.ts +141 -48
- 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://
|
|
2
|
+
// Project: https://learn.microsoft.com/minecraft/creator/
|
|
3
3
|
// Definitions by: Jake Shirley <https://github.com/JakeShirley>
|
|
4
|
-
//
|
|
4
|
+
// Raphael Landaverde <https://github.com/rlandav>
|
|
5
5
|
|
|
6
6
|
/* *****************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
@@ -61,6 +61,14 @@ export enum BlockComponentTypes {
|
|
|
61
61
|
*
|
|
62
62
|
*/
|
|
63
63
|
Inventory = 'minecraft:inventory',
|
|
64
|
+
/**
|
|
65
|
+
* @beta
|
|
66
|
+
* @remarks
|
|
67
|
+
* Represents an item frame block and provides access to the
|
|
68
|
+
* item displayed in the frame.
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
ItemFrame = 'minecraft:item_frame',
|
|
64
72
|
/**
|
|
65
73
|
* @remarks
|
|
66
74
|
* Represents the color of a block when displayed on a map.
|
|
@@ -2309,6 +2317,62 @@ export enum ItemComponentTypes {
|
|
|
2309
2317
|
Potion = 'minecraft:potion',
|
|
2310
2318
|
}
|
|
2311
2319
|
|
|
2320
|
+
/**
|
|
2321
|
+
* @beta
|
|
2322
|
+
* Specifies the rotation of the item displayed in an item
|
|
2323
|
+
* frame.
|
|
2324
|
+
*/
|
|
2325
|
+
export enum ItemFrameRotation {
|
|
2326
|
+
/**
|
|
2327
|
+
* @remarks
|
|
2328
|
+
* The displayed item is rotated 135 degrees clockwise.
|
|
2329
|
+
*
|
|
2330
|
+
*/
|
|
2331
|
+
Clockwise135 = 'Clockwise135',
|
|
2332
|
+
/**
|
|
2333
|
+
* @remarks
|
|
2334
|
+
* The displayed item is rotated 180 degrees clockwise.
|
|
2335
|
+
*
|
|
2336
|
+
*/
|
|
2337
|
+
Clockwise180 = 'Clockwise180',
|
|
2338
|
+
/**
|
|
2339
|
+
* @remarks
|
|
2340
|
+
* The displayed item is rotated 225 degrees clockwise.
|
|
2341
|
+
*
|
|
2342
|
+
*/
|
|
2343
|
+
Clockwise225 = 'Clockwise225',
|
|
2344
|
+
/**
|
|
2345
|
+
* @remarks
|
|
2346
|
+
* The displayed item is rotated 270 degrees clockwise.
|
|
2347
|
+
*
|
|
2348
|
+
*/
|
|
2349
|
+
Clockwise270 = 'Clockwise270',
|
|
2350
|
+
/**
|
|
2351
|
+
* @remarks
|
|
2352
|
+
* The displayed item is rotated 315 degrees clockwise.
|
|
2353
|
+
*
|
|
2354
|
+
*/
|
|
2355
|
+
Clockwise315 = 'Clockwise315',
|
|
2356
|
+
/**
|
|
2357
|
+
* @remarks
|
|
2358
|
+
* The displayed item is rotated 45 degrees clockwise.
|
|
2359
|
+
*
|
|
2360
|
+
*/
|
|
2361
|
+
Clockwise45 = 'Clockwise45',
|
|
2362
|
+
/**
|
|
2363
|
+
* @remarks
|
|
2364
|
+
* The displayed item is rotated 90 degrees clockwise.
|
|
2365
|
+
*
|
|
2366
|
+
*/
|
|
2367
|
+
Clockwise90 = 'Clockwise90',
|
|
2368
|
+
/**
|
|
2369
|
+
* @remarks
|
|
2370
|
+
* The displayed item has no additional rotation.
|
|
2371
|
+
*
|
|
2372
|
+
*/
|
|
2373
|
+
None = 'None',
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2312
2376
|
/**
|
|
2313
2377
|
* Describes how an an item can be moved within a container.
|
|
2314
2378
|
*/
|
|
@@ -3219,12 +3283,14 @@ export type BlockComponentTypeMap = {
|
|
|
3219
3283
|
fluid_container: BlockFluidContainerComponent;
|
|
3220
3284
|
instrument_sound: BlockInstrumentComponent;
|
|
3221
3285
|
inventory: BlockInventoryComponent;
|
|
3286
|
+
item_frame: BlockItemFrameComponent;
|
|
3222
3287
|
map_color: BlockMapColorComponent;
|
|
3223
3288
|
'minecraft:dynamic_properties': BlockDynamicPropertiesComponent;
|
|
3224
3289
|
'minecraft:entity_storage': BlockEntityStorageComponent;
|
|
3225
3290
|
'minecraft:fluid_container': BlockFluidContainerComponent;
|
|
3226
3291
|
'minecraft:instrument_sound': BlockInstrumentComponent;
|
|
3227
3292
|
'minecraft:inventory': BlockInventoryComponent;
|
|
3293
|
+
'minecraft:item_frame': BlockItemFrameComponent;
|
|
3228
3294
|
'minecraft:map_color': BlockMapColorComponent;
|
|
3229
3295
|
'minecraft:movable': BlockMovableComponent;
|
|
3230
3296
|
'minecraft:piston': BlockPistonComponent;
|
|
@@ -5927,6 +5993,79 @@ export class BlockInventoryComponent extends BlockComponent {
|
|
|
5927
5993
|
static readonly componentId = 'minecraft:inventory';
|
|
5928
5994
|
}
|
|
5929
5995
|
|
|
5996
|
+
/**
|
|
5997
|
+
* @beta
|
|
5998
|
+
* Represents the frame holding an item of a block in the
|
|
5999
|
+
* world. You can replace the item, remove it, drop it into the
|
|
6000
|
+
* world, or get and set its rotation.
|
|
6001
|
+
*/
|
|
6002
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6003
|
+
export class BlockItemFrameComponent extends BlockComponent {
|
|
6004
|
+
private constructor();
|
|
6005
|
+
static readonly componentId = 'minecraft:item_frame';
|
|
6006
|
+
/**
|
|
6007
|
+
* @remarks
|
|
6008
|
+
* Removes the framed item and drops it into the world.
|
|
6009
|
+
*
|
|
6010
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
6011
|
+
*
|
|
6012
|
+
* @throws This function can throw errors.
|
|
6013
|
+
*
|
|
6014
|
+
* {@link InvalidBlockComponentError}
|
|
6015
|
+
*/
|
|
6016
|
+
dropFramedItem(): void;
|
|
6017
|
+
/**
|
|
6018
|
+
* @remarks
|
|
6019
|
+
* Gets the item stack currently displayed in the frame.
|
|
6020
|
+
*
|
|
6021
|
+
* @returns
|
|
6022
|
+
* The framed item stack, or undefined if the frame is empty.
|
|
6023
|
+
* @throws This function can throw errors.
|
|
6024
|
+
*
|
|
6025
|
+
* {@link InvalidBlockComponentError}
|
|
6026
|
+
*/
|
|
6027
|
+
getFramedItem(): ItemStack | undefined;
|
|
6028
|
+
/**
|
|
6029
|
+
* @remarks
|
|
6030
|
+
* Gets the current rotation of the item frame.
|
|
6031
|
+
*
|
|
6032
|
+
* @returns
|
|
6033
|
+
* The current {@link ItemFrameRotation} of the item frame.
|
|
6034
|
+
* @throws This function can throw errors.
|
|
6035
|
+
*
|
|
6036
|
+
* {@link InvalidBlockComponentError}
|
|
6037
|
+
*/
|
|
6038
|
+
getRotation(): ItemFrameRotation;
|
|
6039
|
+
/**
|
|
6040
|
+
* @remarks
|
|
6041
|
+
* Sets or replaces the item displayed in the frame. Pass
|
|
6042
|
+
* undefined to remove the item without dropping it.
|
|
6043
|
+
*
|
|
6044
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
6045
|
+
*
|
|
6046
|
+
* @param itemStack
|
|
6047
|
+
* The item stack to display in the frame, or undefined to
|
|
6048
|
+
* clear it without dropping it.
|
|
6049
|
+
* @throws This function can throw errors.
|
|
6050
|
+
*
|
|
6051
|
+
* {@link InvalidBlockComponentError}
|
|
6052
|
+
*/
|
|
6053
|
+
setFramedItem(itemStack?: ItemStack): void;
|
|
6054
|
+
/**
|
|
6055
|
+
* @remarks
|
|
6056
|
+
* Sets the rotation of the item frame.
|
|
6057
|
+
*
|
|
6058
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
6059
|
+
*
|
|
6060
|
+
* @param rotation
|
|
6061
|
+
* The {@link ItemFrameRotation} to apply to the item frame.
|
|
6062
|
+
* @throws This function can throw errors.
|
|
6063
|
+
*
|
|
6064
|
+
* {@link InvalidBlockComponentError}
|
|
6065
|
+
*/
|
|
6066
|
+
setRotation(rotation: ItemFrameRotation): void;
|
|
6067
|
+
}
|
|
6068
|
+
|
|
5930
6069
|
/**
|
|
5931
6070
|
* A BlockLocationIterator returns the next block location of
|
|
5932
6071
|
* the block volume across which it is iterating.
|
|
@@ -9559,7 +9698,6 @@ export class Dimension {
|
|
|
9559
9698
|
*/
|
|
9560
9699
|
spawnParticle(effectName: string, location: Vector3, molangVariables?: MolangVariableMap): void;
|
|
9561
9700
|
/**
|
|
9562
|
-
* @rc
|
|
9563
9701
|
* @remarks
|
|
9564
9702
|
* Spawns an experience orb at a specified location in the
|
|
9565
9703
|
* dimension.
|
|
@@ -12749,7 +12887,6 @@ export class EntityIsStunnedComponent extends EntityComponent {
|
|
|
12749
12887
|
export class EntityIsTamedComponent extends EntityComponent {
|
|
12750
12888
|
private constructor();
|
|
12751
12889
|
/**
|
|
12752
|
-
* @rc
|
|
12753
12890
|
* @remarks
|
|
12754
12891
|
* Returns the player that has tamed the entity, or 'undefined'
|
|
12755
12892
|
* if the entity has no player owner.
|
|
@@ -12760,7 +12897,6 @@ export class EntityIsTamedComponent extends EntityComponent {
|
|
|
12760
12897
|
*/
|
|
12761
12898
|
readonly tamedToPlayer?: Player;
|
|
12762
12899
|
/**
|
|
12763
|
-
* @rc
|
|
12764
12900
|
* @remarks
|
|
12765
12901
|
* Returns the id of the player that has tamed the entity, or
|
|
12766
12902
|
* 'undefined' if the entity has no player owner.
|
|
@@ -23616,7 +23752,6 @@ export class SoundInstance {
|
|
|
23616
23752
|
*/
|
|
23617
23753
|
readonly soundEventId: string;
|
|
23618
23754
|
/**
|
|
23619
|
-
* @rc
|
|
23620
23755
|
* @remarks
|
|
23621
23756
|
* Fades this sound instance from its current volume multiplier
|
|
23622
23757
|
* to the target multiplier over the specified duration. Volume
|
|
@@ -23636,7 +23771,6 @@ export class SoundInstance {
|
|
|
23636
23771
|
*/
|
|
23637
23772
|
fade(duration: number, targetVolume: number): void;
|
|
23638
23773
|
/**
|
|
23639
|
-
* @rc
|
|
23640
23774
|
* @remarks
|
|
23641
23775
|
* Pauses this sound.
|
|
23642
23776
|
*
|
|
@@ -23645,7 +23779,6 @@ export class SoundInstance {
|
|
|
23645
23779
|
*/
|
|
23646
23780
|
pause(): void;
|
|
23647
23781
|
/**
|
|
23648
|
-
* @rc
|
|
23649
23782
|
* @remarks
|
|
23650
23783
|
* Resumes this sound after a pause.
|
|
23651
23784
|
*
|
|
@@ -23654,7 +23787,6 @@ export class SoundInstance {
|
|
|
23654
23787
|
*/
|
|
23655
23788
|
resume(): void;
|
|
23656
23789
|
/**
|
|
23657
|
-
* @rc
|
|
23658
23790
|
* @remarks
|
|
23659
23791
|
* Sets the playback position of this sound instance.
|
|
23660
23792
|
*
|
|
@@ -23671,7 +23803,6 @@ export class SoundInstance {
|
|
|
23671
23803
|
*/
|
|
23672
23804
|
seekTo(seconds: number): void;
|
|
23673
23805
|
/**
|
|
23674
|
-
* @rc
|
|
23675
23806
|
* @remarks
|
|
23676
23807
|
* Sets the pitch of this sound instance.
|
|
23677
23808
|
*
|
|
@@ -23684,7 +23815,6 @@ export class SoundInstance {
|
|
|
23684
23815
|
*/
|
|
23685
23816
|
setPitch(pitch: number): void;
|
|
23686
23817
|
/**
|
|
23687
|
-
* @rc
|
|
23688
23818
|
* @remarks
|
|
23689
23819
|
* Sets the volume multiplier of this sound instance relative
|
|
23690
23820
|
* to the volume of the selected sound variant.
|
|
@@ -23770,7 +23900,6 @@ export class StartupEvent {
|
|
|
23770
23900
|
*/
|
|
23771
23901
|
readonly itemComponentRegistry: ItemComponentRegistry;
|
|
23772
23902
|
/**
|
|
23773
|
-
* @rc
|
|
23774
23903
|
* @remarks
|
|
23775
23904
|
* @privilege early-execution-readable - This property can be read in early-execution mode.
|
|
23776
23905
|
*
|
|
@@ -24549,7 +24678,6 @@ export class TextPrimitive extends PrimitiveShape {
|
|
|
24549
24678
|
*/
|
|
24550
24679
|
depthTest: boolean;
|
|
24551
24680
|
/**
|
|
24552
|
-
* @rc
|
|
24553
24681
|
* @remarks
|
|
24554
24682
|
* This value determines the gap between lines for the
|
|
24555
24683
|
* TextPrimitive. By default the line gap height is 0.
|
|
@@ -24697,7 +24825,6 @@ export class TickingAreaManager {
|
|
|
24697
24825
|
}
|
|
24698
24826
|
|
|
24699
24827
|
/**
|
|
24700
|
-
* @rc
|
|
24701
24828
|
* A named point in time on a world clock that can occur once
|
|
24702
24829
|
* or periodically.
|
|
24703
24830
|
*/
|
|
@@ -25292,7 +25419,6 @@ export class World {
|
|
|
25292
25419
|
*/
|
|
25293
25420
|
getAllPlayers(): Player[];
|
|
25294
25421
|
/**
|
|
25295
|
-
* @rc
|
|
25296
25422
|
* @remarks
|
|
25297
25423
|
* Retrieves a world clock by its name.
|
|
25298
25424
|
*
|
|
@@ -26298,7 +26424,6 @@ export class WorldAfterEvents {
|
|
|
26298
26424
|
*/
|
|
26299
26425
|
readonly weatherChange: WeatherChangeAfterEventSignal;
|
|
26300
26426
|
/**
|
|
26301
|
-
* @rc
|
|
26302
26427
|
* @remarks
|
|
26303
26428
|
* This event fires when a {@link WorldClock} is paused.
|
|
26304
26429
|
*
|
|
@@ -26307,7 +26432,6 @@ export class WorldAfterEvents {
|
|
|
26307
26432
|
*/
|
|
26308
26433
|
readonly worldClockOnPaused: WorldClockOnPausedAfterEventSignal;
|
|
26309
26434
|
/**
|
|
26310
|
-
* @rc
|
|
26311
26435
|
* @remarks
|
|
26312
26436
|
* This event fires when a {@link WorldClock} is resumed.
|
|
26313
26437
|
*
|
|
@@ -26316,7 +26440,6 @@ export class WorldAfterEvents {
|
|
|
26316
26440
|
*/
|
|
26317
26441
|
readonly worldClockOnResumed: WorldClockOnResumedAfterEventSignal;
|
|
26318
26442
|
/**
|
|
26319
|
-
* @rc
|
|
26320
26443
|
* @remarks
|
|
26321
26444
|
* This event fires when the time of a {@link WorldClock} hits
|
|
26322
26445
|
* a {@link TimeMarker} on the clock. This can happen during a
|
|
@@ -26327,7 +26450,6 @@ export class WorldAfterEvents {
|
|
|
26327
26450
|
*/
|
|
26328
26451
|
readonly worldClockOnTimeMarker: WorldClockOnTimeMarkerAfterEventSignal;
|
|
26329
26452
|
/**
|
|
26330
|
-
* @rc
|
|
26331
26453
|
* @remarks
|
|
26332
26454
|
* This event fires when a {@link WorldClock} time is changed.
|
|
26333
26455
|
* This can happen when the time is directly set through
|
|
@@ -26516,7 +26638,6 @@ export class WorldBeforeEvents {
|
|
|
26516
26638
|
*/
|
|
26517
26639
|
readonly weatherChange: WeatherChangeBeforeEventSignal;
|
|
26518
26640
|
/**
|
|
26519
|
-
* @rc
|
|
26520
26641
|
* @remarks
|
|
26521
26642
|
* This event fires when a {@link WorldClock} reaches its
|
|
26522
26643
|
* maximum time and is about to restart.
|
|
@@ -26528,7 +26649,6 @@ export class WorldBeforeEvents {
|
|
|
26528
26649
|
}
|
|
26529
26650
|
|
|
26530
26651
|
/**
|
|
26531
|
-
* @rc
|
|
26532
26652
|
* A class that represents a particular clock within a world.
|
|
26533
26653
|
*/
|
|
26534
26654
|
export class WorldClock {
|
|
@@ -26655,7 +26775,6 @@ export class WorldClock {
|
|
|
26655
26775
|
}
|
|
26656
26776
|
|
|
26657
26777
|
/**
|
|
26658
|
-
* @rc
|
|
26659
26778
|
* Contains information related to a {@link WorldClock} being
|
|
26660
26779
|
* paused.
|
|
26661
26780
|
*/
|
|
@@ -26670,7 +26789,6 @@ export class WorldClockOnPausedAfterEvent {
|
|
|
26670
26789
|
}
|
|
26671
26790
|
|
|
26672
26791
|
/**
|
|
26673
|
-
* @rc
|
|
26674
26792
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
26675
26793
|
* being paused.
|
|
26676
26794
|
*/
|
|
@@ -26704,7 +26822,6 @@ export class WorldClockOnPausedAfterEventSignal {
|
|
|
26704
26822
|
}
|
|
26705
26823
|
|
|
26706
26824
|
/**
|
|
26707
|
-
* @rc
|
|
26708
26825
|
* Contains information related to a {@link WorldClock}
|
|
26709
26826
|
* restarting.
|
|
26710
26827
|
*/
|
|
@@ -26735,7 +26852,6 @@ export class WorldClockOnRestartBeforeEvent {
|
|
|
26735
26852
|
}
|
|
26736
26853
|
|
|
26737
26854
|
/**
|
|
26738
|
-
* @rc
|
|
26739
26855
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
26740
26856
|
* restarting.
|
|
26741
26857
|
*/
|
|
@@ -26775,7 +26891,6 @@ export class WorldClockOnRestartBeforeEventSignal {
|
|
|
26775
26891
|
}
|
|
26776
26892
|
|
|
26777
26893
|
/**
|
|
26778
|
-
* @rc
|
|
26779
26894
|
* Contains information related to a {@link WorldClock} being
|
|
26780
26895
|
* resumed.
|
|
26781
26896
|
*/
|
|
@@ -26790,7 +26905,6 @@ export class WorldClockOnResumedAfterEvent {
|
|
|
26790
26905
|
}
|
|
26791
26906
|
|
|
26792
26907
|
/**
|
|
26793
|
-
* @rc
|
|
26794
26908
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
26795
26909
|
* being resumed.
|
|
26796
26910
|
*/
|
|
@@ -26824,7 +26938,6 @@ export class WorldClockOnResumedAfterEventSignal {
|
|
|
26824
26938
|
}
|
|
26825
26939
|
|
|
26826
26940
|
/**
|
|
26827
|
-
* @rc
|
|
26828
26941
|
* Contains information related to when the time of a
|
|
26829
26942
|
* {@link WorldClock} hits a {@link TimeMarker}.
|
|
26830
26943
|
*/
|
|
@@ -26845,7 +26958,6 @@ export class WorldClockOnTimeMarkerAfterEvent {
|
|
|
26845
26958
|
}
|
|
26846
26959
|
|
|
26847
26960
|
/**
|
|
26848
|
-
* @rc
|
|
26849
26961
|
* Manages callbacks that are connected to when the time of a
|
|
26850
26962
|
* {@link WorldClock} hits a {@link TimeMarker}.
|
|
26851
26963
|
*/
|
|
@@ -26879,7 +26991,6 @@ export class WorldClockOnTimeMarkerAfterEventSignal {
|
|
|
26879
26991
|
}
|
|
26880
26992
|
|
|
26881
26993
|
/**
|
|
26882
|
-
* @rc
|
|
26883
26994
|
* Contains information related to changes to the time of a
|
|
26884
26995
|
* {@link WorldClock}.
|
|
26885
26996
|
*/
|
|
@@ -26894,7 +27005,6 @@ export class WorldClockOnTimeModifiedAfterEvent {
|
|
|
26894
27005
|
}
|
|
26895
27006
|
|
|
26896
27007
|
/**
|
|
26897
|
-
* @rc
|
|
26898
27008
|
* Manages callbacks that are connected to changes to the time
|
|
26899
27009
|
* of a {@link WorldClock}.
|
|
26900
27010
|
*/
|
|
@@ -26928,7 +27038,6 @@ export class WorldClockOnTimeModifiedAfterEventSignal {
|
|
|
26928
27038
|
}
|
|
26929
27039
|
|
|
26930
27040
|
/**
|
|
26931
|
-
* @rc
|
|
26932
27041
|
* Provides the functionality for registering custom world
|
|
26933
27042
|
* clocks. World clocks can only be registered during the
|
|
26934
27043
|
* system startup event.
|
|
@@ -29243,7 +29352,6 @@ export interface PlayerSoundOptions {
|
|
|
29243
29352
|
*/
|
|
29244
29353
|
location?: Vector3;
|
|
29245
29354
|
/**
|
|
29246
|
-
* @rc
|
|
29247
29355
|
* @remarks
|
|
29248
29356
|
* Number of additional times to repeat the sound after the
|
|
29249
29357
|
* initial play. `0` (the default) plays the sound once, `-1`
|
|
@@ -30160,7 +30268,6 @@ export interface TickingAreaOptions {
|
|
|
30160
30268
|
}
|
|
30161
30269
|
|
|
30162
30270
|
/**
|
|
30163
|
-
* @rc
|
|
30164
30271
|
* Options for creating time markers for world clocks.
|
|
30165
30272
|
*/
|
|
30166
30273
|
export interface TimeMarkerOptions {
|
|
@@ -30328,7 +30435,6 @@ export interface WaypointTextureSelector {
|
|
|
30328
30435
|
}
|
|
30329
30436
|
|
|
30330
30437
|
/**
|
|
30331
|
-
* @rc
|
|
30332
30438
|
* Contains parameters for world clock events that filters out
|
|
30333
30439
|
* which events are passed to the provided callback.
|
|
30334
30440
|
*/
|
|
@@ -30342,7 +30448,6 @@ export interface WorldClockEventOptions {
|
|
|
30342
30448
|
}
|
|
30343
30449
|
|
|
30344
30450
|
/**
|
|
30345
|
-
* @rc
|
|
30346
30451
|
* Contains additional options for registering world clocks.
|
|
30347
30452
|
*/
|
|
30348
30453
|
export interface WorldClockRegistrationOptions {
|
|
@@ -30356,7 +30461,6 @@ export interface WorldClockRegistrationOptions {
|
|
|
30356
30461
|
}
|
|
30357
30462
|
|
|
30358
30463
|
/**
|
|
30359
|
-
* @rc
|
|
30360
30464
|
* Contains parameters for world clock time marker events that
|
|
30361
30465
|
* filters out which events are passed to the provided
|
|
30362
30466
|
* callback.
|
|
@@ -30384,7 +30488,6 @@ export interface WorldClockTimeMarkerEventOptions {
|
|
|
30384
30488
|
export interface WorldSoundOptions {
|
|
30385
30489
|
isBroadcast?: boolean;
|
|
30386
30490
|
/**
|
|
30387
|
-
* @rc
|
|
30388
30491
|
* @remarks
|
|
30389
30492
|
* Number of additional times to repeat the sound after the
|
|
30390
30493
|
* initial play. `0` (the default) plays the sound once, `-1`
|
|
@@ -30861,7 +30964,6 @@ export class UnloadedChunksError extends Error {
|
|
|
30861
30964
|
}
|
|
30862
30965
|
|
|
30863
30966
|
/**
|
|
30864
|
-
* @rc
|
|
30865
30967
|
* Error thrown by {@link WorldClock.addTimeMarker} when
|
|
30866
30968
|
* failing to add a time marker to a world clock.
|
|
30867
30969
|
*/
|
|
@@ -30871,7 +30973,6 @@ export class WorldClockAddTimeMarkerError extends Error {
|
|
|
30871
30973
|
}
|
|
30872
30974
|
|
|
30873
30975
|
/**
|
|
30874
|
-
* @rc
|
|
30875
30976
|
* Thrown when trying to register a world clock outside of the
|
|
30876
30977
|
* system startup event.
|
|
30877
30978
|
*/
|
|
@@ -30881,7 +30982,6 @@ export class WorldClockInvalidRegistryError extends Error {
|
|
|
30881
30982
|
}
|
|
30882
30983
|
|
|
30883
30984
|
/**
|
|
30884
|
-
* @rc
|
|
30885
30985
|
* Error thrown when a time marker is invalid. This can occur
|
|
30886
30986
|
* when trying to access data on a time marker that has been
|
|
30887
30987
|
* removed.
|
|
@@ -30892,7 +30992,6 @@ export class WorldClockInvalidTimeMarkerError extends Error {
|
|
|
30892
30992
|
}
|
|
30893
30993
|
|
|
30894
30994
|
/**
|
|
30895
|
-
* @rc
|
|
30896
30995
|
* Error thrown when a world clock is not found in the world
|
|
30897
30996
|
* clock registry.
|
|
30898
30997
|
*/
|
|
@@ -30902,7 +31001,6 @@ export class WorldClockNotFoundError extends Error {
|
|
|
30902
31001
|
}
|
|
30903
31002
|
|
|
30904
31003
|
/**
|
|
30905
|
-
* @rc
|
|
30906
31004
|
* Error thrown by {@link WorldClockRegistry.registerClock}
|
|
30907
31005
|
* when failing to register a world clock.
|
|
30908
31006
|
*/
|
|
@@ -30912,7 +31010,6 @@ export class WorldClockRegistrationError extends Error {
|
|
|
30912
31010
|
}
|
|
30913
31011
|
|
|
30914
31012
|
/**
|
|
30915
|
-
* @rc
|
|
30916
31013
|
* Thrown after using the /reload command when trying to
|
|
30917
31014
|
* register a world clock that was not previously registered.
|
|
30918
31015
|
* New world clocks cannot be added during a reload.
|
|
@@ -30923,7 +31020,6 @@ export class WorldClockReloadNewWorldClockError extends Error {
|
|
|
30923
31020
|
}
|
|
30924
31021
|
|
|
30925
31022
|
/**
|
|
30926
|
-
* @rc
|
|
30927
31023
|
* Error thrown after using the /reload command when trying to
|
|
30928
31024
|
* re-register an existing world clock with an invalid time
|
|
30929
31025
|
* marker.
|
|
@@ -30934,7 +31030,6 @@ export class WorldClockReloadTimeMarkerError extends Error {
|
|
|
30934
31030
|
}
|
|
30935
31031
|
|
|
30936
31032
|
/**
|
|
30937
|
-
* @rc
|
|
30938
31033
|
* Error thrown by {@link WorldClock.removeTimeMarker} when
|
|
30939
31034
|
* trying to remove a time marker with the 'minecraft'
|
|
30940
31035
|
* namespace from a world clock.
|
|
@@ -30945,7 +31040,6 @@ export class WorldClockRemoveMinecraftTimeMarkerError extends Error {
|
|
|
30945
31040
|
}
|
|
30946
31041
|
|
|
30947
31042
|
/**
|
|
30948
|
-
* @rc
|
|
30949
31043
|
* Error thrown by {@link WorldClock.rewindTo} when the world
|
|
30950
31044
|
* clock's time is already before the time marker's first
|
|
30951
31045
|
* occurrence.
|
|
@@ -30956,7 +31050,6 @@ export class WorldClockRewindError extends Error {
|
|
|
30956
31050
|
}
|
|
30957
31051
|
|
|
30958
31052
|
/**
|
|
30959
|
-
* @rc
|
|
30960
31053
|
* Error thrown when performing actions on a world clock with a
|
|
30961
31054
|
* time marker that does not exist.
|
|
30962
31055
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.13.0-beta.1.26.70-preview.
|
|
3
|
+
"version": "2.13.0-beta.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.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.70-preview.22"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|