@minecraft/server 2.9.0-rc.1.26.40-preview.23 → 2.9.0-rc.1.26.40-preview.26
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 +192 -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
|
|
@@ -8082,7 +8071,6 @@ export class Dimension {
|
|
|
8082
8071
|
}
|
|
8083
8072
|
|
|
8084
8073
|
/**
|
|
8085
|
-
* @rc
|
|
8086
8074
|
* Provides the functionality for registering custom
|
|
8087
8075
|
* dimensions. Custom dimensions can only be registered during
|
|
8088
8076
|
* the system startup event.
|
|
@@ -8631,7 +8619,6 @@ export class Entity {
|
|
|
8631
8619
|
*/
|
|
8632
8620
|
readonly location: Vector3;
|
|
8633
8621
|
/**
|
|
8634
|
-
* @rc
|
|
8635
8622
|
* @remarks
|
|
8636
8623
|
* Boolean which determines if the player nameplate should be
|
|
8637
8624
|
* depth tested for visibility.
|
|
@@ -8641,7 +8628,6 @@ export class Entity {
|
|
|
8641
8628
|
*/
|
|
8642
8629
|
nameplateDepthTested: boolean;
|
|
8643
8630
|
/**
|
|
8644
|
-
* @rc
|
|
8645
8631
|
* @remarks
|
|
8646
8632
|
* Float that determines the render distance of this entity's
|
|
8647
8633
|
* nameplate.
|
|
@@ -10067,7 +10053,6 @@ export class EntityComponent extends Component {
|
|
|
10067
10053
|
}
|
|
10068
10054
|
|
|
10069
10055
|
/**
|
|
10070
|
-
* @rc
|
|
10071
10056
|
* Contains information regarding a specific entity container
|
|
10072
10057
|
* being closed.
|
|
10073
10058
|
*/
|
|
@@ -10083,7 +10068,6 @@ export class EntityContainerClosedAfterEvent {
|
|
|
10083
10068
|
}
|
|
10084
10069
|
|
|
10085
10070
|
/**
|
|
10086
|
-
* @rc
|
|
10087
10071
|
* Manages callbacks that are connected to when an entity
|
|
10088
10072
|
* container is closed.
|
|
10089
10073
|
*/
|
|
@@ -10117,7 +10101,6 @@ export class EntityContainerClosedAfterEventSignal {
|
|
|
10117
10101
|
}
|
|
10118
10102
|
|
|
10119
10103
|
/**
|
|
10120
|
-
* @rc
|
|
10121
10104
|
* Contains information regarding a specific entity container
|
|
10122
10105
|
* being opened.
|
|
10123
10106
|
*/
|
|
@@ -10133,7 +10116,6 @@ export class EntityContainerOpenedAfterEvent {
|
|
|
10133
10116
|
}
|
|
10134
10117
|
|
|
10135
10118
|
/**
|
|
10136
|
-
* @rc
|
|
10137
10119
|
* Manages callbacks that are connected to when an entity
|
|
10138
10120
|
* container is opened.
|
|
10139
10121
|
*/
|
|
@@ -10260,7 +10242,6 @@ export class EntityDieAfterEventSignal {
|
|
|
10260
10242
|
}
|
|
10261
10243
|
|
|
10262
10244
|
/**
|
|
10263
|
-
* @rc
|
|
10264
10245
|
* Represents this entity's ender inventory properties. This
|
|
10265
10246
|
* component is always present on players and any items in its
|
|
10266
10247
|
* container will display for the player when they access an
|
|
@@ -12779,7 +12760,6 @@ export class EntityUnderwaterMovementComponent extends EntityAttributeComponent
|
|
|
12779
12760
|
}
|
|
12780
12761
|
|
|
12781
12762
|
/**
|
|
12782
|
-
* @rc
|
|
12783
12763
|
* Contains information related to firing of a data driven
|
|
12784
12764
|
* entity version upgrade.
|
|
12785
12765
|
*/
|
|
@@ -12807,7 +12787,6 @@ export class EntityUpgradeAfterEvent {
|
|
|
12807
12787
|
}
|
|
12808
12788
|
|
|
12809
12789
|
/**
|
|
12810
|
-
* @rc
|
|
12811
12790
|
* Contains event registration related to firing of a data
|
|
12812
12791
|
* driven entity version upgrade.
|
|
12813
12792
|
*/
|
|
@@ -12869,7 +12848,6 @@ export class EntityWantsJockeyComponent extends EntityComponent {
|
|
|
12869
12848
|
}
|
|
12870
12849
|
|
|
12871
12850
|
/**
|
|
12872
|
-
* @rc
|
|
12873
12851
|
* Waypoint that tracks an entity's position. The waypoint
|
|
12874
12852
|
* automatically updates as the entity moves and becomes
|
|
12875
12853
|
* invalid when the entity is removed.
|
|
@@ -15668,7 +15646,6 @@ export class ListBlockVolume extends BlockVolumeBase {
|
|
|
15668
15646
|
}
|
|
15669
15647
|
|
|
15670
15648
|
/**
|
|
15671
|
-
* @rc
|
|
15672
15649
|
* Waypoint that points to a fixed location in the world.
|
|
15673
15650
|
* Unlike entity waypoints, location waypoints always remain
|
|
15674
15651
|
* valid and their position can be updated.
|
|
@@ -15696,7 +15673,6 @@ export class LocationWaypoint extends Waypoint {
|
|
|
15696
15673
|
}
|
|
15697
15674
|
|
|
15698
15675
|
/**
|
|
15699
|
-
* @rc
|
|
15700
15676
|
* Manages the collection of waypoints displayed on a player's
|
|
15701
15677
|
* locator bar. Allows adding, removing, and querying waypoints
|
|
15702
15678
|
* with a maximum capacity limit.
|
|
@@ -16524,7 +16500,6 @@ export class Player extends Entity {
|
|
|
16524
16500
|
*/
|
|
16525
16501
|
readonly level: number;
|
|
16526
16502
|
/**
|
|
16527
|
-
* @rc
|
|
16528
16503
|
* @remarks
|
|
16529
16504
|
* The player's Locator Bar. This property is used for managing
|
|
16530
16505
|
* waypoints displayed on the HUD.
|
|
@@ -17241,6 +17216,83 @@ export class PlayerButtonInputAfterEventSignal {
|
|
|
17241
17216
|
unsubscribe(callback: (arg0: PlayerButtonInputAfterEvent) => void): void;
|
|
17242
17217
|
}
|
|
17243
17218
|
|
|
17219
|
+
/**
|
|
17220
|
+
* @rc
|
|
17221
|
+
* Contains information regarding an event after a player
|
|
17222
|
+
* cancels breaking a block.
|
|
17223
|
+
*/
|
|
17224
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17225
|
+
export class PlayerCancelBreakingBlockAfterEvent extends BlockEvent {
|
|
17226
|
+
private constructor();
|
|
17227
|
+
/**
|
|
17228
|
+
* @remarks
|
|
17229
|
+
* The permutation of the block that the player cancelled
|
|
17230
|
+
* breaking.
|
|
17231
|
+
*
|
|
17232
|
+
*/
|
|
17233
|
+
readonly blockPermutation: BlockPermutation;
|
|
17234
|
+
/**
|
|
17235
|
+
* @remarks
|
|
17236
|
+
* The progress of breaking the block when the player cancelled
|
|
17237
|
+
* in the exclusive range (0, 1).
|
|
17238
|
+
*
|
|
17239
|
+
*/
|
|
17240
|
+
readonly breakProgress: number;
|
|
17241
|
+
/**
|
|
17242
|
+
* @remarks
|
|
17243
|
+
* The face of the block that was being broken.
|
|
17244
|
+
*
|
|
17245
|
+
*/
|
|
17246
|
+
readonly face: Direction;
|
|
17247
|
+
/**
|
|
17248
|
+
* @remarks
|
|
17249
|
+
* The item stack that the player was using to break the block,
|
|
17250
|
+
* or undefined if empty hand.
|
|
17251
|
+
*
|
|
17252
|
+
*/
|
|
17253
|
+
readonly heldItemStack?: ItemStack;
|
|
17254
|
+
/**
|
|
17255
|
+
* @remarks
|
|
17256
|
+
* Player that cancelled breaking the block for this event.
|
|
17257
|
+
*
|
|
17258
|
+
*/
|
|
17259
|
+
readonly player: Player;
|
|
17260
|
+
}
|
|
17261
|
+
|
|
17262
|
+
/**
|
|
17263
|
+
* @rc
|
|
17264
|
+
* Manages callbacks that are connected to when a player
|
|
17265
|
+
* cancels breaking a block.
|
|
17266
|
+
*/
|
|
17267
|
+
export class PlayerCancelBreakingBlockAfterEventSignal {
|
|
17268
|
+
private constructor();
|
|
17269
|
+
/**
|
|
17270
|
+
* @remarks
|
|
17271
|
+
* Adds a callback that will be called when a player cancels
|
|
17272
|
+
* breaking a block.
|
|
17273
|
+
*
|
|
17274
|
+
* This function can't be called in restricted-execution mode.
|
|
17275
|
+
*
|
|
17276
|
+
* This function can be called in early-execution mode.
|
|
17277
|
+
*
|
|
17278
|
+
*/
|
|
17279
|
+
subscribe(
|
|
17280
|
+
callback: (arg0: PlayerCancelBreakingBlockAfterEvent) => void,
|
|
17281
|
+
options?: PlayerBreakingBlockEventOptions,
|
|
17282
|
+
): (arg0: PlayerCancelBreakingBlockAfterEvent) => void;
|
|
17283
|
+
/**
|
|
17284
|
+
* @remarks
|
|
17285
|
+
* Removes a callback from being called when a player cancels
|
|
17286
|
+
* breaking a block.
|
|
17287
|
+
*
|
|
17288
|
+
* This function can't be called in restricted-execution mode.
|
|
17289
|
+
*
|
|
17290
|
+
* This function can be called in early-execution mode.
|
|
17291
|
+
*
|
|
17292
|
+
*/
|
|
17293
|
+
unsubscribe(callback: (arg0: PlayerCancelBreakingBlockAfterEvent) => void): void;
|
|
17294
|
+
}
|
|
17295
|
+
|
|
17244
17296
|
/**
|
|
17245
17297
|
* Represents the players cursor inventory. Used when moving
|
|
17246
17298
|
* items between between containers in the inventory UI. Not
|
|
@@ -18346,6 +18398,76 @@ export class PlayerSpawnAfterEventSignal {
|
|
|
18346
18398
|
unsubscribe(callback: (arg0: PlayerSpawnAfterEvent) => void): void;
|
|
18347
18399
|
}
|
|
18348
18400
|
|
|
18401
|
+
/**
|
|
18402
|
+
* @rc
|
|
18403
|
+
* Contains information regarding an event after a player
|
|
18404
|
+
* starts breaking a block.
|
|
18405
|
+
*/
|
|
18406
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
18407
|
+
export class PlayerStartBreakingBlockAfterEvent extends BlockEvent {
|
|
18408
|
+
private constructor();
|
|
18409
|
+
/**
|
|
18410
|
+
* @remarks
|
|
18411
|
+
* The permutation of the block that the player is starting to
|
|
18412
|
+
* break.
|
|
18413
|
+
*
|
|
18414
|
+
*/
|
|
18415
|
+
readonly blockPermutation: BlockPermutation;
|
|
18416
|
+
/**
|
|
18417
|
+
* @remarks
|
|
18418
|
+
* The face of the block being broken.
|
|
18419
|
+
*
|
|
18420
|
+
*/
|
|
18421
|
+
readonly face: Direction;
|
|
18422
|
+
/**
|
|
18423
|
+
* @remarks
|
|
18424
|
+
* The item stack that the player is using to break the block,
|
|
18425
|
+
* or undefined if empty hand.
|
|
18426
|
+
*
|
|
18427
|
+
*/
|
|
18428
|
+
readonly heldItemStack?: ItemStack;
|
|
18429
|
+
/**
|
|
18430
|
+
* @remarks
|
|
18431
|
+
* Player that started breaking the block for this event.
|
|
18432
|
+
*
|
|
18433
|
+
*/
|
|
18434
|
+
readonly player: Player;
|
|
18435
|
+
}
|
|
18436
|
+
|
|
18437
|
+
/**
|
|
18438
|
+
* @rc
|
|
18439
|
+
* Manages callbacks that are connected to when a player starts
|
|
18440
|
+
* breaking a block.
|
|
18441
|
+
*/
|
|
18442
|
+
export class PlayerStartBreakingBlockAfterEventSignal {
|
|
18443
|
+
private constructor();
|
|
18444
|
+
/**
|
|
18445
|
+
* @remarks
|
|
18446
|
+
* Adds a callback that will be called when a player starts
|
|
18447
|
+
* breaking a block.
|
|
18448
|
+
*
|
|
18449
|
+
* This function can't be called in restricted-execution mode.
|
|
18450
|
+
*
|
|
18451
|
+
* This function can be called in early-execution mode.
|
|
18452
|
+
*
|
|
18453
|
+
*/
|
|
18454
|
+
subscribe(
|
|
18455
|
+
callback: (arg0: PlayerStartBreakingBlockAfterEvent) => void,
|
|
18456
|
+
options?: PlayerBreakingBlockEventOptions,
|
|
18457
|
+
): (arg0: PlayerStartBreakingBlockAfterEvent) => void;
|
|
18458
|
+
/**
|
|
18459
|
+
* @remarks
|
|
18460
|
+
* Removes a callback from being called when a player starts
|
|
18461
|
+
* breaking a block.
|
|
18462
|
+
*
|
|
18463
|
+
* This function can't be called in restricted-execution mode.
|
|
18464
|
+
*
|
|
18465
|
+
* This function can be called in early-execution mode.
|
|
18466
|
+
*
|
|
18467
|
+
*/
|
|
18468
|
+
unsubscribe(callback: (arg0: PlayerStartBreakingBlockAfterEvent) => void): void;
|
|
18469
|
+
}
|
|
18470
|
+
|
|
18349
18471
|
/**
|
|
18350
18472
|
* Contains information regarding a player starting to swing
|
|
18351
18473
|
* their arm.
|
|
@@ -18411,7 +18533,6 @@ export class PlayerSwingStartAfterEventSignal {
|
|
|
18411
18533
|
}
|
|
18412
18534
|
|
|
18413
18535
|
/**
|
|
18414
|
-
* @rc
|
|
18415
18536
|
* Waypoint that tracks a player's position. Extends {@link
|
|
18416
18537
|
* EntityWaypoint} with additional player-specific visibility
|
|
18417
18538
|
* rules such as hidden state and spectator mode.
|
|
@@ -18645,7 +18766,6 @@ export class PressurePlatePushAfterEventSignal {
|
|
|
18645
18766
|
}
|
|
18646
18767
|
|
|
18647
18768
|
/**
|
|
18648
|
-
* @rc
|
|
18649
18769
|
* The base class for a text primitive. Represents an object in
|
|
18650
18770
|
* the world and its base properties.
|
|
18651
18771
|
*/
|
|
@@ -18749,7 +18869,6 @@ export class PrimitiveShape {
|
|
|
18749
18869
|
}
|
|
18750
18870
|
|
|
18751
18871
|
/**
|
|
18752
|
-
* @rc
|
|
18753
18872
|
* Primitive Shapes class used to allow adding and removing
|
|
18754
18873
|
* text primitives to the world.
|
|
18755
18874
|
*/
|
|
@@ -20083,7 +20202,6 @@ export class StartupEvent {
|
|
|
20083
20202
|
*/
|
|
20084
20203
|
readonly customCommandRegistry: CustomCommandRegistry;
|
|
20085
20204
|
/**
|
|
20086
|
-
* @rc
|
|
20087
20205
|
* @remarks
|
|
20088
20206
|
* This property can be read in early-execution mode.
|
|
20089
20207
|
*
|
|
@@ -20339,7 +20457,6 @@ export class StructureManager {
|
|
|
20339
20457
|
*/
|
|
20340
20458
|
get(identifier: string): Structure | undefined;
|
|
20341
20459
|
/**
|
|
20342
|
-
* @rc
|
|
20343
20460
|
* @remarks
|
|
20344
20461
|
* Returns a list of all structures contained in behavior
|
|
20345
20462
|
* packs. Does not include structures saved to the world or in
|
|
@@ -20826,7 +20943,6 @@ export class TargetBlockHitAfterEventSignal {
|
|
|
20826
20943
|
}
|
|
20827
20944
|
|
|
20828
20945
|
/**
|
|
20829
|
-
* @rc
|
|
20830
20946
|
* A primitive shape class that represents a text label in the
|
|
20831
20947
|
* world with a background.
|
|
20832
20948
|
*/
|
|
@@ -21134,7 +21250,6 @@ export class TripWireTripAfterEventSignal {
|
|
|
21134
21250
|
}
|
|
21135
21251
|
|
|
21136
21252
|
/**
|
|
21137
|
-
* @rc
|
|
21138
21253
|
* Base class for waypoints displayed on the player's locator
|
|
21139
21254
|
* bar. Waypoints can track locations or entities and are
|
|
21140
21255
|
* rendered with customizable textures and colors.
|
|
@@ -21394,7 +21509,6 @@ export class World {
|
|
|
21394
21509
|
readonly gameRules: GameRules;
|
|
21395
21510
|
readonly isHardcore: boolean;
|
|
21396
21511
|
/**
|
|
21397
|
-
* @rc
|
|
21398
21512
|
* @remarks
|
|
21399
21513
|
* Manager for adding and removing primitive text objects in
|
|
21400
21514
|
* the world.
|
|
@@ -21621,7 +21735,6 @@ export class World {
|
|
|
21621
21735
|
*/
|
|
21622
21736
|
getMoonPhase(): MoonPhase;
|
|
21623
21737
|
/**
|
|
21624
|
-
* @rc
|
|
21625
21738
|
* @remarks
|
|
21626
21739
|
* Returns a map of pack setting name and value pairs.
|
|
21627
21740
|
*
|
|
@@ -21884,7 +21997,6 @@ export class World {
|
|
|
21884
21997
|
export class WorldAfterEvents {
|
|
21885
21998
|
private constructor();
|
|
21886
21999
|
/**
|
|
21887
|
-
* @rc
|
|
21888
22000
|
* @remarks
|
|
21889
22001
|
* This event fires when a block container is closed.
|
|
21890
22002
|
*
|
|
@@ -21893,7 +22005,6 @@ export class WorldAfterEvents {
|
|
|
21893
22005
|
*/
|
|
21894
22006
|
readonly blockContainerClosed: BlockContainerClosedAfterEventSignal;
|
|
21895
22007
|
/**
|
|
21896
|
-
* @rc
|
|
21897
22008
|
* @remarks
|
|
21898
22009
|
* This event fires when a block container is opened.
|
|
21899
22010
|
*
|
|
@@ -21939,7 +22050,6 @@ export class WorldAfterEvents {
|
|
|
21939
22050
|
*/
|
|
21940
22051
|
readonly effectAdd: EffectAddAfterEventSignal;
|
|
21941
22052
|
/**
|
|
21942
|
-
* @rc
|
|
21943
22053
|
* @remarks
|
|
21944
22054
|
* This event fires when an entity container is closed.
|
|
21945
22055
|
*
|
|
@@ -21948,7 +22058,6 @@ export class WorldAfterEvents {
|
|
|
21948
22058
|
*/
|
|
21949
22059
|
readonly entityContainerClosed: EntityContainerClosedAfterEventSignal;
|
|
21950
22060
|
/**
|
|
21951
|
-
* @rc
|
|
21952
22061
|
* @remarks
|
|
21953
22062
|
* This event fires when an entity container is opened.
|
|
21954
22063
|
*
|
|
@@ -22046,7 +22155,6 @@ export class WorldAfterEvents {
|
|
|
22046
22155
|
*/
|
|
22047
22156
|
readonly entitySpawn: EntitySpawnAfterEventSignal;
|
|
22048
22157
|
/**
|
|
22049
|
-
* @rc
|
|
22050
22158
|
* @remarks
|
|
22051
22159
|
* This property can be read in early-execution mode.
|
|
22052
22160
|
*
|
|
@@ -22166,6 +22274,15 @@ export class WorldAfterEvents {
|
|
|
22166
22274
|
*
|
|
22167
22275
|
*/
|
|
22168
22276
|
readonly playerButtonInput: PlayerButtonInputAfterEventSignal;
|
|
22277
|
+
/**
|
|
22278
|
+
* @rc
|
|
22279
|
+
* @remarks
|
|
22280
|
+
* This event fires when a player cancels breaking a block.
|
|
22281
|
+
*
|
|
22282
|
+
* This property can be read in early-execution mode.
|
|
22283
|
+
*
|
|
22284
|
+
*/
|
|
22285
|
+
readonly playerCancelBreakingBlock: PlayerCancelBreakingBlockAfterEventSignal;
|
|
22169
22286
|
/**
|
|
22170
22287
|
* @remarks
|
|
22171
22288
|
* Fires when a player moved to a different dimension.
|
|
@@ -22271,6 +22388,15 @@ export class WorldAfterEvents {
|
|
|
22271
22388
|
*
|
|
22272
22389
|
*/
|
|
22273
22390
|
readonly playerSpawn: PlayerSpawnAfterEventSignal;
|
|
22391
|
+
/**
|
|
22392
|
+
* @rc
|
|
22393
|
+
* @remarks
|
|
22394
|
+
* This event fires when a player starts breaking a block.
|
|
22395
|
+
*
|
|
22396
|
+
* This property can be read in early-execution mode.
|
|
22397
|
+
*
|
|
22398
|
+
*/
|
|
22399
|
+
readonly playerStartBreakingBlock: PlayerStartBreakingBlockAfterEventSignal;
|
|
22274
22400
|
/**
|
|
22275
22401
|
* @remarks
|
|
22276
22402
|
* This property can be read in early-execution mode.
|
|
@@ -22557,7 +22683,6 @@ export interface BlockBoundingBox {
|
|
|
22557
22683
|
}
|
|
22558
22684
|
|
|
22559
22685
|
/**
|
|
22560
|
-
* @rc
|
|
22561
22686
|
* Options used to filter block container access events.
|
|
22562
22687
|
*/
|
|
22563
22688
|
export interface BlockContainerAccessEventOptions {
|
|
@@ -22589,9 +22714,6 @@ export interface BlockCustomComponent {
|
|
|
22589
22714
|
*
|
|
22590
22715
|
*/
|
|
22591
22716
|
beforeOnPlayerPlace?: (arg0: BlockComponentPlayerPlaceBeforeEvent, arg1: CustomComponentParameters) => void;
|
|
22592
|
-
/**
|
|
22593
|
-
* @rc
|
|
22594
|
-
*/
|
|
22595
22717
|
onBlockStateChange?: (arg0: BlockComponentBlockStateChangeEvent, arg1: CustomComponentParameters) => void;
|
|
22596
22718
|
/**
|
|
22597
22719
|
* @remarks
|
|
@@ -22981,7 +23103,6 @@ export interface CameraTargetOptions {
|
|
|
22981
23103
|
}
|
|
22982
23104
|
|
|
22983
23105
|
/**
|
|
22984
|
-
* @rc
|
|
22985
23106
|
* Represents the source of a container access.
|
|
22986
23107
|
*/
|
|
22987
23108
|
export interface ContainerAccessSource {
|
|
@@ -22994,7 +23115,6 @@ export interface ContainerAccessSource {
|
|
|
22994
23115
|
}
|
|
22995
23116
|
|
|
22996
23117
|
/**
|
|
22997
|
-
* @rc
|
|
22998
23118
|
* Options for use when filtering container access sources.
|
|
22999
23119
|
*/
|
|
23000
23120
|
export interface ContainerAccessSourceFilter {
|
|
@@ -23124,9 +23244,6 @@ export interface CustomCommandResult {
|
|
|
23124
23244
|
status: CustomCommandStatus;
|
|
23125
23245
|
}
|
|
23126
23246
|
|
|
23127
|
-
/**
|
|
23128
|
-
* @rc
|
|
23129
|
-
*/
|
|
23130
23247
|
export interface CustomTexture {
|
|
23131
23248
|
/**
|
|
23132
23249
|
* @remarks
|
|
@@ -23281,7 +23398,6 @@ export interface EntityApplyDamageOptions {
|
|
|
23281
23398
|
}
|
|
23282
23399
|
|
|
23283
23400
|
/**
|
|
23284
|
-
* @rc
|
|
23285
23401
|
* Options used to filter entity container access events.
|
|
23286
23402
|
*/
|
|
23287
23403
|
export interface EntityContainerAccessEventOptions {
|
|
@@ -23974,7 +24090,6 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
23974
24090
|
}
|
|
23975
24091
|
|
|
23976
24092
|
/**
|
|
23977
|
-
* @rc
|
|
23978
24093
|
* Controls when a waypoint is visible based on the state of
|
|
23979
24094
|
* the entity it tracks. These rules allow filtering waypoint
|
|
23980
24095
|
* visibility by entity conditions like sneaking, invisibility,
|
|
@@ -24479,6 +24594,33 @@ export interface PlayerAimAssistSettings {
|
|
|
24479
24594
|
viewAngle?: Vector2;
|
|
24480
24595
|
}
|
|
24481
24596
|
|
|
24597
|
+
/**
|
|
24598
|
+
* @rc
|
|
24599
|
+
* An interface that is passed into {@link
|
|
24600
|
+
* PlayerStartBreakingBlockAfterEventSignal.subscribe} or
|
|
24601
|
+
* {@link PlayerCancelBreakingBlockAfterEventSignal.subscribe}
|
|
24602
|
+
* that filters out which events are passed to the provided
|
|
24603
|
+
* callback.
|
|
24604
|
+
*/
|
|
24605
|
+
export interface PlayerBreakingBlockEventOptions {
|
|
24606
|
+
/**
|
|
24607
|
+
* @remarks
|
|
24608
|
+
* The {@link BlockFilter} that the callback should be called
|
|
24609
|
+
* for. If undefined, the callback will be called for all
|
|
24610
|
+
* blocks.
|
|
24611
|
+
*
|
|
24612
|
+
*/
|
|
24613
|
+
blockFilter?: BlockFilter;
|
|
24614
|
+
/**
|
|
24615
|
+
* @remarks
|
|
24616
|
+
* The {@link EntityFilter} that the callback should be called
|
|
24617
|
+
* for. If undefined, the callback will be called for all
|
|
24618
|
+
* players.
|
|
24619
|
+
*
|
|
24620
|
+
*/
|
|
24621
|
+
playerFilter?: EntityFilter;
|
|
24622
|
+
}
|
|
24623
|
+
|
|
24482
24624
|
/**
|
|
24483
24625
|
* Additional options for how a sound plays for a player.
|
|
24484
24626
|
*/
|
|
@@ -24530,7 +24672,6 @@ export interface PlayerSwingEventOptions {
|
|
|
24530
24672
|
}
|
|
24531
24673
|
|
|
24532
24674
|
/**
|
|
24533
|
-
* @rc
|
|
24534
24675
|
* Controls when a waypoint is visible based on player-specific
|
|
24535
24676
|
* states. Extends {@link EntityVisibilityRules} with
|
|
24536
24677
|
* additional rules for player-only states like hidden mode and
|
|
@@ -25259,7 +25400,6 @@ export interface VectorXZ {
|
|
|
25259
25400
|
}
|
|
25260
25401
|
|
|
25261
25402
|
/**
|
|
25262
|
-
* @rc
|
|
25263
25403
|
* Defines a texture and the distance range in which it should
|
|
25264
25404
|
* be displayed. Used within a {@link WaypointTextureSelector}
|
|
25265
25405
|
* to create distance-based texture switching.
|
|
@@ -25294,7 +25434,6 @@ export interface WaypointTextureBounds {
|
|
|
25294
25434
|
}
|
|
25295
25435
|
|
|
25296
25436
|
/**
|
|
25297
|
-
* @rc
|
|
25298
25437
|
* Defines how waypoint textures change based on distance.
|
|
25299
25438
|
* Contains a list of texture bounds that determine which
|
|
25300
25439
|
* texture is displayed at different distance ranges.
|
|
@@ -25448,7 +25587,6 @@ export class CustomComponentNameError extends Error {
|
|
|
25448
25587
|
}
|
|
25449
25588
|
|
|
25450
25589
|
/**
|
|
25451
|
-
* @rc
|
|
25452
25590
|
* Thrown when trying to register a custom dimension with a
|
|
25453
25591
|
* name that has already been registered.
|
|
25454
25592
|
*/
|
|
@@ -25458,7 +25596,6 @@ export class CustomDimensionAlreadyRegisteredError extends Error {
|
|
|
25458
25596
|
}
|
|
25459
25597
|
|
|
25460
25598
|
/**
|
|
25461
|
-
* @rc
|
|
25462
25599
|
* Thrown when trying to register a custom dimension outside of
|
|
25463
25600
|
* the system startup event.
|
|
25464
25601
|
*/
|
|
@@ -25468,7 +25605,6 @@ export class CustomDimensionInvalidRegistryError extends Error {
|
|
|
25468
25605
|
}
|
|
25469
25606
|
|
|
25470
25607
|
/**
|
|
25471
|
-
* @rc
|
|
25472
25608
|
* Thrown when trying to register a custom dimension with a
|
|
25473
25609
|
* name that contains invalid characters.
|
|
25474
25610
|
*/
|
|
@@ -25478,7 +25614,6 @@ export class CustomDimensionNameError extends Error {
|
|
|
25478
25614
|
}
|
|
25479
25615
|
|
|
25480
25616
|
/**
|
|
25481
|
-
* @rc
|
|
25482
25617
|
* Thrown after using the /reload command when trying to
|
|
25483
25618
|
* register a custom dimension that was not previously
|
|
25484
25619
|
* registered. New custom dimensions cannot be added during a
|
|
@@ -25613,7 +25748,6 @@ export class InvalidStructureError extends Error {
|
|
|
25613
25748
|
}
|
|
25614
25749
|
|
|
25615
25750
|
/**
|
|
25616
|
-
* @rc
|
|
25617
25751
|
* Error thrown when attempting to perform operations on an
|
|
25618
25752
|
* invalid waypoint. A waypoint becomes invalid when it is
|
|
25619
25753
|
* removed or when the entity it tracks is no longer valid.
|
|
@@ -25623,9 +25757,6 @@ export class InvalidWaypointError extends Error {
|
|
|
25623
25757
|
private constructor();
|
|
25624
25758
|
}
|
|
25625
25759
|
|
|
25626
|
-
/**
|
|
25627
|
-
* @rc
|
|
25628
|
-
*/
|
|
25629
25760
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
25630
25761
|
export class InvalidWaypointTextureSelectorError extends Error {
|
|
25631
25762
|
private constructor();
|
|
@@ -25688,7 +25819,6 @@ export class LocationOutOfWorldBoundariesError extends Error {
|
|
|
25688
25819
|
}
|
|
25689
25820
|
|
|
25690
25821
|
/**
|
|
25691
|
-
* @rc
|
|
25692
25822
|
* Error thrown when a locator bar operation fails. Contains a
|
|
25693
25823
|
* reason code indicating the specific cause of the error.
|
|
25694
25824
|
*/
|
|
@@ -25726,9 +25856,6 @@ export class PlaceJigsawError extends Error {
|
|
|
25726
25856
|
private constructor();
|
|
25727
25857
|
}
|
|
25728
25858
|
|
|
25729
|
-
/**
|
|
25730
|
-
* @rc
|
|
25731
|
-
*/
|
|
25732
25859
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
25733
25860
|
export class PrimitiveShapeError extends Error {
|
|
25734
25861
|
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.26",
|
|
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.26"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|