@minecraft/server 2.12.0-beta.1.26.60-preview.28 → 2.12.0-beta.1.26.60-preview.30

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.
Files changed (2) hide show
  1. package/index.d.ts +467 -34
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -91,6 +91,10 @@ export enum BlockComponentTypes {
91
91
  * @beta
92
92
  */
93
93
  RecipeCrafting = 'minecraft:recipe_crafting',
94
+ /**
95
+ * @beta
96
+ */
97
+ RecipeProcessing = 'minecraft:recipe_processing',
94
98
  /**
95
99
  * @remarks
96
100
  * Represents a block that can play a record.
@@ -109,6 +113,10 @@ export enum BlockComponentTypes {
109
113
  *
110
114
  */
111
115
  Sign = 'minecraft:sign',
116
+ /**
117
+ * @beta
118
+ */
119
+ VibrationProperties = 'minecraft:vibration_properties',
112
120
  }
113
121
 
114
122
  /**
@@ -3186,16 +3194,20 @@ export type BlockComponentTypeMap = {
3186
3194
  'minecraft:piston': BlockPistonComponent;
3187
3195
  'minecraft:precipitation_interactions': BlockPrecipitationInteractionsComponent;
3188
3196
  'minecraft:recipe_crafting': BlockRecipeCraftingComponent;
3197
+ 'minecraft:recipe_processing': BlockRecipeProcessingComponent;
3189
3198
  'minecraft:record_player': BlockRecordPlayerComponent;
3190
3199
  'minecraft:redstone_producer': BlockRedstoneProducerComponent;
3191
3200
  'minecraft:sign': BlockSignComponent;
3201
+ 'minecraft:vibration_properties': BlockVibrationPropertiesComponent;
3192
3202
  movable: BlockMovableComponent;
3193
3203
  piston: BlockPistonComponent;
3194
3204
  precipitation_interactions: BlockPrecipitationInteractionsComponent;
3195
3205
  recipe_crafting: BlockRecipeCraftingComponent;
3206
+ recipe_processing: BlockRecipeProcessingComponent;
3196
3207
  record_player: BlockRecordPlayerComponent;
3197
3208
  redstone_producer: BlockRedstoneProducerComponent;
3198
3209
  sign: BlockSignComponent;
3210
+ vibration_properties: BlockVibrationPropertiesComponent;
3199
3211
  };
3200
3212
 
3201
3213
  /**
@@ -4993,6 +5005,28 @@ export class BlockComponentNamedTickEvent extends BlockEvent {
4993
5005
  isName(eventName: string): boolean;
4994
5006
  }
4995
5007
 
5008
+ /**
5009
+ * @beta
5010
+ * Contains information regarding neighboring block changes for
5011
+ * a specific block.
5012
+ */
5013
+ // @ts-ignore Class inheritance allowed for native defined classes
5014
+ export class BlockComponentNeighborChangedAfterEvent extends BlockEvent {
5015
+ private constructor();
5016
+ /**
5017
+ * @remarks
5018
+ * Returns the neighboring block changes for this event.
5019
+ *
5020
+ * @returns
5021
+ * One entry for each neighboring direction that changed,
5022
+ * ordered by when each direction first changed. If a direction
5023
+ * changed multiple times during the tick, the entry contains
5024
+ * the permutation before the first change and after the last
5025
+ * change. Intermediate permutations are not included.
5026
+ */
5027
+ getChanges(): NeighborChange[];
5028
+ }
5029
+
4996
5030
  /**
4997
5031
  * Contains information regarding a specific block that was
4998
5032
  * placed.
@@ -6290,6 +6324,104 @@ export class BlockRecipeCraftingComponent extends BlockComponent {
6290
6324
  getCraftingContext(player: Player): RecipeCraftingContext | undefined;
6291
6325
  }
6292
6326
 
6327
+ /**
6328
+ * @beta
6329
+ * Represents a block component that provides access to recipe
6330
+ * processing inputs and output.
6331
+ */
6332
+ // @ts-ignore Class inheritance allowed for native defined classes
6333
+ export class BlockRecipeProcessingComponent extends BlockComponent {
6334
+ private constructor();
6335
+ /**
6336
+ * @remarks
6337
+ * The number of addressable input slots for getInputItem,
6338
+ * setInputItem, setInputSlotEnabled, and getInputSlotEnabled.
6339
+ *
6340
+ * @throws This property can throw when used.
6341
+ *
6342
+ * {@link InvalidBlockComponentError}
6343
+ */
6344
+ readonly inputSlotCount: number;
6345
+ static readonly componentId = 'minecraft:recipe_processing';
6346
+ /**
6347
+ * @remarks
6348
+ * Gets the item in the provided input slot.
6349
+ *
6350
+ * @param slot
6351
+ * The zero-based input slot index.
6352
+ * @returns
6353
+ * The item stack in the input slot, or undefined if the slot
6354
+ * is empty.
6355
+ * @throws This function can throw errors.
6356
+ *
6357
+ * {@link minecraftcommon.ArgumentOutOfBoundsError}
6358
+ *
6359
+ * {@link InvalidBlockComponentError}
6360
+ */
6361
+ getInputItem(slot: number): ItemStack | undefined;
6362
+ /**
6363
+ * @remarks
6364
+ * Gets whether an input slot is enabled for recipe processing.
6365
+ *
6366
+ * @param slot
6367
+ * The zero-based input slot index.
6368
+ * @returns
6369
+ * Whether the input slot is enabled.
6370
+ * @throws This function can throw errors.
6371
+ *
6372
+ * {@link minecraftcommon.ArgumentOutOfBoundsError}
6373
+ *
6374
+ * {@link InvalidBlockComponentError}
6375
+ *
6376
+ * {@link minecraftcommon.UnsupportedFunctionalityError}
6377
+ */
6378
+ getInputSlotEnabled(slot: number): boolean;
6379
+ /**
6380
+ * @remarks
6381
+ * Gets the item produced by the current recipe processing
6382
+ * inputs.
6383
+ *
6384
+ * @returns
6385
+ * The output item stack, or undefined if the current inputs do
6386
+ * not produce an item.
6387
+ * @throws This function can throw errors.
6388
+ *
6389
+ * {@link InvalidBlockComponentError}
6390
+ */
6391
+ getOutputItem(): ItemStack | undefined;
6392
+ /**
6393
+ * @remarks
6394
+ * Sets or clears an item in an input slot.
6395
+ *
6396
+ * @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
6397
+ *
6398
+ * @param slot
6399
+ * The zero-based input slot index.
6400
+ * @param item
6401
+ * The item stack to place in the slot, or undefined to clear
6402
+ * the slot.
6403
+ * @throws This function can throw errors.
6404
+ *
6405
+ * {@link minecraftcommon.ArgumentOutOfBoundsError}
6406
+ *
6407
+ * {@link InvalidBlockComponentError}
6408
+ */
6409
+ setInputItem(slot: number, item?: ItemStack): void;
6410
+ /**
6411
+ * @remarks
6412
+ * @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
6413
+ *
6414
+ * @throws This function can throw errors.
6415
+ *
6416
+ * {@link minecraftcommon.ArgumentOutOfBoundsError}
6417
+ *
6418
+ * {@link InvalidBlockComponentError}
6419
+ *
6420
+ * {@link minecraftcommon.UnsupportedFunctionalityError}
6421
+ */
6422
+ setInputSlotEnabled(slot: number, enabled: boolean): void;
6423
+ }
6424
+
6293
6425
  /**
6294
6426
  * Represents a block that can play a record.
6295
6427
  */
