@minecraft/server 2.13.0-beta.1.26.70-preview.21 → 2.13.0-beta.1.26.70-preview.23
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 +482 -73
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Type definitions for Minecraft Bedrock Edition script APIs
|
|
2
|
-
// Project: https://
|
|
2
|
+
// Project: https://learn.microsoft.com/minecraft/creator/
|
|
3
3
|
// Definitions by: Jake Shirley <https://github.com/JakeShirley>
|
|
4
|
-
//
|
|
4
|
+
// Raphael Landaverde <https://github.com/rlandav>
|
|
5
5
|
|
|
6
6
|
/* *****************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
@@ -61,6 +61,14 @@ export enum BlockComponentTypes {
|
|
|
61
61
|
*
|
|
62
62
|
*/
|
|
63
63
|
Inventory = 'minecraft:inventory',
|
|
64
|
+
/**
|
|
65
|
+
* @beta
|
|
66
|
+
* @remarks
|
|
67
|
+
* Represents an item frame block and provides access to the
|
|
68
|
+
* item displayed in the frame.
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
ItemFrame = 'minecraft:item_frame',
|
|
64
72
|
/**
|
|
65
73
|
* @remarks
|
|
66
74
|
* Represents the color of a block when displayed on a map.
|
|
@@ -114,7 +122,7 @@ export enum BlockComponentTypes {
|
|
|
114
122
|
*/
|
|
115
123
|
Sign = 'minecraft:sign',
|
|
116
124
|
/**
|
|
117
|
-
* @
|
|
125
|
+
* @rc
|
|
118
126
|
*/
|
|
119
127
|
VibrationProperties = 'minecraft:vibration_properties',
|
|
120
128
|
}
|
|
@@ -2309,6 +2317,62 @@ export enum ItemComponentTypes {
|
|
|
2309
2317
|
Potion = 'minecraft:potion',
|
|
2310
2318
|
}
|
|
2311
2319
|
|
|
2320
|
+
/**
|
|
2321
|
+
* @beta
|
|
2322
|
+
* Specifies the rotation of the item displayed in an item
|
|
2323
|
+
* frame.
|
|
2324
|
+
*/
|
|
2325
|
+
export enum ItemFrameRotation {
|
|
2326
|
+
/**
|
|
2327
|
+
* @remarks
|
|
2328
|
+
* The displayed item is rotated 135 degrees clockwise.
|
|
2329
|
+
*
|
|
2330
|
+
*/
|
|
2331
|
+
Clockwise135 = 'Clockwise135',
|
|
2332
|
+
/**
|
|
2333
|
+
* @remarks
|
|
2334
|
+
* The displayed item is rotated 180 degrees clockwise.
|
|
2335
|
+
*
|
|
2336
|
+
*/
|
|
2337
|
+
Clockwise180 = 'Clockwise180',
|
|
2338
|
+
/**
|
|
2339
|
+
* @remarks
|
|
2340
|
+
* The displayed item is rotated 225 degrees clockwise.
|
|
2341
|
+
*
|
|
2342
|
+
*/
|
|
2343
|
+
Clockwise225 = 'Clockwise225',
|
|
2344
|
+
/**
|
|
2345
|
+
* @remarks
|
|
2346
|
+
* The displayed item is rotated 270 degrees clockwise.
|
|
2347
|
+
*
|
|
2348
|
+
*/
|
|
2349
|
+
Clockwise270 = 'Clockwise270',
|
|
2350
|
+
/**
|
|
2351
|
+
* @remarks
|
|
2352
|
+
* The displayed item is rotated 315 degrees clockwise.
|
|
2353
|
+
*
|
|
2354
|
+
*/
|
|
2355
|
+
Clockwise315 = 'Clockwise315',
|
|
2356
|
+
/**
|
|
2357
|
+
* @remarks
|
|
2358
|
+
* The displayed item is rotated 45 degrees clockwise.
|
|
2359
|
+
*
|
|
2360
|
+
*/
|
|
2361
|
+
Clockwise45 = 'Clockwise45',
|
|
2362
|
+
/**
|
|
2363
|
+
* @remarks
|
|
2364
|
+
* The displayed item is rotated 90 degrees clockwise.
|
|
2365
|
+
*
|
|
2366
|
+
*/
|
|
2367
|
+
Clockwise90 = 'Clockwise90',
|
|
2368
|
+
/**
|
|
2369
|
+
* @remarks
|
|
2370
|
+
* The displayed item has no additional rotation.
|
|
2371
|
+
*
|
|
2372
|
+
*/
|
|
2373
|
+
None = 'None',
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2312
2376
|
/**
|
|
2313
2377
|
* Describes how an an item can be moved within a container.
|
|
2314
2378
|
*/
|
|
@@ -2693,6 +2757,39 @@ export enum PlatformType {
|
|
|
2693
2757
|
Mobile = 'Mobile',
|
|
2694
2758
|
}
|
|
2695
2759
|
|
|
2760
|
+
/**
|
|
2761
|
+
* @beta
|
|
2762
|
+
* Describes what caused a player to change dimensions. Sent as
|
|
2763
|
+
* part of {@link PlayerDimensionChangeAfterEvent}.
|
|
2764
|
+
*/
|
|
2765
|
+
export enum PlayerDimensionChangeSource {
|
|
2766
|
+
/**
|
|
2767
|
+
* @remarks
|
|
2768
|
+
* The player respawned in another dimension after dying.
|
|
2769
|
+
*
|
|
2770
|
+
*/
|
|
2771
|
+
PlayerRespawn = 'PlayerRespawn',
|
|
2772
|
+
/**
|
|
2773
|
+
* @remarks
|
|
2774
|
+
* The player changed dimensions through a portal.
|
|
2775
|
+
*
|
|
2776
|
+
*/
|
|
2777
|
+
Portal = 'Portal',
|
|
2778
|
+
/**
|
|
2779
|
+
* @remarks
|
|
2780
|
+
* The player was teleported to another dimension by a command,
|
|
2781
|
+
* such as /tp or /execute, or by a script teleport.
|
|
2782
|
+
*
|
|
2783
|
+
*/
|
|
2784
|
+
TeleportCommand = 'TeleportCommand',
|
|
2785
|
+
/**
|
|
2786
|
+
* @remarks
|
|
2787
|
+
* The cause of the dimension change is not known.
|
|
2788
|
+
*
|
|
2789
|
+
*/
|
|
2790
|
+
Unknown = 'Unknown',
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2696
2793
|
/**
|
|
2697
2794
|
* Specifies the player inventory type.
|
|
2698
2795
|
*/
|
|
@@ -3219,12 +3316,14 @@ export type BlockComponentTypeMap = {
|
|
|
3219
3316
|
fluid_container: BlockFluidContainerComponent;
|
|
3220
3317
|
instrument_sound: BlockInstrumentComponent;
|
|
3221
3318
|
inventory: BlockInventoryComponent;
|
|
3319
|
+
item_frame: BlockItemFrameComponent;
|
|
3222
3320
|
map_color: BlockMapColorComponent;
|
|
3223
3321
|
'minecraft:dynamic_properties': BlockDynamicPropertiesComponent;
|
|
3224
3322
|
'minecraft:entity_storage': BlockEntityStorageComponent;
|
|
3225
3323
|
'minecraft:fluid_container': BlockFluidContainerComponent;
|
|
3226
3324
|
'minecraft:instrument_sound': BlockInstrumentComponent;
|
|
3227
3325
|
'minecraft:inventory': BlockInventoryComponent;
|
|
3326
|
+
'minecraft:item_frame': BlockItemFrameComponent;
|
|
3228
3327
|
'minecraft:map_color': BlockMapColorComponent;
|
|
3229
3328
|
'minecraft:movable': BlockMovableComponent;
|
|
3230
3329
|
'minecraft:piston': BlockPistonComponent;
|
|
@@ -4332,7 +4431,7 @@ export class Block {
|
|
|
4332
4431
|
*/
|
|
4333
4432
|
east(steps?: number): Block | undefined;
|
|
4334
4433
|
/**
|
|
4335
|
-
* @
|
|
4434
|
+
* @rc
|
|
4336
4435
|
* @remarks
|
|
4337
4436
|
* Returns the named tick events scheduled at this block by the
|
|
4338
4437
|
* calling script pack.
|
|
@@ -4459,7 +4558,7 @@ export class Block {
|
|
|
4459
4558
|
*/
|
|
4460
4559
|
getRedstonePower(): number | undefined;
|
|
4461
4560
|
/**
|
|
4462
|
-
* @
|
|
4561
|
+
* @rc
|
|
4463
4562
|
* @remarks
|
|
4464
4563
|
* Returns the number of named tick events scheduled at this
|
|
4465
4564
|
* block, regardless of which script pack scheduled them.
|
|
@@ -4520,7 +4619,7 @@ export class Block {
|
|
|
4520
4619
|
*/
|
|
4521
4620
|
hasComponent(componentId: string): boolean;
|
|
4522
4621
|
/**
|
|
4523
|
-
* @
|
|
4622
|
+
* @rc
|
|
4524
4623
|
* @throws This function can throw errors.
|
|
4525
4624
|
*
|
|
4526
4625
|
* {@link LocationInUnloadedChunkError}
|
|
@@ -4669,7 +4768,7 @@ export class Block {
|
|
|
4669
4768
|
*/
|
|
4670
4769
|
offset(offset: Vector3): Block | undefined;
|
|
4671
4770
|
/**
|
|
4672
|
-
* @
|
|
4771
|
+
* @rc
|
|
4673
4772
|
* @remarks
|
|
4674
4773
|
* Removes all scheduled named tick events from this block with
|
|
4675
4774
|
* the specified event name.
|
|
@@ -4686,7 +4785,7 @@ export class Block {
|
|
|
4686
4785
|
*/
|
|
4687
4786
|
removeScheduledNamedTicks(eventName: string): void;
|
|
4688
4787
|
/**
|
|
4689
|
-
* @
|
|
4788
|
+
* @rc
|
|
4690
4789
|
* @remarks
|
|
4691
4790
|
* Schedules a named tick event for this block. The event will
|
|
4692
4791
|
* be delivered to block custom components registered with the
|
|
@@ -5053,7 +5152,7 @@ export class BlockComponentEntityFallOnEvent extends BlockEvent {
|
|
|
5053
5152
|
}
|
|
5054
5153
|
|
|
5055
5154
|
/**
|
|
5056
|
-
* @
|
|
5155
|
+
* @rc
|
|
5057
5156
|
* Contains information regarding a named tick event for a
|
|
5058
5157
|
* specific block.
|
|
5059
5158
|
*/
|
|
@@ -5079,7 +5178,7 @@ export class BlockComponentNamedTickEvent extends BlockEvent {
|
|
|
5079
5178
|
}
|
|
5080
5179
|
|
|
5081
5180
|
/**
|
|
5082
|
-
* @
|
|
5181
|
+
* @rc
|
|
5083
5182
|
* Contains information regarding neighboring block changes for
|
|
5084
5183
|
* a specific block.
|
|
5085
5184
|
*/
|
|
@@ -5524,9 +5623,11 @@ export class BlockDynamicPropertiesComponent extends BlockComponent {
|
|
|
5524
5623
|
* pack definition enables entity storage with the
|
|
5525
5624
|
* `minecraft:block_entity` component. Stored entities are
|
|
5526
5625
|
* serialized and removed from the world until they are
|
|
5527
|
-
* released or
|
|
5528
|
-
*
|
|
5529
|
-
* accessing
|
|
5626
|
+
* released, transferred, or permanently removed. A block can
|
|
5627
|
+
* store up to four entities across all content packs. Entity
|
|
5628
|
+
* storage operations are scoped to the content pack accessing
|
|
5629
|
+
* it, except for totalSize, which counts entities across all
|
|
5630
|
+
* content packs.
|
|
5530
5631
|
*/
|
|
5531
5632
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5532
5633
|
export class BlockEntityStorageComponent extends BlockComponent {
|
|
@@ -5587,6 +5688,34 @@ export class BlockEntityStorageComponent extends BlockComponent {
|
|
|
5587
5688
|
* {@link LocationOutOfWorldBoundariesError}
|
|
5588
5689
|
*/
|
|
5589
5690
|
release(entityId: string): Entity;
|
|
5691
|
+
/**
|
|
5692
|
+
* @remarks
|
|
5693
|
+
* Permanently removes a stored entity from the current content
|
|
5694
|
+
* pack's storage without releasing it into the world. No
|
|
5695
|
+
* entity, experience, or item drops are spawned.
|
|
5696
|
+
*
|
|
5697
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
5698
|
+
*
|
|
5699
|
+
* @param entityId
|
|
5700
|
+
* The unique ID of an entity stored by the current content
|
|
5701
|
+
* pack. Use the value returned by
|
|
5702
|
+
* {@link BlockEntityStorageComponent.store} or the `uniqueId`
|
|
5703
|
+
* property from {@link BlockEntityStorageInfo}.
|
|
5704
|
+
* @throws
|
|
5705
|
+
* Throws if the entity ID is invalid or does not identify an
|
|
5706
|
+
* entity stored by the current content pack, if the block
|
|
5707
|
+
* entity is invalid, or if the block's location is not loaded
|
|
5708
|
+
* or is outside the world boundaries.
|
|
5709
|
+
*
|
|
5710
|
+
* {@link Error}
|
|
5711
|
+
*
|
|
5712
|
+
* {@link InvalidBlockComponentError}
|
|
5713
|
+
*
|
|
5714
|
+
* {@link LocationInUnloadedChunkError}
|
|
5715
|
+
*
|
|
5716
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
5717
|
+
*/
|
|
5718
|
+
remove(entityId: string): void;
|
|
5590
5719
|
/**
|
|
5591
5720
|
* @remarks
|
|
5592
5721
|
* Returns the number of entities stored in this block's entity
|
|
@@ -5635,6 +5764,26 @@ export class BlockEntityStorageComponent extends BlockComponent {
|
|
|
5635
5764
|
* {@link LocationOutOfWorldBoundariesError}
|
|
5636
5765
|
*/
|
|
5637
5766
|
store(entity: Entity): string;
|
|
5767
|
+
/**
|
|
5768
|
+
* @remarks
|
|
5769
|
+
* Returns the total number of entities stored in this block's
|
|
5770
|
+
* entity storage across all content packs.
|
|
5771
|
+
*
|
|
5772
|
+
* @returns
|
|
5773
|
+
* The number of stored entities across all content packs.
|
|
5774
|
+
* @throws
|
|
5775
|
+
* Throws if the block entity is invalid or the block's
|
|
5776
|
+
* location is not loaded or is outside the world boundaries.
|
|
5777
|
+
*
|
|
5778
|
+
* {@link Error}
|
|
5779
|
+
*
|
|
5780
|
+
* {@link InvalidBlockComponentError}
|
|
5781
|
+
*
|
|
5782
|
+
* {@link LocationInUnloadedChunkError}
|
|
5783
|
+
*
|
|
5784
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
5785
|
+
*/
|
|
5786
|
+
totalSize(): number;
|
|
5638
5787
|
/**
|
|
5639
5788
|
* @remarks
|
|
5640
5789
|
* Moves a stored entity from this block's entity storage to
|
|
@@ -5927,6 +6076,79 @@ export class BlockInventoryComponent extends BlockComponent {
|
|
|
5927
6076
|
static readonly componentId = 'minecraft:inventory';
|
|
5928
6077
|
}
|
|
5929
6078
|
|
|
6079
|
+
/**
|
|
6080
|
+
* @beta
|
|
6081
|
+
* Represents the frame holding an item of a block in the
|
|
6082
|
+
* world. You can replace the item, remove it, drop it into the
|
|
6083
|
+
* world, or get and set its rotation.
|
|
6084
|
+
*/
|
|
6085
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6086
|
+
export class BlockItemFrameComponent extends BlockComponent {
|
|
6087
|
+
private constructor();
|
|
6088
|
+
static readonly componentId = 'minecraft:item_frame';
|
|
6089
|
+
/**
|
|
6090
|
+
* @remarks
|
|
6091
|
+
* Removes the framed item and drops it into the world.
|
|
6092
|
+
*
|
|
6093
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
6094
|
+
*
|
|
6095
|
+
* @throws This function can throw errors.
|
|
6096
|
+
*
|
|
6097
|
+
* {@link InvalidBlockComponentError}
|
|
6098
|
+
*/
|
|
6099
|
+
dropFramedItem(): void;
|
|
6100
|
+
/**
|
|
6101
|
+
* @remarks
|
|
6102
|
+
* Gets the item stack currently displayed in the frame.
|
|
6103
|
+
*
|
|
6104
|
+
* @returns
|
|
6105
|
+
* The framed item stack, or undefined if the frame is empty.
|
|
6106
|
+
* @throws This function can throw errors.
|
|
6107
|
+
*
|
|
6108
|
+
* {@link InvalidBlockComponentError}
|
|
6109
|
+
*/
|
|
6110
|
+
getFramedItem(): ItemStack | undefined;
|
|
6111
|
+
/**
|
|
6112
|
+
* @remarks
|
|
6113
|
+
* Gets the current rotation of the item frame.
|
|
6114
|
+
*
|
|
6115
|
+
* @returns
|
|
6116
|
+
* The current {@link ItemFrameRotation} of the item frame.
|
|
6117
|
+
* @throws This function can throw errors.
|
|
6118
|
+
*
|
|
6119
|
+
* {@link InvalidBlockComponentError}
|
|
6120
|
+
*/
|
|
6121
|
+
getRotation(): ItemFrameRotation;
|
|
6122
|
+
/**
|
|
6123
|
+
* @remarks
|
|
6124
|
+
* Sets or replaces the item displayed in the frame. Pass
|
|
6125
|
+
* undefined to remove the item without dropping it.
|
|
6126
|
+
*
|
|
6127
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
6128
|
+
*
|
|
6129
|
+
* @param itemStack
|
|
6130
|
+
* The item stack to display in the frame, or undefined to
|
|
6131
|
+
* clear it without dropping it.
|
|
6132
|
+
* @throws This function can throw errors.
|
|
6133
|
+
*
|
|
6134
|
+
* {@link InvalidBlockComponentError}
|
|
6135
|
+
*/
|
|
6136
|
+
setFramedItem(itemStack?: ItemStack): void;
|
|
6137
|
+
/**
|
|
6138
|
+
* @remarks
|
|
6139
|
+
* Sets the rotation of the item frame.
|
|
6140
|
+
*
|
|
6141
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
6142
|
+
*
|
|
6143
|
+
* @param rotation
|
|
6144
|
+
* The {@link ItemFrameRotation} to apply to the item frame.
|
|
6145
|
+
* @throws This function can throw errors.
|
|
6146
|
+
*
|
|
6147
|
+
* {@link InvalidBlockComponentError}
|
|
6148
|
+
*/
|
|
6149
|
+
setRotation(rotation: ItemFrameRotation): void;
|
|
6150
|
+
}
|
|
6151
|
+
|
|
5930
6152
|
/**
|
|
5931
6153
|
* A BlockLocationIterator returns the next block location of
|
|
5932
6154
|
* the block volume across which it is iterating.
|
|
@@ -6918,7 +7140,7 @@ export class BlockTypes {
|
|
|
6918
7140
|
}
|
|
6919
7141
|
|
|
6920
7142
|
/**
|
|
6921
|
-
* @
|
|
7143
|
+
* @rc
|
|
6922
7144
|
* Represents the vibration properties of a block with a
|
|
6923
7145
|
* 'minecraft:vibration_properties' component.
|
|
6924
7146
|
*/
|
|
@@ -9559,7 +9781,6 @@ export class Dimension {
|
|
|
9559
9781
|
*/
|
|
9560
9782
|
spawnParticle(effectName: string, location: Vector3, molangVariables?: MolangVariableMap): void;
|
|
9561
9783
|
/**
|
|
9562
|
-
* @rc
|
|
9563
9784
|
* @remarks
|
|
9564
9785
|
* Spawns an experience orb at a specified location in the
|
|
9565
9786
|
* dimension.
|
|
@@ -12749,7 +12970,6 @@ export class EntityIsStunnedComponent extends EntityComponent {
|
|
|
12749
12970
|
export class EntityIsTamedComponent extends EntityComponent {
|
|
12750
12971
|
private constructor();
|
|
12751
12972
|
/**
|
|
12752
|
-
* @rc
|
|
12753
12973
|
* @remarks
|
|
12754
12974
|
* Returns the player that has tamed the entity, or 'undefined'
|
|
12755
12975
|
* if the entity has no player owner.
|
|
@@ -12760,7 +12980,6 @@ export class EntityIsTamedComponent extends EntityComponent {
|
|
|
12760
12980
|
*/
|
|
12761
12981
|
readonly tamedToPlayer?: Player;
|
|
12762
12982
|
/**
|
|
12763
|
-
* @rc
|
|
12764
12983
|
* @remarks
|
|
12765
12984
|
* Returns the id of the player that has tamed the entity, or
|
|
12766
12985
|
* 'undefined' if the entity has no player owner.
|
|
@@ -15547,10 +15766,13 @@ export class ItemBlockDynamicPropertiesComponent extends ItemComponent {
|
|
|
15547
15766
|
* @beta
|
|
15548
15767
|
* Stores serialized non-player mobs on an item stack. Each
|
|
15549
15768
|
* calling behavior pack can only access its manifest UUID
|
|
15550
|
-
* bucket
|
|
15551
|
-
*
|
|
15552
|
-
*
|
|
15553
|
-
*
|
|
15769
|
+
* bucket, except for totalSize, which counts entities across
|
|
15770
|
+
* all packs. All buckets share a four-entity limit. Stored
|
|
15771
|
+
* entities can be permanently removed without spawning them.
|
|
15772
|
+
* Available on item stacks even when empty. Destroying the
|
|
15773
|
+
* item discards its storage without spawning entities. Data is
|
|
15774
|
+
* compatible with entity-storage block carry-over and
|
|
15775
|
+
* placement.
|
|
15554
15776
|
*/
|
|
15555
15777
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15556
15778
|
export class ItemBlockEntityStorageComponent extends ItemComponent {
|
|
@@ -15603,6 +15825,27 @@ export class ItemBlockEntityStorageComponent extends ItemComponent {
|
|
|
15603
15825
|
* {@link LocationOutOfWorldBoundariesError}
|
|
15604
15826
|
*/
|
|
15605
15827
|
release(entityId: string, location: DimensionLocation): Entity;
|
|
15828
|
+
/**
|
|
15829
|
+
* @remarks
|
|
15830
|
+
* Permanently removes a stored entity from the calling pack's
|
|
15831
|
+
* bucket without releasing it into the world. No entity,
|
|
15832
|
+
* experience, or item drops are spawned. The removal is saved
|
|
15833
|
+
* to the item stack.
|
|
15834
|
+
*
|
|
15835
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
15836
|
+
*
|
|
15837
|
+
* @param entityId
|
|
15838
|
+
* A stored entity ID in the calling pack's bucket.
|
|
15839
|
+
* @throws
|
|
15840
|
+
* Throws if the item stack or entity ID is invalid, or the
|
|
15841
|
+
* entity is not stored by the calling pack. Failed removals
|
|
15842
|
+
* preserve serialized storage.
|
|
15843
|
+
*
|
|
15844
|
+
* {@link Error}
|
|
15845
|
+
*
|
|
15846
|
+
* {@link InvalidItemStackError}
|
|
15847
|
+
*/
|
|
15848
|
+
remove(entityId: string): void;
|
|
15606
15849
|
/**
|
|
15607
15850
|
* @remarks
|
|
15608
15851
|
* Returns the number of serialized entities in the calling
|
|
@@ -15644,6 +15887,21 @@ export class ItemBlockEntityStorageComponent extends ItemComponent {
|
|
|
15644
15887
|
* {@link InvalidItemStackError}
|
|
15645
15888
|
*/
|
|
15646
15889
|
store(entity: Entity): string;
|
|
15890
|
+
/**
|
|
15891
|
+
* @remarks
|
|
15892
|
+
* Returns the total number of entities stored on this item
|
|
15893
|
+
* stack across all content packs.
|
|
15894
|
+
*
|
|
15895
|
+
* @returns
|
|
15896
|
+
* The number of stored entities across all content packs.
|
|
15897
|
+
* @throws
|
|
15898
|
+
* Throws if the item stack is invalid.
|
|
15899
|
+
*
|
|
15900
|
+
* {@link Error}
|
|
15901
|
+
*
|
|
15902
|
+
* {@link InvalidItemStackError}
|
|
15903
|
+
*/
|
|
15904
|
+
totalSize(): number;
|
|
15647
15905
|
/**
|
|
15648
15906
|
* @remarks
|
|
15649
15907
|
* Moves serialized ownership from the calling pack's item
|
|
@@ -16131,6 +16389,34 @@ export class ItemComponentRegistry {
|
|
|
16131
16389
|
registerCustomComponent(name: string, itemCustomComponent: ItemCustomComponent): void;
|
|
16132
16390
|
}
|
|
16133
16391
|
|
|
16392
|
+
/**
|
|
16393
|
+
* @beta
|
|
16394
|
+
* Contains information about the release of an item being used
|
|
16395
|
+
* through a custom item component.
|
|
16396
|
+
*/
|
|
16397
|
+
export class ItemComponentReleaseUseEvent {
|
|
16398
|
+
private constructor();
|
|
16399
|
+
/**
|
|
16400
|
+
* @remarks
|
|
16401
|
+
* The item stack that was released.
|
|
16402
|
+
*
|
|
16403
|
+
*/
|
|
16404
|
+
readonly itemStack: ItemStack;
|
|
16405
|
+
/**
|
|
16406
|
+
* @remarks
|
|
16407
|
+
* The remaining use duration, in ticks, when the item was
|
|
16408
|
+
* released.
|
|
16409
|
+
*
|
|
16410
|
+
*/
|
|
16411
|
+
readonly remainingUseDuration: number;
|
|
16412
|
+
/**
|
|
16413
|
+
* @remarks
|
|
16414
|
+
* The player who released the item.
|
|
16415
|
+
*
|
|
16416
|
+
*/
|
|
16417
|
+
readonly source: Player;
|
|
16418
|
+
}
|
|
16419
|
+
|
|
16134
16420
|
/**
|
|
16135
16421
|
* Contains information regarding the use of an item.
|
|
16136
16422
|
*/
|
|
@@ -19943,6 +20229,14 @@ export class PlayerDimensionChangeAfterEvent {
|
|
|
19943
20229
|
*
|
|
19944
20230
|
*/
|
|
19945
20231
|
readonly player: Player;
|
|
20232
|
+
/**
|
|
20233
|
+
* @beta
|
|
20234
|
+
* @remarks
|
|
20235
|
+
* What caused the player to change dimensions, see
|
|
20236
|
+
* {@link PlayerDimensionChangeSource}.
|
|
20237
|
+
*
|
|
20238
|
+
*/
|
|
20239
|
+
readonly source: PlayerDimensionChangeSource;
|
|
19946
20240
|
/**
|
|
19947
20241
|
* @remarks
|
|
19948
20242
|
* The dimension that the player is changing to.
|
|
@@ -21697,6 +21991,63 @@ export class PoiManager {
|
|
|
21697
21991
|
readonly blocks: PoiBlockManager;
|
|
21698
21992
|
}
|
|
21699
21993
|
|
|
21994
|
+
/**
|
|
21995
|
+
* @beta
|
|
21996
|
+
* Contains information about a successfully activated Nether
|
|
21997
|
+
* portal, including its dimension, ignition location, and
|
|
21998
|
+
* initiating player (when known).
|
|
21999
|
+
*/
|
|
22000
|
+
export class PortalActivateAfterEvent {
|
|
22001
|
+
private constructor();
|
|
22002
|
+
/**
|
|
22003
|
+
* @remarks
|
|
22004
|
+
* The dimension in which the portal was activated, not its
|
|
22005
|
+
* destination dimension.
|
|
22006
|
+
*
|
|
22007
|
+
*/
|
|
22008
|
+
readonly dimension: Dimension;
|
|
22009
|
+
/**
|
|
22010
|
+
* @remarks
|
|
22011
|
+
* The coordinates of the ignition position used to activate
|
|
22012
|
+
* the portal. This is not necessarily the center or corner of
|
|
22013
|
+
* the portal.
|
|
22014
|
+
*
|
|
22015
|
+
*/
|
|
22016
|
+
readonly location: Vector3;
|
|
22017
|
+
/**
|
|
22018
|
+
* @remarks
|
|
22019
|
+
* The player who directly activated the portal using an item,
|
|
22020
|
+
* if known. Undefined for fire-based activation without a
|
|
22021
|
+
* known initiating player, including dispenser-fired fire
|
|
22022
|
+
* charges. Nearby players are not used for attribution.
|
|
22023
|
+
*
|
|
22024
|
+
*/
|
|
22025
|
+
readonly player?: Player;
|
|
22026
|
+
}
|
|
22027
|
+
|
|
22028
|
+
/**
|
|
22029
|
+
* @beta
|
|
22030
|
+
*/
|
|
22031
|
+
export class PortalActivateAfterEventSignal {
|
|
22032
|
+
private constructor();
|
|
22033
|
+
/**
|
|
22034
|
+
* @remarks
|
|
22035
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
22036
|
+
*
|
|
22037
|
+
* @privilege early-execution-allowed - This function can be called in early-execution mode.
|
|
22038
|
+
*
|
|
22039
|
+
*/
|
|
22040
|
+
subscribe(callback: (arg0: PortalActivateAfterEvent) => void): (arg0: PortalActivateAfterEvent) => void;
|
|
22041
|
+
/**
|
|
22042
|
+
* @remarks
|
|
22043
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
22044
|
+
*
|
|
22045
|
+
* @privilege early-execution-allowed - This function can be called in early-execution mode.
|
|
22046
|
+
*
|
|
22047
|
+
*/
|
|
22048
|
+
unsubscribe(callback: (arg0: PortalActivateAfterEvent) => void): void;
|
|
22049
|
+
}
|
|
22050
|
+
|
|
21700
22051
|
/**
|
|
21701
22052
|
* Represents how the potion effect is delivered.
|
|
21702
22053
|
*/
|
|
@@ -23616,7 +23967,6 @@ export class SoundInstance {
|
|
|
23616
23967
|
*/
|
|
23617
23968
|
readonly soundEventId: string;
|
|
23618
23969
|
/**
|
|
23619
|
-
* @rc
|
|
23620
23970
|
* @remarks
|
|
23621
23971
|
* Fades this sound instance from its current volume multiplier
|
|
23622
23972
|
* to the target multiplier over the specified duration. Volume
|
|
@@ -23636,7 +23986,6 @@ export class SoundInstance {
|
|
|
23636
23986
|
*/
|
|
23637
23987
|
fade(duration: number, targetVolume: number): void;
|
|
23638
23988
|
/**
|
|
23639
|
-
* @rc
|
|
23640
23989
|
* @remarks
|
|
23641
23990
|
* Pauses this sound.
|
|
23642
23991
|
*
|
|
@@ -23645,7 +23994,6 @@ export class SoundInstance {
|
|
|
23645
23994
|
*/
|
|
23646
23995
|
pause(): void;
|
|
23647
23996
|
/**
|
|
23648
|
-
* @rc
|
|
23649
23997
|
* @remarks
|
|
23650
23998
|
* Resumes this sound after a pause.
|
|
23651
23999
|
*
|
|
@@ -23654,7 +24002,6 @@ export class SoundInstance {
|
|
|
23654
24002
|
*/
|
|
23655
24003
|
resume(): void;
|
|
23656
24004
|
/**
|
|
23657
|
-
* @rc
|
|
23658
24005
|
* @remarks
|
|
23659
24006
|
* Sets the playback position of this sound instance.
|
|
23660
24007
|
*
|
|
@@ -23671,7 +24018,6 @@ export class SoundInstance {
|
|
|
23671
24018
|
*/
|
|
23672
24019
|
seekTo(seconds: number): void;
|
|
23673
24020
|
/**
|
|
23674
|
-
* @rc
|
|
23675
24021
|
* @remarks
|
|
23676
24022
|
* Sets the pitch of this sound instance.
|
|
23677
24023
|
*
|
|
@@ -23684,7 +24030,6 @@ export class SoundInstance {
|
|
|
23684
24030
|
*/
|
|
23685
24031
|
setPitch(pitch: number): void;
|
|
23686
24032
|
/**
|
|
23687
|
-
* @rc
|
|
23688
24033
|
* @remarks
|
|
23689
24034
|
* Sets the volume multiplier of this sound instance relative
|
|
23690
24035
|
* to the volume of the selected sound variant.
|
|
@@ -23770,7 +24115,6 @@ export class StartupEvent {
|
|
|
23770
24115
|
*/
|
|
23771
24116
|
readonly itemComponentRegistry: ItemComponentRegistry;
|
|
23772
24117
|
/**
|
|
23773
|
-
* @rc
|
|
23774
24118
|
* @remarks
|
|
23775
24119
|
* @privilege early-execution-readable - This property can be read in early-execution mode.
|
|
23776
24120
|
*
|
|
@@ -24549,7 +24893,6 @@ export class TextPrimitive extends PrimitiveShape {
|
|
|
24549
24893
|
*/
|
|
24550
24894
|
depthTest: boolean;
|
|
24551
24895
|
/**
|
|
24552
|
-
* @rc
|
|
24553
24896
|
* @remarks
|
|
24554
24897
|
* This value determines the gap between lines for the
|
|
24555
24898
|
* TextPrimitive. By default the line gap height is 0.
|
|
@@ -24697,7 +25040,6 @@ export class TickingAreaManager {
|
|
|
24697
25040
|
}
|
|
24698
25041
|
|
|
24699
25042
|
/**
|
|
24700
|
-
* @rc
|
|
24701
25043
|
* A named point in time on a world clock that can occur once
|
|
24702
25044
|
* or periodically.
|
|
24703
25045
|
*/
|
|
@@ -25292,7 +25634,6 @@ export class World {
|
|
|
25292
25634
|
*/
|
|
25293
25635
|
getAllPlayers(): Player[];
|
|
25294
25636
|
/**
|
|
25295
|
-
* @rc
|
|
25296
25637
|
* @remarks
|
|
25297
25638
|
* Retrieves a world clock by its name.
|
|
25298
25639
|
*
|
|
@@ -26230,6 +26571,19 @@ export class WorldAfterEvents {
|
|
|
26230
26571
|
*
|
|
26231
26572
|
*/
|
|
26232
26573
|
readonly playerUseNameTag: PlayerUseNameTagAfterEventSignal;
|
|
26574
|
+
/**
|
|
26575
|
+
* @beta
|
|
26576
|
+
* @remarks
|
|
26577
|
+
* Fires after a portal is successfully activated, with an
|
|
26578
|
+
* initiating player when known. Currently fires for Nether
|
|
26579
|
+
* portals only, including activation by fire without a player.
|
|
26580
|
+
* Does not fire merely for frame construction or for failed
|
|
26581
|
+
* activation attempts.
|
|
26582
|
+
*
|
|
26583
|
+
* @privilege early-execution-readable - This property can be read in early-execution mode.
|
|
26584
|
+
*
|
|
26585
|
+
*/
|
|
26586
|
+
readonly portalActivate: PortalActivateAfterEventSignal;
|
|
26233
26587
|
/**
|
|
26234
26588
|
* @remarks
|
|
26235
26589
|
* A pressure plate has popped back up (i.e., there are no
|
|
@@ -26298,7 +26652,6 @@ export class WorldAfterEvents {
|
|
|
26298
26652
|
*/
|
|
26299
26653
|
readonly weatherChange: WeatherChangeAfterEventSignal;
|
|
26300
26654
|
/**
|
|
26301
|
-
* @rc
|
|
26302
26655
|
* @remarks
|
|
26303
26656
|
* This event fires when a {@link WorldClock} is paused.
|
|
26304
26657
|
*
|
|
@@ -26307,7 +26660,6 @@ export class WorldAfterEvents {
|
|
|
26307
26660
|
*/
|
|
26308
26661
|
readonly worldClockOnPaused: WorldClockOnPausedAfterEventSignal;
|
|
26309
26662
|
/**
|
|
26310
|
-
* @rc
|
|
26311
26663
|
* @remarks
|
|
26312
26664
|
* This event fires when a {@link WorldClock} is resumed.
|
|
26313
26665
|
*
|
|
@@ -26316,7 +26668,6 @@ export class WorldAfterEvents {
|
|
|
26316
26668
|
*/
|
|
26317
26669
|
readonly worldClockOnResumed: WorldClockOnResumedAfterEventSignal;
|
|
26318
26670
|
/**
|
|
26319
|
-
* @rc
|
|
26320
26671
|
* @remarks
|
|
26321
26672
|
* This event fires when the time of a {@link WorldClock} hits
|
|
26322
26673
|
* a {@link TimeMarker} on the clock. This can happen during a
|
|
@@ -26327,7 +26678,6 @@ export class WorldAfterEvents {
|
|
|
26327
26678
|
*/
|
|
26328
26679
|
readonly worldClockOnTimeMarker: WorldClockOnTimeMarkerAfterEventSignal;
|
|
26329
26680
|
/**
|
|
26330
|
-
* @rc
|
|
26331
26681
|
* @remarks
|
|
26332
26682
|
* This event fires when a {@link WorldClock} time is changed.
|
|
26333
26683
|
* This can happen when the time is directly set through
|
|
@@ -26516,7 +26866,6 @@ export class WorldBeforeEvents {
|
|
|
26516
26866
|
*/
|
|
26517
26867
|
readonly weatherChange: WeatherChangeBeforeEventSignal;
|
|
26518
26868
|
/**
|
|
26519
|
-
* @rc
|
|
26520
26869
|
* @remarks
|
|
26521
26870
|
* This event fires when a {@link WorldClock} reaches its
|
|
26522
26871
|
* maximum time and is about to restart.
|
|
@@ -26528,7 +26877,6 @@ export class WorldBeforeEvents {
|
|
|
26528
26877
|
}
|
|
26529
26878
|
|
|
26530
26879
|
/**
|
|
26531
|
-
* @rc
|
|
26532
26880
|
* A class that represents a particular clock within a world.
|
|
26533
26881
|
*/
|
|
26534
26882
|
export class WorldClock {
|
|
@@ -26655,7 +27003,6 @@ export class WorldClock {
|
|
|
26655
27003
|
}
|
|
26656
27004
|
|
|
26657
27005
|
/**
|
|
26658
|
-
* @rc
|
|
26659
27006
|
* Contains information related to a {@link WorldClock} being
|
|
26660
27007
|
* paused.
|
|
26661
27008
|
*/
|
|
@@ -26670,7 +27017,6 @@ export class WorldClockOnPausedAfterEvent {
|
|
|
26670
27017
|
}
|
|
26671
27018
|
|
|
26672
27019
|
/**
|
|
26673
|
-
* @rc
|
|
26674
27020
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
26675
27021
|
* being paused.
|
|
26676
27022
|
*/
|
|
@@ -26704,7 +27050,6 @@ export class WorldClockOnPausedAfterEventSignal {
|
|
|
26704
27050
|
}
|
|
26705
27051
|
|
|
26706
27052
|
/**
|
|
26707
|
-
* @rc
|
|
26708
27053
|
* Contains information related to a {@link WorldClock}
|
|
26709
27054
|
* restarting.
|
|
26710
27055
|
*/
|
|
@@ -26735,7 +27080,6 @@ export class WorldClockOnRestartBeforeEvent {
|
|
|
26735
27080
|
}
|
|
26736
27081
|
|
|
26737
27082
|
/**
|
|
26738
|
-
* @rc
|
|
26739
27083
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
26740
27084
|
* restarting.
|
|
26741
27085
|
*/
|
|
@@ -26775,7 +27119,6 @@ export class WorldClockOnRestartBeforeEventSignal {
|
|
|
26775
27119
|
}
|
|
26776
27120
|
|
|
26777
27121
|
/**
|
|
26778
|
-
* @rc
|
|
26779
27122
|
* Contains information related to a {@link WorldClock} being
|
|
26780
27123
|
* resumed.
|
|
26781
27124
|
*/
|
|
@@ -26790,7 +27133,6 @@ export class WorldClockOnResumedAfterEvent {
|
|
|
26790
27133
|
}
|
|
26791
27134
|
|
|
26792
27135
|
/**
|
|
26793
|
-
* @rc
|
|
26794
27136
|
* Manages callbacks that are connected to a {@link WorldClock}
|
|
26795
27137
|
* being resumed.
|
|
26796
27138
|
*/
|
|
@@ -26824,7 +27166,6 @@ export class WorldClockOnResumedAfterEventSignal {
|
|
|
26824
27166
|
}
|
|
26825
27167
|
|
|
26826
27168
|
/**
|
|
26827
|
-
* @rc
|
|
26828
27169
|
* Contains information related to when the time of a
|
|
26829
27170
|
* {@link WorldClock} hits a {@link TimeMarker}.
|
|
26830
27171
|
*/
|
|
@@ -26845,7 +27186,6 @@ export class WorldClockOnTimeMarkerAfterEvent {
|
|
|
26845
27186
|
}
|
|
26846
27187
|
|
|
26847
27188
|
/**
|
|
26848
|
-
* @rc
|
|
26849
27189
|
* Manages callbacks that are connected to when the time of a
|
|
26850
27190
|
* {@link WorldClock} hits a {@link TimeMarker}.
|
|
26851
27191
|
*/
|
|
@@ -26879,7 +27219,6 @@ export class WorldClockOnTimeMarkerAfterEventSignal {
|
|
|
26879
27219
|
}
|
|
26880
27220
|
|
|
26881
27221
|
/**
|
|
26882
|
-
* @rc
|
|
26883
27222
|
* Contains information related to changes to the time of a
|
|
26884
27223
|
* {@link WorldClock}.
|
|
26885
27224
|
*/
|
|
@@ -26894,7 +27233,6 @@ export class WorldClockOnTimeModifiedAfterEvent {
|
|
|
26894
27233
|
}
|
|
26895
27234
|
|
|
26896
27235
|
/**
|
|
26897
|
-
* @rc
|
|
26898
27236
|
* Manages callbacks that are connected to changes to the time
|
|
26899
27237
|
* of a {@link WorldClock}.
|
|
26900
27238
|
*/
|
|
@@ -26928,7 +27266,6 @@ export class WorldClockOnTimeModifiedAfterEventSignal {
|
|
|
26928
27266
|
}
|
|
26929
27267
|
|
|
26930
27268
|
/**
|
|
26931
|
-
* @rc
|
|
26932
27269
|
* Provides the functionality for registering custom world
|
|
26933
27270
|
* clocks. World clocks can only be registered during the
|
|
26934
27271
|
* system startup event.
|
|
@@ -27024,10 +27361,57 @@ export interface AnimationOptions {
|
|
|
27024
27361
|
totalTimeSeconds: number;
|
|
27025
27362
|
}
|
|
27026
27363
|
|
|
27364
|
+
/**
|
|
27365
|
+
* Options to include or exclude biomes based on biome names,
|
|
27366
|
+
* tags, or namespaces. If no include options are added it will
|
|
27367
|
+
* select all biomes that are not rejected by the exclude
|
|
27368
|
+
* options. If at least one include option is added the biome
|
|
27369
|
+
* must match one of the include options to not be rejected.
|
|
27370
|
+
*/
|
|
27027
27371
|
export interface BiomeFilter {
|
|
27372
|
+
/**
|
|
27373
|
+
* @remarks
|
|
27374
|
+
* Array of biome names that the filter should reject if any
|
|
27375
|
+
* matches.
|
|
27376
|
+
*
|
|
27377
|
+
*/
|
|
27028
27378
|
excludeBiomes?: string[];
|
|
27379
|
+
/**
|
|
27380
|
+
* @beta
|
|
27381
|
+
* @remarks
|
|
27382
|
+
* Array of namespaces that the filter should reject if the
|
|
27383
|
+
* biome belongs to at least one.
|
|
27384
|
+
*
|
|
27385
|
+
*/
|
|
27386
|
+
excludeNamespaces?: string[];
|
|
27387
|
+
/**
|
|
27388
|
+
* @remarks
|
|
27389
|
+
* Array of biome tags that the filter should reject if any
|
|
27390
|
+
* matches.
|
|
27391
|
+
*
|
|
27392
|
+
*/
|
|
27029
27393
|
excludeTags?: string[];
|
|
27394
|
+
/**
|
|
27395
|
+
* @remarks
|
|
27396
|
+
* Array of biome names that the filter should select if at
|
|
27397
|
+
* least one matches.
|
|
27398
|
+
*
|
|
27399
|
+
*/
|
|
27030
27400
|
includeBiomes?: string[];
|
|
27401
|
+
/**
|
|
27402
|
+
* @beta
|
|
27403
|
+
* @remarks
|
|
27404
|
+
* Array of namespaces that the filter should select if the
|
|
27405
|
+
* biome belongs to at least one.
|
|
27406
|
+
*
|
|
27407
|
+
*/
|
|
27408
|
+
includeNamespaces?: string[];
|
|
27409
|
+
/**
|
|
27410
|
+
* @remarks
|
|
27411
|
+
* Array of biome tags that the filter should select if at
|
|
27412
|
+
* least one matches.
|
|
27413
|
+
*
|
|
27414
|
+
*/
|
|
27031
27415
|
includeTags?: string[];
|
|
27032
27416
|
}
|
|
27033
27417
|
|
|
@@ -27138,11 +27522,11 @@ export interface BlockCustomComponent {
|
|
|
27138
27522
|
*/
|
|
27139
27523
|
onEntityFallOn?: (arg0: BlockComponentEntityFallOnEvent, arg1: CustomComponentParameters) => void;
|
|
27140
27524
|
/**
|
|
27141
|
-
* @
|
|
27525
|
+
* @rc
|
|
27142
27526
|
*/
|
|
27143
27527
|
onNamedTick?: (arg0: BlockComponentNamedTickEvent, arg1: CustomComponentParameters) => void;
|
|
27144
27528
|
/**
|
|
27145
|
-
* @
|
|
27529
|
+
* @rc
|
|
27146
27530
|
*/
|
|
27147
27531
|
onNeighborChanged?: (arg0: BlockComponentNeighborChangedAfterEvent, arg1: CustomComponentParameters) => void;
|
|
27148
27532
|
/**
|
|
@@ -27241,13 +27625,22 @@ export interface BlockFillOptions {
|
|
|
27241
27625
|
}
|
|
27242
27626
|
|
|
27243
27627
|
/**
|
|
27244
|
-
* Options to include or exclude blocks based on type, tag
|
|
27245
|
-
* permutation. If no include options are added
|
|
27246
|
-
* all blocks that are not rejected by the
|
|
27247
|
-
* at least one include option is added the
|
|
27248
|
-
* one of the include options to not be
|
|
27628
|
+
* Options to include or exclude blocks based on type, tag,
|
|
27629
|
+
* permutation, or namespaces. If no include options are added
|
|
27630
|
+
* it will select all blocks that are not rejected by the
|
|
27631
|
+
* exclude options. If at least one include option is added the
|
|
27632
|
+
* block must match one of the include options to not be
|
|
27633
|
+
* rejected.
|
|
27249
27634
|
*/
|
|
27250
27635
|
export interface BlockFilter {
|
|
27636
|
+
/**
|
|
27637
|
+
* @beta
|
|
27638
|
+
* @remarks
|
|
27639
|
+
* Array of namespaces that the filter should reject if the
|
|
27640
|
+
* block belongs to at least one.
|
|
27641
|
+
*
|
|
27642
|
+
*/
|
|
27643
|
+
excludeNamespaces?: string[];
|
|
27251
27644
|
/**
|
|
27252
27645
|
* @remarks
|
|
27253
27646
|
* Array of block permutations that the filter should reject if
|
|
@@ -27269,6 +27662,14 @@ export interface BlockFilter {
|
|
|
27269
27662
|
*
|
|
27270
27663
|
*/
|
|
27271
27664
|
excludeTypes?: string[];
|
|
27665
|
+
/**
|
|
27666
|
+
* @beta
|
|
27667
|
+
* @remarks
|
|
27668
|
+
* Array of namespaces that the filter should select if the
|
|
27669
|
+
* block belongs to at least one.
|
|
27670
|
+
*
|
|
27671
|
+
*/
|
|
27672
|
+
includeNamespaces?: string[];
|
|
27272
27673
|
/**
|
|
27273
27674
|
* @remarks
|
|
27274
27675
|
* Array of block permutations that the filter should select if
|
|
@@ -28062,6 +28463,14 @@ export interface EntityFilter {
|
|
|
28062
28463
|
*
|
|
28063
28464
|
*/
|
|
28064
28465
|
excludeNames?: string[];
|
|
28466
|
+
/**
|
|
28467
|
+
* @beta
|
|
28468
|
+
* @remarks
|
|
28469
|
+
* Excludes entities that have a namespace that matches one of
|
|
28470
|
+
* the specified values.
|
|
28471
|
+
*
|
|
28472
|
+
*/
|
|
28473
|
+
excludeNamespaces?: string[];
|
|
28065
28474
|
/**
|
|
28066
28475
|
* @remarks
|
|
28067
28476
|
* Excludes entities with a tag that matches one of the
|
|
@@ -28137,6 +28546,13 @@ export interface EntityFilter {
|
|
|
28137
28546
|
*
|
|
28138
28547
|
*/
|
|
28139
28548
|
name?: string;
|
|
28549
|
+
/**
|
|
28550
|
+
* @beta
|
|
28551
|
+
* @remarks
|
|
28552
|
+
* Includes entities with the specified namespace.
|
|
28553
|
+
*
|
|
28554
|
+
*/
|
|
28555
|
+
namespaces?: string[];
|
|
28140
28556
|
propertyOptions?: EntityQueryPropertyOptions[];
|
|
28141
28557
|
/**
|
|
28142
28558
|
* @remarks
|
|
@@ -28928,6 +29344,15 @@ export interface ItemCustomComponent {
|
|
|
28928
29344
|
*
|
|
28929
29345
|
*/
|
|
28930
29346
|
onMineBlock?: (arg0: ItemComponentMineBlockEvent, arg1: CustomComponentParameters) => void;
|
|
29347
|
+
/**
|
|
29348
|
+
* @beta
|
|
29349
|
+
* @remarks
|
|
29350
|
+
* This function will be called when a player releases use of
|
|
29351
|
+
* an item containing this component. It will only be called if
|
|
29352
|
+
* the item has the minecraft:use_duration component.
|
|
29353
|
+
*
|
|
29354
|
+
*/
|
|
29355
|
+
onReleaseUse?: (arg0: ItemComponentReleaseUseEvent, arg1: CustomComponentParameters) => void;
|
|
28931
29356
|
/**
|
|
28932
29357
|
* @remarks
|
|
28933
29358
|
* This function will be called when an item containing this
|
|
@@ -29070,7 +29495,7 @@ export interface MusicOptions {
|
|
|
29070
29495
|
}
|
|
29071
29496
|
|
|
29072
29497
|
/**
|
|
29073
|
-
* @
|
|
29498
|
+
* @rc
|
|
29074
29499
|
* Contains information regarding a block change in one
|
|
29075
29500
|
* neighboring direction.
|
|
29076
29501
|
*/
|
|
@@ -29243,7 +29668,6 @@ export interface PlayerSoundOptions {
|
|
|
29243
29668
|
*/
|
|
29244
29669
|
location?: Vector3;
|
|
29245
29670
|
/**
|
|
29246
|
-
* @rc
|
|
29247
29671
|
* @remarks
|
|
29248
29672
|
* Number of additional times to repeat the sound after the
|
|
29249
29673
|
* initial play. `0` (the default) plays the sound once, `-1`
|
|
@@ -29701,7 +30125,7 @@ export interface RotationKeyFrame {
|
|
|
29701
30125
|
}
|
|
29702
30126
|
|
|
29703
30127
|
/**
|
|
29704
|
-
* @
|
|
30128
|
+
* @rc
|
|
29705
30129
|
*/
|
|
29706
30130
|
export interface ScheduledNamedTick {
|
|
29707
30131
|
eventName: string;
|
|
@@ -30160,7 +30584,6 @@ export interface TickingAreaOptions {
|
|
|
30160
30584
|
}
|
|
30161
30585
|
|
|
30162
30586
|
/**
|
|
30163
|
-
* @rc
|
|
30164
30587
|
* Options for creating time markers for world clocks.
|
|
30165
30588
|
*/
|
|
30166
30589
|
export interface TimeMarkerOptions {
|
|
@@ -30328,7 +30751,6 @@ export interface WaypointTextureSelector {
|
|
|
30328
30751
|
}
|
|
30329
30752
|
|
|
30330
30753
|
/**
|
|
30331
|
-
* @rc
|
|
30332
30754
|
* Contains parameters for world clock events that filters out
|
|
30333
30755
|
* which events are passed to the provided callback.
|
|
30334
30756
|
*/
|
|
@@ -30342,7 +30764,6 @@ export interface WorldClockEventOptions {
|
|
|
30342
30764
|
}
|
|
30343
30765
|
|
|
30344
30766
|
/**
|
|
30345
|
-
* @rc
|
|
30346
30767
|
* Contains additional options for registering world clocks.
|
|
30347
30768
|
*/
|
|
30348
30769
|
export interface WorldClockRegistrationOptions {
|
|
@@ -30356,7 +30777,6 @@ export interface WorldClockRegistrationOptions {
|
|
|
30356
30777
|
}
|
|
30357
30778
|
|
|
30358
30779
|
/**
|
|
30359
|
-
* @rc
|
|
30360
30780
|
* Contains parameters for world clock time marker events that
|
|
30361
30781
|
* filters out which events are passed to the provided
|
|
30362
30782
|
* callback.
|
|
@@ -30384,7 +30804,6 @@ export interface WorldClockTimeMarkerEventOptions {
|
|
|
30384
30804
|
export interface WorldSoundOptions {
|
|
30385
30805
|
isBroadcast?: boolean;
|
|
30386
30806
|
/**
|
|
30387
|
-
* @rc
|
|
30388
30807
|
* @remarks
|
|
30389
30808
|
* Number of additional times to repeat the sound after the
|
|
30390
30809
|
* initial play. `0` (the default) plays the sound once, `-1`
|
|
@@ -30861,7 +31280,6 @@ export class UnloadedChunksError extends Error {
|
|
|
30861
31280
|
}
|
|
30862
31281
|
|
|
30863
31282
|
/**
|
|
30864
|
-
* @rc
|
|
30865
31283
|
* Error thrown by {@link WorldClock.addTimeMarker} when
|
|
30866
31284
|
* failing to add a time marker to a world clock.
|
|
30867
31285
|
*/
|
|
@@ -30871,7 +31289,6 @@ export class WorldClockAddTimeMarkerError extends Error {
|
|
|
30871
31289
|
}
|
|
30872
31290
|
|
|
30873
31291
|
/**
|
|
30874
|
-
* @rc
|
|
30875
31292
|
* Thrown when trying to register a world clock outside of the
|
|
30876
31293
|
* system startup event.
|
|
30877
31294
|
*/
|
|
@@ -30881,7 +31298,6 @@ export class WorldClockInvalidRegistryError extends Error {
|
|
|
30881
31298
|
}
|
|
30882
31299
|
|
|
30883
31300
|
/**
|
|
30884
|
-
* @rc
|
|
30885
31301
|
* Error thrown when a time marker is invalid. This can occur
|
|
30886
31302
|
* when trying to access data on a time marker that has been
|
|
30887
31303
|
* removed.
|
|
@@ -30892,7 +31308,6 @@ export class WorldClockInvalidTimeMarkerError extends Error {
|
|
|
30892
31308
|
}
|
|
30893
31309
|
|
|
30894
31310
|
/**
|
|
30895
|
-
* @rc
|
|
30896
31311
|
* Error thrown when a world clock is not found in the world
|
|
30897
31312
|
* clock registry.
|
|
30898
31313
|
*/
|
|
@@ -30902,7 +31317,6 @@ export class WorldClockNotFoundError extends Error {
|
|
|
30902
31317
|
}
|
|
30903
31318
|
|
|
30904
31319
|
/**
|
|
30905
|
-
* @rc
|
|
30906
31320
|
* Error thrown by {@link WorldClockRegistry.registerClock}
|
|
30907
31321
|
* when failing to register a world clock.
|
|
30908
31322
|
*/
|
|
@@ -30912,7 +31326,6 @@ export class WorldClockRegistrationError extends Error {
|
|
|
30912
31326
|
}
|
|
30913
31327
|
|
|
30914
31328
|
/**
|
|
30915
|
-
* @rc
|
|
30916
31329
|
* Thrown after using the /reload command when trying to
|
|
30917
31330
|
* register a world clock that was not previously registered.
|
|
30918
31331
|
* New world clocks cannot be added during a reload.
|
|
@@ -30923,7 +31336,6 @@ export class WorldClockReloadNewWorldClockError extends Error {
|
|
|
30923
31336
|
}
|
|
30924
31337
|
|
|
30925
31338
|
/**
|
|
30926
|
-
* @rc
|
|
30927
31339
|
* Error thrown after using the /reload command when trying to
|
|
30928
31340
|
* re-register an existing world clock with an invalid time
|
|
30929
31341
|
* marker.
|
|
@@ -30934,7 +31346,6 @@ export class WorldClockReloadTimeMarkerError extends Error {
|
|
|
30934
31346
|
}
|
|
30935
31347
|
|
|
30936
31348
|
/**
|
|
30937
|
-
* @rc
|
|
30938
31349
|
* Error thrown by {@link WorldClock.removeTimeMarker} when
|
|
30939
31350
|
* trying to remove a time marker with the 'minecraft'
|
|
30940
31351
|
* namespace from a world clock.
|
|
@@ -30945,7 +31356,6 @@ export class WorldClockRemoveMinecraftTimeMarkerError extends Error {
|
|
|
30945
31356
|
}
|
|
30946
31357
|
|
|
30947
31358
|
/**
|
|
30948
|
-
* @rc
|
|
30949
31359
|
* Error thrown by {@link WorldClock.rewindTo} when the world
|
|
30950
31360
|
* clock's time is already before the time marker's first
|
|
30951
31361
|
* occurrence.
|
|
@@ -30956,7 +31366,6 @@ export class WorldClockRewindError extends Error {
|
|
|
30956
31366
|
}
|
|
30957
31367
|
|
|
30958
31368
|
/**
|
|
30959
|
-
* @rc
|
|
30960
31369
|
* Error thrown when performing actions on a world clock with a
|
|
30961
31370
|
* time marker that does not exist.
|
|
30962
31371
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.13.0-beta.1.26.70-preview.
|
|
3
|
+
"version": "2.13.0-beta.1.26.70-preview.23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.2.0",
|
|
17
|
-
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.70-preview.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.70-preview.23"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|