@minecraft/server 2.10.0-beta.1.26.40-preview.23 → 2.10.0-beta.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 +36 -79
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -864,7 +864,6 @@ export enum EntityComponentTypes {
|
|
|
864
864
|
Color2 = 'minecraft:color2',
|
|
865
865
|
CursorInventory = 'minecraft:cursor_inventory',
|
|
866
866
|
/**
|
|
867
|
-
* @rc
|
|
868
867
|
* @remarks
|
|
869
868
|
* Represents this entity's ender inventory properties.
|
|
870
869
|
*
|
|
@@ -1530,7 +1529,6 @@ export enum EntityHealCause {
|
|
|
1530
1529
|
*/
|
|
1531
1530
|
SelfHeal = 'SelfHeal',
|
|
1532
1531
|
/**
|
|
1533
|
-
* @rc
|
|
1534
1532
|
* @remarks
|
|
1535
1533
|
* Healing caused when Totem of Undying is activated.
|
|
1536
1534
|
*
|
|
@@ -2377,7 +2375,6 @@ export enum LiquidType {
|
|
|
2377
2375
|
}
|
|
2378
2376
|
|
|
2379
2377
|
/**
|
|
2380
|
-
* @rc
|
|
2381
2378
|
* Enum representing the different reasons why a locator bar
|
|
2382
2379
|
* operation may fail.
|
|
2383
2380
|
*/
|
|
@@ -3112,7 +3109,6 @@ export enum WatchdogTerminateReason {
|
|
|
3112
3109
|
}
|
|
3113
3110
|
|
|
3114
3111
|
/**
|
|
3115
|
-
* @rc
|
|
3116
3112
|
* Enum representing different texture icons that can be
|
|
3117
3113
|
* displayed for waypoints on the locator bar.
|
|
3118
3114
|
*/
|
|
@@ -4858,7 +4854,6 @@ export class BlockComponentBlockBreakEvent extends BlockEvent {
|
|
|
4858
4854
|
}
|
|
4859
4855
|
|
|
4860
4856
|
/**
|
|
4861
|
-
* @rc
|
|
4862
4857
|
* Contains information regarding a specific block permutation
|
|
4863
4858
|
* that was changed from a previous permutation.
|
|
4864
4859
|
*/
|
|
@@ -5128,7 +5123,6 @@ export class BlockComponentTickEvent extends BlockEvent {
|
|
|
5128
5123
|
}
|
|
5129
5124
|
|
|
5130
5125
|
/**
|
|
5131
|
-
* @rc
|
|
5132
5126
|
* Contains information regarding a specific container block
|
|
5133
5127
|
* being closed.
|
|
5134
5128
|
*/
|
|
@@ -5146,7 +5140,6 @@ export class BlockContainerClosedAfterEvent extends BlockEvent {
|
|
|
5146
5140
|
}
|
|
5147
5141
|
|
|
5148
5142
|
/**
|
|
5149
|
-
* @rc
|
|
5150
5143
|
* Manages callbacks that are connected to when a block
|
|
5151
5144
|
* container is closed.
|
|
5152
5145
|
*/
|
|
@@ -5180,7 +5173,6 @@ export class BlockContainerClosedAfterEventSignal {
|
|
|
5180
5173
|
}
|
|
5181
5174
|
|
|
5182
5175
|
/**
|
|
5183
|
-
* @rc
|
|
5184
5176
|
* Contains information regarding a specific container block
|
|
5185
5177
|
* being opened.
|
|
5186
5178
|
*/
|
|
@@ -5198,7 +5190,6 @@ export class BlockContainerOpenedAfterEvent extends BlockEvent {
|
|
|
5198
5190
|
}
|
|
5199
5191
|
|
|
5200
5192
|
/**
|
|
5201
|
-
* @rc
|
|
5202
5193
|
* Manages callbacks that are connected to when a block
|
|
5203
5194
|
* container is opened.
|
|
5204
5195
|
*/
|
|
@@ -5243,9 +5234,8 @@ export class BlockCustomComponentInstance extends BlockComponent {
|
|
|
5243
5234
|
/**
|
|
5244
5235
|
* @beta
|
|
5245
5236
|
* Represents the dynamic properties of a block in the world.
|
|
5246
|
-
* Only available with block entities. Up to
|
|
5247
|
-
*
|
|
5248
|
-
* storage.
|
|
5237
|
+
* Only available with block entities. Up to 1KB per content
|
|
5238
|
+
* pack, per block entity in their dynamic properties storage.
|
|
5249
5239
|
* @example rememberPlayerInteraction.ts
|
|
5250
5240
|
* ```typescript
|
|
5251
5241
|
* import { system } from '@minecraft/server-wrapper';
|
|
@@ -5309,7 +5299,8 @@ export class BlockDynamicPropertiesComponent extends BlockComponent {
|
|
|
5309
5299
|
* set dynamic properties for other content packs. Values can
|
|
5310
5300
|
* be either a Number, a String or a Vector3. Setting a
|
|
5311
5301
|
* property with an undefined value will remove it from the
|
|
5312
|
-
* storage.
|
|
5302
|
+
* storage. Storage size usage is counted towards the 1KBytes
|
|
5303
|
+
* limit per content pack.
|
|
5313
5304
|
*
|
|
5314
5305
|
* This function can't be called in restricted-execution mode.
|
|
5315
5306
|
*
|
|
@@ -5327,7 +5318,9 @@ export class BlockDynamicPropertiesComponent extends BlockComponent {
|
|
|
5327
5318
|
/**
|
|
5328
5319
|
* @remarks
|
|
5329
5320
|
* Returns the current size, in bytes, of the dynamic
|
|
5330
|
-
* properties storage for this block entity.
|
|
5321
|
+
* properties storage for this block entity. The byte count
|
|
5322
|
+
* only accounts for properties set by your content pack. The
|
|
5323
|
+
* 1KBytes limit is per content pack.
|
|
5331
5324
|
*
|
|
5332
5325
|
* @throws This function can throw errors.
|
|
5333
5326
|
*
|
|
@@ -5987,7 +5980,6 @@ export class BlockPrecipitationInteractionsComponent extends BlockComponent {
|
|
|
5987
5980
|
*/
|
|
5988
5981
|
accumulatesSnow(): boolean;
|
|
5989
5982
|
/**
|
|
5990
|
-
* @rc
|
|
5991
5983
|
* @remarks
|
|
5992
5984
|
* Returns `true` if this block can have snow within it, like a
|
|
5993
5985
|
* flower submerged in snow. Returns `false` if this block
|
|
@@ -7063,7 +7055,6 @@ export class ChatSendBeforeEventSignal {
|
|
|
7063
7055
|
export class ClientSystemInfo extends SystemInfo {
|
|
7064
7056
|
private constructor();
|
|
7065
7057
|
/**
|
|
7066
|
-
* @rc
|
|
7067
7058
|
* @remarks
|
|
7068
7059
|
* The locale selected by the client (e.g., en_US, fr_FR,
|
|
7069
7060
|
* ja_JP). Note that in most cases, server scripts should not
|
|
@@ -9267,7 +9258,6 @@ export class Dimension {
|
|
|
9267
9258
|
}
|
|
9268
9259
|
|
|
9269
9260
|
/**
|
|
9270
|
-
* @rc
|
|
9271
9261
|
* Provides the functionality for registering custom
|
|
9272
9262
|
* dimensions. Custom dimensions can only be registered during
|
|
9273
9263
|
* the system startup event.
|
|
@@ -9816,7 +9806,6 @@ export class Entity {
|
|
|
9816
9806
|
*/
|
|
9817
9807
|
readonly location: Vector3;
|
|
9818
9808
|
/**
|
|
9819
|
-
* @rc
|
|
9820
9809
|
* @remarks
|
|
9821
9810
|
* Boolean which determines if the player nameplate should be
|
|
9822
9811
|
* depth tested for visibility.
|
|
@@ -9826,7 +9815,6 @@ export class Entity {
|
|
|
9826
9815
|
*/
|
|
9827
9816
|
nameplateDepthTested: boolean;
|
|
9828
9817
|
/**
|
|
9829
|
-
* @rc
|
|
9830
9818
|
* @remarks
|
|
9831
9819
|
* Float that determines the render distance of this entity's
|
|
9832
9820
|
* nameplate.
|
|
@@ -11284,7 +11272,6 @@ export class EntityComponent extends Component {
|
|
|
11284
11272
|
}
|
|
11285
11273
|
|
|
11286
11274
|
/**
|
|
11287
|
-
* @rc
|
|
11288
11275
|
* Contains information regarding a specific entity container
|
|
11289
11276
|
* being closed.
|
|
11290
11277
|
*/
|
|
@@ -11300,7 +11287,6 @@ export class EntityContainerClosedAfterEvent {
|
|
|
11300
11287
|
}
|
|
11301
11288
|
|
|
11302
11289
|
/**
|
|
11303
|
-
* @rc
|
|
11304
11290
|
* Manages callbacks that are connected to when an entity
|
|
11305
11291
|
* container is closed.
|
|
11306
11292
|
*/
|
|
@@ -11334,7 +11320,6 @@ export class EntityContainerClosedAfterEventSignal {
|
|
|
11334
11320
|
}
|
|
11335
11321
|
|
|
11336
11322
|
/**
|
|
11337
|
-
* @rc
|
|
11338
11323
|
* Contains information regarding a specific entity container
|
|
11339
11324
|
* being opened.
|
|
11340
11325
|
*/
|
|
@@ -11350,7 +11335,6 @@ export class EntityContainerOpenedAfterEvent {
|
|
|
11350
11335
|
}
|
|
11351
11336
|
|
|
11352
11337
|
/**
|
|
11353
|
-
* @rc
|
|
11354
11338
|
* Manages callbacks that are connected to when an entity
|
|
11355
11339
|
* container is opened.
|
|
11356
11340
|
*/
|
|
@@ -11477,7 +11461,6 @@ export class EntityDieAfterEventSignal {
|
|
|
11477
11461
|
}
|
|
11478
11462
|
|
|
11479
11463
|
/**
|
|
11480
|
-
* @rc
|
|
11481
11464
|
* Represents this entity's ender inventory properties. This
|
|
11482
11465
|
* component is always present on players and any items in its
|
|
11483
11466
|
* container will display for the player when they access an
|
|
@@ -14227,7 +14210,6 @@ export class EntityUnderwaterMovementComponent extends EntityAttributeComponent
|
|
|
14227
14210
|
}
|
|
14228
14211
|
|
|
14229
14212
|
/**
|
|
14230
|
-
* @rc
|
|
14231
14213
|
* Contains information related to firing of a data driven
|
|
14232
14214
|
* entity version upgrade.
|
|
14233
14215
|
*/
|
|
@@ -14255,7 +14237,6 @@ export class EntityUpgradeAfterEvent {
|
|
|
14255
14237
|
}
|
|
14256
14238
|
|
|
14257
14239
|
/**
|
|
14258
|
-
* @rc
|
|
14259
14240
|
* Contains event registration related to firing of a data
|
|
14260
14241
|
* driven entity version upgrade.
|
|
14261
14242
|
*/
|
|
@@ -14317,7 +14298,6 @@ export class EntityWantsJockeyComponent extends EntityComponent {
|
|
|
14317
14298
|
}
|
|
14318
14299
|
|
|
14319
14300
|
/**
|
|
14320
|
-
* @rc
|
|
14321
14301
|
* Waypoint that tracks an entity's position. The waypoint
|
|
14322
14302
|
* automatically updates as the entity moves and becomes
|
|
14323
14303
|
* invalid when the entity is removed.
|
|
@@ -15094,7 +15074,8 @@ export class ISerializable {
|
|
|
15094
15074
|
* @beta
|
|
15095
15075
|
* Represents the dynamic properties of a block. Only available
|
|
15096
15076
|
* from block entities. Up to 1KBytes of data can be stored per
|
|
15097
|
-
* block entity in their dynamic properties
|
|
15077
|
+
* content pack per block entity in their dynamic properties
|
|
15078
|
+
* storage.
|
|
15098
15079
|
*/
|
|
15099
15080
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15100
15081
|
export class ItemBlockDynamicPropertiesComponent extends ItemComponent {
|
|
@@ -15114,10 +15095,29 @@ export class ItemBlockDynamicPropertiesComponent extends ItemComponent {
|
|
|
15114
15095
|
* {@link InvalidItemStackError}
|
|
15115
15096
|
*/
|
|
15116
15097
|
get(key: string): boolean | number | string | Vector3 | undefined;
|
|
15098
|
+
/**
|
|
15099
|
+
* @remarks
|
|
15100
|
+
* Sets a dynamic property with the provided key and value.
|
|
15101
|
+
* Keys are unique to each content pack and cannot be used to
|
|
15102
|
+
* set dynamic properties for other content packs. Values can
|
|
15103
|
+
* be either a Number, a String or a Vector3. Setting a
|
|
15104
|
+
* property with an undefined value will remove it from the
|
|
15105
|
+
* storage. Storage size usage is counted towards the 1KBytes
|
|
15106
|
+
* limit per content pack.
|
|
15107
|
+
*
|
|
15108
|
+
* @throws This function can throw errors.
|
|
15109
|
+
*
|
|
15110
|
+
* {@link Error}
|
|
15111
|
+
*
|
|
15112
|
+
* {@link InvalidItemStackError}
|
|
15113
|
+
*/
|
|
15114
|
+
set(key: string, value?: boolean | number | string | Vector3): void;
|
|
15117
15115
|
/**
|
|
15118
15116
|
* @remarks
|
|
15119
15117
|
* Returns the current size, in bytes, of the dynamic
|
|
15120
|
-
* properties storage for this block.
|
|
15118
|
+
* properties storage for this block. The byte count only
|
|
15119
|
+
* accounts for properties set by your content pack. The
|
|
15120
|
+
* 1KBytes limit is per content pack.
|
|
15121
15121
|
*
|
|
15122
15122
|
* @throws This function can throw errors.
|
|
15123
15123
|
*
|
|
@@ -17291,7 +17291,6 @@ export class ListBlockVolume extends BlockVolumeBase {
|
|
|
17291
17291
|
}
|
|
17292
17292
|
|
|
17293
17293
|
/**
|
|
17294
|
-
* @rc
|
|
17295
17294
|
* Waypoint that points to a fixed location in the world.
|
|
17296
17295
|
* Unlike entity waypoints, location waypoints always remain
|
|
17297
17296
|
* valid and their position can be updated.
|
|
@@ -17319,7 +17318,6 @@ export class LocationWaypoint extends Waypoint {
|
|
|
17319
17318
|
}
|
|
17320
17319
|
|
|
17321
17320
|
/**
|
|
17322
|
-
* @rc
|
|
17323
17321
|
* Manages the collection of waypoints displayed on a player's
|
|
17324
17322
|
* locator bar. Allows adding, removing, and querying waypoints
|
|
17325
17323
|
* with a maximum capacity limit.
|
|
@@ -18285,7 +18283,6 @@ export class Player extends Entity {
|
|
|
18285
18283
|
*/
|
|
18286
18284
|
readonly level: number;
|
|
18287
18285
|
/**
|
|
18288
|
-
* @rc
|
|
18289
18286
|
* @remarks
|
|
18290
18287
|
* The player's Locator Bar. This property is used for managing
|
|
18291
18288
|
* waypoints displayed on the HUD.
|
|
@@ -19096,7 +19093,7 @@ export class PlayerButtonInputAfterEventSignal {
|
|
|
19096
19093
|
}
|
|
19097
19094
|
|
|
19098
19095
|
/**
|
|
19099
|
-
* @
|
|
19096
|
+
* @rc
|
|
19100
19097
|
* Contains information regarding an event after a player
|
|
19101
19098
|
* cancels breaking a block.
|
|
19102
19099
|
*/
|
|
@@ -19139,7 +19136,7 @@ export class PlayerCancelBreakingBlockAfterEvent extends BlockEvent {
|
|
|
19139
19136
|
}
|
|
19140
19137
|
|
|
19141
19138
|
/**
|
|
19142
|
-
* @
|
|
19139
|
+
* @rc
|
|
19143
19140
|
* Manages callbacks that are connected to when a player
|
|
19144
19141
|
* cancels breaking a block.
|
|
19145
19142
|
*/
|
|
@@ -20360,7 +20357,7 @@ export class PlayerSpawnAfterEventSignal {
|
|
|
20360
20357
|
}
|
|
20361
20358
|
|
|
20362
20359
|
/**
|
|
20363
|
-
* @
|
|
20360
|
+
* @rc
|
|
20364
20361
|
* Contains information regarding an event after a player
|
|
20365
20362
|
* starts breaking a block.
|
|
20366
20363
|
*/
|
|
@@ -20396,7 +20393,7 @@ export class PlayerStartBreakingBlockAfterEvent extends BlockEvent {
|
|
|
20396
20393
|
}
|
|
20397
20394
|
|
|
20398
20395
|
/**
|
|
20399
|
-
* @
|
|
20396
|
+
* @rc
|
|
20400
20397
|
* Manages callbacks that are connected to when a player starts
|
|
20401
20398
|
* breaking a block.
|
|
20402
20399
|
*/
|
|
@@ -20568,7 +20565,6 @@ export class PlayerUseNameTagAfterEventSignal {
|
|
|
20568
20565
|
}
|
|
20569
20566
|
|
|
20570
20567
|
/**
|
|
20571
|
-
* @rc
|
|
20572
20568
|
* Waypoint that tracks a player's position. Extends {@link
|
|
20573
20569
|
* EntityWaypoint} with additional player-specific visibility
|
|
20574
20570
|
* rules such as hidden state and spectator mode.
|
|
@@ -20802,7 +20798,6 @@ export class PressurePlatePushAfterEventSignal {
|
|
|
20802
20798
|
}
|
|
20803
20799
|
|
|
20804
20800
|
/**
|
|
20805
|
-
* @rc
|
|
20806
20801
|
* The base class for a text primitive. Represents an object in
|
|
20807
20802
|
* the world and its base properties.
|
|
20808
20803
|
*/
|
|
@@ -20906,7 +20901,6 @@ export class PrimitiveShape {
|
|
|
20906
20901
|
}
|
|
20907
20902
|
|
|
20908
20903
|
/**
|
|
20909
|
-
* @rc
|
|
20910
20904
|
* Primitive Shapes class used to allow adding and removing
|
|
20911
20905
|
* text primitives to the world.
|
|
20912
20906
|
*/
|
|
@@ -22469,7 +22463,6 @@ export class StartupEvent {
|
|
|
22469
22463
|
*/
|
|
22470
22464
|
readonly customCommandRegistry: CustomCommandRegistry;
|
|
22471
22465
|
/**
|
|
22472
|
-
* @rc
|
|
22473
22466
|
* @remarks
|
|
22474
22467
|
* This property can be read in early-execution mode.
|
|
22475
22468
|
*
|
|
@@ -22725,7 +22718,6 @@ export class StructureManager {
|
|
|
22725
22718
|
*/
|
|
22726
22719
|
get(identifier: string): Structure | undefined;
|
|
22727
22720
|
/**
|
|
22728
|
-
* @rc
|
|
22729
22721
|
* @remarks
|
|
22730
22722
|
* Returns a list of all structures contained in behavior
|
|
22731
22723
|
* packs. Does not include structures saved to the world or in
|
|
@@ -23225,7 +23217,6 @@ export class TargetBlockHitAfterEventSignal {
|
|
|
23225
23217
|
}
|
|
23226
23218
|
|
|
23227
23219
|
/**
|
|
23228
|
-
* @rc
|
|
23229
23220
|
* A primitive shape class that represents a text label in the
|
|
23230
23221
|
* world with a background.
|
|
23231
23222
|
*/
|
|
@@ -23598,7 +23589,6 @@ export class WatchdogTerminateBeforeEventSignal {
|
|
|
23598
23589
|
}
|
|
23599
23590
|
|
|
23600
23591
|
/**
|
|
23601
|
-
* @rc
|
|
23602
23592
|
* Base class for waypoints displayed on the player's locator
|
|
23603
23593
|
* bar. Waypoints can track locations or entities and are
|
|
23604
23594
|
* rendered with customizable textures and colors.
|
|
@@ -23867,7 +23857,6 @@ export class World {
|
|
|
23867
23857
|
readonly gameRules: GameRules;
|
|
23868
23858
|
readonly isHardcore: boolean;
|
|
23869
23859
|
/**
|
|
23870
|
-
* @rc
|
|
23871
23860
|
* @remarks
|
|
23872
23861
|
* Manager for adding and removing primitive text objects in
|
|
23873
23862
|
* the world.
|
|
@@ -24108,7 +24097,6 @@ export class World {
|
|
|
24108
24097
|
*/
|
|
24109
24098
|
getMoonPhase(): MoonPhase;
|
|
24110
24099
|
/**
|
|
24111
|
-
* @rc
|
|
24112
24100
|
* @remarks
|
|
24113
24101
|
* Returns a map of pack setting name and value pairs.
|
|
24114
24102
|
*
|
|
@@ -24371,7 +24359,6 @@ export class World {
|
|
|
24371
24359
|
export class WorldAfterEvents {
|
|
24372
24360
|
private constructor();
|
|
24373
24361
|
/**
|
|
24374
|
-
* @rc
|
|
24375
24362
|
* @remarks
|
|
24376
24363
|
* This event fires when a block container is closed.
|
|
24377
24364
|
*
|
|
@@ -24380,7 +24367,6 @@ export class WorldAfterEvents {
|
|
|
24380
24367
|
*/
|
|
24381
24368
|
readonly blockContainerClosed: BlockContainerClosedAfterEventSignal;
|
|
24382
24369
|
/**
|
|
24383
|
-
* @rc
|
|
24384
24370
|
* @remarks
|
|
24385
24371
|
* This event fires when a block container is opened.
|
|
24386
24372
|
*
|
|
@@ -24436,7 +24422,6 @@ export class WorldAfterEvents {
|
|
|
24436
24422
|
*/
|
|
24437
24423
|
readonly effectAdd: EffectAddAfterEventSignal;
|
|
24438
24424
|
/**
|
|
24439
|
-
* @rc
|
|
24440
24425
|
* @remarks
|
|
24441
24426
|
* This event fires when an entity container is closed.
|
|
24442
24427
|
*
|
|
@@ -24445,7 +24430,6 @@ export class WorldAfterEvents {
|
|
|
24445
24430
|
*/
|
|
24446
24431
|
readonly entityContainerClosed: EntityContainerClosedAfterEventSignal;
|
|
24447
24432
|
/**
|
|
24448
|
-
* @rc
|
|
24449
24433
|
* @remarks
|
|
24450
24434
|
* This event fires when an entity container is opened.
|
|
24451
24435
|
*
|
|
@@ -24570,7 +24554,6 @@ export class WorldAfterEvents {
|
|
|
24570
24554
|
*/
|
|
24571
24555
|
readonly entityTamed: EntityTamedAfterEventSignal;
|
|
24572
24556
|
/**
|
|
24573
|
-
* @rc
|
|
24574
24557
|
* @remarks
|
|
24575
24558
|
* This property can be read in early-execution mode.
|
|
24576
24559
|
*
|
|
@@ -24710,7 +24693,7 @@ export class WorldAfterEvents {
|
|
|
24710
24693
|
*/
|
|
24711
24694
|
readonly playerButtonInput: PlayerButtonInputAfterEventSignal;
|
|
24712
24695
|
/**
|
|
24713
|
-
* @
|
|
24696
|
+
* @rc
|
|
24714
24697
|
* @remarks
|
|
24715
24698
|
* This event fires when a player cancels breaking a block.
|
|
24716
24699
|
*
|
|
@@ -24824,7 +24807,7 @@ export class WorldAfterEvents {
|
|
|
24824
24807
|
*/
|
|
24825
24808
|
readonly playerSpawn: PlayerSpawnAfterEventSignal;
|
|
24826
24809
|
/**
|
|
24827
|
-
* @
|
|
24810
|
+
* @rc
|
|
24828
24811
|
* @remarks
|
|
24829
24812
|
* This event fires when a player starts breaking a block.
|
|
24830
24813
|
*
|
|
@@ -25206,7 +25189,6 @@ export interface BlockBoundingBox {
|
|
|
25206
25189
|
}
|
|
25207
25190
|
|
|
25208
25191
|
/**
|
|
25209
|
-
* @rc
|
|
25210
25192
|
* Options used to filter block container access events.
|
|
25211
25193
|
*/
|
|
25212
25194
|
export interface BlockContainerAccessEventOptions {
|
|
@@ -25238,9 +25220,6 @@ export interface BlockCustomComponent {
|
|
|
25238
25220
|
*
|
|
25239
25221
|
*/
|
|
25240
25222
|
beforeOnPlayerPlace?: (arg0: BlockComponentPlayerPlaceBeforeEvent, arg1: CustomComponentParameters) => void;
|
|
25241
|
-
/**
|
|
25242
|
-
* @rc
|
|
25243
|
-
*/
|
|
25244
25223
|
onBlockStateChange?: (arg0: BlockComponentBlockStateChangeEvent, arg1: CustomComponentParameters) => void;
|
|
25245
25224
|
/**
|
|
25246
25225
|
* @remarks
|
|
@@ -25736,7 +25715,6 @@ export interface CompoundBlockVolumeItem {
|
|
|
25736
25715
|
}
|
|
25737
25716
|
|
|
25738
25717
|
/**
|
|
25739
|
-
* @rc
|
|
25740
25718
|
* Represents the source of a container access.
|
|
25741
25719
|
*/
|
|
25742
25720
|
export interface ContainerAccessSource {
|
|
@@ -25749,7 +25727,6 @@ export interface ContainerAccessSource {
|
|
|
25749
25727
|
}
|
|
25750
25728
|
|
|
25751
25729
|
/**
|
|
25752
|
-
* @rc
|
|
25753
25730
|
* Options for use when filtering container access sources.
|
|
25754
25731
|
*/
|
|
25755
25732
|
export interface ContainerAccessSourceFilter {
|
|
@@ -25888,9 +25865,6 @@ export interface CustomCommandResult {
|
|
|
25888
25865
|
status: CustomCommandStatus;
|
|
25889
25866
|
}
|
|
25890
25867
|
|
|
25891
|
-
/**
|
|
25892
|
-
* @rc
|
|
25893
|
-
*/
|
|
25894
25868
|
export interface CustomTexture {
|
|
25895
25869
|
/**
|
|
25896
25870
|
* @remarks
|
|
@@ -26053,7 +26027,6 @@ export interface EntityApplyDamageOptions {
|
|
|
26053
26027
|
}
|
|
26054
26028
|
|
|
26055
26029
|
/**
|
|
26056
|
-
* @rc
|
|
26057
26030
|
* Options used to filter entity container access events.
|
|
26058
26031
|
*/
|
|
26059
26032
|
export interface EntityContainerAccessEventOptions {
|
|
@@ -26764,7 +26737,6 @@ export interface EntityTamedEventFilter {
|
|
|
26764
26737
|
}
|
|
26765
26738
|
|
|
26766
26739
|
/**
|
|
26767
|
-
* @rc
|
|
26768
26740
|
* Controls when a waypoint is visible based on the state of
|
|
26769
26741
|
* the entity it tracks. These rules allow filtering waypoint
|
|
26770
26742
|
* visibility by entity conditions like sneaking, invisibility,
|
|
@@ -27270,7 +27242,7 @@ export interface PlayerAimAssistSettings {
|
|
|
27270
27242
|
}
|
|
27271
27243
|
|
|
27272
27244
|
/**
|
|
27273
|
-
* @
|
|
27245
|
+
* @rc
|
|
27274
27246
|
* An interface that is passed into {@link
|
|
27275
27247
|
* PlayerStartBreakingBlockAfterEventSignal.subscribe} or
|
|
27276
27248
|
* {@link PlayerCancelBreakingBlockAfterEventSignal.subscribe}
|
|
@@ -27360,7 +27332,6 @@ export interface PlayerSwingEventOptions {
|
|
|
27360
27332
|
}
|
|
27361
27333
|
|
|
27362
27334
|
/**
|
|
27363
|
-
* @rc
|
|
27364
27335
|
* Controls when a waypoint is visible based on player-specific
|
|
27365
27336
|
* states. Extends {@link EntityVisibilityRules} with
|
|
27366
27337
|
* additional rules for player-only states like hidden mode and
|
|
@@ -28089,7 +28060,6 @@ export interface VectorXZ {
|
|
|
28089
28060
|
}
|
|
28090
28061
|
|
|
28091
28062
|
/**
|
|
28092
|
-
* @rc
|
|
28093
28063
|
* Defines a texture and the distance range in which it should
|
|
28094
28064
|
* be displayed. Used within a {@link WaypointTextureSelector}
|
|
28095
28065
|
* to create distance-based texture switching.
|
|
@@ -28124,7 +28094,6 @@ export interface WaypointTextureBounds {
|
|
|
28124
28094
|
}
|
|
28125
28095
|
|
|
28126
28096
|
/**
|
|
28127
|
-
* @rc
|
|
28128
28097
|
* Defines how waypoint textures change based on distance.
|
|
28129
28098
|
* Contains a list of texture bounds that determine which
|
|
28130
28099
|
* texture is displayed at different distance ranges.
|
|
@@ -28291,7 +28260,6 @@ export class CustomComponentNameError extends Error {
|
|
|
28291
28260
|
}
|
|
28292
28261
|
|
|
28293
28262
|
/**
|
|
28294
|
-
* @rc
|
|
28295
28263
|
* Thrown when trying to register a custom dimension with a
|
|
28296
28264
|
* name that has already been registered.
|
|
28297
28265
|
*/
|
|
@@ -28301,7 +28269,6 @@ export class CustomDimensionAlreadyRegisteredError extends Error {
|
|
|
28301
28269
|
}
|
|
28302
28270
|
|
|
28303
28271
|
/**
|
|
28304
|
-
* @rc
|
|
28305
28272
|
* Thrown when trying to register a custom dimension outside of
|
|
28306
28273
|
* the system startup event.
|
|
28307
28274
|
*/
|
|
@@ -28311,7 +28278,6 @@ export class CustomDimensionInvalidRegistryError extends Error {
|
|
|
28311
28278
|
}
|
|
28312
28279
|
|
|
28313
28280
|
/**
|
|
28314
|
-
* @rc
|
|
28315
28281
|
* Thrown when trying to register a custom dimension with a
|
|
28316
28282
|
* name that contains invalid characters.
|
|
28317
28283
|
*/
|
|
@@ -28321,7 +28287,6 @@ export class CustomDimensionNameError extends Error {
|
|
|
28321
28287
|
}
|
|
28322
28288
|
|
|
28323
28289
|
/**
|
|
28324
|
-
* @rc
|
|
28325
28290
|
* Thrown after using the /reload command when trying to
|
|
28326
28291
|
* register a custom dimension that was not previously
|
|
28327
28292
|
* registered. New custom dimensions cannot be added during a
|
|
@@ -28467,7 +28432,6 @@ export class InvalidStructureError extends Error {
|
|
|
28467
28432
|
}
|
|
28468
28433
|
|
|
28469
28434
|
/**
|
|
28470
|
-
* @rc
|
|
28471
28435
|
* Error thrown when attempting to perform operations on an
|
|
28472
28436
|
* invalid waypoint. A waypoint becomes invalid when it is
|
|
28473
28437
|
* removed or when the entity it tracks is no longer valid.
|
|
@@ -28477,9 +28441,6 @@ export class InvalidWaypointError extends Error {
|
|
|
28477
28441
|
private constructor();
|
|
28478
28442
|
}
|
|
28479
28443
|
|
|
28480
|
-
/**
|
|
28481
|
-
* @rc
|
|
28482
|
-
*/
|
|
28483
28444
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
28484
28445
|
export class InvalidWaypointTextureSelectorError extends Error {
|
|
28485
28446
|
private constructor();
|
|
@@ -28542,7 +28503,6 @@ export class LocationOutOfWorldBoundariesError extends Error {
|
|
|
28542
28503
|
}
|
|
28543
28504
|
|
|
28544
28505
|
/**
|
|
28545
|
-
* @rc
|
|
28546
28506
|
* Error thrown when a locator bar operation fails. Contains a
|
|
28547
28507
|
* reason code indicating the specific cause of the error.
|
|
28548
28508
|
*/
|
|
@@ -28580,9 +28540,6 @@ export class PlaceJigsawError extends Error {
|
|
|
28580
28540
|
private constructor();
|
|
28581
28541
|
}
|
|
28582
28542
|
|
|
28583
|
-
/**
|
|
28584
|
-
* @rc
|
|
28585
|
-
*/
|
|
28586
28543
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
28587
28544
|
export class PrimitiveShapeError extends Error {
|
|
28588
28545
|
private constructor();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.10.0-beta.1.26.40-preview.
|
|
3
|
+
"version": "2.10.0-beta.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
|
}
|