@@ -6712,6 +6844,49 @@ export class BlockTypes {
6712
6844
  static getAll(): BlockType[];
6713
6845
  }
6714
6846
 
6847
+ /**
6848
+ * @beta
6849
+ * Represents the vibration properties of a block with a
6850
+ * 'minecraft:vibration_properties' component.
6851
+ */
6852
+ // @ts-ignore Class inheritance allowed for native defined classes
6853
+ export class BlockVibrationPropertiesComponent extends BlockComponent {
6854
+ private constructor();
6855
+ static readonly componentId = 'minecraft:vibration_properties';
6856
+ /**
6857
+ * @remarks
6858
+ * Gets whether this block can dampen vibrations. Vibrations
6859
+ * that occur on this block will be discarded by this block if
6860
+ * it can dampen vibrations. Returns false when the block does
6861
+ * not define a 'minecraft:vibration_properties' component.
6862
+ *
6863
+ * @returns
6864
+ * Whether this block can dampen vibrations.
6865
+ * @throws This function can throw errors.
6866
+ *
6867
+ * {@link LocationInUnloadedChunkError}
6868
+ *
6869
+ * {@link LocationOutOfWorldBoundariesError}
6870
+ */
6871
+ getCanDampenVibrations(): boolean;
6872
+ /**
6873
+ * @remarks
6874
+ * Gets whether this block can occlude vibrations. Vibrations
6875
+ * that pass through this block will be discarded if this block
6876
+ * can occlude vibrations. Returns false when the block does
6877
+ * not define a 'minecraft:vibration_properties' component.
6878
+ *
6879
+ * @returns
6880
+ * Whether this block can occlude vibrations.
6881
+ * @throws This function can throw errors.
6882
+ *
6883
+ * {@link LocationInUnloadedChunkError}
6884
+ *
6885
+ * {@link LocationOutOfWorldBoundariesError}
6886
+ */
6887
+ getCanOccludeVibrations(): boolean;
6888
+ }
6889
+
6715
6890
  /**
6716
6891
  * A BlockVolume is a simple interface to an object which
6717
6892
  * represents a 3D rectangle of a given size (in blocks) at a
@@ -19356,6 +19531,118 @@ export class PlayerCursorInventoryComponent extends EntityComponent {
19356
19531
  clear(): void;
19357
19532
  }
19358
19533
 
19534
+ /**
19535
+ * @beta
19536
+ * Contains information about an item moved from a container to
19537
+ * a player's cursor.
19538
+ */
19539
+ export class PlayerCursorItemGrabAfterEvent {
19540
+ private constructor();
19541
+ /**
19542
+ * @remarks
19543
+ * The item stack moved to the player's cursor.
19544
+ *
19545
+ */
19546
+ readonly item: ItemStack;
19547
+ /**
19548
+ * @remarks
19549
+ * The player whose cursor item changed.
19550
+ *
19551
+ */
19552
+ readonly player: Player;
19553
+ }
19554
+
19555
+ /**
19556
+ * @beta
19557
+ * Manages callbacks for items grabbed from a container to a
19558
+ * player's cursor.
19559
+ */
19560
+ export class PlayerCursorItemGrabAfterEventSignal {
19561
+ private constructor();
19562
+ /**
19563
+ * @remarks
19564
+ * Adds a callback that is called when a player grabs an item
19565
+ * from a container to their cursor.
19566
+ *
19567
+ * @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
19568
+ *
19569
+ * @privilege early-execution-allowed - This function can be called in early-execution mode.
19570
+ *
19571
+ * @param callback
19572
+ * The callback function invoked when the event fires.
19573
+ */
19574
+ subscribe(callback: (arg0: PlayerCursorItemGrabAfterEvent) => void): (arg0: PlayerCursorItemGrabAfterEvent) => void;
19575
+ /**
19576
+ * @remarks
19577
+ * Removes a previously registered event callback.
19578
+ *
19579
+ * @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
19580
+ *
19581
+ * @privilege early-execution-allowed - This function can be called in early-execution mode.
19582
+ *
19583
+ * @param callback
19584
+ * The callback function to remove.
19585
+ */
19586
+ unsubscribe(callback: (arg0: PlayerCursorItemGrabAfterEvent) => void): void;
19587
+ }
19588
+
19589
+ /**
19590
+ * @beta
19591
+ * Contains information about an item moved from a player's
19592
+ * cursor to a container.
19593
+ */
19594
+ export class PlayerCursorItemReleaseAfterEvent {
19595
+ private constructor();
19596
+ /**
19597
+ * @remarks
19598
+ * The item stack from the player's cursor.
19599
+ *
19600
+ */
19601
+ readonly item: ItemStack;
19602
+ /**
19603
+ * @remarks
19604
+ * The player whose cursor item changed.
19605
+ *
19606
+ */
19607
+ readonly player: Player;
19608
+ }
19609
+
19610
+ /**
19611
+ * @beta
19612
+ * Manages callbacks for items released from a player's cursor
19613
+ * to a container.
19614
+ */
19615
+ export class PlayerCursorItemReleaseAfterEventSignal {
19616
+ private constructor();
19617
+ /**
19618
+ * @remarks
19619
+ * Adds a callback that is called when a player releases an
19620
+ * item from their cursor to a container.
19621
+ *
19622
+ * @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
19623
+ *
19624
+ * @privilege early-execution-allowed - This function can be called in early-execution mode.
19625
+ *
19626
+ * @param callback
19627
+ * The callback function invoked when the event fires.
19628
+ */
19629
+ subscribe(
19630
+ callback: (arg0: PlayerCursorItemReleaseAfterEvent) => void,
19631
+ ): (arg0: PlayerCursorItemReleaseAfterEvent) => void;
19632
+ /**
19633
+ * @remarks
19634
+ * Removes a previously registered event callback.
19635
+ *
19636
+ * @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
19637
+ *
19638
+ * @privilege early-execution-allowed - This function can be called in early-execution mode.
19639
+ *
19640
+ * @param callback
19641
+ * The callback function to remove.
19642
+ */
19643
+ unsubscribe(callback: (arg0: PlayerCursorItemReleaseAfterEvent) => void): void;
19644
+ }
19645
+
19359
19646
  /**
19360
19647
  * Contains information related to changes to a player's
19361
19648
  * dimension having been changed.
@@ -20179,6 +20466,92 @@ export class PlayerInventoryItemChangeAfterEventSignal {
20179
20466
  unsubscribe(callback: (arg0: PlayerInventoryItemChangeAfterEvent) => void): void;
20180
20467
  }
20181
20468
 
20469
+ /**
20470
+ * @beta
20471
+ * Contains information about an attack initiated through a
20472
+ * player item interaction before it causes effects. Set cancel
20473
+ * to true to prevent the attack.
20474
+ */
20475
+ export class PlayerItemAttackEntityBeforeEvent {
20476
+ private constructor();
20477
+ /**
20478
+ * @remarks
20479
+ * The normalized world-space direction used for the attack.
20480
+ * For standard client-initiated transaction attacks, this
20481
+ * direction is derived from the client-provided hit position
20482
+ * and the player's server-side eye position. Other attack
20483
+ * paths can provide a server-derived direction. This property
20484
+ * is undefined when the attack path does not provide an aim
20485
+ * direction.
20486
+ *
20487
+ */
20488
+ readonly aimDirection?: Vector3;
20489
+ /**
20490
+ * @remarks
20491
+ * If set to true, the attack does not cause damage or other
20492
+ * authoritative attack effects.
20493
+ *
20494
+ */
20495
+ cancel: boolean;
20496
+ /**
20497
+ * @remarks
20498
+ * A snapshot of the item held by the attacking player. This
20499
+ * property is undefined when the player holds no item.
20500
+ *
20501
+ */
20502
+ readonly itemStack?: ItemStack;
20503
+ /**
20504
+ * @remarks
20505
+ * The player that initiated the attack.
20506
+ *
20507
+ */
20508
+ readonly player: Player;
20509
+ /**
20510
+ * @remarks
20511
+ * The entity targeted by the attack.
20512
+ *
20513
+ */
20514
+ readonly target: Entity;
20515
+ }
20516
+
20517
+ /**
20518
+ * @beta
20519
+ * Manages callbacks that run before a player attacks an entity
20520
+ * through an item interaction.
20521
+ */
20522
+ export class PlayerItemAttackEntityBeforeEventSignal {
20523
+ private constructor();
20524
+ /**
20525
+ * @remarks
20526
+ * Adds a callback that runs before a player attacks an entity
20527
+ * through an item interaction.
20528
+ *
20529
+ * @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
20530
+ *
20531
+ * @privilege early-execution-allowed - This function can be called in early-execution mode.
20532
+ *
20533
+ * @param callback
20534
+ * This closure is called with restricted-execution privilege.
20535
+ * @returns
20536
+ * Closure that is called with restricted-execution privilege.
20537
+ */
20538
+ subscribe(
20539
+ callback: (arg0: PlayerItemAttackEntityBeforeEvent) => void,
20540
+ ): (arg0: PlayerItemAttackEntityBeforeEvent) => void;
20541
+ /**
20542
+ * @remarks
20543
+ * Removes a callback from this event signal.
20544
+ *
20545
+ * @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
20546
+ *
20547
+ * @privilege early-execution-allowed - This function can be called in early-execution mode.
20548
+ *
20549
+ * @param callback
20550
+ * This closure is called with restricted-execution privilege.
20551
+ */
20552
+ unsubscribe(callback: (arg0: PlayerItemAttackEntityBeforeEvent) => void): void;
20553
+ }
20554
+
20182
20555
  /**
20183
20556
  * Contains information regarding a player that has joined.
20184
20557
  * See the playerSpawn event for more detailed information that
@@ -23126,7 +23499,7 @@ export class StartupEvent {
23126
23499
  */
