@minecraft/server 2.9.0-rc.1.26.40-preview.24 → 2.9.0-rc.1.26.40-preview.29
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 +238 -65
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -781,7 +781,6 @@ export enum EntityComponentTypes {
|
|
|
781
781
|
Color2 = 'minecraft:color2',
|
|
782
782
|
CursorInventory = 'minecraft:cursor_inventory',
|
|
783
783
|
/**
|
|
784
|
-
* @rc
|
|
785
784
|
* @remarks
|
|
786
785
|
* Represents this entity's ender inventory properties.
|
|
787
786
|
*
|
|
@@ -1439,7 +1438,6 @@ export enum EntityHealCause {
|
|
|
1439
1438
|
*/
|
|
1440
1439
|
SelfHeal = 'SelfHeal',
|
|
1441
1440
|
/**
|
|
1442
|
-
* @rc
|
|
1443
1441
|
* @remarks
|
|
1444
1442
|
* Healing caused when Totem of Undying is activated.
|
|
1445
1443
|
*
|
|
@@ -2266,7 +2264,6 @@ export enum LiquidType {
|
|
|
2266
2264
|
}
|
|
2267
2265
|
|
|
2268
2266
|
/**
|
|
2269
|
-
* @rc
|
|
2270
2267
|
* Enum representing the different reasons why a locator bar
|
|
2271
2268
|
* operation may fail.
|
|
2272
2269
|
*/
|
|
@@ -2970,7 +2967,6 @@ export enum TintMethod {
|
|
|
2970
2967
|
}
|
|
2971
2968
|
|
|
2972
2969
|
/**
|
|
2973
|
-
* @rc
|
|
2974
2970
|
* Enum representing different texture icons that can be
|
|
2975
2971
|
* displayed for waypoints on the locator bar.
|
|
2976
2972
|
*/
|
|
@@ -4457,7 +4453,6 @@ export class BlockComponentBlockBreakEvent extends BlockEvent {
|
|
|
4457
4453
|
}
|
|
4458
4454
|
|
|
4459
4455
|
/**
|
|
4460
|
-
* @rc
|
|
4461
4456
|
* Contains information regarding a specific block permutation
|
|
4462
4457
|
* that was changed from a previous permutation.
|
|
4463
4458
|
*/
|
|
@@ -4720,7 +4715,6 @@ export class BlockComponentTickEvent extends BlockEvent {
|
|
|
4720
4715
|
}
|
|
4721
4716
|
|
|
4722
4717
|
/**
|
|
4723
|
-
* @rc
|
|
4724
4718
|
* Contains information regarding a specific container block
|
|
4725
4719
|
* being closed.
|
|
4726
4720
|
*/
|
|
@@ -4738,7 +4732,6 @@ export class BlockContainerClosedAfterEvent extends BlockEvent {
|
|
|
4738
4732
|
}
|
|
4739
4733
|
|
|
4740
4734
|
/**
|
|
4741
|
-
* @rc
|
|
4742
4735
|
* Manages callbacks that are connected to when a block
|
|
4743
4736
|
* container is closed.
|
|
4744
4737
|
*/
|
|
@@ -4772,7 +4765,6 @@ export class BlockContainerClosedAfterEventSignal {
|
|
|
4772
4765
|
}
|
|
4773
4766
|
|
|
4774
4767
|
/**
|
|
4775
|
-
* @rc
|
|
4776
4768
|
* Contains information regarding a specific container block
|
|
4777
4769
|
* being opened.
|
|
4778
4770
|
*/
|
|
@@ -4790,7 +4782,6 @@ export class BlockContainerOpenedAfterEvent extends BlockEvent {
|
|
|
4790
4782
|
}
|
|
4791
4783
|
|
|
4792
4784
|
/**
|
|
4793
|
-
* @rc
|
|
4794
4785
|
* Manages callbacks that are connected to when a block
|
|
4795
4786
|
* container is opened.
|
|
4796
4787
|
*/
|
|
@@ -5413,7 +5404,6 @@ export class BlockPrecipitationInteractionsComponent extends BlockComponent {
|
|
|
5413
5404
|
*/
|
|
5414
5405
|
accumulatesSnow(): boolean;
|
|
5415
5406
|
/**
|
|
5416
|
-
* @rc
|
|
5417
5407
|
* @remarks
|
|
5418
5408
|
* Returns `true` if this block can have snow within it, like a
|
|
5419
5409
|
* flower submerged in snow. Returns `false` if this block
|
|
@@ -6233,7 +6223,6 @@ export class CatmullRomSpline {
|
|
|
6233
6223
|
export class ClientSystemInfo extends SystemInfo {
|
|
6234
6224
|
private constructor();
|
|
6235
6225
|
/**
|
|
6236
|
-
* @rc
|
|
6237
6226
|
* @remarks
|
|
6238
6227
|
* The locale selected by the client (e.g., en_US, fr_FR,
|
|
6239
6228
|
* ja_JP). Note that in most cases, server scripts should not
|
|
@@ -7299,6 +7288,38 @@ export class Dimension {
|
|
|
7299
7288
|
*
|
|
7300
7289
|
*/
|
|
7301
7290
|
readonly localizationKey: string;
|
|
7291
|
+
/**
|
|
7292
|
+
* @rc
|
|
7293
|
+
* @remarks
|
|
7294
|
+
* Calculates the location of the closest biome of a particular
|
|
7295
|
+
* type from the world seed. Note that
|
|
7296
|
+
* calculateClosestBiomeFromSeed can be an expensive operation,
|
|
7297
|
+
* so avoid using many of these calls within a particular tick.
|
|
7298
|
+
* The result is derived purely from the world generation
|
|
7299
|
+
* algorithm and the world seed, so the returned location may
|
|
7300
|
+
* not reflect the actual current terrain if biomes have been
|
|
7301
|
+
* modified after generation.
|
|
7302
|
+
*
|
|
7303
|
+
* @param pos
|
|
7304
|
+
* Starting location to look for a biome to find.
|
|
7305
|
+
* @param biomeToFind
|
|
7306
|
+
* Identifier of the biome to look for.
|
|
7307
|
+
* @param options
|
|
7308
|
+
* Additional selection criteria for a biome search.
|
|
7309
|
+
* @returns
|
|
7310
|
+
* Returns a location of the biome, or undefined if a biome
|
|
7311
|
+
* could not be found.
|
|
7312
|
+
* @throws This function can throw errors.
|
|
7313
|
+
*
|
|
7314
|
+
* {@link minecraftcommon.EngineError}
|
|
7315
|
+
*
|
|
7316
|
+
* {@link Error}
|
|
7317
|
+
*/
|
|
7318
|
+
calculateClosestBiomeFromSeed(
|
|
7319
|
+
pos: Vector3,
|
|
7320
|
+
biomeToFind: BiomeType | string,
|
|
7321
|
+
options?: BiomeSearchOptions,
|
|
7322
|
+
): Vector3 | undefined;
|
|
7302
7323
|
/**
|
|
7303
7324
|
* @remarks
|
|
7304
7325
|
* Checks if an area contains the specified biomes. If the area
|
|
@@ -8082,7 +8103,6 @@ export class Dimension {
|
|
|
8082
8103
|
}
|
|
8083
8104
|
|
|
8084
8105
|
/**
|
|
8085
|
-
* @rc
|
|
8086
8106
|
* Provides the functionality for registering custom
|
|
8087
8107
|
* dimensions. Custom dimensions can only be registered during
|
|
8088
8108
|
* the system startup event.
|
|
@@ -8631,7 +8651,6 @@ export class Entity {
|
|
|
8631
8651
|
*/
|
|
8632
8652
|
readonly location: Vector3;
|
|
8633
8653
|
/**
|
|
8634
|
-
* @rc
|
|
8635
8654
|
* @remarks
|
|
8636
8655
|
* Boolean which determines if the player nameplate should be
|
|
8637
8656
|
* depth tested for visibility.
|
|
@@ -8641,7 +8660,6 @@ export class Entity {
|
|
|
8641
8660
|
*/
|
|
8642
8661
|
nameplateDepthTested: boolean;
|
|
8643
8662
|
/**
|
|
8644
|
-
* @rc
|
|
8645
8663
|
* @remarks
|
|
8646
8664
|
* Float that determines the render distance of this entity's
|
|
8647
8665
|
* nameplate.
|
|
@@ -10067,7 +10085,6 @@ export class EntityComponent extends Component {
|
|
|
10067
10085
|
}
|
|
10068
10086
|
|
|
10069
10087
|
/**
|
|
10070
|
-
* @rc
|
|
10071
10088
|
* Contains information regarding a specific entity container
|
|
10072
10089
|
* being closed.
|
|
10073
10090
|
*/
|
|
@@ -10083,7 +10100,6 @@ export class EntityContainerClosedAfterEvent {
|
|
|
10083
10100
|
}
|
|
10084
10101
|
|
|
10085
10102
|
/**
|
|
10086
|
-
* @rc
|
|
10087
10103
|
* Manages callbacks that are connected to when an entity
|
|
10088
10104
|
* container is closed.
|
|
10089
10105
|
*/
|
|
@@ -10117,7 +10133,6 @@ export class EntityContainerClosedAfterEventSignal {
|
|
|
10117
10133
|
}
|
|
10118
10134
|
|
|
10119
10135
|
/**
|
|
10120
|
-
* @rc
|
|
10121
10136
|
* Contains information regarding a specific entity container
|
|
10122
10137
|
* being opened.
|
|
10123
10138
|
*/
|
|
@@ -10133,7 +10148,6 @@ export class EntityContainerOpenedAfterEvent {
|
|
|
10133
10148
|
}
|
|
10134
10149
|
|
|
10135
10150
|
/**
|
|
10136
|
-
* @rc
|
|
10137
10151
|
* Manages callbacks that are connected to when an entity
|
|
10138
10152
|
* container is opened.
|
|
10139
10153
|
*/
|
|
@@ -10260,7 +10274,6 @@ export class EntityDieAfterEventSignal {
|
|
|
10260
10274
|
}
|
|
10261
10275
|
|
|
10262
10276
|
/**
|
|
10263
|
-
* @rc
|
|
10264
10277
|
* Represents this entity's ender inventory properties. This
|
|
10265
10278
|
* component is always present on players and any items in its
|
|
10266
10279
|
* container will display for the player when they access an
|
|
@@ -12779,7 +12792,6 @@ export class EntityUnderwaterMovementComponent extends EntityAttributeComponent
|
|
|
12779
12792
|
}
|
|
12780
12793
|
|
|
12781
12794
|
/**
|
|
12782
|
-
* @rc
|
|
12783
12795
|
* Contains information related to firing of a data driven
|
|
12784
12796
|
* entity version upgrade.
|
|
12785
12797
|
*/
|
|
@@ -12807,7 +12819,6 @@ export class EntityUpgradeAfterEvent {
|
|
|
12807
12819
|
}
|
|
12808
12820
|
|
|
12809
12821
|
/**
|
|
12810
|
-
* @rc
|
|
12811
12822
|
* Contains event registration related to firing of a data
|
|
12812
12823
|
* driven entity version upgrade.
|
|
12813
12824
|
*/
|
|
@@ -12869,7 +12880,6 @@ export class EntityWantsJockeyComponent extends EntityComponent {
|
|
|
12869
12880
|
}
|
|
12870
12881
|
|
|
12871
12882
|
/**
|
|
12872
|
-
* @rc
|
|
12873
12883
|
* Waypoint that tracks an entity's position. The waypoint
|
|
12874
12884
|
* automatically updates as the entity moves and becomes
|
|
12875
12885
|
* invalid when the entity is removed.
|
|
@@ -15668,7 +15678,6 @@ export class ListBlockVolume extends BlockVolumeBase {
|
|
|
15668
15678
|
}
|
|
15669
15679
|
|
|
15670
15680
|
/**
|
|
15671
|
-
* @rc
|
|
15672
15681
|
* Waypoint that points to a fixed location in the world.
|
|
15673
15682
|
* Unlike entity waypoints, location waypoints always remain
|
|
15674
15683
|
* valid and their position can be updated.
|
|
@@ -15696,7 +15705,6 @@ export class LocationWaypoint extends Waypoint {
|
|
|
15696
15705
|
}
|
|
15697
15706
|
|
|
15698
15707
|
/**
|
|
15699
|
-
* @rc
|
|
15700
15708
|
* Manages the collection of waypoints displayed on a player's
|
|
15701
15709
|
* locator bar. Allows adding, removing, and querying waypoints
|
|
15702
15710
|
* with a maximum capacity limit.
|
|
@@ -16524,7 +16532,6 @@ export class Player extends Entity {
|
|
|
16524
16532
|
*/
|
|
16525
16533
|
readonly level: number;
|
|
16526
16534
|
/**
|
|
16527
|
-
* @rc
|
|
16528
16535
|
* @remarks
|
|
16529
16536
|
* The player's Locator Bar. This property is used for managing
|
|
16530
16537
|
* waypoints displayed on the HUD.
|
|
@@ -17241,6 +17248,83 @@ export class PlayerButtonInputAfterEventSignal {
|
|
|
17241
17248
|
unsubscribe(callback: (arg0: PlayerButtonInputAfterEvent) => void): void;
|
|
17242
17249
|
}
|
|
17243
17250
|
|
|
17251
|
+
/**
|
|
17252
|
+
* @rc
|
|
17253
|
+
* Contains information regarding an event after a player
|
|
17254
|
+
* cancels breaking a block.
|
|
17255
|
+
*/
|
|
17256
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17257
|
+
export class PlayerCancelBreakingBlockAfterEvent extends BlockEvent {
|
|
17258
|
+
private constructor();
|
|
17259
|
+
/**
|
|
17260
|
+
* @remarks
|
|
17261
|
+
* The permutation of the block that the player cancelled
|
|
17262
|
+
* breaking.
|
|
17263
|
+
*
|
|
17264
|
+
*/
|
|
17265
|
+
readonly blockPermutation: BlockPermutation;
|
|
17266
|
+
/**
|
|
17267
|
+
* @remarks
|
|
17268
|
+
* The progress of breaking the block when the player cancelled
|
|
17269
|
+
* in the exclusive range (0, 1).
|
|
17270
|
+
*
|
|
17271
|
+
*/
|
|
17272
|
+
readonly breakProgress: number;
|
|
17273
|
+
/**
|
|
17274
|
+
* @remarks
|
|
17275
|
+
* The face of the block that was being broken.
|
|
17276
|
+
*
|
|
17277
|
+
*/
|
|
17278
|
+
readonly face: Direction;
|
|
17279
|
+
/**
|
|
17280
|
+
* @remarks
|
|
17281
|
+
* The item stack that the player was using to break the block,
|
|
17282
|
+
* or undefined if empty hand.
|
|
17283
|
+
*
|
|
17284
|
+
*/
|
|
17285
|
+
readonly heldItemStack?: ItemStack;
|
|
17286
|
+
/**
|
|
17287
|
+
* @remarks
|
|
17288
|
+
* Player that cancelled breaking the block for this event.
|
|
17289
|
+
*
|
|
17290
|
+
*/
|
|
17291
|
+
readonly player: Player;
|
|
17292
|
+
}
|
|
17293
|
+
|
|
17294
|
+
/**
|
|
17295
|
+
* @rc
|
|
17296
|
+
* Manages callbacks that are connected to when a player
|
|
17297
|
+
* cancels breaking a block.
|
|
17298
|
+
*/
|
|
17299
|
+
export class PlayerCancelBreakingBlockAfterEventSignal {
|
|
17300
|
+
private constructor();
|
|
17301
|
+
/**
|
|
17302
|
+
* @remarks
|
|
17303
|
+
* Adds a callback that will be called when a player cancels
|
|
17304
|
+
* breaking a block.
|
|
17305
|
+
*
|
|
17306
|
+
* This function can't be called in restricted-execution mode.
|
|
17307
|
+
*
|
|
17308
|
+
* This function can be called in early-execution mode.
|
|
17309
|
+
*
|
|
17310
|
+
*/
|
|
17311
|
+
subscribe(
|
|
17312
|
+
callback: (arg0: PlayerCancelBreakingBlockAfterEvent) => void,
|
|
17313
|
+
options?: PlayerBreakingBlockEventOptions,
|
|
17314
|
+
): (arg0: PlayerCancelBreakingBlockAfterEvent) => void;
|
|
17315
|
+
/**
|
|
17316
|
+
* @remarks
|
|
17317
|
+
* Removes a callback from being called when a player cancels
|
|
17318
|
+
* breaking a block.
|
|
17319
|
+
*
|
|
17320
|
+
* This function can't be called in restricted-execution mode.
|
|
17321
|
+
*
|
|
17322
|
+
* This function can be called in early-execution mode.
|
|
17323
|
+
*
|
|
17324
|
+
*/
|
|
17325
|
+
unsubscribe(callback: (arg0: PlayerCancelBreakingBlockAfterEvent) => void): void;
|
|
17326
|
+
}
|
|
17327
|
+
|
|
17244
17328
|
/**
|
|
17245
17329
|
* Represents the players cursor inventory. Used when moving
|
|
17246
17330
|
* items between between containers in the inventory UI. Not
|
|
@@ -18346,6 +18430,76 @@ export class PlayerSpawnAfterEventSignal {
|
|
|
18346
18430
|
unsubscribe(callback: (arg0: PlayerSpawnAfterEvent) => void): void;
|
|
18347
18431
|
}
|
|
18348
18432
|
|
|
18433
|
+
/**
|
|
18434
|
+
* @rc
|
|
18435
|
+
* Contains information regarding an event after a player
|
|
18436
|
+
* starts breaking a block.
|
|
18437
|
+
*/
|
|
18438
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
18439
|
+
export class PlayerStartBreakingBlockAfterEvent extends BlockEvent {
|
|
18440
|
+
private constructor();
|
|
18441
|
+
/**
|
|
18442
|
+
* @remarks
|
|
18443
|
+
* The permutation of the block that the player is starting to
|
|
18444
|
+
* break.
|
|
18445
|
+
*
|
|
18446
|
+
*/
|
|
18447
|
+
readonly blockPermutation: BlockPermutation;
|
|
18448
|
+
/**
|
|
18449
|
+
* @remarks
|
|
18450
|
+
* The face of the block being broken.
|
|
18451
|
+
*
|
|
18452
|
+
*/
|
|
18453
|
+
readonly face: Direction;
|
|
18454
|
+
/**
|
|
18455
|
+
* @remarks
|
|
18456
|
+
* The item stack that the player is using to break the block,
|
|
18457
|
+
* or undefined if empty hand.
|
|
18458
|
+
*
|
|
18459
|
+
*/
|
|
18460
|
+
readonly heldItemStack?: ItemStack;
|
|
18461
|
+
/**
|
|
18462
|
+
* @remarks
|
|
18463
|
+
* Player that started breaking the block for this event.
|
|
18464
|
+
*
|
|
18465
|
+
*/
|
|
18466
|
+
readonly player: Player;
|
|
18467
|
+
}
|
|
18468
|
+
|
|
18469
|
+
/**
|
|
18470
|
+
* @rc
|
|
18471
|
+
* Manages callbacks that are connected to when a player starts
|
|
18472
|
+
* breaking a block.
|
|
18473
|
+
*/
|
|
18474
|
+
export class PlayerStartBreakingBlockAfterEventSignal {
|
|
18475
|
+
private constructor();
|
|
18476
|
+
/**
|
|
18477
|
+
* @remarks
|
|
18478
|
+
* Adds a callback that will be called when a player starts
|
|
18479
|
+
* breaking a block.
|
|
18480
|
+
*
|
|
18481
|
+
* This function can't be called in restricted-execution mode.
|
|
18482
|
+
*
|
|
18483
|
+
* This function can be called in early-execution mode.
|
|
18484
|
+
*
|
|
18485
|
+
*/
|
|
18486
|
+
subscribe(
|
|
18487
|
+
callback: (arg0: PlayerStartBreakingBlockAfterEvent) => void,
|
|
18488
|
+
options?: PlayerBreakingBlockEventOptions,
|
|
18489
|
+
): (arg0: PlayerStartBreakingBlockAfterEvent) => void;
|
|
18490
|
+
/**
|
|
18491
|
+
* @remarks
|
|
18492
|
+
* Removes a callback from being called when a player starts
|
|
18493
|
+
* breaking a block.
|
|
18494
|
+
*
|
|
18495
|
+
* This function can't be called in restricted-execution mode.
|
|
18496
|
+
*
|
|
18497
|
+
* This function can be called in early-execution mode.
|
|
18498
|
+
*
|
|
18499
|
+
*/
|
|
18500
|
+
unsubscribe(callback: (arg0: PlayerStartBreakingBlockAfterEvent) => void): void;
|
|
18501
|
+
}
|
|
18502
|
+
|
|
18349
18503
|
/**
|
|
18350
18504
|
* Contains information regarding a player starting to swing
|
|
18351
18505
|
* their arm.
|
|
@@ -18411,7 +18565,6 @@ export class PlayerSwingStartAfterEventSignal {
|
|
|
18411
18565
|
}
|
|
18412
18566
|
|
|
18413
18567
|
/**
|
|
18414
|
-
* @rc
|
|
18415
18568
|
* Waypoint that tracks a player's position. Extends {@link
|
|
18416
18569
|
* EntityWaypoint} with additional player-specific visibility
|
|
18417
18570
|
* rules such as hidden state and spectator mode.
|
|
@@ -18645,7 +18798,6 @@ export class PressurePlatePushAfterEventSignal {
|
|
|
18645
18798
|
}
|
|
18646
18799
|
|
|
18647
18800
|
/**
|
|
18648
|
-
* @rc
|
|
18649
18801
|
* The base class for a text primitive. Represents an object in
|
|
18650
18802
|
* the world and its base properties.
|
|
18651
18803
|
*/
|
|
@@ -18749,7 +18901,6 @@ export class PrimitiveShape {
|
|
|
18749
18901
|
}
|
|
18750
18902
|
|
|
18751
18903
|
/**
|
|
18752
|
-
* @rc
|
|
18753
18904
|
* Primitive Shapes class used to allow adding and removing
|
|
18754
18905
|
* text primitives to the world.
|
|
18755
18906
|
*/
|
|
@@ -20083,7 +20234,6 @@ export class StartupEvent {
|
|
|
20083
20234
|
*/
|
|
20084
20235
|
readonly customCommandRegistry: CustomCommandRegistry;
|
|
20085
20236
|
/**
|
|
20086
|
-
* @rc
|
|
20087
20237
|
* @remarks
|
|
20088
20238
|
* This property can be read in early-execution mode.
|
|
20089
20239
|
*
|
|
@@ -20339,7 +20489,6 @@ export class StructureManager {
|
|
|
20339
20489
|
*/
|
|
20340
20490
|
get(identifier: string): Structure | undefined;
|
|
20341
20491
|
/**
|
|
20342
|
-
* @rc
|
|
20343
20492
|
* @remarks
|
|
20344
20493
|
* Returns a list of all structures contained in behavior
|
|
20345
20494
|
* packs. Does not include structures saved to the world or in
|
|
@@ -20826,7 +20975,6 @@ export class TargetBlockHitAfterEventSignal {
|
|
|
20826
20975
|
}
|
|
20827
20976
|
|
|
20828
20977
|
/**
|
|
20829
|
-
* @rc
|
|
20830
20978
|
* A primitive shape class that represents a text label in the
|
|
20831
20979
|
* world with a background.
|
|
20832
20980
|
*/
|
|
@@ -21134,7 +21282,6 @@ export class TripWireTripAfterEventSignal {
|
|
|
21134
21282
|
}
|
|
21135
21283
|
|
|
21136
21284
|
/**
|
|
21137
|
-
* @rc
|
|
21138
21285
|
* Base class for waypoints displayed on the player's locator
|
|
21139
21286
|
* bar. Waypoints can track locations or entities and are
|
|
21140
21287
|
* rendered with customizable textures and colors.
|
|
@@ -21394,7 +21541,6 @@ export class World {
|
|
|
21394
21541
|
readonly gameRules: GameRules;
|
|
21395
21542
|
readonly isHardcore: boolean;
|
|
21396
21543
|
/**
|
|
21397
|
-
* @rc
|
|
21398
21544
|
* @remarks
|
|
21399
21545
|
* Manager for adding and removing primitive text objects in
|
|
21400
21546
|
* the world.
|
|
@@ -21621,7 +21767,6 @@ export class World {
|
|
|
21621
21767
|
*/
|
|
21622
21768
|
getMoonPhase(): MoonPhase;
|
|
21623
21769
|
/**
|
|
21624
|
-
* @rc
|
|
21625
21770
|
* @remarks
|
|
21626
21771
|
* Returns a map of pack setting name and value pairs.
|
|
21627
21772
|
*
|
|
@@ -21884,7 +22029,6 @@ export class World {
|
|
|
21884
22029
|
export class WorldAfterEvents {
|
|
21885
22030
|
private constructor();
|
|
21886
22031
|
/**
|
|
21887
|
-
* @rc
|
|
21888
22032
|
* @remarks
|
|
21889
22033
|
* This event fires when a block container is closed.
|
|
21890
22034
|
*
|
|
@@ -21893,7 +22037,6 @@ export class WorldAfterEvents {
|
|
|
21893
22037
|
*/
|
|
21894
22038
|
readonly blockContainerClosed: BlockContainerClosedAfterEventSignal;
|
|
21895
22039
|
/**
|
|
21896
|
-
* @rc
|
|
21897
22040
|
* @remarks
|
|
21898
22041
|
* This event fires when a block container is opened.
|
|
21899
22042
|
*
|
|
@@ -21939,7 +22082,6 @@ export class WorldAfterEvents {
|
|
|
21939
22082
|
*/
|
|
21940
22083
|
readonly effectAdd: EffectAddAfterEventSignal;
|
|
21941
22084
|
/**
|
|
21942
|
-
* @rc
|
|
21943
22085
|
* @remarks
|
|
21944
22086
|
* This event fires when an entity container is closed.
|
|
21945
22087
|
*
|
|
@@ -21948,7 +22090,6 @@ export class WorldAfterEvents {
|
|
|
21948
22090
|
*/
|
|
21949
22091
|
readonly entityContainerClosed: EntityContainerClosedAfterEventSignal;
|
|
21950
22092
|
/**
|
|
21951
|
-
* @rc
|
|
21952
22093
|
* @remarks
|
|
21953
22094
|
* This event fires when an entity container is opened.
|
|
21954
22095
|
*
|
|
@@ -22046,7 +22187,6 @@ export class WorldAfterEvents {
|
|
|
22046
22187
|
*/
|
|
22047
22188
|
readonly entitySpawn: EntitySpawnAfterEventSignal;
|
|
22048
22189
|
/**
|
|
22049
|
-
* @rc
|
|
22050
22190
|
* @remarks
|
|
22051
22191
|
* This property can be read in early-execution mode.
|
|
22052
22192
|
*
|
|
@@ -22166,6 +22306,15 @@ export class WorldAfterEvents {
|
|
|
22166
22306
|
*
|
|
22167
22307
|
*/
|
|
22168
22308
|
readonly playerButtonInput: PlayerButtonInputAfterEventSignal;
|
|
22309
|
+
/**
|
|
22310
|
+
* @rc
|
|
22311
|
+
* @remarks
|
|
22312
|
+
* This event fires when a player cancels breaking a block.
|
|
22313
|
+
*
|
|
22314
|
+
* This property can be read in early-execution mode.
|
|
22315
|
+
*
|
|
22316
|
+
*/
|
|
22317
|
+
readonly playerCancelBreakingBlock: PlayerCancelBreakingBlockAfterEventSignal;
|
|
22169
22318
|
/**
|
|
22170
22319
|
* @remarks
|
|
22171
22320
|
* Fires when a player moved to a different dimension.
|
|
@@ -22271,6 +22420,15 @@ export class WorldAfterEvents {
|
|
|
22271
22420
|
*
|
|
22272
22421
|
*/
|
|
22273
22422
|
readonly playerSpawn: PlayerSpawnAfterEventSignal;
|
|
22423
|
+
/**
|
|
22424
|
+
* @rc
|
|
22425
|
+
* @remarks
|
|
22426
|
+
* This event fires when a player starts breaking a block.
|
|
22427
|
+
*
|
|
22428
|
+
* This property can be read in early-execution mode.
|
|
22429
|
+
*
|
|
22430
|
+
*/
|
|
22431
|
+
readonly playerStartBreakingBlock: PlayerStartBreakingBlockAfterEventSignal;
|
|
22274
22432
|
/**
|
|
22275
22433
|
* @remarks
|
|
22276
22434
|
* This property can be read in early-execution mode.
|
|
@@ -22523,6 +22681,20 @@ export interface BiomeFilter {
|
|
|
22523
22681
|
includeTags?: string[];
|
|
22524
22682
|
}
|
|
22525
22683
|
|
|
22684
|
+
/**
|
|
22685
|
+
* @rc
|
|
22686
|
+
* Contains additional options for searches for the
|
|
22687
|
+
* dimension.findNearestBiome API.
|
|
22688
|
+
*/
|
|
22689
|
+
export interface BiomeSearchOptions {
|
|
22690
|
+
/**
|
|
22691
|
+
* @remarks
|
|
22692
|
+
* Bounding volume size to look within.
|
|
22693
|
+
*
|
|
22694
|
+
*/
|
|
22695
|
+
boundingSize?: Vector3;
|
|
22696
|
+
}
|
|
22697
|
+
|
|
22526
22698
|
/**
|
|
22527
22699
|
* A BlockBoundingBox is an interface to an object which
|
|
22528
22700
|
* represents an AABB aligned rectangle.
|
|
@@ -22557,7 +22729,6 @@ export interface BlockBoundingBox {
|
|
|
22557
22729
|
}
|
|
22558
22730
|
|
|
22559
22731
|
/**
|
|
22560
|
-
* @rc
|
|
22561
22732
|
* Options used to filter block container access events.
|
|
22562
22733
|
*/
|
|
22563
22734
|
export interface BlockContainerAccessEventOptions {
|
|
@@ -22589,9 +22760,6 @@ export interface BlockCustomComponent {
|
|
|
22589
22760
|
*
|
|
22590
22761
|
*/
|
|
22591
22762
|
beforeOnPlayerPlace?: (arg0: BlockComponentPlayerPlaceBeforeEvent, arg1: CustomComponentParameters) => void;
|
|
22592
|
-
/**
|
|
22593
|
-
* @rc
|
|
22594
|
-
*/
|
|
22595
22763
|
onBlockStateChange?: (arg0: BlockComponentBlockStateChangeEvent, arg1: CustomComponentParameters) => void;
|
|
22596
22764
|
/**
|
|
22597
22765
|
* @remarks
|
|
@@ -22981,7 +23149,6 @@ export interface CameraTargetOptions {
|
|
|
22981
23149
|
}
|
|
22982
23150
|
|
|
22983
23151
|
/**
|
|
22984
|
-
* @rc
|
|
22985
23152
|
* Represents the source of a container access.
|
|
22986
23153
|
*/
|
|
22987
23154
|
export interface ContainerAccessSource {
|
|
@@ -22994,7 +23161,6 @@ export interface ContainerAccessSource {
|
|
|
22994
23161
|
}
|
|
22995
23162
|
|
|
22996
23163
|
/**
|
|
22997
|
-
* @rc
|
|
22998
23164
|
* Options for use when filtering container access sources.
|
|
22999
23165
|
*/
|
|
23000
23166
|
export interface ContainerAccessSourceFilter {
|
|
@@ -23124,9 +23290,6 @@ export interface CustomCommandResult {
|
|
|
23124
23290
|
status: CustomCommandStatus;
|
|
23125
23291
|
}
|
|
23126
23292
|
|
|
23127
|
-
/**
|
|
23128
|
-
* @rc
|
|
23129
|
-
*/
|
|
23130
23293
|
export interface CustomTexture {
|
|
23131
23294
|
/**
|
|
23132
23295
|
* @remarks
|
|
@@ -23281,7 +23444,6 @@ export interface EntityApplyDamageOptions {
|
|
|
23281
23444
|
}
|
|
23282
23445
|
|
|
23283
23446
|
/**
|
|
23284
|
-
* @rc
|
|
23285
23447
|
* Options used to filter entity container access events.
|
|
23286
23448
|
*/
|
|
23287
23449
|
export interface EntityContainerAccessEventOptions {
|
|
@@ -23974,7 +24136,6 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
23974
24136
|
}
|
|
23975
24137
|
|
|
23976
24138
|
/**
|
|
23977
|
-
* @rc
|
|
23978
24139
|
* Controls when a waypoint is visible based on the state of
|
|
23979
24140
|
* the entity it tracks. These rules allow filtering waypoint
|
|
23980
24141
|
* visibility by entity conditions like sneaking, invisibility,
|
|
@@ -24479,6 +24640,33 @@ export interface PlayerAimAssistSettings {
|
|
|
24479
24640
|
viewAngle?: Vector2;
|
|
24480
24641
|
}
|
|
24481
24642
|
|
|
24643
|
+
/**
|
|
24644
|
+
* @rc
|
|
24645
|
+
* An interface that is passed into {@link
|
|
24646
|
+
* PlayerStartBreakingBlockAfterEventSignal.subscribe} or
|
|
24647
|
+
* {@link PlayerCancelBreakingBlockAfterEventSignal.subscribe}
|
|
24648
|
+
* that filters out which events are passed to the provided
|
|
24649
|
+
* callback.
|
|
24650
|
+
*/
|
|
24651
|
+
export interface PlayerBreakingBlockEventOptions {
|
|
24652
|
+
/**
|
|
24653
|
+
* @remarks
|
|
24654
|
+
* The {@link BlockFilter} that the callback should be called
|
|
24655
|
+
* for. If undefined, the callback will be called for all
|
|
24656
|
+
* blocks.
|
|
24657
|
+
*
|
|
24658
|
+
*/
|
|
24659
|
+
blockFilter?: BlockFilter;
|
|
24660
|
+
/**
|
|
24661
|
+
* @remarks
|
|
24662
|
+
* The {@link EntityFilter} that the callback should be called
|
|
24663
|
+
* for. If undefined, the callback will be called for all
|
|
24664
|
+
* players.
|
|
24665
|
+
*
|
|
24666
|
+
*/
|
|
24667
|
+
playerFilter?: EntityFilter;
|
|
24668
|
+
}
|
|
24669
|
+
|
|
24482
24670
|
/**
|
|
24483
24671
|
* Additional options for how a sound plays for a player.
|
|
24484
24672
|
*/
|
|
@@ -24530,7 +24718,6 @@ export interface PlayerSwingEventOptions {
|
|
|
24530
24718
|
}
|
|
24531
24719
|
|
|
24532
24720
|
/**
|
|
24533
|
-
* @rc
|
|
24534
24721
|
* Controls when a waypoint is visible based on player-specific
|
|
24535
24722
|
* states. Extends {@link EntityVisibilityRules} with
|
|
24536
24723
|
* additional rules for player-only states like hidden mode and
|
|
@@ -25259,7 +25446,6 @@ export interface VectorXZ {
|
|
|
25259
25446
|
}
|
|
25260
25447
|
|
|
25261
25448
|
/**
|
|
25262
|
-
* @rc
|
|
25263
25449
|
* Defines a texture and the distance range in which it should
|
|
25264
25450
|
* be displayed. Used within a {@link WaypointTextureSelector}
|
|
25265
25451
|
* to create distance-based texture switching.
|
|
@@ -25294,7 +25480,6 @@ export interface WaypointTextureBounds {
|
|
|
25294
25480
|
}
|
|
25295
25481
|
|
|
25296
25482
|
/**
|
|
25297
|
-
* @rc
|
|
25298
25483
|
* Defines how waypoint textures change based on distance.
|
|
25299
25484
|
* Contains a list of texture bounds that determine which
|
|
25300
25485
|
* texture is displayed at different distance ranges.
|
|
@@ -25448,7 +25633,6 @@ export class CustomComponentNameError extends Error {
|
|
|
25448
25633
|
}
|
|
25449
25634
|
|
|
25450
25635
|
/**
|
|
25451
|
-
* @rc
|
|
25452
25636
|
* Thrown when trying to register a custom dimension with a
|
|
25453
25637
|
* name that has already been registered.
|
|
25454
25638
|
*/
|
|
@@ -25458,7 +25642,6 @@ export class CustomDimensionAlreadyRegisteredError extends Error {
|
|
|
25458
25642
|
}
|
|
25459
25643
|
|
|
25460
25644
|
/**
|
|
25461
|
-
* @rc
|
|
25462
25645
|
* Thrown when trying to register a custom dimension outside of
|
|
25463
25646
|
* the system startup event.
|
|
25464
25647
|
*/
|
|
@@ -25468,7 +25651,6 @@ export class CustomDimensionInvalidRegistryError extends Error {
|
|
|
25468
25651
|
}
|
|
25469
25652
|
|
|
25470
25653
|
/**
|
|
25471
|
-
* @rc
|
|
25472
25654
|
* Thrown when trying to register a custom dimension with a
|
|
25473
25655
|
* name that contains invalid characters.
|
|
25474
25656
|
*/
|
|
@@ -25478,7 +25660,6 @@ export class CustomDimensionNameError extends Error {
|
|
|
25478
25660
|
}
|
|
25479
25661
|
|
|
25480
25662
|
/**
|
|
25481
|
-
* @rc
|
|
25482
25663
|
* Thrown after using the /reload command when trying to
|
|
25483
25664
|
* register a custom dimension that was not previously
|
|
25484
25665
|
* registered. New custom dimensions cannot be added during a
|
|
@@ -25613,7 +25794,6 @@ export class InvalidStructureError extends Error {
|
|
|
25613
25794
|
}
|
|
25614
25795
|
|
|
25615
25796
|
/**
|
|
25616
|
-
* @rc
|
|
25617
25797
|
* Error thrown when attempting to perform operations on an
|
|
25618
25798
|
* invalid waypoint. A waypoint becomes invalid when it is
|
|
25619
25799
|
* removed or when the entity it tracks is no longer valid.
|
|
@@ -25623,9 +25803,6 @@ export class InvalidWaypointError extends Error {
|
|
|
25623
25803
|
private constructor();
|
|
25624
25804
|
}
|
|
25625
25805
|
|
|
25626
|
-
/**
|
|
25627
|
-
* @rc
|
|
25628
|
-
*/
|
|
25629
25806
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
25630
25807
|
export class InvalidWaypointTextureSelectorError extends Error {
|
|
25631
25808
|
private constructor();
|
|
@@ -25688,7 +25865,6 @@ export class LocationOutOfWorldBoundariesError extends Error {
|
|
|
25688
25865
|
}
|
|
25689
25866
|
|
|
25690
25867
|
/**
|
|
25691
|
-
* @rc
|
|
25692
25868
|
* Error thrown when a locator bar operation fails. Contains a
|
|
25693
25869
|
* reason code indicating the specific cause of the error.
|
|
25694
25870
|
*/
|
|
@@ -25726,9 +25902,6 @@ export class PlaceJigsawError extends Error {
|
|
|
25726
25902
|
private constructor();
|
|
25727
25903
|
}
|
|
25728
25904
|
|
|
25729
|
-
/**
|
|
25730
|
-
* @rc
|
|
25731
|
-
*/
|
|
25732
25905
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
25733
25906
|
export class PrimitiveShapeError extends Error {
|
|
25734
25907
|
private constructor();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.9.0-rc.1.26.40-preview.
|
|
3
|
+
"version": "2.9.0-rc.1.26.40-preview.29",
|
|
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.29"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|