@minecraft/server 2.7.0-rc.1.26.20-preview.20 → 2.7.0-rc.1.26.20-preview.22

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 +549 -592
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -25,7 +25,6 @@ import * as minecraftcommon from '@minecraft/common';
25
25
  // @ts-ignore Optional types-only package, will decay to any if @minecraft/vanilla-data isn't installed
26
26
  import type * as minecraftvanilladata from '@minecraft/vanilla-data';
27
27
  /**
28
- * @rc
29
28
  * Specifies different targeting modes for use in aim-assist.
30
29
  */
31
30
  export enum AimAssistTargetMode {
@@ -700,7 +699,6 @@ export enum EnchantmentSlot {
700
699
  }
701
700
 
702
701
  /**
703
- * @rc
704
702
  * The entity's attach location point. Contains points such as
705
703
  * head, body, leg, etc to attach the camera to.
706
704
  */
@@ -1412,7 +1410,6 @@ export enum EntityDamageCause {
1412
1410
  }
1413
1411
 
1414
1412
  /**
1415
- * @rc
1416
1413
  * Describes the source of healing of an Entity.
1417
1414
  */
1418
1415
  export enum EntityHealCause {
@@ -2766,7 +2763,6 @@ export enum StructureSaveMode {
2766
2763
  }
2767
2764
 
2768
2765
  /**
2769
- * @rc
2770
2766
  * The reason that the {@link
2771
2767
  * @minecraft/server.TickingAreaError} was thrown.
2772
2768
  */
@@ -3128,7 +3124,6 @@ export type ItemComponentTypeMap = {
3128
3124
  };
3129
3125
 
3130
3126
  /**
3131
- * @rc
3132
3127
  * Handle to an aim-assist category that exists in the
3133
3128
  * world.aimAssist registry.
3134
3129
  */
@@ -3203,7 +3198,6 @@ export class AimAssistCategory {
3203
3198
  }
3204
3199
 
3205
3200
  /**
3206
- * @rc
3207
3201
  * Settings used with AimAssistRegistry.addCategory for
3208
3202
  * creation of the AimAssistCategory.
3209
3203
  */
@@ -3317,7 +3311,6 @@ export class AimAssistCategorySettings {
3317
3311
  }
3318
3312
 
3319
3313
  /**
3320
- * @rc
3321
3314
  * Handle to an aim-assist preset that exists in the
3322
3315
  * world.aimAssist registry.
3323
3316
  */
@@ -3410,7 +3403,6 @@ export class AimAssistPreset {
3410
3403
  }
3411
3404
 
3412
3405
  /**
3413
- * @rc
3414
3406
  * Settings used with AimAssistRegistry.addPreset for creation
3415
3407
  * of the AimAssistPreset.
3416
3408
  */
@@ -3560,7 +3552,6 @@ export class AimAssistPresetSettings {
3560
3552
  }
3561
3553
 
3562
3554
  /**
3563
- * @rc
3564
3555
  * A container for APIs related to the world's aim-assist
3565
3556
  * settings.
3566
3557
  */
@@ -3674,6 +3665,49 @@ export class BiomeType {
3674
3665
  *
3675
3666
  */
3676
3667
  readonly id: string;
3668
+ /**
3669
+ * @rc
3670
+ * @remarks
3671
+ * Returns a list of the biome's tags.
3672
+ *
3673
+ */
3674
+ getTags(): string[];
3675
+ /**
3676
+ * @rc
3677
+ * @remarks
3678
+ * Checks if the biome has all of the provided tags.
3679
+ *
3680
+ * @param tags
3681
+ * The list of tags to check against the biome.
3682
+ */
3683
+ hasTags(tags: string[]): boolean;
3684
+ }
3685
+
3686
+ /**
3687
+ * @rc
3688
+ * Supports a catalog of available biome types registered
3689
+ * within Minecraft.
3690
+ */
3691
+ export class BiomeTypes {
3692
+ private constructor();
3693
+ /**
3694
+ * @remarks
3695
+ * Returns a specific biome type.
3696
+ *
3697
+ * @param typeName
3698
+ * Identifier of the biome. Generally, namespaced identifiers
3699
+ * (e.g., minecraft:frozen_peaks) should be used.
3700
+ * @returns
3701
+ * If the biome exists, a BiomeType object is returned. If not,
3702
+ * undefined is returned.
3703
+ */
3704
+ static get(typeName: string): BiomeType | undefined;
3705
+ /**
3706
+ * @remarks
3707
+ * Returns all registered biome types within Minecraft
3708
+ *
3709
+ */
3710
+ static getAll(): BiomeType[];
3677
3711
  }
3678
3712
 
3679
3713
  /**
@@ -3926,7 +3960,6 @@ export class Block {
3926
3960
  */
3927
3961
  getComponent<T extends string>(componentId: T): BlockComponentReturnType<T> | undefined;
3928
3962
  /**
3929
- * @rc
3930
3963
  * @remarks
3931
3964
  * Returns all scripting components that are present on this
3932
3965
  * block.
@@ -4022,7 +4055,6 @@ export class Block {
4022
4055
  */
4023
4056
  getTags(): string[];
4024
4057
  /**
4025
- * @rc
4026
4058
  * @remarks
4027
4059
  * Returns true if the specified component is present on this
4028
4060
  * block.
@@ -4055,7 +4087,7 @@ export class Block {
4055
4087
  * {@link LocationOutOfWorldBoundariesError}
4056
4088
  * @example checkBlockTags.ts
4057
4089
  * ```typescript
4058
- * import { DimensionLocation } from "@minecraft/server";
4090
+ * import { DimensionLocation } from '@minecraft/server';
4059
4091
  *
4060
4092
  * function checkBlockTags(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
4061
4093
  * // Fetch the block
@@ -4063,9 +4095,9 @@ export class Block {
4063
4095
  *
4064
4096
  * // check that the block is loaded
4065
4097
  * if (block) {
4066
- * log(`Block is dirt: ${block.hasTag("dirt")}`);
4067
- * log(`Block is wood: ${block.hasTag("wood")}`);
4068
- * log(`Block is stone: ${block.hasTag("stone")}`);
4098
+ * log(`Block is dirt: ${block.hasTag('dirt')}`);
4099
+ * log(`Block is wood: ${block.hasTag('wood')}`);
4100
+ * log(`Block is stone: ${block.hasTag('stone')}`);
4069
4101
  * }
4070
4102
  * }
4071
4103
  * ```
@@ -4306,7 +4338,6 @@ export class BlockComponentBlockBreakEvent extends BlockEvent {
4306
4338
  }
4307
4339
 
4308
4340
  /**
4309
- * @rc
4310
4341
  * Contains information regarding an event sent by an entity to
4311
4342
  * this block in the world.
4312
4343
  */
@@ -4480,7 +4511,6 @@ export class BlockComponentRedstoneUpdateEvent extends BlockEvent {
4480
4511
  */
4481
4512
  readonly powerLevel: number;
4482
4513
  /**
4483
- * @rc
4484
4514
  * @remarks
4485
4515
  * The redstone signal strength from the last tick that was
4486
4516
  * passing through this block. It is guaranteed to be >= the
@@ -4704,15 +4734,15 @@ export class BlockFluidContainerComponent extends BlockComponent {
4704
4734
  * blocks like chests.
4705
4735
  * @example placeItemsInChest.ts
4706
4736
  * ```typescript
4707
- * import { ItemStack, BlockInventoryComponent, DimensionLocation } from "@minecraft/server";
4708
- * import { MinecraftBlockTypes, MinecraftItemTypes } from "@minecraft/vanilla-data";
4737
+ * import { ItemStack, BlockInventoryComponent, DimensionLocation } from '@minecraft/server';
4738
+ * import { MinecraftBlockTypes, MinecraftItemTypes } from '@minecraft/vanilla-data';
4709
4739
  *
4710
4740
  * function placeItemsInChest(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
4711
4741
  * // Fetch block
4712
4742
  * const block = targetLocation.dimension.getBlock(targetLocation);
4713
4743
  *
4714
4744
  * if (!block) {
4715
- * log("Could not find block. Maybe it is not loaded?", -1);
4745
+ * log('Could not find block. Maybe it is not loaded?', -1);
4716
4746
  * return;
4717
4747
  * }
4718
4748
  *
@@ -4720,10 +4750,10 @@ export class BlockFluidContainerComponent extends BlockComponent {
4720
4750
  * block.setType(MinecraftBlockTypes.Chest);
4721
4751
  *
4722
4752
  * // Get the inventory
4723
- * const inventoryComponent = block.getComponent("inventory") as BlockInventoryComponent;
4753
+ * const inventoryComponent = block.getComponent('inventory') as BlockInventoryComponent;
4724
4754
  *
4725
4755
  * if (!inventoryComponent || !inventoryComponent.container) {
4726
- * log("Could not find inventory component.", -1);
4756
+ * log('Could not find inventory component.', -1);
4727
4757
  * return;
4728
4758
  * }
4729
4759
  *
@@ -4842,8 +4872,8 @@ export class BlockMovableComponent extends BlockComponent {
4842
4872
  * Block}).
4843
4873
  * @example addTranslatedSign.ts
4844
4874
  * ```typescript
4845
- * import { world, BlockPermutation, BlockSignComponent, BlockComponentTypes, DimensionLocation } from "@minecraft/server";
4846
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
4875
+ * import { world, BlockPermutation, BlockSignComponent, BlockComponentTypes, DimensionLocation } from '@minecraft/server';
4876
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
4847
4877
  *
4848
4878
  * function addTranslatedSign(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
4849
4879
  * const players = world.getPlayers();
@@ -4853,7 +4883,7 @@ export class BlockMovableComponent extends BlockComponent {
4853
4883
  * const signBlock = dim.getBlock(targetLocation);
4854
4884
  *
4855
4885
  * if (!signBlock) {
4856
- * log("Could not find a block at specified location.");
4886
+ * log('Could not find a block at specified location.');
4857
4887
  * return -1;
4858
4888
  * }
4859
4889
  * const signPerm = BlockPermutation.resolve(MinecraftBlockTypes.StandingSign, { ground_sign_direction: 8 });
@@ -4862,14 +4892,13 @@ export class BlockMovableComponent extends BlockComponent {
4862
4892
  *
4863
4893
  * const signComponent = signBlock.getComponent(BlockComponentTypes.Sign) as BlockSignComponent;
4864
4894
  *
4865
- * signComponent?.setText({ translate: "item.skull.player.name", with: [players[0].name] });
4895
+ * signComponent?.setText({ translate: 'item.skull.player.name', with: [players[0].name] });
4866
4896
  * }
4867
4897
  * ```
4868
4898
  */
4869
4899
  export class BlockPermutation {
4870
4900
  private constructor();
4871
4901
  /**
4872
- * @rc
4873
4902
  * @remarks
4874
4903
  * Key for the localization of this BlockPermutation's name
4875
4904
  * used in .lang files.
@@ -4956,7 +4985,7 @@ export class BlockPermutation {
4956
4985
  * Returns `true` if the permutation has the tag, else `false`.
4957
4986
  * @example checkBlockTags.ts
4958
4987
  * ```typescript
4959
- * import { DimensionLocation } from "@minecraft/server";
4988
+ * import { DimensionLocation } from '@minecraft/server';
4960
4989
  *
4961
4990
  * function checkBlockTags(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
4962
4991
  * // Fetch the block
@@ -4964,9 +4993,9 @@ export class BlockPermutation {
4964
4993
  *
4965
4994
  * // check that the block is loaded
4966
4995
  * if (block) {
4967
- * log(`Block is dirt: ${block.hasTag("dirt")}`);
4968
- * log(`Block is wood: ${block.hasTag("wood")}`);
4969
- * log(`Block is stone: ${block.hasTag("stone")}`);
4996
+ * log(`Block is dirt: ${block.hasTag('dirt')}`);
4997
+ * log(`Block is wood: ${block.hasTag('wood')}`);
4998
+ * log(`Block is stone: ${block.hasTag('stone')}`);
4970
4999
  * }
4971
5000
  * }
4972
5001
  * ```
@@ -5035,9 +5064,9 @@ export class BlockPermutation {
5035
5064
  * @throws This function can throw errors.
5036
5065
  * @example addBlockColorCube.ts
5037
5066
  * ```typescript
5038
- * import { BlockPermutation, DimensionLocation } from "@minecraft/server";
5039
- * import { Vector3Utils } from "@minecraft/math";
5040
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
5067
+ * import { BlockPermutation, DimensionLocation } from '@minecraft/server';
5068
+ * import { Vector3Utils } from '@minecraft/math';
5069
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
5041
5070
  *
5042
5071
  * function addBlockColorCube(targetLocation: DimensionLocation) {
5043
5072
  * const allWoolBlocks: string[] = [
@@ -5272,8 +5301,8 @@ export class BlockRedstoneProducerComponent extends BlockComponent {
5272
5301
  * Represents a block that can display text on it.
5273
5302
  * @example addSign.ts
5274
5303
  * ```typescript
5275
- * import { world, BlockPermutation, BlockSignComponent, BlockComponentTypes, DimensionLocation } from "@minecraft/server";
5276
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
5304
+ * import { world, BlockPermutation, BlockSignComponent, BlockComponentTypes, DimensionLocation } from '@minecraft/server';
5305
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
5277
5306
  *
5278
5307
  * function addSign(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
5279
5308
  * const players = world.getPlayers();
@@ -5283,7 +5312,7 @@ export class BlockRedstoneProducerComponent extends BlockComponent {
5283
5312
  * const signBlock = dim.getBlock(targetLocation);
5284
5313
  *
5285
5314
  * if (!signBlock) {
5286
- * log("Could not find a block at specified location.");
5315
+ * log('Could not find a block at specified location.');
5287
5316
  * return -1;
5288
5317
  * }
5289
5318
  * const signPerm = BlockPermutation.resolve(MinecraftBlockTypes.StandingSign, { ground_sign_direction: 8 });
@@ -5297,14 +5326,21 @@ export class BlockRedstoneProducerComponent extends BlockComponent {
5297
5326
  * ```
5298
5327
  * @example addTwoSidedSign.ts
5299
5328
  * ```typescript
5300
- * import { BlockPermutation, BlockSignComponent, SignSide, DyeColor, BlockComponentTypes, DimensionLocation } from "@minecraft/server";
5301
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
5329
+ * import {
5330
+ * BlockPermutation,
5331
+ * BlockSignComponent,
5332
+ * SignSide,
5333
+ * DyeColor,
5334
+ * BlockComponentTypes,
5335
+ * DimensionLocation,
5336
+ * } from '@minecraft/server';
5337
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
5302
5338
  *
5303
5339
  * function addTwoSidedSign(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
5304
5340
  * const signBlock = targetLocation.dimension.getBlock(targetLocation);
5305
5341
  *
5306
5342
  * if (!signBlock) {
5307
- * log("Could not find a block at specified location.");
5343
+ * log('Could not find a block at specified location.');
5308
5344
  * return -1;
5309
5345
  * }
5310
5346
  * const signPerm = BlockPermutation.resolve(MinecraftBlockTypes.StandingSign, { ground_sign_direction: 8 });
@@ -5322,42 +5358,42 @@ export class BlockRedstoneProducerComponent extends BlockComponent {
5322
5358
  * // players cannot edit sign!
5323
5359
  * signComponent.setWaxed(true);
5324
5360
  * } else {
5325
- * log("Could not find sign component.");
5361
+ * log('Could not find sign component.');
5326
5362
  * }
5327
5363
  * }
5328
5364
  * ```
5329
5365
  * @example updateSignText.ts
5330
5366
  * ```typescript
5331
- * import { BlockSignComponent, BlockComponentTypes, DimensionLocation, RawMessage, RawText } from "@minecraft/server";
5367
+ * import { BlockSignComponent, BlockComponentTypes, DimensionLocation, RawMessage, RawText } from '@minecraft/server';
5332
5368
  *
5333
5369
  * function updateSignText(targetLocation: DimensionLocation) {
5334
5370
  * const block = targetLocation.dimension.getBlock(targetLocation);
5335
5371
  * if (!block) {
5336
- * console.warn("Could not find a block at specified location.");
5372
+ * console.warn('Could not find a block at specified location.');
5337
5373
  * return;
5338
5374
  * }
5339
5375
  *
5340
5376
  * const sign = block.getComponent(BlockComponentTypes.Sign) as BlockSignComponent;
5341
5377
  * if (sign) {
5342
5378
  * // RawMessage
5343
- * const helloWorldMessage: RawMessage = { text: "Hello World" };
5379
+ * const helloWorldMessage: RawMessage = { text: 'Hello World' };
5344
5380
  * sign.setText(helloWorldMessage);
5345
5381
  *
5346
5382
  * // RawText
5347
- * const helloWorldText: RawText = { rawtext: [{ text: "Hello World" }] };
5383
+ * const helloWorldText: RawText = { rawtext: [{ text: 'Hello World' }] };
5348
5384
  * sign.setText(helloWorldText);
5349
5385
  *
5350
5386
  * // Regular string
5351
- * sign.setText("Hello World");
5387
+ * sign.setText('Hello World');
5352
5388
  * } else {
5353
- * console.warn("Could not find a sign component on the block.");
5389
+ * console.warn('Could not find a sign component on the block.');
5354
5390
  * }
5355
5391
  * }
5356
5392
  * ```
5357
5393
  * @example addTranslatedSign.ts
5358
5394
  * ```typescript
5359
- * import { world, BlockPermutation, BlockSignComponent, BlockComponentTypes, DimensionLocation } from "@minecraft/server";
5360
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
5395
+ * import { world, BlockPermutation, BlockSignComponent, BlockComponentTypes, DimensionLocation } from '@minecraft/server';
5396
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
5361
5397
  *
5362
5398
  * function addTranslatedSign(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
5363
5399
  * const players = world.getPlayers();
@@ -5367,7 +5403,7 @@ export class BlockRedstoneProducerComponent extends BlockComponent {
5367
5403
  * const signBlock = dim.getBlock(targetLocation);
5368
5404
  *
5369
5405
  * if (!signBlock) {
5370
- * log("Could not find a block at specified location.");
5406
+ * log('Could not find a block at specified location.');
5371
5407
  * return -1;
5372
5408
  * }
5373
5409
  * const signPerm = BlockPermutation.resolve(MinecraftBlockTypes.StandingSign, { ground_sign_direction: 8 });
@@ -5376,7 +5412,7 @@ export class BlockRedstoneProducerComponent extends BlockComponent {
5376
5412
  *
5377
5413
  * const signComponent = signBlock.getComponent(BlockComponentTypes.Sign) as BlockSignComponent;
5378
5414
  *
5379
- * signComponent?.setText({ translate: "item.skull.player.name", with: [players[0].name] });
5415
+ * signComponent?.setText({ translate: 'item.skull.player.name', with: [players[0].name] });
5380
5416
  * }
5381
5417
  * ```
5382
5418
  */
@@ -5539,7 +5575,6 @@ export class BlockType {
5539
5575
  */
5540
5576
  readonly id: string;
5541
5577
  /**
5542
- * @rc
5543
5578
  * @remarks
5544
5579
  * Key for the localization of this BlockType's name used in
5545
5580
  * .lang files.
@@ -5719,8 +5754,8 @@ export class BlockVolumeBase {
5719
5754
  * Contains information related to changes to a button push.
5720
5755
  * @example buttonPushEvent.ts
5721
5756
  * ```typescript
5722
- * import { world, system, BlockPermutation, ButtonPushAfterEvent, DimensionLocation } from "@minecraft/server";
5723
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
5757
+ * import { world, system, BlockPermutation, ButtonPushAfterEvent, DimensionLocation } from '@minecraft/server';
5758
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
5724
5759
  *
5725
5760
  * function buttonPushEvent(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
5726
5761
  * // set up a button on cobblestone
@@ -5732,18 +5767,18 @@ export class BlockVolumeBase {
5732
5767
  * });
5733
5768
  *
5734
5769
  * if (cobblestone === undefined || button === undefined) {
5735
- * log("Could not find block at location.");
5770
+ * log('Could not find block at location.');
5736
5771
  * return -1;
5737
5772
  * }
5738
5773
  *
5739
5774
  * cobblestone.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.Cobblestone));
5740
- * button.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.AcaciaButton).withState("facing_direction", 1));
5775
+ * button.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.AcaciaButton).withState('facing_direction', 1));
5741
5776
  *
5742
5777
  * world.afterEvents.buttonPush.subscribe((buttonPushEvent: ButtonPushAfterEvent) => {
5743
5778
  * const eventLoc = buttonPushEvent.block.location;
5744
5779
  *
5745
5780
  * if (eventLoc.x === targetLocation.x && eventLoc.y === targetLocation.y + 1 && eventLoc.z === targetLocation.z) {
5746
- * log("Button push event at tick " + system.currentTick);
5781
+ * log('Button push event at tick ' + system.currentTick);
5747
5782
  * }
5748
5783
  * });
5749
5784
  * }
@@ -5765,8 +5800,8 @@ export class ButtonPushAfterEvent extends BlockEvent {
5765
5800
  * pushed.
5766
5801
  * @example buttonPushEvent.ts
5767
5802
  * ```typescript
5768
- * import { world, system, BlockPermutation, ButtonPushAfterEvent, DimensionLocation } from "@minecraft/server";
5769
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
5803
+ * import { world, system, BlockPermutation, ButtonPushAfterEvent, DimensionLocation } from '@minecraft/server';
5804
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
5770
5805
  *
5771
5806
  * function buttonPushEvent(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
5772
5807
  * // set up a button on cobblestone
@@ -5778,18 +5813,18 @@ export class ButtonPushAfterEvent extends BlockEvent {
5778
5813
  * });
5779
5814
  *
5780
5815
  * if (cobblestone === undefined || button === undefined) {
5781
- * log("Could not find block at location.");
5816
+ * log('Could not find block at location.');
5782
5817
  * return -1;
5783
5818
  * }
5784
5819
  *
5785
5820
  * cobblestone.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.Cobblestone));
5786
- * button.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.AcaciaButton).withState("facing_direction", 1));
5821
+ * button.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.AcaciaButton).withState('facing_direction', 1));
5787
5822
  *
5788
5823
  * world.afterEvents.buttonPush.subscribe((buttonPushEvent: ButtonPushAfterEvent) => {
5789
5824
  * const eventLoc = buttonPushEvent.block.location;
5790
5825
  *
5791
5826
  * if (eventLoc.x === targetLocation.x && eventLoc.y === targetLocation.y + 1 && eventLoc.z === targetLocation.z) {
5792
- * log("Button push event at tick " + system.currentTick);
5827
+ * log('Button push event at tick ' + system.currentTick);
5793
5828
  * }
5794
5829
  * });
5795
5830
  * }
@@ -5835,7 +5870,6 @@ export class Camera {
5835
5870
  */
5836
5871
  readonly isValid: boolean;
5837
5872
  /**
5838
- * @rc
5839
5873
  * @remarks
5840
5874
  * Attaches the camera to a non-player entity.
5841
5875
  *
@@ -5872,7 +5906,6 @@ export class Camera {
5872
5906
  */
5873
5907
  fade(fadeCameraOptions?: CameraFadeOptions): void;
5874
5908
  /**
5875
- * @rc
5876
5909
  * @remarks
5877
5910
  * This function can't be called in restricted-execution mode.
5878
5911
  *
@@ -5927,7 +5960,6 @@ export class Camera {
5927
5960
  }
5928
5961
 
5929
5962
  /**
5930
- * @rc
5931
5963
  * CatmullRom spline creation.
5932
5964
  */
5933
5965
  export class CatmullRomSpline {
@@ -6004,8 +6036,8 @@ export class Component {
6004
6036
  * more.
6005
6037
  * @example containers.ts
6006
6038
  * ```typescript
6007
- * import { ItemStack, EntityInventoryComponent, BlockInventoryComponent, DimensionLocation } from "@minecraft/server";
6008
- * import { MinecraftBlockTypes, MinecraftItemTypes, MinecraftEntityTypes } from "@minecraft/vanilla-data";
6039
+ * import { ItemStack, EntityInventoryComponent, BlockInventoryComponent, DimensionLocation } from '@minecraft/server';
6040
+ * import { MinecraftBlockTypes, MinecraftItemTypes, MinecraftEntityTypes } from '@minecraft/vanilla-data';
6009
6041
  *
6010
6042
  * function containers(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
6011
6043
  * const xLocation = targetLocation; // left chest location
@@ -6021,42 +6053,42 @@ export class Component {
6021
6053
  * const xPlusTwoChestBlock = targetLocation.dimension.getBlock(xPlusTwoLocation);
6022
6054
  *
6023
6055
  * if (!xChestBlock || !xPlusTwoChestBlock) {
6024
- * log("Could not retrieve chest blocks.");
6056
+ * log('Could not retrieve chest blocks.');
6025
6057
  * return;
6026
6058
  * }
6027
6059
  *
6028
6060
  * xChestBlock.setType(MinecraftBlockTypes.Chest);
6029
6061
  * xPlusTwoChestBlock.setType(MinecraftBlockTypes.Chest);
6030
6062
  *
6031
- * const xPlusTwoChestInventoryComp = xPlusTwoChestBlock.getComponent("inventory") as BlockInventoryComponent;
6032
- * const xChestInventoryComponent = xChestBlock.getComponent("inventory") as BlockInventoryComponent;
6033
- * const chestCartInventoryComp = chestCart.getComponent("inventory") as EntityInventoryComponent;
6063
+ * const xPlusTwoChestInventoryComp = xPlusTwoChestBlock.getComponent('inventory') as BlockInventoryComponent;
6064
+ * const xChestInventoryComponent = xChestBlock.getComponent('inventory') as BlockInventoryComponent;
6065
+ * const chestCartInventoryComp = chestCart.getComponent('inventory') as EntityInventoryComponent;
6034
6066
  *
6035
6067
  * const xPlusTwoChestContainer = xPlusTwoChestInventoryComp.container;
6036
6068
  * const xChestContainer = xChestInventoryComponent.container;
6037
6069
  * const chestCartContainer = chestCartInventoryComp.container;
6038
6070
  *
6039
6071
  * if (!xPlusTwoChestContainer || !xChestContainer || !chestCartContainer) {
6040
- * log("Could not retrieve chest containers.");
6072
+ * log('Could not retrieve chest containers.');
6041
6073
  * return;
6042
6074
  * }
6043
6075
  *
6044
6076
  * xPlusTwoChestContainer.setItem(0, new ItemStack(MinecraftItemTypes.Apple, 10));
6045
6077
  * if (xPlusTwoChestContainer.getItem(0)?.typeId !== MinecraftItemTypes.Apple) {
6046
- * log("Expected apple in x+2 container slot index 0", -1);
6078
+ * log('Expected apple in x+2 container slot index 0', -1);
6047
6079
  * }
6048
6080
  *
6049
6081
  * xPlusTwoChestContainer.setItem(1, new ItemStack(MinecraftItemTypes.Emerald, 10));
6050
6082
  * if (xPlusTwoChestContainer.getItem(1)?.typeId !== MinecraftItemTypes.Emerald) {
6051
- * log("Expected emerald in x+2 container slot index 1", -1);
6083
+ * log('Expected emerald in x+2 container slot index 1', -1);
6052
6084
  * }
6053
6085
  *
6054
6086
  * if (xPlusTwoChestContainer.size !== 27) {
6055
- * log("Unexpected size: " + xPlusTwoChestContainer.size, -1);
6087
+ * log('Unexpected size: ' + xPlusTwoChestContainer.size, -1);
6056
6088
  * }
6057
6089
  *
6058
6090
  * if (xPlusTwoChestContainer.emptySlotsCount !== 25) {
6059
- * log("Unexpected emptySlotsCount: " + xPlusTwoChestContainer.emptySlotsCount, -1);
6091
+ * log('Unexpected emptySlotsCount: ' + xPlusTwoChestContainer.emptySlotsCount, -1);
6060
6092
  * }
6061
6093
  *
6062
6094
  * xChestContainer.setItem(0, new ItemStack(MinecraftItemTypes.Cake, 10));
@@ -6065,15 +6097,15 @@ export class Component {
6065
6097
  * xPlusTwoChestContainer.swapItems(1, 0, xChestContainer); // swap the cake from x and the emerald from xPlusTwo
6066
6098
  *
6067
6099
  * if (chestCartContainer.getItem(0)?.typeId !== MinecraftItemTypes.Apple) {
6068
- * log("Expected apple in minecraft chest container slot index 0", -1);
6100
+ * log('Expected apple in minecraft chest container slot index 0', -1);
6069
6101
  * }
6070
6102
  *
6071
6103
  * if (xChestContainer.getItem(0)?.typeId === MinecraftItemTypes.Emerald) {
6072
- * log("Expected emerald in x container slot index 0", -1);
6104
+ * log('Expected emerald in x container slot index 0', -1);
6073
6105
  * }
6074
6106
  *
6075
6107
  * if (xPlusTwoChestContainer.getItem(1)?.typeId === MinecraftItemTypes.Cake) {
6076
- * log("Expected cake in x+2 container slot index 1", -1);
6108
+ * log('Expected cake in x+2 container slot index 1', -1);
6077
6109
  * }
6078
6110
  * }
6079
6111
  * ```
@@ -6221,7 +6253,7 @@ export class Container {
6221
6253
  * out of bounds.
6222
6254
  * @example getFirstHotbarItem.ts
6223
6255
  * ```typescript
6224
- * import { world, EntityInventoryComponent, DimensionLocation } from "@minecraft/server";
6256
+ * import { world, EntityInventoryComponent, DimensionLocation } from '@minecraft/server';
6225
6257
  *
6226
6258
  * function getFirstHotbarItem(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
6227
6259
  * for (const player of world.getAllPlayers()) {
@@ -6230,7 +6262,7 @@ export class Container {
6230
6262
  * const firstItem = inventory.container.getItem(0);
6231
6263
  *
6232
6264
  * if (firstItem) {
6233
- * log("First item in hotbar is: " + firstItem.typeId);
6265
+ * log('First item in hotbar is: ' + firstItem.typeId);
6234
6266
  * }
6235
6267
  *
6236
6268
  * return inventory.container.getItem(0);
@@ -6282,12 +6314,10 @@ export class Container {
6282
6314
  * {@link Error}
6283
6315
  * @example moveBetweenContainers.ts
6284
6316
  * ```typescript
6285
- * import { world, EntityInventoryComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
6286
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
6317
+ * import { world, EntityInventoryComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
6318
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
6287
6319
  *
6288
- * function moveBetweenContainers(
6289
- * targetLocation: DimensionLocation
6290
- * ) {
6320
+ * function moveBetweenContainers(targetLocation: DimensionLocation) {
6291
6321
  * const players = world.getAllPlayers();
6292
6322
  *
6293
6323
  * const chestCart = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.ChestMinecart, {
@@ -6381,12 +6411,10 @@ export class Container {
6381
6411
  * {@link Error}
6382
6412
  * @example transferBetweenContainers.ts
6383
6413
  * ```typescript
6384
- * import { world, EntityInventoryComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
6385
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
6414
+ * import { world, EntityInventoryComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
6415
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
6386
6416
  *
6387
- * function transferBetweenContainers(
6388
- * targetLocation: DimensionLocation
6389
- * ) {
6417
+ * function transferBetweenContainers(targetLocation: DimensionLocation) {
6390
6418
  * const players = world.getAllPlayers();
6391
6419
  *
6392
6420
  * const chestCart = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.ChestMinecart, {
@@ -7004,7 +7032,6 @@ export class Dimension {
7004
7032
  */
7005
7033
  readonly localizationKey: string;
7006
7034
  /**
7007
- * @rc
7008
7035
  * @remarks
7009
7036
  * Checks if an area contains the specified biomes. If the area
7010
7037
  * is partially inside world boundaries, only the area that is
@@ -7092,42 +7119,39 @@ export class Dimension {
7092
7119
  * {@link LocationOutOfWorldBoundariesError}
7093
7120
  * @example createExplosion.ts
7094
7121
  * ```typescript
7095
- * import { DimensionLocation } from "@minecraft/server";
7122
+ * import { DimensionLocation } from '@minecraft/server';
7096
7123
  *
7097
7124
  * function createExplosion(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
7098
- * log("Creating an explosion of radius 10.");
7125
+ * log('Creating an explosion of radius 10.');
7099
7126
  * targetLocation.dimension.createExplosion(targetLocation, 10);
7100
7127
  * }
7101
7128
  * ```
7102
7129
  * @example createNoBlockExplosion.ts
7103
7130
  * ```typescript
7104
- * import { DimensionLocation } from "@minecraft/server";
7105
- * import { Vector3Utils } from "@minecraft/math";
7131
+ * import { DimensionLocation } from '@minecraft/server';
7132
+ * import { Vector3Utils } from '@minecraft/math';
7106
7133
  *
7107
- * function createNoBlockExplosion(
7108
- * log: (message: string, status?: number) => void,
7109
- * targetLocation: DimensionLocation
7110
- * ) {
7134
+ * function createNoBlockExplosion(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
7111
7135
  * const explodeNoBlocksLoc = Vector3Utils.floor(Vector3Utils.add(targetLocation, { x: 1, y: 2, z: 1 }));
7112
7136
  *
7113
- * log("Creating an explosion of radius 15 that does not break blocks.");
7137
+ * log('Creating an explosion of radius 15 that does not break blocks.');
7114
7138
  * targetLocation.dimension.createExplosion(explodeNoBlocksLoc, 15, { breaksBlocks: false });
7115
7139
  * }
7116
7140
  * ```
7117
7141
  * @example createExplosions.ts
7118
7142
  * ```typescript
7119
- * import { DimensionLocation } from "@minecraft/server";
7120
- * import { Vector3Utils } from "@minecraft/math";
7143
+ * import { DimensionLocation } from '@minecraft/server';
7144
+ * import { Vector3Utils } from '@minecraft/math';
7121
7145
  *
7122
7146
  * function createExplosions(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
7123
7147
  * const explosionLoc = Vector3Utils.add(targetLocation, { x: 0.5, y: 0.5, z: 0.5 });
7124
7148
  *
7125
- * log("Creating an explosion of radius 15 that causes fire.");
7149
+ * log('Creating an explosion of radius 15 that causes fire.');
7126
7150
  * targetLocation.dimension.createExplosion(explosionLoc, 15, { causesFire: true });
7127
7151
  *
7128
7152
  * const belowWaterLoc = Vector3Utils.add(targetLocation, { x: 3, y: 1, z: 3 });
7129
7153
  *
7130
- * log("Creating an explosion of radius 10 that can go underwater.");
7154
+ * log('Creating an explosion of radius 10 that can go underwater.');
7131
7155
  * targetLocation.dimension.createExplosion(belowWaterLoc, 10, { allowUnderwater: true });
7132
7156
  * }
7133
7157
  * ```
@@ -7286,10 +7310,10 @@ export class Dimension {
7286
7310
  * {@link minecraftcommon.InvalidArgumentError}
7287
7311
  * @example bounceSkeletons.ts
7288
7312
  * ```typescript
7289
- * import { EntityQueryOptions, DimensionLocation } from "@minecraft/server";
7313
+ * import { EntityQueryOptions, DimensionLocation } from '@minecraft/server';
7290
7314
  *
7291
7315
  * function bounceSkeletons(targetLocation: DimensionLocation) {
7292
- * const mobs = ["creeper", "skeleton", "sheep"];
7316
+ * const mobs = ['creeper', 'skeleton', 'sheep'];
7293
7317
  *
7294
7318
  * // create some sample mob data
7295
7319
  * for (let i = 0; i < 10; i++) {
@@ -7297,7 +7321,7 @@ export class Dimension {
7297
7321
  * }
7298
7322
  *
7299
7323
  * const eqo: EntityQueryOptions = {
7300
- * type: "skeleton",
7324
+ * type: 'skeleton',
7301
7325
  * };
7302
7326
  *
7303
7327
  * for (const entity of targetLocation.dimension.getEntities(eqo)) {
@@ -7307,20 +7331,20 @@ export class Dimension {
7307
7331
  * ```
7308
7332
  * @example tagsQuery.ts
7309
7333
  * ```typescript
7310
- * import { EntityQueryOptions, DimensionLocation } from "@minecraft/server";
7334
+ * import { EntityQueryOptions, DimensionLocation } from '@minecraft/server';
7311
7335
  *
7312
7336
  * function tagsQuery(targetLocation: DimensionLocation) {
7313
- * const mobs = ["creeper", "skeleton", "sheep"];
7337
+ * const mobs = ['creeper', 'skeleton', 'sheep'];
7314
7338
  *
7315
7339
  * // create some sample mob data
7316
7340
  * for (let i = 0; i < 10; i++) {
7317
7341
  * const mobTypeId = mobs[i % mobs.length];
7318
7342
  * const entity = targetLocation.dimension.spawnEntity(mobTypeId, targetLocation);
7319
- * entity.addTag("mobparty." + mobTypeId);
7343
+ * entity.addTag('mobparty.' + mobTypeId);
7320
7344
  * }
7321
7345
  *
7322
7346
  * const eqo: EntityQueryOptions = {
7323
- * tags: ["mobparty.skeleton"],
7347
+ * tags: ['mobparty.skeleton'],
7324
7348
  * };
7325
7349
  *
7326
7350
  * for (const entity of targetLocation.dimension.getEntities(eqo)) {
@@ -7330,7 +7354,7 @@ export class Dimension {
7330
7354
  * ```
7331
7355
  * @example testThatEntityIsFeatherItem.ts
7332
7356
  * ```typescript
7333
- * import { EntityItemComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
7357
+ * import { EntityItemComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
7334
7358
  *
7335
7359
  * function testThatEntityIsFeatherItem(
7336
7360
  * log: (message: string, status?: number) => void,
@@ -7345,8 +7369,8 @@ export class Dimension {
7345
7369
  * const itemComp = item.getComponent(EntityComponentTypes.Item) as EntityItemComponent;
7346
7370
  *
7347
7371
  * if (itemComp) {
7348
- * if (itemComp.itemStack.typeId.endsWith("feather")) {
7349
- * log("Success! Found a feather", 1);
7372
+ * if (itemComp.itemStack.typeId.endsWith('feather')) {
7373
+ * log('Success! Found a feather', 1);
7350
7374
  * }
7351
7375
  * }
7352
7376
  * }
@@ -7638,17 +7662,17 @@ export class Dimension {
7638
7662
  * import { Vector3Utils } from '@minecraft/math';
7639
7663
  *
7640
7664
  * function spawnAdultHorse(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
7641
- * log('Create a horse and triggering the ageable_grow_up event, ensuring the horse is created as an adult');
7642
- * targetLocation.dimension.spawnEntity(
7643
- * 'minecraft:horse<minecraft:ageable_grow_up>',
7644
- * Vector3Utils.add(targetLocation, { x: 0, y: 1, z: 0 })
7645
- * );
7665
+ * log('Create a horse and triggering the ageable_grow_up event, ensuring the horse is created as an adult');
7666
+ * targetLocation.dimension.spawnEntity(
7667
+ * 'minecraft:horse<minecraft:ageable_grow_up>',
7668
+ * Vector3Utils.add(targetLocation, { x: 0, y: 1, z: 0 })
7669
+ * );
7646
7670
  * }
7647
7671
  * ```
7648
7672
  * @example quickFoxLazyDog.ts
7649
7673
  * ```typescript
7650
- * import { DimensionLocation } from "@minecraft/server";
7651
- * import { MinecraftEntityTypes, MinecraftEffectTypes } from "@minecraft/vanilla-data";
7674
+ * import { DimensionLocation } from '@minecraft/server';
7675
+ * import { MinecraftEntityTypes, MinecraftEffectTypes } from '@minecraft/vanilla-data';
7652
7676
  *
7653
7677
  * function quickFoxLazyDog(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
7654
7678
  * const fox = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Fox, {
@@ -7660,7 +7684,7 @@ export class Dimension {
7660
7684
  * fox.addEffect(MinecraftEffectTypes.Speed, 10, {
7661
7685
  * amplifier: 2,
7662
7686
  * });
7663
- * log("Created a fox.");
7687
+ * log('Created a fox.');
7664
7688
  *
7665
7689
  * const wolf = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Wolf, {
7666
7690
  * x: targetLocation.x + 4,
@@ -7671,18 +7695,18 @@ export class Dimension {
7671
7695
  * amplifier: 2,
7672
7696
  * });
7673
7697
  * wolf.isSneaking = true;
7674
- * log("Created a sneaking wolf.", 1);
7698
+ * log('Created a sneaking wolf.', 1);
7675
7699
  * }
7676
7700
  * ```
7677
7701
  * @example triggerEvent.ts
7678
7702
  * ```typescript
7679
- * import { DimensionLocation } from "@minecraft/server";
7680
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
7703
+ * import { DimensionLocation } from '@minecraft/server';
7704
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
7681
7705
  *
7682
7706
  * function triggerEvent(targetLocation: DimensionLocation) {
7683
7707
  * const creeper = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Creeper, targetLocation);
7684
7708
  *
7685
- * creeper.triggerEvent("minecraft:start_exploding_forced");
7709
+ * creeper.triggerEvent('minecraft:start_exploding_forced');
7686
7710
  * }
7687
7711
  * ```
7688
7712
  */
@@ -7705,8 +7729,8 @@ export class Dimension {
7705
7729
  * {@link LocationOutOfWorldBoundariesError}
7706
7730
  * @example itemStacks.ts
7707
7731
  * ```typescript
7708
- * import { ItemStack, DimensionLocation } from "@minecraft/server";
7709
- * import { MinecraftItemTypes } from "@minecraft/vanilla-data";
7732
+ * import { ItemStack, DimensionLocation } from '@minecraft/server';
7733
+ * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
7710
7734
  *
7711
7735
  * function itemStacks(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
7712
7736
  * const oneItemLoc = { x: targetLocation.x + targetLocation.y + 3, y: 2, z: targetLocation.z + 1 };
@@ -7729,8 +7753,8 @@ export class Dimension {
7729
7753
  * ```
7730
7754
  * @example spawnFeatherItem.ts
7731
7755
  * ```typescript
7732
- * import { ItemStack, DimensionLocation } from "@minecraft/server";
7733
- * import { MinecraftItemTypes } from "@minecraft/vanilla-data";
7756
+ * import { ItemStack, DimensionLocation } from '@minecraft/server';
7757
+ * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
7734
7758
  *
7735
7759
  * function spawnFeatherItem(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
7736
7760
  * const featherItem = new ItemStack(MinecraftItemTypes.Feather, 1);
@@ -7762,20 +7786,20 @@ export class Dimension {
7762
7786
  * {@link LocationOutOfWorldBoundariesError}
7763
7787
  * @example spawnParticle.ts
7764
7788
  * ```typescript
7765
- * import { MolangVariableMap, DimensionLocation } from "@minecraft/server";
7789
+ * import { MolangVariableMap, DimensionLocation } from '@minecraft/server';
7766
7790
  *
7767
7791
  * function spawnParticle(targetLocation: DimensionLocation) {
7768
7792
  * for (let i = 0; i < 100; i++) {
7769
7793
  * const molang = new MolangVariableMap();
7770
7794
  *
7771
- * molang.setColorRGB("variable.color", { red: Math.random(), green: Math.random(), blue: Math.random() });
7795
+ * molang.setColorRGB('variable.color', { red: Math.random(), green: Math.random(), blue: Math.random() });
7772
7796
  *
7773
7797
  * const newLocation = {
7774
7798
  * x: targetLocation.x + Math.floor(Math.random() * 8) - 4,
7775
7799
  * y: targetLocation.y + Math.floor(Math.random() * 8) - 4,
7776
7800
  * z: targetLocation.z + Math.floor(Math.random() * 8) - 4,
7777
7801
  * };
7778
- * targetLocation.dimension.spawnParticle("minecraft:colored_flame_particle", newLocation, molang);
7802
+ * targetLocation.dimension.spawnParticle('minecraft:colored_flame_particle', newLocation, molang);
7779
7803
  * }
7780
7804
  * }
7781
7805
  * ```
@@ -8343,13 +8367,11 @@ export class Entity {
8343
8367
  * {@link InvalidEntityError}
8344
8368
  * @example spawnPoisonedVillager.ts
8345
8369
  * ```typescript
8346
- * import { DimensionLocation } from "@minecraft/server";
8347
- * import { MinecraftEffectTypes } from "@minecraft/vanilla-data";
8370
+ * import { DimensionLocation } from '@minecraft/server';
8371
+ * import { MinecraftEffectTypes } from '@minecraft/vanilla-data';
8348
8372
  *
8349
- * function spawnPoisonedVillager(
8350
- * targetLocation: DimensionLocation
8351
- * ) {
8352
- * const villagerType = "minecraft:villager_v2<minecraft:ageable_grow_up>";
8373
+ * function spawnPoisonedVillager(targetLocation: DimensionLocation) {
8374
+ * const villagerType = 'minecraft:villager_v2<minecraft:ageable_grow_up>';
8353
8375
  * const villager = targetLocation.dimension.spawnEntity(villagerType, targetLocation);
8354
8376
  * const duration = 20;
8355
8377
  *
@@ -8358,8 +8380,8 @@ export class Entity {
8358
8380
  * ```
8359
8381
  * @example quickFoxLazyDog.ts
8360
8382
  * ```typescript
8361
- * import { DimensionLocation } from "@minecraft/server";
8362
- * import { MinecraftEntityTypes, MinecraftEffectTypes } from "@minecraft/vanilla-data";
8383
+ * import { DimensionLocation } from '@minecraft/server';
8384
+ * import { MinecraftEntityTypes, MinecraftEffectTypes } from '@minecraft/vanilla-data';
8363
8385
  *
8364
8386
  * function quickFoxLazyDog(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
8365
8387
  * const fox = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Fox, {
@@ -8371,7 +8393,7 @@ export class Entity {
8371
8393
  * fox.addEffect(MinecraftEffectTypes.Speed, 10, {
8372
8394
  * amplifier: 2,
8373
8395
  * });
8374
- * log("Created a fox.");
8396
+ * log('Created a fox.');
8375
8397
  *
8376
8398
  * const wolf = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Wolf, {
8377
8399
  * x: targetLocation.x + 4,
@@ -8382,7 +8404,7 @@ export class Entity {
8382
8404
  * amplifier: 2,
8383
8405
  * });
8384
8406
  * wolf.isSneaking = true;
8385
- * log("Created a sneaking wolf.", 1);
8407
+ * log('Created a sneaking wolf.', 1);
8386
8408
  * }
8387
8409
  * ```
8388
8410
  */
@@ -8406,20 +8428,20 @@ export class Entity {
8406
8428
  * {@link InvalidEntityError}
8407
8429
  * @example tagsQuery.ts
8408
8430
  * ```typescript
8409
- * import { EntityQueryOptions, DimensionLocation } from "@minecraft/server";
8431
+ * import { EntityQueryOptions, DimensionLocation } from '@minecraft/server';
8410
8432
  *
8411
8433
  * function tagsQuery(targetLocation: DimensionLocation) {
8412
- * const mobs = ["creeper", "skeleton", "sheep"];
8434
+ * const mobs = ['creeper', 'skeleton', 'sheep'];
8413
8435
  *
8414
8436
  * // create some sample mob data
8415
8437
  * for (let i = 0; i < 10; i++) {
8416
8438
  * const mobTypeId = mobs[i % mobs.length];
8417
8439
  * const entity = targetLocation.dimension.spawnEntity(mobTypeId, targetLocation);
8418
- * entity.addTag("mobparty." + mobTypeId);
8440
+ * entity.addTag('mobparty.' + mobTypeId);
8419
8441
  * }
8420
8442
  *
8421
8443
  * const eqo: EntityQueryOptions = {
8422
- * tags: ["mobparty.skeleton"],
8444
+ * tags: ['mobparty.skeleton'],
8423
8445
  * };
8424
8446
  *
8425
8447
  * for (const entity of targetLocation.dimension.getEntities(eqo)) {
@@ -8454,22 +8476,19 @@ export class Entity {
8454
8476
  * {@link minecraftcommon.UnsupportedFunctionalityError}
8455
8477
  * @example applyDamageThenHeal.ts
8456
8478
  * ```typescript
8457
- * import { system, EntityHealthComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
8458
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
8479
+ * import { system, EntityHealthComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
8480
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
8459
8481
  *
8460
- * function applyDamageThenHeal(
8461
- * log: (message: string, status?: number) => void,
8462
- * targetLocation: DimensionLocation
8463
- * ) {
8482
+ * function applyDamageThenHeal(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
8464
8483
  * const skelly = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Skeleton, targetLocation);
8465
8484
  *
8466
8485
  * skelly.applyDamage(19); // skeletons have max damage of 20 so this is a near-death skeleton
8467
8486
  *
8468
8487
  * system.runTimeout(() => {
8469
8488
  * const health = skelly.getComponent(EntityComponentTypes.Health) as EntityHealthComponent;
8470
- * log("Skeleton health before heal: " + health?.currentValue);
8489
+ * log('Skeleton health before heal: ' + health?.currentValue);
8471
8490
  * health?.resetToMaxValue();
8472
- * log("Skeleton health after heal: " + health?.currentValue);
8491
+ * log('Skeleton health after heal: ' + health?.currentValue);
8473
8492
  * }, 20);
8474
8493
  * }
8475
8494
  * ```
@@ -8491,8 +8510,8 @@ export class Entity {
8491
8510
  * {@link InvalidEntityError}
8492
8511
  * @example applyImpulse.ts
8493
8512
  * ```typescript
8494
- * import { DimensionLocation } from "@minecraft/server";
8495
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
8513
+ * import { DimensionLocation } from '@minecraft/server';
8514
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
8496
8515
  *
8497
8516
  * function applyImpulse(targetLocation: DimensionLocation) {
8498
8517
  * const zombie = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Zombie, targetLocation);
@@ -8521,10 +8540,10 @@ export class Entity {
8521
8540
  * {@link minecraftcommon.UnsupportedFunctionalityError}
8522
8541
  * @example bounceSkeletons.ts
8523
8542
  * ```typescript
8524
- * import { EntityQueryOptions, DimensionLocation } from "@minecraft/server";
8543
+ * import { EntityQueryOptions, DimensionLocation } from '@minecraft/server';
8525
8544
  *
8526
8545
  * function bounceSkeletons(targetLocation: DimensionLocation) {
8527
- * const mobs = ["creeper", "skeleton", "sheep"];
8546
+ * const mobs = ['creeper', 'skeleton', 'sheep'];
8528
8547
  *
8529
8548
  * // create some sample mob data
8530
8549
  * for (let i = 0; i < 10; i++) {
@@ -8532,7 +8551,7 @@ export class Entity {
8532
8551
  * }
8533
8552
  *
8534
8553
  * const eqo: EntityQueryOptions = {
8535
- * type: "skeleton",
8554
+ * type: 'skeleton',
8536
8555
  * };
8537
8556
  *
8538
8557
  * for (const entity of targetLocation.dimension.getEntities(eqo)) {
@@ -8563,8 +8582,8 @@ export class Entity {
8563
8582
  * {@link InvalidEntityError}
8564
8583
  * @example applyImpulse.ts
8565
8584
  * ```typescript
8566
- * import { DimensionLocation } from "@minecraft/server";
8567
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
8585
+ * import { DimensionLocation } from '@minecraft/server';
8586
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
8568
8587
  *
8569
8588
  * function applyImpulse(targetLocation: DimensionLocation) {
8570
8589
  * const zombie = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Zombie, targetLocation);
@@ -8596,8 +8615,8 @@ export class Entity {
8596
8615
  * {@link InvalidEntityError}
8597
8616
  * @example setOnFire.ts
8598
8617
  * ```typescript
8599
- * import { system, EntityOnFireComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
8600
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
8618
+ * import { system, EntityOnFireComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
8619
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
8601
8620
  *
8602
8621
  * function setOnFire(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
8603
8622
  * const skelly = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Skeleton, targetLocation);
@@ -8606,10 +8625,10 @@ export class Entity {
8606
8625
  *
8607
8626
  * system.runTimeout(() => {
8608
8627
  * const onfire = skelly.getComponent(EntityComponentTypes.OnFire) as EntityOnFireComponent;
8609
- * log(onfire?.onFireTicksRemaining + " fire ticks remaining.");
8628
+ * log(onfire?.onFireTicksRemaining + ' fire ticks remaining.');
8610
8629
  *
8611
8630
  * skelly.extinguishFire(true);
8612
- * log("Never mind. Fire extinguished.");
8631
+ * log('Never mind. Fire extinguished.');
8613
8632
  * }, 20);
8614
8633
  * }
8615
8634
  * ```
@@ -8859,19 +8878,16 @@ export class Entity {
8859
8878
  * {@link InvalidEntityError}
8860
8879
  * @example getFireworkVelocity.ts
8861
8880
  * ```typescript
8862
- * import { system, DimensionLocation } from "@minecraft/server";
8863
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
8881
+ * import { system, DimensionLocation } from '@minecraft/server';
8882
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
8864
8883
  *
8865
- * function getFireworkVelocity(
8866
- * log: (message: string, status?: number) => void,
8867
- * targetLocation: DimensionLocation
8868
- * ) {
8884
+ * function getFireworkVelocity(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
8869
8885
  * const fireworkRocket = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.FireworksRocket, targetLocation);
8870
8886
  *
8871
8887
  * system.runTimeout(() => {
8872
8888
  * const velocity = fireworkRocket.getVelocity();
8873
8889
  *
8874
- * log("Velocity of firework is: (x: " + velocity.x + ", y:" + velocity.y + ", z:" + velocity.z + ")");
8890
+ * log('Velocity of firework is: (x: ' + velocity.x + ', y:' + velocity.y + ', z:' + velocity.z + ')');
8875
8891
  * }, 5);
8876
8892
  * }
8877
8893
  * ```
@@ -8932,20 +8948,20 @@ export class Entity {
8932
8948
  * {@link InvalidEntityError}
8933
8949
  * @example tagsQuery.ts
8934
8950
  * ```typescript
8935
- * import { EntityQueryOptions, DimensionLocation } from "@minecraft/server";
8951
+ * import { EntityQueryOptions, DimensionLocation } from '@minecraft/server';
8936
8952
  *
8937
8953
  * function tagsQuery(targetLocation: DimensionLocation) {
8938
- * const mobs = ["creeper", "skeleton", "sheep"];
8954
+ * const mobs = ['creeper', 'skeleton', 'sheep'];
8939
8955
  *
8940
8956
  * // create some sample mob data
8941
8957
  * for (let i = 0; i < 10; i++) {
8942
8958
  * const mobTypeId = mobs[i % mobs.length];
8943
8959
  * const entity = targetLocation.dimension.spawnEntity(mobTypeId, targetLocation);
8944
- * entity.addTag("mobparty." + mobTypeId);
8960
+ * entity.addTag('mobparty.' + mobTypeId);
8945
8961
  * }
8946
8962
  *
8947
8963
  * const eqo: EntityQueryOptions = {
8948
- * tags: ["mobparty.skeleton"],
8964
+ * tags: ['mobparty.skeleton'],
8949
8965
  * };
8950
8966
  *
8951
8967
  * for (const entity of targetLocation.dimension.getEntities(eqo)) {
@@ -9159,8 +9175,8 @@ export class Entity {
9159
9175
  * {@link InvalidEntityError}
9160
9176
  * @example setOnFire.ts
9161
9177
  * ```typescript
9162
- * import { system, EntityOnFireComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
9163
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
9178
+ * import { system, EntityOnFireComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
9179
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
9164
9180
  *
9165
9181
  * function setOnFire(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
9166
9182
  * const skelly = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Skeleton, targetLocation);
@@ -9169,10 +9185,10 @@ export class Entity {
9169
9185
  *
9170
9186
  * system.runTimeout(() => {
9171
9187
  * const onfire = skelly.getComponent(EntityComponentTypes.OnFire) as EntityOnFireComponent;
9172
- * log(onfire?.onFireTicksRemaining + " fire ticks remaining.");
9188
+ * log(onfire?.onFireTicksRemaining + ' fire ticks remaining.');
9173
9189
  *
9174
9190
  * skelly.extinguishFire(true);
9175
- * log("Never mind. Fire extinguished.");
9191
+ * log('Never mind. Fire extinguished.');
9176
9192
  * }, 20);
9177
9193
  * }
9178
9194
  * ```
@@ -9239,8 +9255,8 @@ export class Entity {
9239
9255
  * {@link minecraftcommon.UnsupportedFunctionalityError}
9240
9256
  * @example teleport.ts
9241
9257
  * ```typescript
9242
- * import { system, DimensionLocation } from "@minecraft/server";
9243
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
9258
+ * import { system, DimensionLocation } from '@minecraft/server';
9259
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
9244
9260
  *
9245
9261
  * function teleport(targetLocation: DimensionLocation) {
9246
9262
  * const cow = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Cow, targetLocation);
@@ -9257,8 +9273,8 @@ export class Entity {
9257
9273
  * ```
9258
9274
  * @example teleportMovement.ts
9259
9275
  * ```typescript
9260
- * import { system, DimensionLocation } from "@minecraft/server";
9261
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
9276
+ * import { system, DimensionLocation } from '@minecraft/server';
9277
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
9262
9278
  *
9263
9279
  * function teleportMovement(targetLocation: DimensionLocation) {
9264
9280
  * const pig = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Pig, targetLocation);
@@ -9307,20 +9323,20 @@ export class Entity {
9307
9323
  * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
9308
9324
  *
9309
9325
  * function spawnExplodingCreeper(location: DimensionLocation) {
9310
- * const creeper = location.dimension.spawnEntity(MinecraftEntityTypes.Creeper, location);
9326
+ * const creeper = location.dimension.spawnEntity(MinecraftEntityTypes.Creeper, location);
9311
9327
  *
9312
- * creeper.triggerEvent('minecraft:start_exploding_forced');
9328
+ * creeper.triggerEvent('minecraft:start_exploding_forced');
9313
9329
  * }
9314
9330
  * ```
9315
9331
  * @example triggerEvent.ts
9316
9332
  * ```typescript
9317
- * import { DimensionLocation } from "@minecraft/server";
9318
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
9333
+ * import { DimensionLocation } from '@minecraft/server';
9334
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
9319
9335
  *
9320
9336
  * function triggerEvent(targetLocation: DimensionLocation) {
9321
9337
  * const creeper = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Creeper, targetLocation);
9322
9338
  *
9323
- * creeper.triggerEvent("minecraft:start_exploding_forced");
9339
+ * creeper.triggerEvent('minecraft:start_exploding_forced');
9324
9340
  * }
9325
9341
  * ```
9326
9342
  */
@@ -9717,7 +9733,6 @@ export class EntityDefinitionFeedItem {
9717
9733
  */
9718
9734
  readonly item: string;
9719
9735
  /**
9720
- * @rc
9721
9736
  * @remarks
9722
9737
  * Type ID of the resulting item after feeding has occurred.
9723
9738
  * This will usually be empty but is used for scenarios such as
@@ -9798,10 +9813,10 @@ export class EntityDieAfterEventSignal {
9798
9813
  * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
9799
9814
  *
9800
9815
  * function giveEquipment(player: Player) {
9801
- * const equipmentCompPlayer = player.getComponent(EntityComponentTypes.Equippable);
9802
- * if (equipmentCompPlayer) {
9803
- * equipmentCompPlayer.setEquipment(EquipmentSlot.Chest, new ItemStack(MinecraftItemTypes.Elytra));
9804
- * }
9816
+ * const equipmentCompPlayer = player.getComponent(EntityComponentTypes.Equippable);
9817
+ * if (equipmentCompPlayer) {
9818
+ * equipmentCompPlayer.setEquipment(EquipmentSlot.Chest, new ItemStack(MinecraftItemTypes.Elytra));
9819
+ * }
9805
9820
  * }
9806
9821
  * ```
9807
9822
  */
@@ -9990,7 +10005,6 @@ export class EntityHealableComponent extends EntityComponent {
9990
10005
  }
9991
10006
 
9992
10007
  /**
9993
- * @rc
9994
10008
  * Contains information related to an entity having been
9995
10009
  * healed.
9996
10010
  */
@@ -10017,7 +10031,6 @@ export class EntityHealAfterEvent {
10017
10031
  }
10018
10032
 
10019
10033
  /**
10020
- * @rc
10021
10034
  * Manages callbacks that are connected to when an entity is
10022
10035
  * healed.
10023
10036
  */
@@ -10051,7 +10064,6 @@ export class EntityHealAfterEventSignal {
10051
10064
  }
10052
10065
 
10053
10066
  /**
10054
- * @rc
10055
10067
  * Contains information related to an entity that will be
10056
10068
  * healed.
10057
10069
  */
@@ -10079,7 +10091,6 @@ export class EntityHealBeforeEvent {
10079
10091
  }
10080
10092
 
10081
10093
  /**
10082
- * @rc
10083
10094
  * Manages callbacks that are connected to when an entity will
10084
10095
  * be healed.
10085
10096
  */
@@ -10119,7 +10130,6 @@ export class EntityHealBeforeEventSignal {
10119
10130
  }
10120
10131
 
10121
10132
  /**
10122
- * @rc
10123
10133
  * Provides information about how healing has been applied to
10124
10134
  * an entity.
10125
10135
  */
@@ -10197,22 +10207,19 @@ export class EntityHealthChangedAfterEventSignal {
10197
10207
  * Defines the health properties of an entity.
10198
10208
  * @example applyDamageThenHeal.ts
10199
10209
  * ```typescript
10200
- * import { system, EntityHealthComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
10201
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
10210
+ * import { system, EntityHealthComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
10211
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
10202
10212
  *
10203
- * function applyDamageThenHeal(
10204
- * log: (message: string, status?: number) => void,
10205
- * targetLocation: DimensionLocation
10206
- * ) {
10213
+ * function applyDamageThenHeal(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
10207
10214
  * const skelly = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Skeleton, targetLocation);
10208
10215
  *
10209
10216
  * skelly.applyDamage(19); // skeletons have max damage of 20 so this is a near-death skeleton
10210
10217
  *
10211
10218
  * system.runTimeout(() => {
10212
10219
  * const health = skelly.getComponent(EntityComponentTypes.Health) as EntityHealthComponent;
10213
- * log("Skeleton health before heal: " + health?.currentValue);
10220
+ * log('Skeleton health before heal: ' + health?.currentValue);
10214
10221
  * health?.resetToMaxValue();
10215
- * log("Skeleton health after heal: " + health?.currentValue);
10222
+ * log('Skeleton health after heal: ' + health?.currentValue);
10216
10223
  * }, 20);
10217
10224
  * }
10218
10225
  * ```
@@ -10377,7 +10384,6 @@ export class EntityHurtAfterEvent {
10377
10384
  }
10378
10385
 
10379
10386
  /**
10380
- * @rc
10381
10387
  * Manages callbacks that are connected to when an entity is
10382
10388
  * hurt.
10383
10389
  */
@@ -10409,7 +10415,6 @@ export class EntityHurtAfterEventSignal {
10409
10415
  }
10410
10416
 
10411
10417
  /**
10412
- * @rc
10413
10418
  * Contains information related to an entity that will be hurt.
10414
10419
  */
10415
10420
  export class EntityHurtBeforeEvent {
@@ -10437,7 +10442,6 @@ export class EntityHurtBeforeEvent {
10437
10442
  }
10438
10443
 
10439
10444
  /**
10440
- * @rc
10441
10445
  * Manages callbacks that are connected to when an entity will
10442
10446
  * be hurt.
10443
10447
  */
@@ -10677,7 +10681,7 @@ export class EntityIsTamedComponent extends EntityComponent {
10677
10681
  * property.
10678
10682
  * @example testThatEntityIsFeatherItem.ts
10679
10683
  * ```typescript
10680
- * import { EntityItemComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
10684
+ * import { EntityItemComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
10681
10685
  *
10682
10686
  * function testThatEntityIsFeatherItem(
10683
10687
  * log: (message: string, status?: number) => void,
@@ -10692,8 +10696,8 @@ export class EntityIsTamedComponent extends EntityComponent {
10692
10696
  * const itemComp = item.getComponent(EntityComponentTypes.Item) as EntityItemComponent;
10693
10697
  *
10694
10698
  * if (itemComp) {
10695
- * if (itemComp.itemStack.typeId.endsWith("feather")) {
10696
- * log("Success! Found a feather", 1);
10699
+ * if (itemComp.itemStack.typeId.endsWith('feather')) {
10700
+ * log('Success! Found a feather', 1);
10697
10701
  * }
10698
10702
  * }
10699
10703
  * }
@@ -10714,7 +10718,6 @@ export class EntityItemComponent extends EntityComponent {
10714
10718
  }
10715
10719
 
10716
10720
  /**
10717
- * @rc
10718
10721
  * Contains information related to an entity having dropped
10719
10722
  * items.
10720
10723
  */
@@ -10735,7 +10738,6 @@ export class EntityItemDropAfterEvent {
10735
10738
  }
10736
10739
 
10737
10740
  /**
10738
- * @rc
10739
10741
  * Manages callbacks that are connected to when an entity has
10740
10742
  * dropped items.
10741
10743
  */
@@ -10769,7 +10771,6 @@ export class EntityItemDropAfterEventSignal {
10769
10771
  }
10770
10772
 
10771
10773
  /**
10772
- * @rc
10773
10774
  * Contains information related to an entity having picked up
10774
10775
  * items.
10775
10776
  */
@@ -10790,7 +10791,6 @@ export class EntityItemPickupAfterEvent {
10790
10791
  }
10791
10792
 
10792
10793
  /**
10793
- * @rc
10794
10794
  * Manages callbacks that are connected to when an entity has
10795
10795
  * picked up items.
10796
10796
  */
@@ -10824,7 +10824,6 @@ export class EntityItemPickupAfterEventSignal {
10824
10824
  }
10825
10825
 
10826
10826
  /**
10827
- * @rc
10828
10827
  * Contains information related to an entity picking up an
10829
10828
  * item.
10830
10829
  */
@@ -10851,7 +10850,6 @@ export class EntityItemPickupBeforeEvent {
10851
10850
  }
10852
10851
 
10853
10852
  /**
10854
- * @rc
10855
10853
  * Manages callbacks that are connected to when an entity will
10856
10854
  * pick up an item.
10857
10855
  */
@@ -11415,8 +11413,8 @@ export class EntityNavigationWalkComponent extends EntityNavigationComponent {
11415
11413
  * When present on an entity, this entity is on fire.
11416
11414
  * @example setOnFire.ts
11417
11415
  * ```typescript
11418
- * import { system, EntityOnFireComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
11419
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
11416
+ * import { system, EntityOnFireComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
11417
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
11420
11418
  *
11421
11419
  * function setOnFire(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
11422
11420
  * const skelly = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Skeleton, targetLocation);
@@ -11425,10 +11423,10 @@ export class EntityNavigationWalkComponent extends EntityNavigationComponent {
11425
11423
  *
11426
11424
  * system.runTimeout(() => {
11427
11425
  * const onfire = skelly.getComponent(EntityComponentTypes.OnFire) as EntityOnFireComponent;
11428
- * log(onfire?.onFireTicksRemaining + " fire ticks remaining.");
11426
+ * log(onfire?.onFireTicksRemaining + ' fire ticks remaining.');
11429
11427
  *
11430
11428
  * skelly.extinguishFire(true);
11431
- * log("Never mind. Fire extinguished.");
11429
+ * log('Never mind. Fire extinguished.');
11432
11430
  * }, 20);
11433
11431
  * }
11434
11432
  * ```
@@ -11453,18 +11451,18 @@ export class EntityOnFireComponent extends EntityComponent {
11453
11451
  * minecraft:projectile component.
11454
11452
  * @example shootArrow.ts
11455
11453
  * ```typescript
11456
- * import { DimensionLocation, EntityProjectileComponent } from "@minecraft/server";
11454
+ * import { DimensionLocation, EntityProjectileComponent } from '@minecraft/server';
11457
11455
  *
11458
11456
  * function shootArrow(targetLocation: DimensionLocation) {
11459
11457
  * const velocity = { x: 0, y: 1, z: 5 };
11460
11458
  *
11461
- * const arrow = targetLocation.dimension.spawnEntity("minecraft:arrow", {
11459
+ * const arrow = targetLocation.dimension.spawnEntity('minecraft:arrow', {
11462
11460
  * x: targetLocation.x,
11463
11461
  * y: targetLocation.y + 2,
11464
11462
  * z: targetLocation.z,
11465
11463
  * });
11466
11464
  *
11467
- * const projectileComp = arrow.getComponent("minecraft:projectile") as EntityProjectileComponent;
11465
+ * const projectileComp = arrow.getComponent('minecraft:projectile') as EntityProjectileComponent;
11468
11466
  *
11469
11467
  * projectileComp?.shoot(velocity);
11470
11468
  * }
@@ -11763,9 +11761,9 @@ export class EntityRemoveBeforeEventSignal {
11763
11761
  * entity can be ridden by another entity.
11764
11762
  * @example minibiomes.ts
11765
11763
  * ```typescript
11766
- * import { EntityComponentTypes } from "@minecraft/server";
11767
- * import { Test, register } from "@minecraft/server-gametest";
11768
- * import { MinecraftBlockTypes, MinecraftEntityTypes } from "@minecraft/vanilla-data";
11764
+ * import { EntityComponentTypes } from '@minecraft/server';
11765
+ * import { Test, register } from '@minecraft/server-gametest';
11766
+ * import { MinecraftBlockTypes, MinecraftEntityTypes } from '@minecraft/vanilla-data';
11769
11767
  *
11770
11768
  * function minibiomes(test: Test) {
11771
11769
  * const minecart = test.spawn(MinecraftEntityTypes.Minecart, { x: 9, y: 7, z: 7 });
@@ -11779,7 +11777,7 @@ export class EntityRemoveBeforeEventSignal {
11779
11777
  *
11780
11778
  * test.succeedWhenEntityPresent(MinecraftEntityTypes.Pig, { x: 8, y: 3, z: 1 }, true);
11781
11779
  * }
11782
- * register("ChallengeTests", "minibiomes", minibiomes).structureName("gametests:minibiomes").maxTicks(160);
11780
+ * register('ChallengeTests', 'minibiomes', minibiomes).structureName('gametests:minibiomes').maxTicks(160);
11783
11781
  * ```
11784
11782
  */
11785
11783
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -11854,9 +11852,9 @@ export class EntityRideableComponent extends EntityComponent {
11854
11852
  * @throws This function can throw errors.
11855
11853
  * @example minibiomes.ts
11856
11854
  * ```typescript
11857
- * import { EntityComponentTypes } from "@minecraft/server";
11858
- * import { Test, register } from "@minecraft/server-gametest";
11859
- * import { MinecraftBlockTypes, MinecraftEntityTypes } from "@minecraft/vanilla-data";
11855
+ * import { EntityComponentTypes } from '@minecraft/server';
11856
+ * import { Test, register } from '@minecraft/server-gametest';
11857
+ * import { MinecraftBlockTypes, MinecraftEntityTypes } from '@minecraft/vanilla-data';
11860
11858
  *
11861
11859
  * function minibiomes(test: Test) {
11862
11860
  * const minecart = test.spawn(MinecraftEntityTypes.Minecart, { x: 9, y: 7, z: 7 });
@@ -11870,7 +11868,7 @@ export class EntityRideableComponent extends EntityComponent {
11870
11868
  *
11871
11869
  * test.succeedWhenEntityPresent(MinecraftEntityTypes.Pig, { x: 8, y: 3, z: 1 }, true);
11872
11870
  * }
11873
- * register("ChallengeTests", "minibiomes", minibiomes).structureName("gametests:minibiomes").maxTicks(160);
11871
+ * register('ChallengeTests', 'minibiomes', minibiomes).structureName('gametests:minibiomes').maxTicks(160);
11874
11872
  * ```
11875
11873
  */
11876
11874
  addRider(rider: Entity): boolean;
@@ -11985,13 +11983,10 @@ export class EntitySkinIdComponent extends EntityComponent {
11985
11983
  * world.
11986
11984
  * @example logEntitySpawnEvent.ts
11987
11985
  * ```typescript
11988
- * import { world, system, EntitySpawnAfterEvent, DimensionLocation } from "@minecraft/server";
11989
- * import { Vector3Utils } from "@minecraft/math";
11986
+ * import { world, system, EntitySpawnAfterEvent, DimensionLocation } from '@minecraft/server';
11987
+ * import { Vector3Utils } from '@minecraft/math';
11990
11988
  *
11991
- * function logEntitySpawnEvent(
11992
- * log: (message: string, status?: number) => void,
11993
- * targetLocation: DimensionLocation
11994
- * ) {
11989
+ * function logEntitySpawnEvent(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
11995
11990
  * // register a new function that is called when a new entity is created.
11996
11991
  * world.afterEvents.entitySpawn.subscribe((entityEvent: EntitySpawnAfterEvent) => {
11997
11992
  * if (entityEvent && entityEvent.entity) {
@@ -12003,7 +11998,7 @@ export class EntitySkinIdComponent extends EntityComponent {
12003
11998
  *
12004
11999
  * system.runTimeout(() => {
12005
12000
  * targetLocation.dimension.spawnEntity(
12006
- * "minecraft:horse<minecraft:ageable_grow_up>",
12001
+ * 'minecraft:horse<minecraft:ageable_grow_up>',
12007
12002
  * Vector3Utils.add(targetLocation, { x: 0, y: 1, z: 0 })
12008
12003
  * );
12009
12004
  * }, 20);
@@ -12047,13 +12042,10 @@ export class EntitySpawnAfterEventSignal {
12047
12042
  * Function that handles the spawn event.
12048
12043
  * @example logEntitySpawnEvent.ts
12049
12044
  * ```typescript
12050
- * import { world, system, EntitySpawnAfterEvent, DimensionLocation } from "@minecraft/server";
12051
- * import { Vector3Utils } from "@minecraft/math";
12045
+ * import { world, system, EntitySpawnAfterEvent, DimensionLocation } from '@minecraft/server';
12046
+ * import { Vector3Utils } from '@minecraft/math';
12052
12047
  *
12053
- * function logEntitySpawnEvent(
12054
- * log: (message: string, status?: number) => void,
12055
- * targetLocation: DimensionLocation
12056
- * ) {
12048
+ * function logEntitySpawnEvent(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
12057
12049
  * // register a new function that is called when a new entity is created.
12058
12050
  * world.afterEvents.entitySpawn.subscribe((entityEvent: EntitySpawnAfterEvent) => {
12059
12051
  * if (entityEvent && entityEvent.entity) {
@@ -12065,7 +12057,7 @@ export class EntitySpawnAfterEventSignal {
12065
12057
  *
12066
12058
  * system.runTimeout(() => {
12067
12059
  * targetLocation.dimension.spawnEntity(
12068
- * "minecraft:horse<minecraft:ageable_grow_up>",
12060
+ * 'minecraft:horse<minecraft:ageable_grow_up>',
12069
12061
  * Vector3Utils.add(targetLocation, { x: 0, y: 1, z: 0 })
12070
12062
  * );
12071
12063
  * }, 20);
@@ -12255,7 +12247,6 @@ export class EntityType {
12255
12247
  */
12256
12248
  readonly id: string;
12257
12249
  /**
12258
- * @rc
12259
12250
  * @remarks
12260
12251
  * Key for the localization of this EntityType's name used in
12261
12252
  * .lang files.
@@ -12500,7 +12491,6 @@ export class FeedItem {
12500
12491
  */
12501
12492
  readonly item: string;
12502
12493
  /**
12503
- * @rc
12504
12494
  * @remarks
12505
12495
  * Type ID of the resulting item after feeding has occurred.
12506
12496
  * This will usually be empty but is used for scenarios such as
@@ -13514,12 +13504,18 @@ export class ItemCustomComponentInstance extends ItemComponent {
13514
13504
  * to data-driven items.
13515
13505
  * @example giveHurtDiamondSword.ts
13516
13506
  * ```typescript
13517
- * import { world, ItemStack, EntityInventoryComponent, EntityComponentTypes, ItemComponentTypes, ItemDurabilityComponent, DimensionLocation } from "@minecraft/server";
13518
- * import { MinecraftItemTypes } from "@minecraft/vanilla-data";
13507
+ * import {
13508
+ * world,
13509
+ * ItemStack,
13510
+ * EntityInventoryComponent,
13511
+ * EntityComponentTypes,
13512
+ * ItemComponentTypes,
13513
+ * ItemDurabilityComponent,
13514
+ * DimensionLocation,
13515
+ * } from '@minecraft/server';
13516
+ * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
13519
13517
  *
13520
- * function giveHurtDiamondSword(
13521
- * targetLocation: DimensionLocation
13522
- * ) {
13518
+ * function giveHurtDiamondSword(targetLocation: DimensionLocation) {
13523
13519
  * const hurtDiamondSword = new ItemStack(MinecraftItemTypes.DiamondSword);
13524
13520
  *
13525
13521
  * const durabilityComponent = hurtDiamondSword.getComponent(ItemComponentTypes.Durability) as ItemDurabilityComponent;
@@ -13557,7 +13553,6 @@ export class ItemDurabilityComponent extends ItemComponent {
13557
13553
  */
13558
13554
  readonly maxDurability: number;
13559
13555
  /**
13560
- * @rc
13561
13556
  * @remarks
13562
13557
  * Whether an item breaks or loses durability. Setting to true
13563
13558
  * temporarily removes item's durability HUD, and freezes
@@ -13942,8 +13937,8 @@ export class ItemReleaseUseAfterEventSignal {
13942
13937
  * Defines a collection of items.
13943
13938
  * @example itemStacks.ts
13944
13939
  * ```typescript
13945
- * import { ItemStack, DimensionLocation } from "@minecraft/server";
13946
- * import { MinecraftItemTypes } from "@minecraft/vanilla-data";
13940
+ * import { ItemStack, DimensionLocation } from '@minecraft/server';
13941
+ * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
13947
13942
  *
13948
13943
  * function itemStacks(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
13949
13944
  * const oneItemLoc = { x: targetLocation.x + targetLocation.y + 3, y: 2, z: targetLocation.z + 1 };
@@ -13966,12 +13961,17 @@ export class ItemReleaseUseAfterEventSignal {
13966
13961
  * ```
13967
13962
  * @example givePlayerEquipment.ts
13968
13963
  * ```typescript
13969
- * import { world, ItemStack, EntityEquippableComponent, EquipmentSlot, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
13970
- * import { MinecraftItemTypes } from "@minecraft/vanilla-data";
13964
+ * import {
13965
+ * world,
13966
+ * ItemStack,
13967
+ * EntityEquippableComponent,
13968
+ * EquipmentSlot,
13969
+ * EntityComponentTypes,
13970
+ * DimensionLocation,
13971
+ * } from '@minecraft/server';
13972
+ * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
13971
13973
  *
13972
- * function givePlayerEquipment(
13973
- * targetLocation: DimensionLocation
13974
- * ) {
13974
+ * function givePlayerEquipment(targetLocation: DimensionLocation) {
13975
13975
  * const players = world.getAllPlayers();
13976
13976
  *
13977
13977
  * const armorStandLoc = { x: targetLocation.x, y: targetLocation.y, z: targetLocation.z + 4 };
@@ -14000,8 +14000,8 @@ export class ItemReleaseUseAfterEventSignal {
14000
14000
  * ```
14001
14001
  * @example spawnFeatherItem.ts
14002
14002
  * ```typescript
14003
- * import { ItemStack, DimensionLocation } from "@minecraft/server";
14004
- * import { MinecraftItemTypes } from "@minecraft/vanilla-data";
14003
+ * import { ItemStack, DimensionLocation } from '@minecraft/server';
14004
+ * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
14005
14005
  *
14006
14006
  * function spawnFeatherItem(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
14007
14007
  * const featherItem = new ItemStack(MinecraftItemTypes.Feather, 1);
@@ -14174,12 +14174,18 @@ export class ItemStack {
14174
14174
  * otherwise undefined.
14175
14175
  * @example giveHurtDiamondSword.ts
14176
14176
  * ```typescript
14177
- * import { world, ItemStack, EntityInventoryComponent, EntityComponentTypes, ItemComponentTypes, ItemDurabilityComponent, DimensionLocation } from "@minecraft/server";
14178
- * import { MinecraftItemTypes } from "@minecraft/vanilla-data";
14177
+ * import {
14178
+ * world,
14179
+ * ItemStack,
14180
+ * EntityInventoryComponent,
14181
+ * EntityComponentTypes,
14182
+ * ItemComponentTypes,
14183
+ * ItemDurabilityComponent,
14184
+ * DimensionLocation,
14185
+ * } from '@minecraft/server';
14186
+ * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
14179
14187
  *
14180
- * function giveHurtDiamondSword(
14181
- * targetLocation: DimensionLocation
14182
- * ) {
14188
+ * function giveHurtDiamondSword(targetLocation: DimensionLocation) {
14183
14189
  * const hurtDiamondSword = new ItemStack(MinecraftItemTypes.DiamondSword);
14184
14190
  *
14185
14191
  * const durabilityComponent = hurtDiamondSword.getComponent(ItemComponentTypes.Durability) as ItemDurabilityComponent;
@@ -14330,17 +14336,15 @@ export class ItemStack {
14330
14336
  * Throws if any of the provided block identifiers are invalid.
14331
14337
  * @example giveDestroyRestrictedPickaxe.ts
14332
14338
  * ```typescript
14333
- * import { world, ItemStack, EntityInventoryComponent, DimensionLocation } from "@minecraft/server";
14334
- * import { MinecraftItemTypes } from "@minecraft/vanilla-data";
14339
+ * import { world, ItemStack, EntityInventoryComponent, DimensionLocation } from '@minecraft/server';
14340
+ * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
14335
14341
  *
14336
- * function giveDestroyRestrictedPickaxe(
14337
- * targetLocation: DimensionLocation
14338
- * ) {
14342
+ * function giveDestroyRestrictedPickaxe(targetLocation: DimensionLocation) {
14339
14343
  * for (const player of world.getAllPlayers()) {
14340
14344
  * const specialPickaxe = new ItemStack(MinecraftItemTypes.DiamondPickaxe);
14341
14345
  * specialPickaxe.setCanDestroy([MinecraftItemTypes.Cobblestone, MinecraftItemTypes.Obsidian]);
14342
14346
  *
14343
- * const inventory = player.getComponent("inventory") as EntityInventoryComponent;
14347
+ * const inventory = player.getComponent('inventory') as EntityInventoryComponent;
14344
14348
  * if (inventory === undefined || inventory.container === undefined) {
14345
14349
  * return;
14346
14350
  * }
@@ -14366,12 +14370,10 @@ export class ItemStack {
14366
14370
  * Throws if any of the provided block identifiers are invalid.
14367
14371
  * @example givePlaceRestrictedGoldBlock.ts
14368
14372
  * ```typescript
14369
- * import { world, ItemStack, EntityInventoryComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
14370
- * import { MinecraftItemTypes } from "@minecraft/vanilla-data";
14373
+ * import { world, ItemStack, EntityInventoryComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
14374
+ * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
14371
14375
  *
14372
- * function givePlaceRestrictedGoldBlock(
14373
- * targetLocation: DimensionLocation
14374
- * ) {
14376
+ * function givePlaceRestrictedGoldBlock(targetLocation: DimensionLocation) {
14375
14377
  * for (const player of world.getAllPlayers()) {
14376
14378
  * const specialGoldBlock = new ItemStack(MinecraftItemTypes.GoldBlock);
14377
14379
  * specialGoldBlock.setCanPlaceOn([MinecraftItemTypes.GrassBlock, MinecraftItemTypes.Dirt]);
@@ -14443,19 +14445,16 @@ export class ItemStack {
14443
14445
  * import { MinecraftItemTypes } from '@minecraft/vanilla-data';
14444
14446
  *
14445
14447
  * function giveAwesomeSword(player: Player) {
14446
- * const diamondAwesomeSword = new ItemStack(MinecraftItemTypes.DiamondSword, 1);
14447
- * diamondAwesomeSword.setLore([
14448
- * '§c§lDiamond Sword of Awesome§r',
14449
- * '+10 coolness', '§p+4 shiny§r'
14450
- * ]);
14451
- *
14452
- * // hover over/select the item in your inventory to see the lore.
14453
- * const inventory = player.getComponent(EntityComponentTypes.Inventory);
14454
- * if (inventory === undefined || inventory.container === undefined) {
14455
- * return;
14456
- * }
14448
+ * const diamondAwesomeSword = new ItemStack(MinecraftItemTypes.DiamondSword, 1);
14449
+ * diamondAwesomeSword.setLore(['§c§lDiamond Sword of Awesome§r', '+10 coolness', '§p+4 shiny§r']);
14457
14450
  *
14458
- * inventory.container.setItem(0, diamondAwesomeSword);
14451
+ * // hover over/select the item in your inventory to see the lore.
14452
+ * const inventory = player.getComponent(EntityComponentTypes.Inventory);
14453
+ * if (inventory === undefined || inventory.container === undefined) {
14454
+ * return;
14455
+ * }
14456
+ *
14457
+ * inventory.container.setItem(0, diamondAwesomeSword);
14459
14458
  * }
14460
14459
  * ```
14461
14460
  */
@@ -14722,7 +14721,6 @@ export class ItemType {
14722
14721
  */
14723
14722
  readonly id: string;
14724
14723
  /**
14725
- * @rc
14726
14724
  * @remarks
14727
14725
  * Key for the localization of this ItemType's name used in
14728
14726
  * .lang files.
@@ -14919,8 +14917,8 @@ export class KilledByPlayerOrPetsCondition extends LootItemCondition {
14919
14917
  * activating or deactivating.
14920
14918
  * @example leverActionEvent.ts
14921
14919
  * ```typescript
14922
- * import { world, system, BlockPermutation, LeverActionAfterEvent, DimensionLocation } from "@minecraft/server";
14923
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
14920
+ * import { world, system, BlockPermutation, LeverActionAfterEvent, DimensionLocation } from '@minecraft/server';
14921
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
14924
14922
  *
14925
14923
  * function leverActionEvent(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
14926
14924
  * // set up a lever
@@ -14932,20 +14930,20 @@ export class KilledByPlayerOrPetsCondition extends LootItemCondition {
14932
14930
  * });
14933
14931
  *
14934
14932
  * if (cobblestone === undefined || lever === undefined) {
14935
- * log("Could not find block at location.");
14933
+ * log('Could not find block at location.');
14936
14934
  * return -1;
14937
14935
  * }
14938
14936
  *
14939
14937
  * cobblestone.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.Cobblestone));
14940
14938
  * lever.setPermutation(
14941
- * BlockPermutation.resolve(MinecraftBlockTypes.Lever).withState("lever_direction", "up_north_south")
14939
+ * BlockPermutation.resolve(MinecraftBlockTypes.Lever).withState('lever_direction', 'up_north_south')
14942
14940
  * );
14943
14941
  *
14944
14942
  * world.afterEvents.leverAction.subscribe((leverActionEvent: LeverActionAfterEvent) => {
14945
14943
  * const eventLoc = leverActionEvent.block.location;
14946
14944
  *
14947
14945
  * if (eventLoc.x === targetLocation.x && eventLoc.y === targetLocation.y + 1 && eventLoc.z === targetLocation.z) {
14948
- * log("Lever activate event at tick " + system.currentTick);
14946
+ * log('Lever activate event at tick ' + system.currentTick);
14949
14947
  * }
14950
14948
  * });
14951
14949
  * }
@@ -14974,8 +14972,8 @@ export class LeverActionAfterEvent extends BlockEvent {
14974
14972
  * (activates or deactivates).
14975
14973
  * @example leverActionEvent.ts
14976
14974
  * ```typescript
14977
- * import { world, system, BlockPermutation, LeverActionAfterEvent, DimensionLocation } from "@minecraft/server";
14978
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
14975
+ * import { world, system, BlockPermutation, LeverActionAfterEvent, DimensionLocation } from '@minecraft/server';
14976
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
14979
14977
  *
14980
14978
  * function leverActionEvent(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
14981
14979
  * // set up a lever
@@ -14987,20 +14985,20 @@ export class LeverActionAfterEvent extends BlockEvent {
14987
14985
  * });
14988
14986
  *
14989
14987
  * if (cobblestone === undefined || lever === undefined) {
14990
- * log("Could not find block at location.");
14988
+ * log('Could not find block at location.');
14991
14989
  * return -1;
14992
14990
  * }
14993
14991
  *
14994
14992
  * cobblestone.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.Cobblestone));
14995
14993
  * lever.setPermutation(
14996
- * BlockPermutation.resolve(MinecraftBlockTypes.Lever).withState("lever_direction", "up_north_south")
14994
+ * BlockPermutation.resolve(MinecraftBlockTypes.Lever).withState('lever_direction', 'up_north_south')
14997
14995
  * );
14998
14996
  *
14999
14997
  * world.afterEvents.leverAction.subscribe((leverActionEvent: LeverActionAfterEvent) => {
15000
14998
  * const eventLoc = leverActionEvent.block.location;
15001
14999
  *
15002
15000
  * if (eventLoc.x === targetLocation.x && eventLoc.y === targetLocation.y + 1 && eventLoc.z === targetLocation.z) {
15003
- * log("Lever activate event at tick " + system.currentTick);
15001
+ * log('Lever activate event at tick ' + system.currentTick);
15004
15002
  * }
15005
15003
  * });
15006
15004
  * }
@@ -15033,7 +15031,6 @@ export class LeverActionAfterEventSignal {
15033
15031
  }
15034
15032
 
15035
15033
  /**
15036
- * @rc
15037
15034
  * A spline that linearly interpolates between points.
15038
15035
  */
15039
15036
  export class LinearSpline {
@@ -15546,8 +15543,15 @@ export class PassengerOfEntityCondition extends LootItemCondition {
15546
15543
  * expanding or retracting.
15547
15544
  * @example pistonAfterEvent.ts
15548
15545
  * ```typescript
15549
- * import { world, system, BlockPermutation, BlockPistonState, PistonActivateAfterEvent, DimensionLocation } from "@minecraft/server";
15550
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
15546
+ * import {
15547
+ * world,
15548
+ * system,
15549
+ * BlockPermutation,
15550
+ * BlockPistonState,
15551
+ * PistonActivateAfterEvent,
15552
+ * DimensionLocation,
15553
+ * } from '@minecraft/server';
15554
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
15551
15555
  *
15552
15556
  * function pistonAfterEvent(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
15553
15557
  * // set up a couple of piston blocks
@@ -15559,25 +15563,25 @@ export class PassengerOfEntityCondition extends LootItemCondition {
15559
15563
  * });
15560
15564
  *
15561
15565
  * if (piston === undefined || button === undefined) {
15562
- * log("Could not find block at location.");
15566
+ * log('Could not find block at location.');
15563
15567
  * return -1;
15564
15568
  * }
15565
15569
  *
15566
- * piston.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.Piston).withState("facing_direction", 3));
15567
- * button.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.AcaciaButton).withState("facing_direction", 1));
15570
+ * piston.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.Piston).withState('facing_direction', 3));
15571
+ * button.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.AcaciaButton).withState('facing_direction', 1));
15568
15572
  *
15569
15573
  * world.afterEvents.pistonActivate.subscribe((pistonEvent: PistonActivateAfterEvent) => {
15570
15574
  * const eventLoc = pistonEvent.piston.block.location;
15571
15575
  *
15572
15576
  * if (eventLoc.x === targetLocation.x && eventLoc.y === targetLocation.y && eventLoc.z === targetLocation.z) {
15573
15577
  * log(
15574
- * "Piston event at " +
15578
+ * 'Piston event at ' +
15575
15579
  * system.currentTick +
15576
- * (pistonEvent.piston.isMoving ? " Moving" : "") +
15577
- * (pistonEvent.piston.state === BlockPistonState.Expanding ? " Expanding" : "") +
15578
- * (pistonEvent.piston.state === BlockPistonState.Expanded ? " Expanded" : "") +
15579
- * (pistonEvent.piston.state === BlockPistonState.Retracting ? " Retracting" : "") +
15580
- * (pistonEvent.piston.state === BlockPistonState.Retracted ? " Retracted" : "")
15580
+ * (pistonEvent.piston.isMoving ? ' Moving' : '') +
15581
+ * (pistonEvent.piston.state === BlockPistonState.Expanding ? ' Expanding' : '') +
15582
+ * (pistonEvent.piston.state === BlockPistonState.Expanded ? ' Expanded' : '') +
15583
+ * (pistonEvent.piston.state === BlockPistonState.Retracting ? ' Retracting' : '') +
15584
+ * (pistonEvent.piston.state === BlockPistonState.Retracted ? ' Retracted' : '')
15581
15585
  * );
15582
15586
  * }
15583
15587
  * });
@@ -15614,8 +15618,15 @@ export class PistonActivateAfterEventSignal {
15614
15618
  *
15615
15619
  * @example pistonAfterEvent.ts
15616
15620
  * ```typescript
15617
- * import { world, system, BlockPermutation, BlockPistonState, PistonActivateAfterEvent, DimensionLocation } from "@minecraft/server";
15618
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
15621
+ * import {
15622
+ * world,
15623
+ * system,
15624
+ * BlockPermutation,
15625
+ * BlockPistonState,
15626
+ * PistonActivateAfterEvent,
15627
+ * DimensionLocation,
15628
+ * } from '@minecraft/server';
15629
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
15619
15630
  *
15620
15631
  * function pistonAfterEvent(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
15621
15632
  * // set up a couple of piston blocks
@@ -15627,25 +15638,25 @@ export class PistonActivateAfterEventSignal {
15627
15638
  * });
15628
15639
  *
15629
15640
  * if (piston === undefined || button === undefined) {
15630
- * log("Could not find block at location.");
15641
+ * log('Could not find block at location.');
15631
15642
  * return -1;
15632
15643
  * }
15633
15644
  *
15634
- * piston.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.Piston).withState("facing_direction", 3));
15635
- * button.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.AcaciaButton).withState("facing_direction", 1));
15645
+ * piston.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.Piston).withState('facing_direction', 3));
15646
+ * button.setPermutation(BlockPermutation.resolve(MinecraftBlockTypes.AcaciaButton).withState('facing_direction', 1));
15636
15647
  *
15637
15648
  * world.afterEvents.pistonActivate.subscribe((pistonEvent: PistonActivateAfterEvent) => {
15638
15649
  * const eventLoc = pistonEvent.piston.block.location;
15639
15650
  *
15640
15651
  * if (eventLoc.x === targetLocation.x && eventLoc.y === targetLocation.y && eventLoc.z === targetLocation.z) {
15641
15652
  * log(
15642
- * "Piston event at " +
15653
+ * 'Piston event at ' +
15643
15654
  * system.currentTick +
15644
- * (pistonEvent.piston.isMoving ? " Moving" : "") +
15645
- * (pistonEvent.piston.state === BlockPistonState.Expanding ? " Expanding" : "") +
15646
- * (pistonEvent.piston.state === BlockPistonState.Expanded ? " Expanded" : "") +
15647
- * (pistonEvent.piston.state === BlockPistonState.Retracting ? " Retracting" : "") +
15648
- * (pistonEvent.piston.state === BlockPistonState.Retracted ? " Retracted" : "")
15655
+ * (pistonEvent.piston.isMoving ? ' Moving' : '') +
15656
+ * (pistonEvent.piston.state === BlockPistonState.Expanding ? ' Expanding' : '') +
15657
+ * (pistonEvent.piston.state === BlockPistonState.Expanded ? ' Expanded' : '') +
15658
+ * (pistonEvent.piston.state === BlockPistonState.Retracting ? ' Retracting' : '') +
15659
+ * (pistonEvent.piston.state === BlockPistonState.Retracted ? ' Retracted' : '')
15649
15660
  * );
15650
15661
  * }
15651
15662
  * });
@@ -15842,7 +15853,6 @@ export class Player extends Entity {
15842
15853
  */
15843
15854
  clearPropertyOverridesForEntity(targetEntity: Entity | string): void;
15844
15855
  /**
15845
- * @rc
15846
15856
  * @remarks
15847
15857
  * The player's aim-assist settings.
15848
15858
  *
@@ -15914,7 +15924,7 @@ export class Player extends Entity {
15914
15924
  * @throws This function can throw errors.
15915
15925
  * @example playMusicAndSound.ts
15916
15926
  * ```typescript
15917
- * import { world, MusicOptions, WorldSoundOptions, PlayerSoundOptions, DimensionLocation } from "@minecraft/server";
15927
+ * import { world, MusicOptions, WorldSoundOptions, PlayerSoundOptions, DimensionLocation } from '@minecraft/server';
15918
15928
  *
15919
15929
  * function playMusicAndSound(targetLocation: DimensionLocation) {
15920
15930
  * const players = world.getPlayers();
@@ -15924,20 +15934,20 @@ export class Player extends Entity {
15924
15934
  * loop: true,
15925
15935
  * volume: 1.0,
15926
15936
  * };
15927
- * world.playMusic("music.menu", musicOptions);
15937
+ * world.playMusic('music.menu', musicOptions);
15928
15938
  *
15929
15939
  * const worldSoundOptions: WorldSoundOptions = {
15930
15940
  * pitch: 0.5,
15931
15941
  * volume: 4.0,
15932
15942
  * };
15933
- * world.playSound("ambient.weather.thunder", targetLocation, worldSoundOptions);
15943
+ * world.playSound('ambient.weather.thunder', targetLocation, worldSoundOptions);
15934
15944
  *
15935
15945
  * const playerSoundOptions: PlayerSoundOptions = {
15936
15946
  * pitch: 1.0,
15937
15947
  * volume: 1.0,
15938
15948
  * };
15939
15949
  *
15940
- * players[0].playSound("bucket.fill_water", playerSoundOptions);
15950
+ * players[0].playSound('bucket.fill_water', playerSoundOptions);
15941
15951
  * }
15942
15952
  * ```
15943
15953
  */
@@ -16004,61 +16014,61 @@ export class Player extends Entity {
16004
16014
  * {@link RawMessageError}
16005
16015
  * @example nestedTranslation.ts
16006
16016
  * ```typescript
16007
- * import { world, DimensionLocation } from "@minecraft/server";
16017
+ * import { world, DimensionLocation } from '@minecraft/server';
16008
16018
  *
16009
16019
  * function nestedTranslation(targetLocation: DimensionLocation) {
16010
16020
  * // Displays "Apple or Coal"
16011
16021
  * const rawMessage = {
16012
- * translate: "accessibility.list.or.two",
16013
- * with: { rawtext: [{ translate: "item.apple.name" }, { translate: "item.coal.name" }] },
16022
+ * translate: 'accessibility.list.or.two',
16023
+ * with: { rawtext: [{ translate: 'item.apple.name' }, { translate: 'item.coal.name' }] },
16014
16024
  * };
16015
16025
  * world.sendMessage(rawMessage);
16016
16026
  * }
16017
16027
  * ```
16018
16028
  * @example scoreWildcard.ts
16019
16029
  * ```typescript
16020
- * import { world, DimensionLocation } from "@minecraft/server";
16030
+ * import { world, DimensionLocation } from '@minecraft/server';
16021
16031
  *
16022
16032
  * function scoreWildcard(targetLocation: DimensionLocation) {
16023
16033
  * // Displays the player's score for objective "obj". Each player will see their own score.
16024
- * const rawMessage = { score: { name: "*", objective: "obj" } };
16034
+ * const rawMessage = { score: { name: '*', objective: 'obj' } };
16025
16035
  * world.sendMessage(rawMessage);
16026
16036
  * }
16027
16037
  * ```
16028
16038
  * @example sendBasicMessage.ts
16029
16039
  * ```typescript
16030
- * import { world, DimensionLocation } from "@minecraft/server";
16040
+ * import { world, DimensionLocation } from '@minecraft/server';
16031
16041
  *
16032
16042
  * function sendBasicMessage(targetLocation: DimensionLocation) {
16033
16043
  * const players = world.getPlayers();
16034
16044
  *
16035
- * players[0].sendMessage("Hello World!");
16045
+ * players[0].sendMessage('Hello World!');
16036
16046
  * }
16037
16047
  * ```
16038
16048
  * @example sendPlayerMessages.ts
16039
16049
  * ```typescript
16040
- * import { world, DimensionLocation } from "@minecraft/server";
16050
+ * import { world, DimensionLocation } from '@minecraft/server';
16041
16051
  *
16042
16052
  * function sendPlayerMessages(targetLocation: DimensionLocation) {
16043
16053
  * for (const player of world.getAllPlayers()) {
16044
16054
  * // Displays "First or Second"
16045
- * const rawMessage = { translate: "accessibility.list.or.two", with: ["First", "Second"] };
16055
+ * const rawMessage = { translate: 'accessibility.list.or.two', with: ['First', 'Second'] };
16046
16056
  * player.sendMessage(rawMessage);
16047
16057
  *
16048
16058
  * // Displays "Hello, world!"
16049
- * player.sendMessage("Hello, world!");
16059
+ * player.sendMessage('Hello, world!');
16050
16060
  *
16051
16061
  * // Displays "Welcome, Amazing Player 1!"
16052
- * player.sendMessage({ translate: "authentication.welcome", with: ["Amazing Player 1"] });
16062
+ * player.sendMessage({ translate: 'authentication.welcome', with: ['Amazing Player 1'] });
16053
16063
  *
16054
16064
  * // Displays the player's score for objective "obj". Each player will see their own score.
16055
- * const rawMessageWithScore = { score: { name: "*", objective: "obj" } };
16065
+ * const rawMessageWithScore = { score: { name: '*', objective: 'obj' } };
16056
16066
  * player.sendMessage(rawMessageWithScore);
16057
16067
  *
16058
16068
  * // Displays "Apple or Coal"
16059
16069
  * const rawMessageWithNestedTranslations = {
16060
- * translate: "accessibility.list.or.two",
16061
- * with: { rawtext: [{ translate: "item.apple.name" }, { translate: "item.coal.name" }] },
16070
+ * translate: 'accessibility.list.or.two',
16071
+ * with: { rawtext: [{ translate: 'item.apple.name' }, { translate: 'item.coal.name' }] },
16062
16072
  * };
16063
16073
  * player.sendMessage(rawMessageWithNestedTranslations);
16064
16074
  * }
@@ -16066,14 +16076,12 @@ export class Player extends Entity {
16066
16076
  * ```
16067
16077
  * @example sendTranslatedMessage.ts
16068
16078
  * ```typescript
16069
- * import { world, DimensionLocation } from "@minecraft/server";
16079
+ * import { world, DimensionLocation } from '@minecraft/server';
16070
16080
  *
16071
- * function sendTranslatedMessage(
16072
- * targetLocation: DimensionLocation
16073
- * ) {
16081
+ * function sendTranslatedMessage(targetLocation: DimensionLocation) {
16074
16082
  * const players = world.getPlayers();
16075
16083
  *
16076
- * players[0].sendMessage({ translate: "authentication.welcome", with: ["Amazing Player 1"] });
16084
+ * players[0].sendMessage({ translate: 'authentication.welcome', with: ['Amazing Player 1'] });
16077
16085
  * }
16078
16086
  * ```
16079
16087
  */
@@ -16182,23 +16190,23 @@ export class Player extends Entity {
16182
16190
  * import { world, MolangVariableMap, Vector3 } from '@minecraft/server';
16183
16191
  *
16184
16192
  * world.afterEvents.playerSpawn.subscribe(event => {
16185
- * const targetLocation = event.player.location;
16186
- * for (let i = 0; i < 100; i++) {
16187
- * const molang = new MolangVariableMap();
16188
- *
16189
- * molang.setColorRGB('variable.color', {
16190
- * red: Math.random(),
16191
- * green: Math.random(),
16192
- * blue: Math.random()
16193
- * });
16194
- *
16195
- * const newLocation: Vector3 = {
16196
- * x: targetLocation.x + Math.floor(Math.random() * 8) - 4,
16197
- * y: targetLocation.y + Math.floor(Math.random() * 8) - 4,
16198
- * z: targetLocation.z + Math.floor(Math.random() * 8) - 4,
16199
- * };
16200
- * event.player.spawnParticle('minecraft:colored_flame_particle', newLocation, molang);
16201
- * }
16193
+ * const targetLocation = event.player.location;
16194
+ * for (let i = 0; i < 100; i++) {
16195
+ * const molang = new MolangVariableMap();
16196
+ *
16197
+ * molang.setColorRGB('variable.color', {
16198
+ * red: Math.random(),
16199
+ * green: Math.random(),
16200
+ * blue: Math.random(),
16201
+ * });
16202
+ *
16203
+ * const newLocation: Vector3 = {
16204
+ * x: targetLocation.x + Math.floor(Math.random() * 8) - 4,
16205
+ * y: targetLocation.y + Math.floor(Math.random() * 8) - 4,
16206
+ * z: targetLocation.z + Math.floor(Math.random() * 8) - 4,
16207
+ * };
16208
+ * event.player.spawnParticle('minecraft:colored_flame_particle', newLocation, molang);
16209
+ * }
16202
16210
  * });
16203
16211
  * ```
16204
16212
  */
@@ -16232,7 +16240,6 @@ export class Player extends Entity {
16232
16240
  }
16233
16241
 
16234
16242
  /**
16235
- * @rc
16236
16243
  * A container for APIs related to player aim-assist.
16237
16244
  */
16238
16245
  export class PlayerAimAssist {
@@ -18105,11 +18112,11 @@ export class RandomRegionalDifficultyChanceCondition extends LootItemCondition {
18105
18112
  * Contains objectives and participants for the scoreboard.
18106
18113
  * @example updateScoreboard.ts
18107
18114
  * ```typescript
18108
- * import { world, DisplaySlotId, ObjectiveSortOrder, DimensionLocation } from "@minecraft/server";
18115
+ * import { world, DisplaySlotId, ObjectiveSortOrder, DimensionLocation } from '@minecraft/server';
18109
18116
  *
18110
18117
  * function updateScoreboard(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
18111
- * const scoreboardObjectiveId = "scoreboard_demo_objective";
18112
- * const scoreboardObjectiveDisplayName = "Demo Objective";
18118
+ * const scoreboardObjectiveId = 'scoreboard_demo_objective';
18119
+ * const scoreboardObjectiveDisplayName = 'Demo Objective';
18113
18120
  *
18114
18121
  * const players = world.getPlayers();
18115
18122
  *
@@ -18124,7 +18131,7 @@ export class RandomRegionalDifficultyChanceCondition extends LootItemCondition {
18124
18131
  * const player0Identity = players[0].scoreboardIdentity;
18125
18132
  *
18126
18133
  * if (player0Identity === undefined) {
18127
- * log("Could not get a scoreboard identity for player 0.");
18134
+ * log('Could not get a scoreboard identity for player 0.');
18128
18135
  * return -1;
18129
18136
  * }
18130
18137
  *
@@ -18154,11 +18161,11 @@ export class Scoreboard {
18154
18161
  * @throws This function can throw errors.
18155
18162
  * @example updateScoreboard.ts
18156
18163
  * ```typescript
18157
- * import { world, DisplaySlotId, ObjectiveSortOrder, DimensionLocation } from "@minecraft/server";
18164
+ * import { world, DisplaySlotId, ObjectiveSortOrder, DimensionLocation } from '@minecraft/server';
18158
18165
  *
18159
18166
  * function updateScoreboard(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
18160
- * const scoreboardObjectiveId = "scoreboard_demo_objective";
18161
- * const scoreboardObjectiveDisplayName = "Demo Objective";
18167
+ * const scoreboardObjectiveId = 'scoreboard_demo_objective';
18168
+ * const scoreboardObjectiveDisplayName = 'Demo Objective';
18162
18169
  *
18163
18170
  * const players = world.getPlayers();
18164
18171
  *
@@ -18173,7 +18180,7 @@ export class Scoreboard {
18173
18180
  * const player0Identity = players[0].scoreboardIdentity;
18174
18181
  *
18175
18182
  * if (player0Identity === undefined) {
18176
- * log("Could not get a scoreboard identity for player 0.");
18183
+ * log('Could not get a scoreboard identity for player 0.');
18177
18184
  * return -1;
18178
18185
  * }
18179
18186
  *
@@ -18418,45 +18425,43 @@ export class ScoreboardScoreInfo {
18418
18425
  * showing up on the screen.
18419
18426
  * @example setTitle.ts
18420
18427
  * ```typescript
18421
- * import { world, DimensionLocation } from "@minecraft/server";
18428
+ * import { world, DimensionLocation } from '@minecraft/server';
18422
18429
  *
18423
18430
  * function setTitle(targetLocation: DimensionLocation) {
18424
18431
  * const players = world.getPlayers();
18425
18432
  *
18426
18433
  * if (players.length > 0) {
18427
- * players[0].onScreenDisplay.setTitle("§o§6Fancy Title§r");
18434
+ * players[0].onScreenDisplay.setTitle('§o§6Fancy Title§r');
18428
18435
  * }
18429
18436
  * }
18430
18437
  * ```
18431
18438
  * @example setTitleAndSubtitle.ts
18432
18439
  * ```typescript
18433
- * import { world, DimensionLocation } from "@minecraft/server";
18440
+ * import { world, DimensionLocation } from '@minecraft/server';
18434
18441
  *
18435
- * function setTitleAndSubtitle(
18436
- * targetLocation: DimensionLocation
18437
- * ) {
18442
+ * function setTitleAndSubtitle(targetLocation: DimensionLocation) {
18438
18443
  * const players = world.getPlayers();
18439
18444
  *
18440
- * players[0].onScreenDisplay.setTitle("Chapter 1", {
18445
+ * players[0].onScreenDisplay.setTitle('Chapter 1', {
18441
18446
  * stayDuration: 100,
18442
18447
  * fadeInDuration: 2,
18443
18448
  * fadeOutDuration: 4,
18444
- * subtitle: "Trouble in Block Town",
18449
+ * subtitle: 'Trouble in Block Town',
18445
18450
  * });
18446
18451
  * }
18447
18452
  * ```
18448
18453
  * @example countdown.ts
18449
18454
  * ```typescript
18450
- * import { world, system, DimensionLocation } from "@minecraft/server";
18455
+ * import { world, system, DimensionLocation } from '@minecraft/server';
18451
18456
  *
18452
18457
  * function countdown(targetLocation: DimensionLocation) {
18453
18458
  * const players = world.getPlayers();
18454
18459
  *
18455
- * players[0].onScreenDisplay.setTitle("Get ready!", {
18460
+ * players[0].onScreenDisplay.setTitle('Get ready!', {
18456
18461
  * stayDuration: 220,
18457
18462
  * fadeInDuration: 2,
18458
18463
  * fadeOutDuration: 4,
18459
- * subtitle: "10",
18464
+ * subtitle: '10',
18460
18465
  * });
18461
18466
  *
18462
18467
  * let countdown = 10;
@@ -18568,45 +18573,43 @@ export class ScreenDisplay {
18568
18573
  * {@link RawMessageError}
18569
18574
  * @example setTitle.ts
18570
18575
  * ```typescript
18571
- * import { world, DimensionLocation } from "@minecraft/server";
18576
+ * import { world, DimensionLocation } from '@minecraft/server';
18572
18577
  *
18573
18578
  * function setTitle(targetLocation: DimensionLocation) {
18574
18579
  * const players = world.getPlayers();
18575
18580
  *
18576
18581
  * if (players.length > 0) {
18577
- * players[0].onScreenDisplay.setTitle("§o§6Fancy Title§r");
18582
+ * players[0].onScreenDisplay.setTitle('§o§6Fancy Title§r');
18578
18583
  * }
18579
18584
  * }
18580
18585
  * ```
18581
18586
  * @example setTitleAndSubtitle.ts
18582
18587
  * ```typescript
18583
- * import { world, DimensionLocation } from "@minecraft/server";
18588
+ * import { world, DimensionLocation } from '@minecraft/server';
18584
18589
  *
18585
- * function setTitleAndSubtitle(
18586
- * targetLocation: DimensionLocation
18587
- * ) {
18590
+ * function setTitleAndSubtitle(targetLocation: DimensionLocation) {
18588
18591
  * const players = world.getPlayers();
18589
18592
  *
18590
- * players[0].onScreenDisplay.setTitle("Chapter 1", {
18593
+ * players[0].onScreenDisplay.setTitle('Chapter 1', {
18591
18594
  * stayDuration: 100,
18592
18595
  * fadeInDuration: 2,
18593
18596
  * fadeOutDuration: 4,
18594
- * subtitle: "Trouble in Block Town",
18597
+ * subtitle: 'Trouble in Block Town',
18595
18598
  * });
18596
18599
  * }
18597
18600
  * ```
18598
18601
  * @example countdown.ts
18599
18602
  * ```typescript
18600
- * import { world, system, DimensionLocation } from "@minecraft/server";
18603
+ * import { world, system, DimensionLocation } from '@minecraft/server';
18601
18604
  *
18602
18605
  * function countdown(targetLocation: DimensionLocation) {
18603
18606
  * const players = world.getPlayers();
18604
18607
  *
18605
- * players[0].onScreenDisplay.setTitle("Get ready!", {
18608
+ * players[0].onScreenDisplay.setTitle('Get ready!', {
18606
18609
  * stayDuration: 220,
18607
18610
  * fadeInDuration: 2,
18608
18611
  * fadeOutDuration: 4,
18609
- * subtitle: "10",
18612
+ * subtitle: '10',
18610
18613
  * });
18611
18614
  *
18612
18615
  * let countdown = 10;
@@ -18637,16 +18640,16 @@ export class ScreenDisplay {
18637
18640
  * {@link RawMessageError}
18638
18641
  * @example countdown.ts
18639
18642
  * ```typescript
18640
- * import { world, system, DimensionLocation } from "@minecraft/server";
18643
+ * import { world, system, DimensionLocation } from '@minecraft/server';
18641
18644
  *
18642
18645
  * function countdown(targetLocation: DimensionLocation) {
18643
18646
  * const players = world.getPlayers();
18644
18647
  *
18645
- * players[0].onScreenDisplay.setTitle("Get ready!", {
18648
+ * players[0].onScreenDisplay.setTitle('Get ready!', {
18646
18649
  * stayDuration: 220,
18647
18650
  * fadeInDuration: 2,
18648
18651
  * fadeOutDuration: 4,
18649
- * subtitle: "10",
18652
+ * subtitle: '10',
18650
18653
  * });
18651
18654
  *
18652
18655
  * let countdown = 10;
@@ -19571,16 +19574,16 @@ export class System {
19571
19574
  * function to cancel the execution of this run.
19572
19575
  * @example trapTick.ts
19573
19576
  * ```typescript
19574
- * import { world, system } from "@minecraft/server";
19577
+ * import { world, system } from '@minecraft/server';
19575
19578
  *
19576
19579
  * function trapTick() {
19577
19580
  * try {
19578
19581
  * // Minecraft runs at 20 ticks per second.
19579
19582
  * if (system.currentTick % 1200 === 0) {
19580
- * world.sendMessage("Another minute passes...");
19583
+ * world.sendMessage('Another minute passes...');
19581
19584
  * }
19582
19585
  * } catch (e) {
19583
- * console.warn("Error: " + e);
19586
+ * console.warn('Error: ' + e);
19584
19587
  * }
19585
19588
  *
19586
19589
  * system.run(trapTick);
@@ -19604,13 +19607,13 @@ export class System {
19604
19607
  * to stop the run of this function on an interval.
19605
19608
  * @example every30Seconds.ts
19606
19609
  * ```typescript
19607
- * import { world, system, DimensionLocation } from "@minecraft/server";
19610
+ * import { world, system, DimensionLocation } from '@minecraft/server';
19608
19611
  *
19609
19612
  * function every30Seconds(targetLocation: DimensionLocation) {
19610
19613
  * const intervalRunIdentifier = Math.floor(Math.random() * 10000);
19611
19614
  *
19612
19615
  * system.runInterval(() => {
19613
- * world.sendMessage("This is an interval run " + intervalRunIdentifier + " sending a message every 30 seconds.");
19616
+ * world.sendMessage('This is an interval run ' + intervalRunIdentifier + ' sending a message every 30 seconds.');
19614
19617
  * }, 600);
19615
19618
  * }
19616
19619
  * ```
@@ -19631,10 +19634,10 @@ export class System {
19631
19634
  * System.clearJob} to stop the run of this generator.
19632
19635
  * @example cubeGenerator.ts
19633
19636
  * ```typescript
19634
- * import { system, BlockPermutation, DimensionLocation } from "@minecraft/server";
19637
+ * import { system, BlockPermutation, DimensionLocation } from '@minecraft/server';
19635
19638
  *
19636
19639
  * function cubeGenerator(targetLocation: DimensionLocation) {
19637
- * const blockPerm = BlockPermutation.resolve("minecraft:cobblestone");
19640
+ * const blockPerm = BlockPermutation.resolve('minecraft:cobblestone');
19638
19641
  *
19639
19642
  * system.runJob(blockPlacingGenerator(blockPerm, targetLocation, 15));
19640
19643
  * }
@@ -19830,7 +19833,6 @@ export class TargetBlockHitAfterEventSignal {
19830
19833
  }
19831
19834
 
19832
19835
  /**
19833
- * @rc
19834
19836
  * This manager is used to add, remove or query temporary
19835
19837
  * ticking areas to a dimension. These ticking areas are
19836
19838
  * limited by a fixed amount of ticking chunks per pack
@@ -19955,8 +19957,8 @@ export class Trigger {
19955
19957
  * Contains information related to changes to a trip wire trip.
19956
19958
  * @example tripWireTripEvent.ts
19957
19959
  * ```typescript
19958
- * import { world, system, BlockPermutation, TripWireTripAfterEvent, DimensionLocation } from "@minecraft/server";
19959
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
19960
+ * import { world, system, BlockPermutation, TripWireTripAfterEvent, DimensionLocation } from '@minecraft/server';
19961
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
19960
19962
  *
19961
19963
  * function tripWireTripEvent(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
19962
19964
  * // set up a tripwire
@@ -19968,7 +19970,7 @@ export class Trigger {
19968
19970
  * const tripwire = targetLocation.dimension.getBlock(targetLocation);
19969
19971
  *
19970
19972
  * if (redstone === undefined || tripwire === undefined) {
19971
- * log("Could not find block at location.");
19973
+ * log('Could not find block at location.');
19972
19974
  * return -1;
19973
19975
  * }
19974
19976
  *
@@ -19980,9 +19982,9 @@ export class Trigger {
19980
19982
  *
19981
19983
  * if (eventLoc.x === targetLocation.x && eventLoc.y === targetLocation.y && eventLoc.z === targetLocation.z) {
19982
19984
  * log(
19983
- * "Tripwire trip event at tick " +
19985
+ * 'Tripwire trip event at tick ' +
19984
19986
  * system.currentTick +
19985
- * (tripWireTripEvent.sources.length > 0 ? " by entity " + tripWireTripEvent.sources[0].id : "")
19987
+ * (tripWireTripEvent.sources.length > 0 ? ' by entity ' + tripWireTripEvent.sources[0].id : '')
19986
19988
  * );
19987
19989
  * }
19988
19990
  * });
@@ -20011,8 +20013,8 @@ export class TripWireTripAfterEvent extends BlockEvent {
20011
20013
  * tripped.
20012
20014
  * @example tripWireTripEvent.ts
20013
20015
  * ```typescript
20014
- * import { world, system, BlockPermutation, TripWireTripAfterEvent, DimensionLocation } from "@minecraft/server";
20015
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
20016
+ * import { world, system, BlockPermutation, TripWireTripAfterEvent, DimensionLocation } from '@minecraft/server';
20017
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
20016
20018
  *
20017
20019
  * function tripWireTripEvent(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
20018
20020
  * // set up a tripwire
@@ -20024,7 +20026,7 @@ export class TripWireTripAfterEvent extends BlockEvent {
20024
20026
  * const tripwire = targetLocation.dimension.getBlock(targetLocation);
20025
20027
  *
20026
20028
  * if (redstone === undefined || tripwire === undefined) {
20027
- * log("Could not find block at location.");
20029
+ * log('Could not find block at location.');
20028
20030
  * return -1;
20029
20031
  * }
20030
20032
  *
@@ -20036,9 +20038,9 @@ export class TripWireTripAfterEvent extends BlockEvent {
20036
20038
  *
20037
20039
  * if (eventLoc.x === targetLocation.x && eventLoc.y === targetLocation.y && eventLoc.z === targetLocation.z) {
20038
20040
  * log(
20039
- * "Tripwire trip event at tick " +
20041
+ * 'Tripwire trip event at tick ' +
20040
20042
  * system.currentTick +
20041
- * (tripWireTripEvent.sources.length > 0 ? " by entity " + tripWireTripEvent.sources[0].id : "")
20043
+ * (tripWireTripEvent.sources.length > 0 ? ' by entity ' + tripWireTripEvent.sources[0].id : '')
20042
20044
  * );
20043
20045
  * }
20044
20046
  * });
@@ -20217,23 +20219,23 @@ export class World {
20217
20219
  *
20218
20220
  * @example customCommand.ts
20219
20221
  * ```typescript
20220
- * import { world, DimensionLocation } from "@minecraft/server";
20222
+ * import { world, DimensionLocation } from '@minecraft/server';
20221
20223
  *
20222
20224
  * function customCommand(targetLocation: DimensionLocation) {
20223
- * const chatCallback = world.beforeEvents.chatSend.subscribe((eventData) => {
20224
- * if (eventData.message.includes("cancel")) {
20225
+ * const chatCallback = world.beforeEvents.chatSend.subscribe(eventData => {
20226
+ * if (eventData.message.includes('cancel')) {
20225
20227
  * // Cancel event if the message contains "cancel"
20226
20228
  * eventData.cancel = true;
20227
20229
  * } else {
20228
- * const args = eventData.message.split(" ");
20230
+ * const args = eventData.message.split(' ');
20229
20231
  *
20230
20232
  * if (args.length > 0) {
20231
20233
  * switch (args[0].toLowerCase()) {
20232
- * case "echo":
20234
+ * case 'echo':
20233
20235
  * // Send a modified version of chat message
20234
20236
  * world.sendMessage(`Echo '${eventData.message.substring(4).trim()}'`);
20235
20237
  * break;
20236
- * case "help":
20238
+ * case 'help':
20237
20239
  * world.sendMessage(`Available commands: echo <message>`);
20238
20240
  * break;
20239
20241
  * }
@@ -20259,7 +20261,6 @@ export class World {
20259
20261
  */
20260
20262
  readonly scoreboard: Scoreboard;
20261
20263
  /**
20262
- * @rc
20263
20264
  * @remarks
20264
20265
  * The world seed.
20265
20266
  *
@@ -20272,7 +20273,6 @@ export class World {
20272
20273
  */
20273
20274
  readonly structureManager: StructureManager;
20274
20275
  /**
20275
- * @rc
20276
20276
  * @remarks
20277
20277
  * Manager for adding, removing and querying pack specific
20278
20278
  * ticking areas.
@@ -20293,7 +20293,6 @@ export class World {
20293
20293
  */
20294
20294
  getAbsoluteTime(): number;
20295
20295
  /**
20296
- * @rc
20297
20296
  * @remarks
20298
20297
  * The aim-assist presets and categories that can be used in
20299
20298
  * the world.
@@ -20365,68 +20364,65 @@ export class World {
20365
20364
  * defined.
20366
20365
  * @example incrementDynamicProperty.ts
20367
20366
  * ```typescript
20368
- * import { world, DimensionLocation } from "@minecraft/server";
20367
+ * import { world, DimensionLocation } from '@minecraft/server';
20369
20368
  *
20370
- * function incrementDynamicProperty(
20371
- * log: (message: string, status?: number) => void,
20372
- * targetLocation: DimensionLocation
20373
- * ) {
20374
- * let number = world.getDynamicProperty("samplelibrary:number");
20369
+ * function incrementDynamicProperty(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
20370
+ * let number = world.getDynamicProperty('samplelibrary:number');
20375
20371
  *
20376
- * log("Current value is: " + number);
20372
+ * log('Current value is: ' + number);
20377
20373
  *
20378
20374
  * if (number === undefined) {
20379
20375
  * number = 0;
20380
20376
  * }
20381
20377
  *
20382
- * if (typeof number !== "number") {
20383
- * log("Number is of an unexpected type.");
20378
+ * if (typeof number !== 'number') {
20379
+ * log('Number is of an unexpected type.');
20384
20380
  * return -1;
20385
20381
  * }
20386
20382
  *
20387
- * world.setDynamicProperty("samplelibrary:number", number + 1);
20383
+ * world.setDynamicProperty('samplelibrary:number', number + 1);
20388
20384
  * }
20389
20385
  * ```
20390
20386
  * @example incrementDynamicPropertyInJsonBlob.ts
20391
20387
  * ```typescript
20392
- * import { world, DimensionLocation } from "@minecraft/server";
20388
+ * import { world, DimensionLocation } from '@minecraft/server';
20393
20389
  *
20394
20390
  * function incrementDynamicPropertyInJsonBlob(
20395
20391
  * log: (message: string, status?: number) => void,
20396
20392
  * targetLocation: DimensionLocation
20397
20393
  * ) {
20398
- * let paintStr = world.getDynamicProperty("samplelibrary:longerjson");
20394
+ * let paintStr = world.getDynamicProperty('samplelibrary:longerjson');
20399
20395
  * let paint: { color: string; intensity: number } | undefined = undefined;
20400
20396
  *
20401
- * log("Current value is: " + paintStr);
20397
+ * log('Current value is: ' + paintStr);
20402
20398
  *
20403
20399
  * if (paintStr === undefined) {
20404
20400
  * paint = {
20405
- * color: "purple",
20401
+ * color: 'purple',
20406
20402
  * intensity: 0,
20407
20403
  * };
20408
20404
  * } else {
20409
- * if (typeof paintStr !== "string") {
20410
- * log("Paint is of an unexpected type.");
20405
+ * if (typeof paintStr !== 'string') {
20406
+ * log('Paint is of an unexpected type.');
20411
20407
  * return -1;
20412
20408
  * }
20413
20409
  *
20414
20410
  * try {
20415
20411
  * paint = JSON.parse(paintStr);
20416
20412
  * } catch (e) {
20417
- * log("Error parsing serialized struct.");
20413
+ * log('Error parsing serialized struct.');
20418
20414
  * return -1;
20419
20415
  * }
20420
20416
  * }
20421
20417
  *
20422
20418
  * if (!paint) {
20423
- * log("Error parsing serialized struct.");
20419
+ * log('Error parsing serialized struct.');
20424
20420
  * return -1;
20425
20421
  * }
20426
20422
  *
20427
20423
  * paint.intensity++;
20428
20424
  * paintStr = JSON.stringify(paint); // be very careful to ensure your serialized JSON str cannot exceed limits
20429
- * world.setDynamicProperty("samplelibrary:longerjson", paintStr);
20425
+ * world.setDynamicProperty('samplelibrary:longerjson', paintStr);
20430
20426
  * }
20431
20427
  * ```
20432
20428
  */
@@ -20513,7 +20509,7 @@ export class World {
20513
20509
  * {@link minecraftcommon.PropertyOutOfBoundsError}
20514
20510
  * @example playMusicAndSound.ts
20515
20511
  * ```typescript
20516
- * import { world, MusicOptions, WorldSoundOptions, PlayerSoundOptions, DimensionLocation } from "@minecraft/server";
20512
+ * import { world, MusicOptions, WorldSoundOptions, PlayerSoundOptions, DimensionLocation } from '@minecraft/server';
20517
20513
  *
20518
20514
  * function playMusicAndSound(targetLocation: DimensionLocation) {
20519
20515
  * const players = world.getPlayers();
@@ -20523,20 +20519,20 @@ export class World {
20523
20519
  * loop: true,
20524
20520
  * volume: 1.0,
20525
20521
  * };
20526
- * world.playMusic("music.menu", musicOptions);
20522
+ * world.playMusic('music.menu', musicOptions);
20527
20523
  *
20528
20524
  * const worldSoundOptions: WorldSoundOptions = {
20529
20525
  * pitch: 0.5,
20530
20526
  * volume: 4.0,
20531
20527
  * };
20532
- * world.playSound("ambient.weather.thunder", targetLocation, worldSoundOptions);
20528
+ * world.playSound('ambient.weather.thunder', targetLocation, worldSoundOptions);
20533
20529
  *
20534
20530
  * const playerSoundOptions: PlayerSoundOptions = {
20535
20531
  * pitch: 1.0,
20536
20532
  * volume: 1.0,
20537
20533
  * };
20538
20534
  *
20539
- * players[0].playSound("bucket.fill_water", playerSoundOptions);
20535
+ * players[0].playSound('bucket.fill_water', playerSoundOptions);
20540
20536
  * }
20541
20537
  * ```
20542
20538
  */
@@ -20638,68 +20634,65 @@ export class World {
20638
20634
  * {@link minecraftcommon.ArgumentOutOfBoundsError}
20639
20635
  * @example incrementDynamicProperty.ts
20640
20636
  * ```typescript
20641
- * import { world, DimensionLocation } from "@minecraft/server";
20637
+ * import { world, DimensionLocation } from '@minecraft/server';
20642
20638
  *
20643
- * function incrementDynamicProperty(
20644
- * log: (message: string, status?: number) => void,
20645
- * targetLocation: DimensionLocation
20646
- * ) {
20647
- * let number = world.getDynamicProperty("samplelibrary:number");
20639
+ * function incrementDynamicProperty(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
20640
+ * let number = world.getDynamicProperty('samplelibrary:number');
20648
20641
  *
20649
- * log("Current value is: " + number);
20642
+ * log('Current value is: ' + number);
20650
20643
  *
20651
20644
  * if (number === undefined) {
20652
20645
  * number = 0;
20653
20646
  * }
20654
20647
  *
20655
- * if (typeof number !== "number") {
20656
- * log("Number is of an unexpected type.");
20648
+ * if (typeof number !== 'number') {
20649
+ * log('Number is of an unexpected type.');
20657
20650
  * return -1;
20658
20651
  * }
20659
20652
  *
20660
- * world.setDynamicProperty("samplelibrary:number", number + 1);
20653
+ * world.setDynamicProperty('samplelibrary:number', number + 1);
20661
20654
  * }
20662
20655
  * ```
20663
20656
  * @example incrementDynamicPropertyInJsonBlob.ts
20664
20657
  * ```typescript
20665
- * import { world, DimensionLocation } from "@minecraft/server";
20658
+ * import { world, DimensionLocation } from '@minecraft/server';
20666
20659
  *
20667
20660
  * function incrementDynamicPropertyInJsonBlob(
20668
20661
  * log: (message: string, status?: number) => void,
20669
20662
  * targetLocation: DimensionLocation
20670
20663
  * ) {
20671
- * let paintStr = world.getDynamicProperty("samplelibrary:longerjson");
20664
+ * let paintStr = world.getDynamicProperty('samplelibrary:longerjson');
20672
20665
  * let paint: { color: string; intensity: number } | undefined = undefined;
20673
20666
  *
20674
- * log("Current value is: " + paintStr);
20667
+ * log('Current value is: ' + paintStr);
20675
20668
  *
20676
20669
  * if (paintStr === undefined) {
20677
20670
  * paint = {
20678
- * color: "purple",
20671
+ * color: 'purple',
20679
20672
  * intensity: 0,
20680
20673
  * };
20681
20674
  * } else {
20682
- * if (typeof paintStr !== "string") {
20683
- * log("Paint is of an unexpected type.");
20675
+ * if (typeof paintStr !== 'string') {
20676
+ * log('Paint is of an unexpected type.');
20684
20677
  * return -1;
20685
20678
  * }
20686
20679
  *
20687
20680
  * try {
20688
20681
  * paint = JSON.parse(paintStr);
20689
20682
  * } catch (e) {
20690
- * log("Error parsing serialized struct.");
20683
+ * log('Error parsing serialized struct.');
20691
20684
  * return -1;
20692
20685
  * }
20693
20686
  * }
20694
20687
  *
20695
20688
  * if (!paint) {
20696
- * log("Error parsing serialized struct.");
20689
+ * log('Error parsing serialized struct.');
20697
20690
  * return -1;
20698
20691
  * }
20699
20692
  *
20700
20693
  * paint.intensity++;
20701
20694
  * paintStr = JSON.stringify(paint); // be very careful to ensure your serialized JSON str cannot exceed limits
20702
- * world.setDynamicProperty("samplelibrary:longerjson", paintStr);
20695
+ * world.setDynamicProperty('samplelibrary:longerjson', paintStr);
20703
20696
  * }
20704
20697
  * ```
20705
20698
  */
@@ -20779,7 +20772,6 @@ export class WorldAfterEvents {
20779
20772
  */
20780
20773
  readonly entityDie: EntityDieAfterEventSignal;
20781
20774
  /**
20782
- * @rc
20783
20775
  * @remarks
20784
20776
  * This property can be read in early-execution mode.
20785
20777
  *
@@ -20812,7 +20804,6 @@ export class WorldAfterEvents {
20812
20804
  */
20813
20805
  readonly entityHitEntity: EntityHitEntityAfterEventSignal;
20814
20806
  /**
20815
- * @rc
20816
20807
  * @remarks
20817
20808
  * This event fires when an entity is hurt (takes damage).
20818
20809
  *
@@ -20821,7 +20812,6 @@ export class WorldAfterEvents {
20821
20812
  */
20822
20813
  readonly entityHurt: EntityHurtAfterEventSignal;
20823
20814
  /**
20824
- * @rc
20825
20815
  * @remarks
20826
20816
  * This event fires when an entity drops items.
20827
20817
  *
@@ -20830,7 +20820,6 @@ export class WorldAfterEvents {
20830
20820
  */
20831
20821
  readonly entityItemDrop: EntityItemDropAfterEventSignal;
20832
20822
  /**
20833
- * @rc
20834
20823
  * @remarks
20835
20824
  * This event fires when an entity picks up items.
20836
20825
  *
@@ -21174,21 +21163,18 @@ export class WorldBeforeEvents {
21174
21163
  */
21175
21164
  readonly effectAdd: EffectAddBeforeEventSignal;
21176
21165
  /**
21177
- * @rc
21178
21166
  * @remarks
21179
21167
  * This property can be read in early-execution mode.
21180
21168
  *
21181
21169
  */
21182
21170
  readonly entityHeal: EntityHealBeforeEventSignal;
21183
21171
  /**
21184
- * @rc
21185
21172
  * @remarks
21186
21173
  * This property can be read in early-execution mode.
21187
21174
  *
21188
21175
  */
21189
21176
  readonly entityHurt: EntityHurtBeforeEventSignal;
21190
21177
  /**
21191
- * @rc
21192
21178
  * @remarks
21193
21179
  * This event fires before an entity picks up an item.
21194
21180
  *
@@ -21313,7 +21299,6 @@ export interface AABB {
21313
21299
  }
21314
21300
 
21315
21301
  /**
21316
- * @rc
21317
21302
  * Used to create camera animations.
21318
21303
  */
21319
21304
  export interface AnimationOptions {
@@ -21331,9 +21316,6 @@ export interface AnimationOptions {
21331
21316
  totalTimeSeconds: number;
21332
21317
  }
21333
21318
 
21334
- /**
21335
- * @rc
21336
- */
21337
21319
  export interface BiomeFilter {
21338
21320
  excludeBiomes?: string[];
21339
21321
  excludeTags?: string[];
@@ -21400,7 +21382,6 @@ export interface BlockCustomComponent {
21400
21382
  */
21401
21383
  onBreak?: (arg0: BlockComponentBlockBreakEvent, arg1: CustomComponentParameters) => void;
21402
21384
  /**
21403
- * @rc
21404
21385
  * @remarks
21405
21386
  * This function will be called when an entity fires an event
21406
21387
  * to this block in the world.
@@ -21640,7 +21621,6 @@ export interface BlockRaycastOptions extends BlockFilter {
21640
21621
  }
21641
21622
 
21642
21623
  /**
21643
- * @rc
21644
21624
  * Used to attach the camera to a non player entity.
21645
21625
  */
21646
21626
  export interface CameraAttachOptions {
@@ -22235,7 +22215,6 @@ export interface EntityFilter {
22235
22215
  }
22236
22216
 
22237
22217
  /**
22238
- * @rc
22239
22218
  * Contains optional parameters for registering an entity heal
22240
22219
  * event.
22241
22220
  */
@@ -22270,7 +22249,6 @@ export interface EntityHitInformation {
22270
22249
  }
22271
22250
 
22272
22251
  /**
22273
- * @rc
22274
22252
  * Contains optional parameters for registering an entity hurt
22275
22253
  * after event.
22276
22254
  */
@@ -22306,7 +22284,6 @@ export interface EntityHurtAfterEventOptions {
22306
22284
  }
22307
22285
 
22308
22286
  /**
22309
- * @rc
22310
22287
  * Contains optional parameters for registering an entity hurt
22311
22288
  * before event.
22312
22289
  */
@@ -22328,7 +22305,6 @@ export interface EntityHurtBeforeEventOptions {
22328
22305
  }
22329
22306
 
22330
22307
  /**
22331
- * @rc
22332
22308
  * An interface that is passed into {@link
22333
22309
  * @minecraft/Server.EntityItemDropAfterEventSignal.subscribe}
22334
22310
  * that filters out which events are passed to the provided
@@ -22352,7 +22328,6 @@ export interface EntityItemDropEventOptions {
22352
22328
  }
22353
22329
 
22354
22330
  /**
22355
- * @rc
22356
22331
  * An interface that is passed into {@link
22357
22332
  * @minecraft/Server.EntityItemPickupAfterEventSignal.subscribe}
22358
22333
  * and {@link
@@ -22381,37 +22356,35 @@ export interface EntityItemPickupEventOptions {
22381
22356
  * Contains options for selecting entities within an area.
22382
22357
  * @example blockConditional.ts
22383
22358
  * ```typescript
22384
- * import { DimensionLocation } from "@minecraft/server";
22359
+ * import { DimensionLocation } from '@minecraft/server';
22385
22360
  *
22386
22361
  * function blockConditional(targetLocation: DimensionLocation) {
22387
22362
  * targetLocation.dimension
22388
22363
  * .getEntities({
22389
- * type: "fox",
22364
+ * type: 'fox',
22390
22365
  * })
22391
- * .filter((entity) => {
22366
+ * .filter(entity => {
22392
22367
  * const block = targetLocation.dimension.getBlock({
22393
22368
  * x: entity.location.x,
22394
22369
  * y: entity.location.y - 1,
22395
22370
  * z: entity.location.z,
22396
22371
  * });
22397
22372
  *
22398
- * return block !== undefined && block.matches("minecraft:stone");
22373
+ * return block !== undefined && block.matches('minecraft:stone');
22399
22374
  * })
22400
- * .forEach((entity) => {
22401
- * targetLocation.dimension.spawnEntity("salmon", entity.location);
22375
+ * .forEach(entity => {
22376
+ * targetLocation.dimension.spawnEntity('salmon', entity.location);
22402
22377
  * });
22403
22378
  * }
22404
22379
  * ```
22405
22380
  * @example findEntitiesHavingPropertyEqualsTo.ts
22406
22381
  * ```typescript
22407
- * import { EntityQueryOptions, DimensionLocation } from "@minecraft/server";
22382
+ * import { EntityQueryOptions, DimensionLocation } from '@minecraft/server';
22408
22383
  *
22409
- * function findEntitiesHavingPropertyEqualsTo(
22410
- * targetLocation: DimensionLocation
22411
- * ) {
22384
+ * function findEntitiesHavingPropertyEqualsTo(targetLocation: DimensionLocation) {
22412
22385
  * // Minecraft bees have a has_nectar boolean property
22413
22386
  * const queryOption: EntityQueryOptions = {
22414
- * propertyOptions: [{ propertyId: "minecraft:has_nectar", value: { equals: true } }],
22387
+ * propertyOptions: [{ propertyId: 'minecraft:has_nectar', value: { equals: true } }],
22415
22388
  * };
22416
22389
  *
22417
22390
  * const entities = targetLocation.dimension.getEntities(queryOption);
@@ -22419,38 +22392,36 @@ export interface EntityItemPickupEventOptions {
22419
22392
  * ```
22420
22393
  * @example playSoundChained.ts
22421
22394
  * ```typescript
22422
- * import { DimensionLocation } from "@minecraft/server";
22395
+ * import { DimensionLocation } from '@minecraft/server';
22423
22396
  *
22424
22397
  * function playSoundChained(targetLocation: DimensionLocation) {
22425
22398
  * const targetPlayers = targetLocation.dimension.getPlayers();
22426
22399
  * const originEntities = targetLocation.dimension.getEntities({
22427
- * type: "armor_stand",
22428
- * name: "myArmorStand",
22429
- * tags: ["dummyTag1"],
22430
- * excludeTags: ["dummyTag2"],
22400
+ * type: 'armor_stand',
22401
+ * name: 'myArmorStand',
22402
+ * tags: ['dummyTag1'],
22403
+ * excludeTags: ['dummyTag2'],
22431
22404
  * });
22432
22405
  *
22433
- * originEntities.forEach((entity) => {
22434
- * targetPlayers.forEach((player) => {
22435
- * player.playSound("raid.horn");
22406
+ * originEntities.forEach(entity => {
22407
+ * targetPlayers.forEach(player => {
22408
+ * player.playSound('raid.horn');
22436
22409
  * });
22437
22410
  * });
22438
22411
  * }
22439
22412
  * ```
22440
22413
  * @example setScoreboardChained.ts
22441
22414
  * ```typescript
22442
- * import { world, DimensionLocation } from "@minecraft/server";
22415
+ * import { world, DimensionLocation } from '@minecraft/server';
22443
22416
  *
22444
- * function setScoreboardChained(
22445
- * targetLocation: DimensionLocation
22446
- * ) {
22447
- * const objective = world.scoreboard.addObjective("scoreObjective1", "dummy");
22417
+ * function setScoreboardChained(targetLocation: DimensionLocation) {
22418
+ * const objective = world.scoreboard.addObjective('scoreObjective1', 'dummy');
22448
22419
  * targetLocation.dimension
22449
22420
  * .getEntities({
22450
- * type: "armor_stand",
22451
- * name: "myArmorStand",
22421
+ * type: 'armor_stand',
22422
+ * name: 'myArmorStand',
22452
22423
  * })
22453
- * .forEach((entity) => {
22424
+ * .forEach(entity => {
22454
22425
  * if (entity.scoreboardIdentity !== undefined) {
22455
22426
  * objective.setScore(entity.scoreboardIdentity, -1);
22456
22427
  * }
@@ -22459,20 +22430,20 @@ export interface EntityItemPickupEventOptions {
22459
22430
  * ```
22460
22431
  * @example summonMobChained.ts
22461
22432
  * ```typescript
22462
- * import { DimensionLocation } from "@minecraft/server";
22433
+ * import { DimensionLocation } from '@minecraft/server';
22463
22434
  *
22464
22435
  * function summonMobChained(targetLocation: DimensionLocation) {
22465
22436
  * const armorStandArray = targetLocation.dimension.getEntities({
22466
- * type: "armor_stand",
22437
+ * type: 'armor_stand',
22467
22438
  * });
22468
22439
  * const playerArray = targetLocation.dimension.getPlayers({
22469
22440
  * location: { x: 0, y: -60, z: 0 },
22470
22441
  * closest: 4,
22471
22442
  * maxDistance: 15,
22472
22443
  * });
22473
- * armorStandArray.forEach((entity) => {
22474
- * playerArray.forEach((player) => {
22475
- * targetLocation.dimension.spawnEntity("pig", {
22444
+ * armorStandArray.forEach(entity => {
22445
+ * playerArray.forEach(player => {
22446
+ * targetLocation.dimension.spawnEntity('pig', {
22476
22447
  * x: player.location.x + 1,
22477
22448
  * y: player.location.y,
22478
22449
  * z: player.location.z,
@@ -22483,10 +22454,10 @@ export interface EntityItemPickupEventOptions {
22483
22454
  * ```
22484
22455
  * @example bounceSkeletons.ts
22485
22456
  * ```typescript
22486
- * import { EntityQueryOptions, DimensionLocation } from "@minecraft/server";
22457
+ * import { EntityQueryOptions, DimensionLocation } from '@minecraft/server';
22487
22458
  *
22488
22459
  * function bounceSkeletons(targetLocation: DimensionLocation) {
22489
- * const mobs = ["creeper", "skeleton", "sheep"];
22460
+ * const mobs = ['creeper', 'skeleton', 'sheep'];
22490
22461
  *
22491
22462
  * // create some sample mob data
22492
22463
  * for (let i = 0; i < 10; i++) {
@@ -22494,7 +22465,7 @@ export interface EntityItemPickupEventOptions {
22494
22465
  * }
22495
22466
  *
22496
22467
  * const eqo: EntityQueryOptions = {
22497
- * type: "skeleton",
22468
+ * type: 'skeleton',
22498
22469
  * };
22499
22470
  *
22500
22471
  * for (const entity of targetLocation.dimension.getEntities(eqo)) {
@@ -22504,20 +22475,20 @@ export interface EntityItemPickupEventOptions {
22504
22475
  * ```
22505
22476
  * @example tagsQuery.ts
22506
22477
  * ```typescript
22507
- * import { EntityQueryOptions, DimensionLocation } from "@minecraft/server";
22478
+ * import { EntityQueryOptions, DimensionLocation } from '@minecraft/server';
22508
22479
  *
22509
22480
  * function tagsQuery(targetLocation: DimensionLocation) {
22510
- * const mobs = ["creeper", "skeleton", "sheep"];
22481
+ * const mobs = ['creeper', 'skeleton', 'sheep'];
22511
22482
  *
22512
22483
  * // create some sample mob data
22513
22484
  * for (let i = 0; i < 10; i++) {
22514
22485
  * const mobTypeId = mobs[i % mobs.length];
22515
22486
  * const entity = targetLocation.dimension.spawnEntity(mobTypeId, targetLocation);
22516
- * entity.addTag("mobparty." + mobTypeId);
22487
+ * entity.addTag('mobparty.' + mobTypeId);
22517
22488
  * }
22518
22489
  *
22519
22490
  * const eqo: EntityQueryOptions = {
22520
- * tags: ["mobparty.skeleton"],
22491
+ * tags: ['mobparty.skeleton'],
22521
22492
  * };
22522
22493
  *
22523
22494
  * for (const entity of targetLocation.dimension.getEntities(eqo)) {
@@ -22527,7 +22498,7 @@ export interface EntityItemPickupEventOptions {
22527
22498
  * ```
22528
22499
  * @example testThatEntityIsFeatherItem.ts
22529
22500
  * ```typescript
22530
- * import { EntityItemComponent, EntityComponentTypes, DimensionLocation } from "@minecraft/server";
22501
+ * import { EntityItemComponent, EntityComponentTypes, DimensionLocation } from '@minecraft/server';
22531
22502
  *
22532
22503
  * function testThatEntityIsFeatherItem(
22533
22504
  * log: (message: string, status?: number) => void,
@@ -22542,8 +22513,8 @@ export interface EntityItemPickupEventOptions {
22542
22513
  * const itemComp = item.getComponent(EntityComponentTypes.Item) as EntityItemComponent;
22543
22514
  *
22544
22515
  * if (itemComp) {
22545
- * if (itemComp.itemStack.typeId.endsWith("feather")) {
22546
- * log("Success! Found a feather", 1);
22516
+ * if (itemComp.itemStack.typeId.endsWith('feather')) {
22517
+ * log('Success! Found a feather', 1);
22547
22518
  * }
22548
22519
  * }
22549
22520
  * }
@@ -22720,33 +22691,30 @@ export interface EqualsComparison {
22720
22691
  * Dimension.createExplosion} method.
22721
22692
  * @example createNoBlockExplosion.ts
22722
22693
  * ```typescript
22723
- * import { DimensionLocation } from "@minecraft/server";
22724
- * import { Vector3Utils } from "@minecraft/math";
22694
+ * import { DimensionLocation } from '@minecraft/server';
22695
+ * import { Vector3Utils } from '@minecraft/math';
22725
22696
  *
22726
- * function createNoBlockExplosion(
22727
- * log: (message: string, status?: number) => void,
22728
- * targetLocation: DimensionLocation
22729
- * ) {
22697
+ * function createNoBlockExplosion(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
22730
22698
  * const explodeNoBlocksLoc = Vector3Utils.floor(Vector3Utils.add(targetLocation, { x: 1, y: 2, z: 1 }));
22731
22699
  *
22732
- * log("Creating an explosion of radius 15 that does not break blocks.");
22700
+ * log('Creating an explosion of radius 15 that does not break blocks.');
22733
22701
  * targetLocation.dimension.createExplosion(explodeNoBlocksLoc, 15, { breaksBlocks: false });
22734
22702
  * }
22735
22703
  * ```
22736
22704
  * @example createExplosions.ts
22737
22705
  * ```typescript
22738
- * import { DimensionLocation } from "@minecraft/server";
22739
- * import { Vector3Utils } from "@minecraft/math";
22706
+ * import { DimensionLocation } from '@minecraft/server';
22707
+ * import { Vector3Utils } from '@minecraft/math';
22740
22708
  *
22741
22709
  * function createExplosions(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
22742
22710
  * const explosionLoc = Vector3Utils.add(targetLocation, { x: 0.5, y: 0.5, z: 0.5 });
22743
22711
  *
22744
- * log("Creating an explosion of radius 15 that causes fire.");
22712
+ * log('Creating an explosion of radius 15 that causes fire.');
22745
22713
  * targetLocation.dimension.createExplosion(explosionLoc, 15, { causesFire: true });
22746
22714
  *
22747
22715
  * const belowWaterLoc = Vector3Utils.add(targetLocation, { x: 3, y: 1, z: 3 });
22748
22716
  *
22749
- * log("Creating an explosion of radius 10 that can go underwater.");
22717
+ * log('Creating an explosion of radius 10 that can go underwater.');
22750
22718
  * targetLocation.dimension.createExplosion(belowWaterLoc, 10, { allowUnderwater: true });
22751
22719
  * }
22752
22720
  * ```
@@ -22977,7 +22945,6 @@ export interface ItemCustomComponent {
22977
22945
  }
22978
22946
 
22979
22947
  /**
22980
- * @rc
22981
22948
  * Contains options for filtering items.
22982
22949
  */
22983
22950
  export interface ItemFilter {
@@ -23153,7 +23120,6 @@ export interface PlayAnimationOptions {
23153
23120
  }
23154
23121
 
23155
23122
  /**
23156
- * @rc
23157
23123
  * Settings relating to a player's aim-assist targeting.
23158
23124
  */
23159
23125
  export interface PlayerAimAssistSettings {
@@ -23235,7 +23201,6 @@ export interface PlayerSwingEventOptions {
23235
23201
  }
23236
23202
 
23237
23203
  /**
23238
- * @rc
23239
23204
  * Key frame that holds the progress of the camera animation.
23240
23205
  */
23241
23206
  export interface ProgressKeyFrame {
@@ -23301,49 +23266,46 @@ export interface RangeComparison {
23301
23266
  * import { DimensionLocation, world, BlockPermutation, BlockComponentTypes } from '@minecraft/server';
23302
23267
  *
23303
23268
  * function placeTranslatedSign(location: DimensionLocation, text: string) {
23304
- * const signBlock = location.dimension.getBlock(location);
23269
+ * const signBlock = location.dimension.getBlock(location);
23305
23270
  *
23306
- * if (!signBlock) {
23307
- * console.warn('Could not find a block at specified location.');
23308
- * return;
23309
- * }
23310
- * const signPerm = BlockPermutation.resolve('minecraft:standing_sign', { ground_sign_direction: 8 });
23311
- * signBlock.setPermutation(signPerm);
23271
+ * if (!signBlock) {
23272
+ * console.warn('Could not find a block at specified location.');
23273
+ * return;
23274
+ * }
23275
+ * const signPerm = BlockPermutation.resolve('minecraft:standing_sign', { ground_sign_direction: 8 });
23276
+ * signBlock.setPermutation(signPerm);
23312
23277
  *
23313
- * const signComponent = signBlock.getComponent(BlockComponentTypes.Sign);
23314
- * if (signComponent) {
23315
- * signComponent.setText({ translate: 'item.skull.player.name', with: [text] });
23316
- * } else {
23317
- * console.error('Could not find a sign component on the block.');
23318
- * }
23278
+ * const signComponent = signBlock.getComponent(BlockComponentTypes.Sign);
23279
+ * if (signComponent) {
23280
+ * signComponent.setText({ translate: 'item.skull.player.name', with: [text] });
23281
+ * } else {
23282
+ * console.error('Could not find a sign component on the block.');
23283
+ * }
23319
23284
  * }
23320
23285
  *
23321
23286
  * placeTranslatedSign(
23322
- * {
23323
- * dimension: world.getDimension('overworld'),
23324
- * x: 0,
23325
- * y: 0,
23326
- * z: 0,
23327
- * },
23328
- * 'Steve',
23287
+ * {
23288
+ * dimension: world.getDimension('overworld'),
23289
+ * x: 0,
23290
+ * y: 0,
23291
+ * z: 0,
23292
+ * },
23293
+ * 'Steve'
23329
23294
  * );
23330
23295
  * ```
23331
23296
  * @example showTranslatedMessageForm.ts
23332
23297
  * ```typescript
23333
- * import { world, DimensionLocation } from "@minecraft/server";
23334
- * import { MessageFormResponse, MessageFormData } from "@minecraft/server-ui";
23298
+ * import { world, DimensionLocation } from '@minecraft/server';
23299
+ * import { MessageFormResponse, MessageFormData } from '@minecraft/server-ui';
23335
23300
  *
23336
- * function showTranslatedMessageForm(
23337
- * log: (message: string, status?: number) => void,
23338
- * targetLocation: DimensionLocation
23339
- * ) {
23301
+ * function showTranslatedMessageForm(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
23340
23302
  * const players = world.getPlayers();
23341
23303
  *
23342
23304
  * const messageForm = new MessageFormData()
23343
- * .title({ translate: "permissions.removeplayer" })
23344
- * .body({ translate: "accessibility.list.or.two", with: ["Player 1", "Player 2"] })
23345
- * .button1("Player 1")
23346
- * .button2("Player 2");
23305
+ * .title({ translate: 'permissions.removeplayer' })
23306
+ * .body({ translate: 'accessibility.list.or.two', with: ['Player 1', 'Player 2'] })
23307
+ * .button1('Player 1')
23308
+ * .button2('Player 2');
23347
23309
  *
23348
23310
  * messageForm
23349
23311
  * .show(players[0])
@@ -23353,18 +23315,18 @@ export interface RangeComparison {
23353
23315
  * return;
23354
23316
  * }
23355
23317
  *
23356
- * log(`You selected ${formData.selection === 0 ? "Player 1" : "Player 2"}`);
23318
+ * log(`You selected ${formData.selection === 0 ? 'Player 1' : 'Player 2'}`);
23357
23319
  * })
23358
23320
  * .catch((error: Error) => {
23359
- * log("Failed to show form: " + error);
23321
+ * log('Failed to show form: ' + error);
23360
23322
  * return -1;
23361
23323
  * });
23362
23324
  * }
23363
23325
  * ```
23364
23326
  * @example addTranslatedSign.ts
23365
23327
  * ```typescript
23366
- * import { world, BlockPermutation, BlockSignComponent, BlockComponentTypes, DimensionLocation } from "@minecraft/server";
23367
- * import { MinecraftBlockTypes } from "@minecraft/vanilla-data";
23328
+ * import { world, BlockPermutation, BlockSignComponent, BlockComponentTypes, DimensionLocation } from '@minecraft/server';
23329
+ * import { MinecraftBlockTypes } from '@minecraft/vanilla-data';
23368
23330
  *
23369
23331
  * function addTranslatedSign(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
23370
23332
  * const players = world.getPlayers();
@@ -23374,7 +23336,7 @@ export interface RangeComparison {
23374
23336
  * const signBlock = dim.getBlock(targetLocation);
23375
23337
  *
23376
23338
  * if (!signBlock) {
23377
- * log("Could not find a block at specified location.");
23339
+ * log('Could not find a block at specified location.');
23378
23340
  * return -1;
23379
23341
  * }
23380
23342
  * const signPerm = BlockPermutation.resolve(MinecraftBlockTypes.StandingSign, { ground_sign_direction: 8 });
@@ -23383,7 +23345,7 @@ export interface RangeComparison {
23383
23345
  *
23384
23346
  * const signComponent = signBlock.getComponent(BlockComponentTypes.Sign) as BlockSignComponent;
23385
23347
  *
23386
- * signComponent?.setText({ translate: "item.skull.player.name", with: [players[0].name] });
23348
+ * signComponent?.setText({ translate: 'item.skull.player.name', with: [players[0].name] });
23387
23349
  * }
23388
23350
  * ```
23389
23351
  */
@@ -23502,7 +23464,6 @@ export interface RGBA extends RGB {
23502
23464
  }
23503
23465
 
23504
23466
  /**
23505
- * @rc
23506
23467
  * Key frame that holds the rotation of the camera animation.
23507
23468
  */
23508
23469
  export interface RotationKeyFrame {
@@ -23589,7 +23550,6 @@ export interface SpawnEntityOptions {
23589
23550
  }
23590
23551
 
23591
23552
  /**
23592
- * @rc
23593
23553
  * Collection of key frames for camera animation.
23594
23554
  */
23595
23555
  export interface SplineAnimation {
@@ -23710,8 +23670,8 @@ export interface StructurePlaceOptions {
23710
23670
  * Contains additional options for teleporting an entity.
23711
23671
  * @example teleport.ts
23712
23672
  * ```typescript
23713
- * import { system, DimensionLocation } from "@minecraft/server";
23714
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
23673
+ * import { system, DimensionLocation } from '@minecraft/server';
23674
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
23715
23675
  *
23716
23676
  * function teleport(targetLocation: DimensionLocation) {
23717
23677
  * const cow = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Cow, targetLocation);
@@ -23728,8 +23688,8 @@ export interface StructurePlaceOptions {
23728
23688
  * ```
23729
23689
  * @example teleportMovement.ts
23730
23690
  * ```typescript
23731
- * import { system, DimensionLocation } from "@minecraft/server";
23732
- * import { MinecraftEntityTypes } from "@minecraft/vanilla-data";
23691
+ * import { system, DimensionLocation } from '@minecraft/server';
23692
+ * import { MinecraftEntityTypes } from '@minecraft/vanilla-data';
23733
23693
  *
23734
23694
  * function teleportMovement(targetLocation: DimensionLocation) {
23735
23695
  * const pig = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Pig, targetLocation);
@@ -23788,7 +23748,6 @@ export interface TeleportOptions {
23788
23748
  }
23789
23749
 
23790
23750
  /**
23791
- * @rc
23792
23751
  * A context which provides information about a specific
23793
23752
  * ticking area.
23794
23753
  */
@@ -23828,7 +23787,6 @@ export interface TickingArea {
23828
23787
  }
23829
23788
 
23830
23789
  /**
23831
- * @rc
23832
23790
  * Options to create a ticking area using the {@link
23833
23791
  * TickingAreaManager}.
23834
23792
  */
@@ -24269,7 +24227,6 @@ export class RawMessageError extends Error {
24269
24227
  }
24270
24228
 
24271
24229
  /**
24272
- * @rc
24273
24230
  * The error returned from invalid {@link TickingAreaManager}
24274
24231
  * method calls.
24275
24232
  */