23127
23500
  readonly itemComponentRegistry: ItemComponentRegistry;
23128
23501
  /**
23129
- * @beta
23502
+ * @rc
23130
23503
  * @remarks
23131
23504
  * @privilege early-execution-readable - This property can be read in early-execution mode.
23132
23505
  *
@@ -24053,7 +24426,7 @@ export class TickingAreaManager {
24053
24426
  }
24054
24427
 
24055
24428
  /**
24056
- * @beta
24429
+ * @rc
24057
24430
  * A named point in time on a world clock that can occur once
24058
24431
  * or periodically.
24059
24432
  */
@@ -24648,7 +25021,7 @@ export class World {
24648
25021
  */
24649
25022
  getAllPlayers(): Player[];
24650
25023
  /**
24651
- * @beta
25024
+ * @rc
24652
25025
  * @remarks
24653
25026
  * Retrieves a world clock by its name.
24654
25027
  *
@@ -25435,6 +25808,26 @@ export class WorldAfterEvents {
25435
25808
  *
25436
25809
  */
25437
25810
  readonly playerCraftRecipe: PlayerCraftRecipeAfterEventSignal;
25811
+ /**
25812
+ * @beta
25813
+ * @remarks
25814
+ * Event signal that fires when a player grabs an item from a
25815
+ * container to their cursor.
25816
+ *
25817
+ * @privilege early-execution-readable - This property can be read in early-execution mode.
25818
+ *
25819
+ */
25820
+ readonly playerCursorItemGrab: PlayerCursorItemGrabAfterEventSignal;
25821
+ /**
25822
+ * @beta
25823
+ * @remarks
25824
+ * Event signal that fires when a player releases an item from
25825
+ * their cursor into a container.
25826
+ *
25827
+ * @privilege early-execution-readable - This property can be read in early-execution mode.
25828
+ *
25829
+ */
25830
+ readonly playerCursorItemRelease: PlayerCursorItemReleaseAfterEventSignal;
25438
25831
  /**
25439
25832
  * @remarks
25440
25833
  * Fires when a player moved to a different dimension.
@@ -25632,7 +26025,7 @@ export class WorldAfterEvents {
25632
26025
  */
25633
26026
  readonly weatherChange: WeatherChangeAfterEventSignal;
25634
26027
  /**
25635
- * @beta
26028
+ * @rc
25636
26029
  * @remarks
25637
26030
  * This event fires when a {@link WorldClock} is paused.
25638
26031
  *
@@ -25641,7 +26034,7 @@ export class WorldAfterEvents {
25641
26034
  */
25642
26035
  readonly worldClockOnPaused: WorldClockOnPausedAfterEventSignal;
25643
26036
  /**
25644
- * @beta
26037
+ * @rc
25645
26038
  * @remarks
25646
26039
  * This event fires when a {@link WorldClock} is resumed.
25647
26040
  *
@@ -25650,7 +26043,7 @@ export class WorldAfterEvents {
25650
26043
  */
25651
26044
  readonly worldClockOnResumed: WorldClockOnResumedAfterEventSignal;
25652
26045
  /**
25653
- * @beta
26046
+ * @rc
25654
26047
  * @remarks
25655
26048
  * This event fires when the time of a {@link WorldClock} hits
25656
26049
  * a {@link TimeMarker} on the clock. This can happen during a
@@ -25661,7 +26054,7 @@ export class WorldAfterEvents {
25661
26054
  */
25662
26055
  readonly worldClockOnTimeMarker: WorldClockOnTimeMarkerAfterEventSignal;
25663
26056
  /**
25664
- * @beta
26057
+ * @rc
25665
26058
  * @remarks
25666
26059
  * This event fires when a {@link WorldClock} time is changed.
25667
26060
  * This can happen when the time is directly set through
@@ -25819,6 +26212,13 @@ export class WorldBeforeEvents {
25819
26212
  *
25820
26213
  */
25821
26214
  readonly playerInteractWithEntity: PlayerInteractWithEntityBeforeEventSignal;
26215
+ /**
26216
+ * @beta
26217
+ * @remarks
26218
+ * @privilege early-execution-readable - This property can be read in early-execution mode.
26219
+ *
26220
+ */
26221
+ readonly playerItemAttackEntity: PlayerItemAttackEntityBeforeEventSignal;
25822
26222
  /**
25823
26223
  * @remarks
25824
26224
  * Fires when a player leaves the game.
@@ -25843,7 +26243,7 @@ export class WorldBeforeEvents {
25843
26243
  */
25844
26244
  readonly weatherChange: WeatherChangeBeforeEventSignal;
25845
26245
  /**
25846
- * @beta
26246
+ * @rc
25847
26247
  * @remarks
25848
26248
  * This event fires when a {@link WorldClock} reaches its
25849
26249
  * maximum time and is about to restart.
@@ -25855,7 +26255,7 @@ export class WorldBeforeEvents {
25855
26255
  }
25856
26256
 
25857
26257
  /**
25858
- * @beta
26258
+ * @rc
25859
26259
  * A class that represents a particular clock within a world.
25860
26260
  */
25861
26261
  export class WorldClock {
@@ -25982,7 +26382,7 @@ export class WorldClock {
25982
26382
  }
25983
26383
 
25984
26384
  /**
25985
- * @beta
26385
+ * @rc
25986
26386
  * Contains information related to a {@link WorldClock} being
25987
26387
  * paused.
25988
26388
  */
@@ -25997,7 +26397,7 @@ export class WorldClockOnPausedAfterEvent {
25997
26397
  }
25998
26398
 
25999
26399
  /**
26000
- * @beta
26400
+ * @rc
26001
26401
  * Manages callbacks that are connected to a {@link WorldClock}
26002
26402
  * being paused.
26003
26403
  */
@@ -26031,7 +26431,7 @@ export class WorldClockOnPausedAfterEventSignal {
26031
26431
  }
26032
26432
 
26033
26433
  /**
26034
- * @beta
26434
+ * @rc
26035
26435
  * Contains information related to a {@link WorldClock}
26036
26436
  * restarting.
26037
26437
  */
@@ -26062,7 +26462,7 @@ export class WorldClockOnRestartBeforeEvent {
26062
26462
  }
26063
26463
 
26064
26464
  /**
26065
- * @beta
26465
+ * @rc
26066
26466
  * Manages callbacks that are connected to a {@link WorldClock}
26067
26467
  * restarting.
26068
26468
  */
@@ -26102,7 +26502,7 @@ export class WorldClockOnRestartBeforeEventSignal {
26102
26502
  }
26103
26503
 
26104
26504
  /**
26105
- * @beta
26505
+ * @rc
26106
26506
  * Contains information related to a {@link WorldClock} being
26107
26507
  * resumed.
26108
26508
  */
@@ -26117,7 +26517,7 @@ export class WorldClockOnResumedAfterEvent {
26117
26517
  }
26118
26518
 
26119
26519
  /**
26120
- * @beta
26520
+ * @rc
26121
26521
  * Manages callbacks that are connected to a {@link WorldClock}
26122
26522
  * being resumed.
26123
26523
  */
@@ -26151,7 +26551,7 @@ export class WorldClockOnResumedAfterEventSignal {
26151
26551
  }
26152
26552
 
26153
26553
  /**
26154
- * @beta
26554
+ * @rc
26155
26555
  * Contains information related to when the time of a
26156
26556
  * {@link WorldClock} hits a {@link TimeMarker}.
26157
26557
  */
@@ -26172,7 +26572,7 @@ export class WorldClockOnTimeMarkerAfterEvent {
26172
26572
  }
26173
26573
 
26174
26574
  /**
26175
- * @beta
26575
+ * @rc
26176
26576
  * Manages callbacks that are connected to when the time of a
26177
26577
  * {@link WorldClock} hits a {@link TimeMarker}.
26178
26578
  */
@@ -26206,7 +26606,7 @@ export class WorldClockOnTimeMarkerAfterEventSignal {
26206
26606
  }
26207
26607
 
26208
26608
  /**
26209
- * @beta
26609
+ * @rc
26210
26610
  * Contains information related to changes to the time of a
26211
26611
  * {@link WorldClock}.
26212
26612
  */
@@ -26221,7 +26621,7 @@ export class WorldClockOnTimeModifiedAfterEvent {
26221
26621
  }
26222
26622
 
26223
26623
  /**
26224
- * @beta
26624
+ * @rc
26225
26625
  * Manages callbacks that are connected to changes to the time
26226
26626
  * of a {@link WorldClock}.
26227
26627
  */
@@ -26255,7 +26655,7 @@ export class WorldClockOnTimeModifiedAfterEventSignal {
26255
26655
  }
26256
26656
 
26257
26657
  /**
26258
- * @beta
26658
+ * @rc
26259
26659
  * Provides the functionality for registering custom world
26260
26660
  * clocks. World clocks can only be registered during the
26261
26661
  * system startup event.
@@ -26468,6 +26868,10 @@ export interface BlockCustomComponent {
26468
26868
  * @beta
26469
26869
  */
26470
26870
  onNamedTick?: (arg0: BlockComponentNamedTickEvent, arg1: CustomComponentParameters) => void;
26871
+ /**
26872
+ * @beta
26873
+ */
26874
+ onNeighborChanged?: (arg0: BlockComponentNeighborChangedAfterEvent, arg1: CustomComponentParameters) => void;
26471
26875
  /**
26472
26876
  * @remarks
26473
26877
  * This function will be called when the block that this custom
@@ -28345,6 +28749,35 @@ export interface MusicOptions {
28345
28749
  volume?: number;
28346
28750
  }
28347
28751
 
28752
+ /**
28753
+ * @beta
28754
+ * Contains information regarding a block change in one
28755
+ * neighboring direction.
28756
+ */
28757
+ export interface NeighborChange {
28758
+ /**
28759
+ * @remarks
28760
+ * The permutation of the neighboring block after its last
28761
+ * change during the tick.
28762
+ *
28763
+ */
28764
+ blockPermutation: BlockPermutation;
28765
+ /**
28766
+ * @remarks
28767
+ * Direction from the block receiving the event to the
28768
+ * neighboring block that changed.
28769
+ *
28770
+ */
28771
+ direction: Direction;
28772
+ /**
28773
+ * @remarks
28774
+ * The permutation of the neighboring block before its first
28775
+ * change during the tick.
28776
+ *
28777
+ */
28778
+ previousPermutation: BlockPermutation;
28779
+ }
28780
+
28348
28781
  /**
28349
28782
  * Not equal to operator.
28350
28783
  */
@@ -29399,7 +29832,7 @@ export interface TickingAreaOptions {
29399
29832
  }
29400
29833
 
29401
29834
  /**
29402
- * @beta
29835
+ * @rc
29403
29836
  * Options for creating time markers for world clocks.
29404
29837
  */
29405
29838
  export interface TimeMarkerOptions {
@@ -29567,7 +30000,7 @@ export interface WaypointTextureSelector {
29567
30000
  }
29568
30001
 
29569
30002
  /**
29570
- * @beta
30003
+ * @rc
29571
30004
  * Contains parameters for world clock events that filters out
29572
30005
  * which events are passed to the provided callback.
29573
30006
  */
@@ -29581,7 +30014,7 @@ export interface WorldClockEventOptions {
29581
30014
  }
29582
30015
 
29583
30016
  /**
29584
- * @beta
30017
+ * @rc
29585
30018
  * Contains additional options for registering world clocks.
29586
30019
  */
29587
30020
  export interface WorldClockRegistrationOptions {
@@ -29595,7 +30028,7 @@ export interface WorldClockRegistrationOptions {
29595
30028
  }
29596
30029
 
29597
30030
  /**
29598
- * @beta
30031
+ * @rc
29599
30032
  * Contains parameters for world clock time marker events that
29600
30033
  * filters out which events are passed to the provided
29601
30034
  * callback.
@@ -30100,7 +30533,7 @@ export class UnloadedChunksError extends Error {
30100
30533
  }
30101
30534
 
30102
30535
  /**
30103
- * @beta
30536
+ * @rc
30104
30537
  * Error thrown by {@link WorldClock.addTimeMarker} when
30105
30538
  * failing to add a time marker to a world clock.
30106
30539
  */
@@ -30110,7 +30543,7 @@ export class WorldClockAddTimeMarkerError extends Error {
30110
30543
  }
30111
30544
 
30112
30545
  /**
30113
- * @beta
30546
+ * @rc
30114
30547
  * Thrown when trying to register a world clock outside of the
30115
30548
  * system startup event.
30116
30549
  */
@@ -30120,7 +30553,7 @@ export class WorldClockInvalidRegistryError extends Error {
30120
30553
  }
30121
30554
 
30122
30555
  /**
30123
- * @beta
30556
+ * @rc
30124
30557
  * Error thrown when a time marker is invalid. This can occur
30125
30558
  * when trying to access data on a time marker that has been
30126
30559
  * removed.
@@ -30131,7 +30564,7 @@ export class WorldClockInvalidTimeMarkerError extends Error {
30131
30564
  }
30132
30565
 
30133
30566
  /**
30134
- * @beta
30567
+ * @rc
30135
30568
  * Error thrown when a world clock is not found in the world
30136
30569
  * clock registry.
30137
30570
  */
@@ -30141,7 +30574,7 @@ export class WorldClockNotFoundError extends Error {
30141
30574
  }
30142
30575
 
30143
30576
  /**
30144
- * @beta
30577
+ * @rc
30145
30578
  * Error thrown by {@link WorldClockRegistry.registerClock}
30146
30579
  * when failing to register a world clock.
30147
30580
  */
@@ -30151,7 +30584,7 @@ export class WorldClockRegistrationError extends Error {
30151
30584
  }
30152
30585
 
30153
30586
  /**
30154
- * @beta
30587
+ * @rc
30155
30588
  * Thrown after using the /reload command when trying to
30156
30589
  * register a world clock that was not previously registered.
30157
30590
  * New world clocks cannot be added during a reload.
@@ -30162,7 +30595,7 @@ export class WorldClockReloadNewWorldClockError extends Error {
30162
30595
  }
30163
30596
 
30164
30597
  /**
30165
- * @beta
30598
+ * @rc
30166
30599
  * Error thrown after using the /reload command when trying to
30167
30600
  * re-register an existing world clock with an invalid time
30168
30601
  * marker.
@@ -30173,7 +30606,7 @@ export class WorldClockReloadTimeMarkerError extends Error {
30173
30606
  }
30174
30607
 
30175
30608
  /**
30176
- * @beta
30609
+ * @rc
30177
30610
  * Error thrown by {@link WorldClock.removeTimeMarker} when
30178
30611
  * trying to remove a time marker with the 'minecraft'
30179
30612
  * namespace from a world clock.
@@ -30184,7 +30617,7 @@ export class WorldClockRemoveMinecraftTimeMarkerError extends Error {
30184
30617
  }
30185
30618
 
30186
30619
  /**
30187
- * @beta
30620
+ * @rc
30188
30621
  * Error thrown by {@link WorldClock.rewindTo} when the world
30189
30622
  * clock's time is already before the time marker's first
30190
30623
  * occurrence.
@@ -30195,7 +30628,7 @@ export class WorldClockRewindError extends Error {
30195
30628
  }
30196
30629
 
30197
30630
  /**
30198
- * @beta
30631
+ * @rc
30199
30632
  * Error thrown when performing actions on a world clock with a
30200
30633
  * time marker that does not exist.
30201
30634
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "2.12.0-beta.1.26.60-preview.28",
3
+ "version": "2.12.0-beta.1.26.60-preview.30",
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.60-preview.28"
17
+ "@minecraft/vanilla-data": ">=1.20.70 || 1.26.60-preview.30"
18
18
  },
19
19
  "license": "MIT"
20
20
  }