@minecraft/server 2.11.0-rc.1.26.70-preview.21 → 2.11.0
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/README.md +0 -2
- package/index.d.ts +8 -88
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
4
4
|
|
|
5
|
-
## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
|
|
6
|
-
|
|
7
5
|
See full documentation for this module here:
|
|
8
6
|
|
|
9
7
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
|
package/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
***************************************************************************** */
|
|
9
9
|
/**
|
|
10
|
-
* @preview
|
|
11
10
|
* @packageDocumentation
|
|
12
11
|
* Contains many types related to manipulating a Minecraft
|
|
13
12
|
* world, including entities, blocks, dimensions, and more.
|
|
@@ -2214,7 +2213,7 @@ export enum InputPermissionCategory {
|
|
|
2214
2213
|
* function ItemStack.getComponent.
|
|
2215
2214
|
*/
|
|
2216
2215
|
export enum ItemComponentTypes {
|
|
2217
|
-
BlockDynamicProperties = 'minecraft:
|
|
2216
|
+
BlockDynamicProperties = 'minecraft:block_actor_dynamic_properties',
|
|
2218
2217
|
/**
|
|
2219
2218
|
* @remarks
|
|
2220
2219
|
* The minecraft:book component.
|
|
@@ -3254,7 +3253,7 @@ export type ItemComponentReturnType<T extends string> = T extends keyof ItemComp
|
|
|
3254
3253
|
: ItemCustomComponentInstance;
|
|
3255
3254
|
|
|
3256
3255
|
export type ItemComponentTypeMap = {
|
|
3257
|
-
|
|
3256
|
+
block_actor_dynamic_properties: ItemBlockDynamicPropertiesComponent;
|
|
3258
3257
|
book: ItemBookComponent;
|
|
3259
3258
|
compostable: ItemCompostableComponent;
|
|
3260
3259
|
cooldown: ItemCooldownComponent;
|
|
@@ -3263,7 +3262,7 @@ export type ItemComponentTypeMap = {
|
|
|
3263
3262
|
enchantable: ItemEnchantableComponent;
|
|
3264
3263
|
food: ItemFoodComponent;
|
|
3265
3264
|
inventory: ItemInventoryComponent;
|
|
3266
|
-
'minecraft:
|
|
3265
|
+
'minecraft:block_actor_dynamic_properties': ItemBlockDynamicPropertiesComponent;
|
|
3267
3266
|
'minecraft:book': ItemBookComponent;
|
|
3268
3267
|
'minecraft:compostable': ItemCompostableComponent;
|
|
3269
3268
|
'minecraft:cooldown': ItemCooldownComponent;
|
|
@@ -7399,8 +7398,6 @@ export class CustomCommandRegistry {
|
|
|
7399
7398
|
* {@link minecraftcommon.EngineError}
|
|
7400
7399
|
*
|
|
7401
7400
|
* {@link NamespaceNameError}
|
|
7402
|
-
*
|
|
7403
|
-
* {@link RawMessageError}
|
|
7404
7401
|
*/
|
|
7405
7402
|
registerCommand(
|
|
7406
7403
|
customCommand: CustomCommand,
|
|
@@ -7421,8 +7418,6 @@ export class CustomCommandRegistry {
|
|
|
7421
7418
|
* {@link minecraftcommon.EngineError}
|
|
7422
7419
|
*
|
|
7423
7420
|
* {@link NamespaceNameError}
|
|
7424
|
-
*
|
|
7425
|
-
* {@link RawMessageError}
|
|
7426
7421
|
*/
|
|
7427
7422
|
registerEnum(name: string, values: string[]): void;
|
|
7428
7423
|
}
|
|
@@ -7817,7 +7812,7 @@ export class Dimension {
|
|
|
7817
7812
|
* The options to decide if a block is a valid result.
|
|
7818
7813
|
* @throws This function can throw errors.
|
|
7819
7814
|
*/
|
|
7820
|
-
getBlockAbove(location: Vector3, options?:
|
|
7815
|
+
getBlockAbove(location: Vector3, options?: BlockRaycastOptions): Block | undefined;
|
|
7821
7816
|
/**
|
|
7822
7817
|
* @remarks
|
|
7823
7818
|
* Gets the first block found below a given block location
|
|
@@ -7830,7 +7825,7 @@ export class Dimension {
|
|
|
7830
7825
|
* The options to decide if a block is a valid result.
|
|
7831
7826
|
* @throws This function can throw errors.
|
|
7832
7827
|
*/
|
|
7833
|
-
getBlockBelow(location: Vector3, options?:
|
|
7828
|
+
getBlockBelow(location: Vector3, options?: BlockRaycastOptions): Block | undefined;
|
|
7834
7829
|
/**
|
|
7835
7830
|
* @remarks
|
|
7836
7831
|
* Gets the first block that intersects with a vector emanating
|
|
@@ -8386,7 +8381,6 @@ export class Dimension {
|
|
|
8386
8381
|
*/
|
|
8387
8382
|
spawnParticle(effectName: string, location: Vector3, molangVariables?: MolangVariableMap): void;
|
|
8388
8383
|
/**
|
|
8389
|
-
* @rc
|
|
8390
8384
|
* @remarks
|
|
8391
8385
|
* Spawns an experience orb at a specified location in the
|
|
8392
8386
|
* dimension.
|
|
@@ -11473,7 +11467,6 @@ export class EntityIsStunnedComponent extends EntityComponent {
|
|
|
11473
11467
|
export class EntityIsTamedComponent extends EntityComponent {
|
|
11474
11468
|
private constructor();
|
|
11475
11469
|
/**
|
|
11476
|
-
* @rc
|
|
11477
11470
|
* @remarks
|
|
11478
11471
|
* Returns the player that has tamed the entity, or 'undefined'
|
|
11479
11472
|
* if the entity has no player owner.
|
|
@@ -11484,7 +11477,6 @@ export class EntityIsTamedComponent extends EntityComponent {
|
|
|
11484
11477
|
*/
|
|
11485
11478
|
readonly tamedToPlayer?: Player;
|
|
11486
11479
|
/**
|
|
11487
|
-
* @rc
|
|
11488
11480
|
* @remarks
|
|
11489
11481
|
* Returns the id of the player that has tamed the entity, or
|
|
11490
11482
|
* 'undefined' if the entity has no player owner.
|
|
@@ -14178,7 +14170,7 @@ export class ISerializable {
|
|
|
14178
14170
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
14179
14171
|
export class ItemBlockDynamicPropertiesComponent extends ItemComponent {
|
|
14180
14172
|
private constructor();
|
|
14181
|
-
static readonly componentId = 'minecraft:
|
|
14173
|
+
static readonly componentId = 'minecraft:block_actor_dynamic_properties';
|
|
14182
14174
|
/**
|
|
14183
14175
|
* @remarks
|
|
14184
14176
|
* Returns a DynamicProperty that was stored with the provided
|
|
@@ -21065,7 +21057,6 @@ export class SoundInstance {
|
|
|
21065
21057
|
*/
|
|
21066
21058
|
readonly soundEventId: string;
|
|
21067
21059
|
/**
|
|
21068
|
-
* @rc
|
|
21069
21060
|
* @remarks
|
|
21070
21061
|
* Fades this sound instance from its current volume multiplier
|
|
21071
21062
|
* to the target multiplier over the specified duration. Volume
|
|
@@ -21085,7 +21076,6 @@ export class SoundInstance {
|
|
|
21085
21076
|
*/
|
|
21086
21077
|
fade(duration: number, targetVolume: number): void;
|
|
21087
21078
|
/**
|
|
21088
|
-
* @rc
|
|
21089
21079
|
* @remarks
|
|
21090
21080
|
* Pauses this sound.
|
|
21091
21081
|
*
|
|
@@ -21094,7 +21084,6 @@ export class SoundInstance {
|
|
|
21094
21084
|
*/
|
|
21095
21085
|
pause(): void;
|
|
21096
21086
|
/**
|
|
21097
|
-
* @rc
|
|
21098
21087
|
* @remarks
|
|
21099
21088
|
* Resumes this sound after a pause.
|
|
21100
21089
|
*
|
|
@@ -21103,7 +21092,6 @@ export class SoundInstance {
|
|
|
21103
21092
|
*/
|
|
21104
21093
|
resume(): void;
|
|
21105
21094
|
/**
|
|
21106
|
-
* @rc
|
|
21107
21095
|
* @remarks
|
|
21108
21096
|
* Sets the playback position of this sound instance.
|
|
21109
21097
|
*
|
|
@@ -21120,7 +21108,6 @@ export class SoundInstance {
|
|
|
21120
21108
|
*/
|
|
21121
21109
|
seekTo(seconds: number): void;
|
|
21122
21110
|
/**
|
|
21123
|
-
* @rc
|
|
21124
21111
|
* @remarks
|
|
21125
21112
|
* Sets the pitch of this sound instance.
|
|
21126
21113
|
*
|
|
@@ -21133,7 +21120,6 @@ export class SoundInstance {
|
|
|
21133
21120
|
*/
|
|
21134
21121
|
setPitch(pitch: number): void;
|
|
21135
21122
|
/**
|
|
21136
|
-
* @rc
|
|
21137
21123
|
* @remarks
|
|
21138
21124
|
* Sets the volume multiplier of this sound instance relative
|
|
21139
21125
|
* to the volume of the selected sound variant.
|
|
@@ -21219,7 +21205,6 @@ export class StartupEvent {
|
|
|
21219
21205
|
*/
|
|
21220
21206
|
readonly itemComponentRegistry: ItemComponentRegistry;
|
|
21221
21207
|
/**
|
|
21222
|
-
* @rc
|
|
21223
21208
|
* @remarks
|
|
21224
21209
|
* @privilege early-execution-readable - This property can be read in early-execution mode.
|
|
21225
21210
|
*
|
|
@@ -21985,7 +21970,6 @@ export class TextPrimitive extends PrimitiveShape {
|
|
|
21985
21970
|
*/
|
|
21986
21971
|
depthTest: boolean;
|
|
21987
21972
|
/**
|
|
21988
|
-
* @rc
|
|
21989
21973
|
* @remarks
|
|
21990
21974
|
* This value determines the gap between lines for the
|
|
21991
21975
|
* TextPrimitive. By default the line gap height is 0.
|
|
@@ -22133,7 +22117,6 @@ export class TickingAreaManager {
|
|
|
22133
22117
|
}
|
|
22134
22118
|
|
|
22135
22119
|
/**
|
|
22136
|
-
* @rc
|
|
22137
22120
|
* A named point in time on a world clock that can occur once
|
|
22138
22121
|
* or periodically.
|
|
22139
22122
|
*/
|
|
@@ -22640,7 +22623,6 @@ export class World {
|
|
|
22640
22623
|
*/
|
|
22641
22624
|
getAllPlayers(): Player[];
|
|
22642
22625
|
/**
|
|
22643
|
-
* @rc
|
|
22644
22626
|
* @remarks
|
|
22645
22627
|
* Retrieves a world clock by its name.
|
|
22646
22628
|
*
|
|
@@ -23576,7 +23558,6 @@ export class WorldAfterEvents {
|
|
|
23576
23558
|
*/
|
|
23577
23559
|
readonly weatherChange: WeatherChangeAfterEventSignal;
|
|
23578
23560
|
/**
|
|
23579
|
-
* @rc
|
|
23580
23561
|
* @remarks
|
|
23581
23562
|
* This event fires when a {@link WorldClock} is paused.
|
|
23582
23563
|
*
|
|
@@ -23585,7 +23566,6 @@ export class WorldAfterEvents {
|
|
|
23585
23566
|
*/
|
|
23586
23567
|
readonly worldClockOnPaused: WorldClockOnPausedAfterEventSignal;
|
|
23587
23568
|
/**
|
|
23588
|
-
* @rc
|
|
23589
23569
|
* @remarks
|
|
23590
23570
|
* This event fires when a {@link WorldClock} is resumed.
|
|
23591
23571
|
*
|
|
@@ -23594,7 +23574,6 @@ export class WorldAfterEvents {
|
|
|
23594
23574
|
*/
|
|
23595
23575
|
readonly worldClockOnResumed: WorldClockOnResumedAfterEventSignal;
|
|
23596
23576
|
/**
|
|
23597
|
-
* @rc
|
|
23598
23577
|
* @remarks
|
|
23599
23578
|
* This event fires when the time of a {@link WorldClock} hits
|
|
23600
23579
|
* a {@link TimeMarker} on the clock. This can happen during a
|
|
@@ -23605,7 +23584,6 @@ export class WorldAfterEvents {
|
|
|
23605
23584
|
*/
|
|
23606
23585
|
readonly worldClockOnTimeMarker: WorldClockOnTimeMarkerAfterEventSignal;
|
|
23607
23586
|
/**
|
|
23608
|
-
* @rc
|
|
23609
23587
|
* @remarks
|
|
23610
23588
|
* This event fires when a {@link WorldClock} time is changed.
|
|
23611
23589
|
* This can happen when the time is directly set through
|
|
@@ -23741,7 +23719,6 @@ export class WorldBeforeEvents {
|
|
|
23741
23719
|
*/
|
|
23742
23720
|
readonly weatherChange: WeatherChangeBeforeEventSignal;
|
|
23743
23721
|
/**
|
|
23744
|
-
* @rc
|
|
23745
23722
|
* @remarks
|
|
23746
23723
|
* This event fires when a {@link WorldClock} reaches its
|
|
23747
23724
|
* maximum time and is about to restart.
|
|
@@ -23753,7 +23730,6 @@ export class WorldBeforeEvents {
|
|
|
23753
23730
|
}
|
|
23754
23731
|
|
|
23755
23732
|
/**
|
|
23756
|
-
* @rc
|
|
23757
23733
|
* A class that represents a particular clock within a world.
|
|
23758
23734
|
*/
|
|
23759
23735
|
export class WorldClock {
|
|
@@ -23880,7 +23856,6 @@ export class WorldClock {
|
|
|
23880
23856
|
}
|
|
23881
23857
|
|
|
23882
23858
|
/**
|
|
23883
|
-
* @rc
|
|
23884
23859
|
* Contains information related to a {@link WorldClock} being
|
|
23885
23860
|
* paused.
|
|
23886
23861
|
*/
|
|
@@ -23895,7 +23870,6 @@ export class WorldClockOnPausedAfterEvent {
|
|
|
23895
23870
|
}
|
|
23896
23871
|
|
|
23897
23872
|
/**
|
|
23898
|
-
* @rc
|
|
23899
23873
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
23900
23874
|
* being paused.
|
|
23901
23875
|
*/
|
|
@@ -23929,7 +23903,6 @@ export class WorldClockOnPausedAfterEventSignal {
|
|
|
23929
23903
|
}
|
|
23930
23904
|
|
|
23931
23905
|
/**
|
|
23932
|
-
* @rc
|
|
23933
23906
|
* Contains information related to a {@link WorldClock}
|
|
23934
23907
|
* restarting.
|
|
23935
23908
|
*/
|
|
@@ -23960,7 +23933,6 @@ export class WorldClockOnRestartBeforeEvent {
|
|
|
23960
23933
|
}
|
|
23961
23934
|
|
|
23962
23935
|
/**
|
|
23963
|
-
* @rc
|
|
23964
23936
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
23965
23937
|
* restarting.
|
|
23966
23938
|
*/
|
|
@@ -24000,7 +23972,6 @@ export class WorldClockOnRestartBeforeEventSignal {
|
|
|
24000
23972
|
}
|
|
24001
23973
|
|
|
24002
23974
|
/**
|
|
24003
|
-
* @rc
|
|
24004
23975
|
* Contains information related to a {@link WorldClock} being
|
|
24005
23976
|
* resumed.
|
|
24006
23977
|
*/
|
|
@@ -24015,7 +23986,6 @@ export class WorldClockOnResumedAfterEvent {
|
|
|
24015
23986
|
}
|
|
24016
23987
|
|
|
24017
23988
|
/**
|
|
24018
|
-
* @rc
|
|
24019
23989
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
24020
23990
|
* being resumed.
|
|
24021
23991
|
*/
|
|
@@ -24049,7 +24019,6 @@ export class WorldClockOnResumedAfterEventSignal {
|
|
|
24049
24019
|
}
|
|
24050
24020
|
|
|
24051
24021
|
/**
|
|
24052
|
-
* @rc
|
|
24053
24022
|
* Contains information related to when the time of a
|
|
24054
24023
|
* {@link WorldClock} hits a {@link TimeMarker}.
|
|
24055
24024
|
*/
|
|
@@ -24070,7 +24039,6 @@ export class WorldClockOnTimeMarkerAfterEvent {
|
|
|
24070
24039
|
}
|
|
24071
24040
|
|
|
24072
24041
|
/**
|
|
24073
|
-
* @rc
|
|
24074
24042
|
* Manages callbacks that are connected to when the time of a
|
|
24075
24043
|
* {@link WorldClock} hits a {@link TimeMarker}.
|
|
24076
24044
|
*/
|
|
@@ -24104,7 +24072,6 @@ export class WorldClockOnTimeMarkerAfterEventSignal {
|
|
|
24104
24072
|
}
|
|
24105
24073
|
|
|
24106
24074
|
/**
|
|
24107
|
-
* @rc
|
|
24108
24075
|
* Contains information related to changes to the time of a
|
|
24109
24076
|
* {@link WorldClock}.
|
|
24110
24077
|
*/
|
|
@@ -24119,7 +24086,6 @@ export class WorldClockOnTimeModifiedAfterEvent {
|
|
|
24119
24086
|
}
|
|
24120
24087
|
|
|
24121
24088
|
/**
|
|
24122
|
-
* @rc
|
|
24123
24089
|
* Manages callbacks that are connected to changes to the time
|
|
24124
24090
|
* of a {@link WorldClock}.
|
|
24125
24091
|
*/
|
|
@@ -24153,7 +24119,6 @@ export class WorldClockOnTimeModifiedAfterEventSignal {
|
|
|
24153
24119
|
}
|
|
24154
24120
|
|
|
24155
24121
|
/**
|
|
24156
|
-
* @rc
|
|
24157
24122
|
* Provides the functionality for registering custom world
|
|
24158
24123
|
* clocks. World clocks can only be registered during the
|
|
24159
24124
|
* system startup event.
|
|
@@ -24612,35 +24577,7 @@ export interface BlockRaycastOptions extends BlockFilter {
|
|
|
24612
24577
|
includePassableBlocks?: boolean;
|
|
24613
24578
|
/**
|
|
24614
24579
|
* @remarks
|
|
24615
|
-
* Maximum
|
|
24616
|
-
*
|
|
24617
|
-
* Bounds: [-2147483648, 2147483647]
|
|
24618
|
-
*/
|
|
24619
|
-
maxDistance?: number;
|
|
24620
|
-
}
|
|
24621
|
-
|
|
24622
|
-
/**
|
|
24623
|
-
* Options for finding blocks.
|
|
24624
|
-
*/
|
|
24625
|
-
// @ts-ignore Class inheritance allowed for native defined classes
|
|
24626
|
-
export interface BlockSearchOptions extends BlockFilter {
|
|
24627
|
-
/**
|
|
24628
|
-
* @remarks
|
|
24629
|
-
* When true, includes liquid blocks.
|
|
24630
|
-
*
|
|
24631
|
-
*/
|
|
24632
|
-
includeLiquidBlocks?: boolean;
|
|
24633
|
-
/**
|
|
24634
|
-
* @remarks
|
|
24635
|
-
* When true, includes passable blocks, such as vines and
|
|
24636
|
-
* flowers.
|
|
24637
|
-
*
|
|
24638
|
-
*/
|
|
24639
|
-
includePassableBlocks?: boolean;
|
|
24640
|
-
/**
|
|
24641
|
-
* @remarks
|
|
24642
|
-
* Maximum search distance, in blocks. Vertical searches use
|
|
24643
|
-
* whole blocks.
|
|
24580
|
+
* Maximum distance, in blocks, to process the raycast.
|
|
24644
24581
|
*
|
|
24645
24582
|
*/
|
|
24646
24583
|
maxDistance?: number;
|
|
@@ -25801,9 +25738,8 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
25801
25738
|
includePassableBlocks?: boolean;
|
|
25802
25739
|
/**
|
|
25803
25740
|
* @remarks
|
|
25804
|
-
* Maximum
|
|
25741
|
+
* Maximum distance, in blocks, to process the raycast.
|
|
25805
25742
|
*
|
|
25806
|
-
* Bounds: [-2147483648, 2147483647]
|
|
25807
25743
|
*/
|
|
25808
25744
|
maxDistance?: number;
|
|
25809
25745
|
}
|
|
@@ -26369,7 +26305,6 @@ export interface PlayerSoundOptions {
|
|
|
26369
26305
|
*/
|
|
26370
26306
|
location?: Vector3;
|
|
26371
26307
|
/**
|
|
26372
|
-
* @rc
|
|
26373
26308
|
* @remarks
|
|
26374
26309
|
* Number of additional times to repeat the sound after the
|
|
26375
26310
|
* initial play. `0` (the default) plays the sound once, `-1`
|
|
@@ -27228,7 +27163,6 @@ export interface TickingAreaOptions {
|
|
|
27228
27163
|
}
|
|
27229
27164
|
|
|
27230
27165
|
/**
|
|
27231
|
-
* @rc
|
|
27232
27166
|
* Options for creating time markers for world clocks.
|
|
27233
27167
|
*/
|
|
27234
27168
|
export interface TimeMarkerOptions {
|
|
@@ -27396,7 +27330,6 @@ export interface WaypointTextureSelector {
|
|
|
27396
27330
|
}
|
|
27397
27331
|
|
|
27398
27332
|
/**
|
|
27399
|
-
* @rc
|
|
27400
27333
|
* Contains parameters for world clock events that filters out
|
|
27401
27334
|
* which events are passed to the provided callback.
|
|
27402
27335
|
*/
|
|
@@ -27410,7 +27343,6 @@ export interface WorldClockEventOptions {
|
|
|
27410
27343
|
}
|
|
27411
27344
|
|
|
27412
27345
|
/**
|
|
27413
|
-
* @rc
|
|
27414
27346
|
* Contains additional options for registering world clocks.
|
|
27415
27347
|
*/
|
|
27416
27348
|
export interface WorldClockRegistrationOptions {
|
|
@@ -27424,7 +27356,6 @@ export interface WorldClockRegistrationOptions {
|
|
|
27424
27356
|
}
|
|
27425
27357
|
|
|
27426
27358
|
/**
|
|
27427
|
-
* @rc
|
|
27428
27359
|
* Contains parameters for world clock time marker events that
|
|
27429
27360
|
* filters out which events are passed to the provided
|
|
27430
27361
|
* callback.
|
|
@@ -27452,7 +27383,6 @@ export interface WorldClockTimeMarkerEventOptions {
|
|
|
27452
27383
|
export interface WorldSoundOptions {
|
|
27453
27384
|
isBroadcast?: boolean;
|
|
27454
27385
|
/**
|
|
27455
|
-
* @rc
|
|
27456
27386
|
* @remarks
|
|
27457
27387
|
* Number of additional times to repeat the sound after the
|
|
27458
27388
|
* initial play. `0` (the default) plays the sound once, `-1`
|
|
@@ -27912,7 +27842,6 @@ export class UnloadedChunksError extends Error {
|
|
|
27912
27842
|
}
|
|
27913
27843
|
|
|
27914
27844
|
/**
|
|
27915
|
-
* @rc
|
|
27916
27845
|
* Error thrown by {@link WorldClock.addTimeMarker} when
|
|
27917
27846
|
* failing to add a time marker to a world clock.
|
|
27918
27847
|
*/
|
|
@@ -27922,7 +27851,6 @@ export class WorldClockAddTimeMarkerError extends Error {
|
|
|
27922
27851
|
}
|
|
27923
27852
|
|
|
27924
27853
|
/**
|
|
27925
|
-
* @rc
|
|
27926
27854
|
* Thrown when trying to register a world clock outside of the
|
|
27927
27855
|
* system startup event.
|
|
27928
27856
|
*/
|
|
@@ -27932,7 +27860,6 @@ export class WorldClockInvalidRegistryError extends Error {
|
|
|
27932
27860
|
}
|
|
27933
27861
|
|
|
27934
27862
|
/**
|
|
27935
|
-
* @rc
|
|
27936
27863
|
* Error thrown when a time marker is invalid. This can occur
|
|
27937
27864
|
* when trying to access data on a time marker that has been
|
|
27938
27865
|
* removed.
|
|
@@ -27943,7 +27870,6 @@ export class WorldClockInvalidTimeMarkerError extends Error {
|
|
|
27943
27870
|
}
|
|
27944
27871
|
|
|
27945
27872
|
/**
|
|
27946
|
-
* @rc
|
|
27947
27873
|
* Error thrown when a world clock is not found in the world
|
|
27948
27874
|
* clock registry.
|
|
27949
27875
|
*/
|
|
@@ -27953,7 +27879,6 @@ export class WorldClockNotFoundError extends Error {
|
|
|
27953
27879
|
}
|
|
27954
27880
|
|
|
27955
27881
|
/**
|
|
27956
|
-
* @rc
|
|
27957
27882
|
* Error thrown by {@link WorldClockRegistry.registerClock}
|
|
27958
27883
|
* when failing to register a world clock.
|
|
27959
27884
|
*/
|
|
@@ -27963,7 +27888,6 @@ export class WorldClockRegistrationError extends Error {
|
|
|
27963
27888
|
}
|
|
27964
27889
|
|
|
27965
27890
|
/**
|
|
27966
|
-
* @rc
|
|
27967
27891
|
* Thrown after using the /reload command when trying to
|
|
27968
27892
|
* register a world clock that was not previously registered.
|
|
27969
27893
|
* New world clocks cannot be added during a reload.
|
|
@@ -27974,7 +27898,6 @@ export class WorldClockReloadNewWorldClockError extends Error {
|
|
|
27974
27898
|
}
|
|
27975
27899
|
|
|
27976
27900
|
/**
|
|
27977
|
-
* @rc
|
|
27978
27901
|
* Error thrown after using the /reload command when trying to
|
|
27979
27902
|
* re-register an existing world clock with an invalid time
|
|
27980
27903
|
* marker.
|
|
@@ -27985,7 +27908,6 @@ export class WorldClockReloadTimeMarkerError extends Error {
|
|
|
27985
27908
|
}
|
|
27986
27909
|
|
|
27987
27910
|
/**
|
|
27988
|
-
* @rc
|
|
27989
27911
|
* Error thrown by {@link WorldClock.removeTimeMarker} when
|
|
27990
27912
|
* trying to remove a time marker with the 'minecraft'
|
|
27991
27913
|
* namespace from a world clock.
|
|
@@ -27996,7 +27918,6 @@ export class WorldClockRemoveMinecraftTimeMarkerError extends Error {
|
|
|
27996
27918
|
}
|
|
27997
27919
|
|
|
27998
27920
|
/**
|
|
27999
|
-
* @rc
|
|
28000
27921
|
* Error thrown by {@link WorldClock.rewindTo} when the world
|
|
28001
27922
|
* clock's time is already before the time marker's first
|
|
28002
27923
|
* occurrence.
|
|
@@ -28007,7 +27928,6 @@ export class WorldClockRewindError extends Error {
|
|
|
28007
27928
|
}
|
|
28008
27929
|
|
|
28009
27930
|
/**
|
|
28010
|
-
* @rc
|
|
28011
27931
|
* Error thrown when performing actions on a world clock with a
|
|
28012
27932
|
* time marker that does not exist.
|
|
28013
27933
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.11.0
|
|
3
|
+
"version": "2.11.0",
|
|
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
|
}
|