@minecraft/server 1.3.0-beta.1.20.0-preview.24 → 1.3.0-beta.1.20.0-stable

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 (3) hide show
  1. package/README.md +0 -2
  2. package/index.d.ts +592 -601
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -7,7 +7,6 @@
7
7
  Copyright (c) Microsoft Corporation.
8
8
  ***************************************************************************** */
9
9
  /**
10
- * @beta
11
10
  * @packageDocumentation
12
11
  * Contains many types related to manipulating a Minecraft
13
12
  * world, including entities, blocks, dimensions, and more.
@@ -16,7 +15,7 @@
16
15
  * ```json
17
16
  * {
18
17
  * "module_name": "@minecraft/server",
19
- * "version": "1.3.0-internal.1.20.0-preview.24"
18
+ * "version": "1.2.0"
20
19
  * }
21
20
  * ```
22
21
  *
@@ -81,9 +80,6 @@ export enum DyeColor {
81
80
  yellow = 'yellow',
82
81
  }
83
82
 
84
- /**
85
- * @beta
86
- */
87
83
  export enum EntityDamageCause {
88
84
  anvil = 'anvil',
89
85
  blockExplosion = 'blockExplosion',
@@ -175,12 +171,10 @@ export enum FluidType {
175
171
  }
176
172
 
177
173
  /**
178
- * @beta
179
174
  * Represents a game mode for the current world experience.
180
175
  */
181
176
  export enum GameMode {
182
177
  /**
183
- * @beta
184
178
  * @remarks
185
179
  * World is in a more locked-down experience, where blocks may
186
180
  * not be manipulated.
@@ -188,7 +182,6 @@ export enum GameMode {
188
182
  */
189
183
  adventure = 'adventure',
190
184
  /**
191
- * @beta
192
185
  * @remarks
193
186
  * World is in a full creative mode. In creative mode, the
194
187
  * player has all the resources available in the item selection
@@ -202,7 +195,6 @@ export enum GameMode {
202
195
  creative = 'creative',
203
196
  spectator = 'spectator',
204
197
  /**
205
- * @beta
206
198
  * @remarks
207
199
  * World is in a survival mode, where players can take damage
208
200
  * and entities may not be peaceful. Survival mode is where the
@@ -214,9 +206,6 @@ export enum GameMode {
214
206
  survival = 'survival',
215
207
  }
216
208
 
217
- /**
218
- * @beta
219
- */
220
209
  export enum ItemLockMode {
221
210
  inventory = 'inventory',
222
211
  none = 'none',
@@ -362,7 +351,7 @@ export enum WeatherType {
362
351
  * of the World.
363
352
  */
364
353
  export class AfterEvents {
365
- protected constructor();
354
+ private constructor();
366
355
  /**
367
356
  * @remarks
368
357
  * This event fires for a block that is broken by a player.
@@ -582,7 +571,7 @@ export class AfterEvents {
582
571
  * error. (e.g., dimension.spawnEntity)
583
572
  */
584
573
  export class BeforeEvents {
585
- protected constructor();
574
+ private constructor();
586
575
  /**
587
576
  * @remarks
588
577
  * This event is triggered after a chat message has been
@@ -636,14 +625,13 @@ export class BeforeEvents {
636
625
  }
637
626
 
638
627
  /**
639
- * @beta
640
628
  * Represents a block in a dimension. A block represents a
641
629
  * unique X, Y, and Z within a dimension and get/sets the state
642
630
  * of the block at that location. This type was significantly
643
631
  * updated in version 1.17.10.21.
644
632
  */
645
633
  export class Block {
646
- protected constructor();
634
+ private constructor();
647
635
  /**
648
636
  * @remarks
649
637
  * Returns the dimension that the block is within.
@@ -792,15 +780,14 @@ export class Block {
792
780
  * @throws This function can throw errors.
793
781
  * @example check_block_tags.js
794
782
  * ```typescript
795
- * import { world } from "@minecraft/server";
796
- *
797
- * // Fetch the block
798
- * const block = world.getDimension("overworld").getBlock({ x: 1, y: 2, z: 3 });
783
+ * import { world } from "@minecraft/server";
799
784
  *
800
- * console.log(`Block is dirt: ${block.hasTag("dirt")}`);
801
- * console.log(`Block is wood: ${block.hasTag("wood")}`);
802
- * console.log(`Block is stone: ${block.hasTag("stone")}`);
785
+ * // Fetch the block
786
+ * const block = world.getDimension("overworld").getBlock({ x: 1, y: 2, z: 3 });
803
787
  *
788
+ * console.log(`Block is dirt: ${block.hasTag("dirt")}`);
789
+ * console.log(`Block is wood: ${block.hasTag("wood")}`);
790
+ * console.log(`Block is stone: ${block.hasTag("stone")}`);
804
791
  * ```
805
792
  */
806
793
  hasTag(tag: string): boolean;
@@ -922,8 +909,9 @@ export class BlockAreaSize {
922
909
  * Contains information regarding an event where a player
923
910
  * breaks a block.
924
911
  */
912
+ // @ts-ignore Class inheritance allowed for native defined classes
925
913
  export class BlockBreakAfterEvent extends BlockEvent {
926
- protected constructor();
914
+ private constructor();
927
915
  /**
928
916
  * @remarks
929
917
  * Returns permutation information about this block before it
@@ -944,16 +932,18 @@ export class BlockBreakAfterEvent extends BlockEvent {
944
932
  * Manages callbacks that are connected to when a block is
945
933
  * broken.
946
934
  */
935
+ // @ts-ignore Class inheritance allowed for native defined classes
947
936
  export class BlockBreakAfterEventSignal extends IBlockBreakAfterEventSignal {
948
- protected constructor();
937
+ private constructor();
949
938
  }
950
939
 
951
940
  /**
952
941
  * @beta
953
942
  * Base type for components associated with blocks.
954
943
  */
944
+ // @ts-ignore Class inheritance allowed for native defined classes
955
945
  export class BlockComponent extends Component {
956
- protected constructor();
946
+ private constructor();
957
947
  /**
958
948
  * @remarks
959
949
  * Block instance that this component pertains to.
@@ -968,7 +958,7 @@ export class BlockComponent extends Component {
968
958
  * specific block.
969
959
  */
970
960
  export class BlockEvent {
971
- protected constructor();
961
+ private constructor();
972
962
  /**
973
963
  * @remarks
974
964
  * Block impacted by this event.
@@ -989,8 +979,9 @@ export class BlockEvent {
989
979
  * Contains information regarding an explosion that has
990
980
  * occurred for a specific block.
991
981
  */
982
+ // @ts-ignore Class inheritance allowed for native defined classes
992
983
  export class BlockExplodeAfterEvent extends BlockEvent {
993
- protected constructor();
984
+ private constructor();
994
985
  /**
995
986
  * @remarks
996
987
  * Description of the block that has exploded.
@@ -1010,17 +1001,18 @@ export class BlockExplodeAfterEvent extends BlockEvent {
1010
1001
  * Manages callbacks that are connected to when an explosion
1011
1002
  * occurs, as it impacts individual blocks.
1012
1003
  */
1004
+ // @ts-ignore Class inheritance allowed for native defined classes
1013
1005
  export class BlockExplodeAfterEventSignal extends IBlockExplodeAfterEventSignal {
1014
- protected constructor();
1006
+ private constructor();
1015
1007
  }
1016
1008
 
1017
1009
  /**
1018
- * @beta
1019
1010
  * Represents the inventory of a block in the world. Used with
1020
1011
  * blocks like chests.
1021
1012
  */
1013
+ // @ts-ignore Class inheritance allowed for native defined classes
1022
1014
  export class BlockInventoryComponent extends BlockComponent {
1023
- protected constructor();
1015
+ private constructor();
1024
1016
  /**
1025
1017
  * @remarks
1026
1018
  * The container which holds an {@link ItemStack}.
@@ -1042,8 +1034,9 @@ export class BlockInventoryComponent extends BlockComponent {
1042
1034
  * Represents a fluid container block that currently contains
1043
1035
  * lava.
1044
1036
  */
1037
+ // @ts-ignore Class inheritance allowed for native defined classes
1045
1038
  export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
1046
- protected constructor();
1039
+ private constructor();
1047
1040
  /**
1048
1041
  * @remarks
1049
1042
  * Identifier of this component. Should always be
@@ -1058,8 +1051,9 @@ export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
1058
1051
  * For blocks that can contain a liquid (e.g., a cauldron),
1059
1052
  * this is a base component for liquid containers.
1060
1053
  */
1054
+ // @ts-ignore Class inheritance allowed for native defined classes
1061
1055
  export class BlockLiquidContainerComponent extends BlockComponent {
1062
- protected constructor();
1056
+ private constructor();
1063
1057
  /**
1064
1058
  * @remarks
1065
1059
  * Relative fill level of the liquid container.
@@ -1089,7 +1083,7 @@ export class BlockLiquidContainerComponent extends BlockComponent {
1089
1083
  * coordinate to the next XZ slice)
1090
1084
  */
1091
1085
  export class BlockLocationIterator implements Iterable<Vector3> {
1092
- protected constructor();
1086
+ private constructor();
1093
1087
  /**
1094
1088
  * @remarks
1095
1089
  * This function can't be called in read-only mode.
@@ -1105,14 +1099,13 @@ export class BlockLocationIterator implements Iterable<Vector3> {
1105
1099
  }
1106
1100
 
1107
1101
  /**
1108
- * @beta
1109
1102
  * Contains the combination of type {@link BlockType} and
1110
1103
  * properties (also sometimes called block state) which
1111
1104
  * describe a block (but does not belong to a specific {@link
1112
1105
  * Block}). This type was introduced as of version 1.17.10.21.
1113
1106
  */
1114
1107
  export class BlockPermutation {
1115
- protected constructor();
1108
+ private constructor();
1116
1109
  /**
1117
1110
  * @beta
1118
1111
  * @remarks
@@ -1180,16 +1173,15 @@ export class BlockPermutation {
1180
1173
  * Returns `true` if the permutation has the tag, else `false`.
1181
1174
  * @example check_block_tags.js
1182
1175
  * ```typescript
1183
- * import { world } from "@minecraft/server";
1176
+ * import { world } from "@minecraft/server";
1184
1177
  *
1185
- * // Fetch the block
1186
- * const block = world.getDimension("overworld").getBlock({ x: 1, y: 2, z: 3 });
1187
- * const blockPerm = block.getPermutation();
1188
- *
1189
- * console.log(`Block is dirt: ${blockPerm.hasTag("dirt")}`);
1190
- * console.log(`Block is wood: ${blockPerm.hasTag("wood")}`);
1191
- * console.log(`Block is stone: ${blockPerm.hasTag("stone")}`);
1178
+ * // Fetch the block
1179
+ * const block = world.getDimension("overworld").getBlock({ x: 1, y: 2, z: 3 });
1180
+ * const blockPerm = block.getPermutation();
1192
1181
  *
1182
+ * console.log(`Block is dirt: ${blockPerm.hasTag("dirt")}`);
1183
+ * console.log(`Block is wood: ${blockPerm.hasTag("wood")}`);
1184
+ * console.log(`Block is stone: ${blockPerm.hasTag("stone")}`);
1193
1185
  * ```
1194
1186
  */
1195
1187
  hasTag(tag: string): boolean;
@@ -1234,8 +1226,9 @@ export class BlockPermutation {
1234
1226
  * When present, this block has piston-like behavior. Contains
1235
1227
  * additional properties for discovering block piston state.
1236
1228
  */
1229
+ // @ts-ignore Class inheritance allowed for native defined classes
1237
1230
  export class BlockPistonComponent extends BlockComponent {
1238
- protected constructor();
1231
+ private constructor();
1239
1232
  /**
1240
1233
  * @remarks
1241
1234
  * Whether the piston is fully expanded.
@@ -1293,8 +1286,9 @@ export class BlockPistonComponent extends BlockComponent {
1293
1286
  * Contains information regarding an event where a player
1294
1287
  * places a block.
1295
1288
  */
1289
+ // @ts-ignore Class inheritance allowed for native defined classes
1296
1290
  export class BlockPlaceAfterEvent extends BlockEvent {
1297
- protected constructor();
1291
+ private constructor();
1298
1292
  /**
1299
1293
  * @remarks
1300
1294
  * Player that placed the block for this event.
@@ -1308,8 +1302,9 @@ export class BlockPlaceAfterEvent extends BlockEvent {
1308
1302
  * Manages callbacks that are connected to when a block is
1309
1303
  * placed.
1310
1304
  */
1305
+ // @ts-ignore Class inheritance allowed for native defined classes
1311
1306
  export class BlockPlaceAfterEventSignal extends IBlockPlaceAfterEventSignal {
1312
- protected constructor();
1307
+ private constructor();
1313
1308
  }
1314
1309
 
1315
1310
  /**
@@ -1317,8 +1312,9 @@ export class BlockPlaceAfterEventSignal extends IBlockPlaceAfterEventSignal {
1317
1312
  * Represents a fluid container block that currently contains a
1318
1313
  * potion.
1319
1314
  */
1315
+ // @ts-ignore Class inheritance allowed for native defined classes
1320
1316
  export class BlockPotionContainerComponent extends BlockLiquidContainerComponent {
1321
- protected constructor();
1317
+ private constructor();
1322
1318
  /**
1323
1319
  * @remarks
1324
1320
  * Identifier of this component. Should always be
@@ -1341,8 +1337,9 @@ export class BlockPotionContainerComponent extends BlockLiquidContainerComponent
1341
1337
  * @beta
1342
1338
  * Represents a block that can play a record.
1343
1339
  */
1340
+ // @ts-ignore Class inheritance allowed for native defined classes
1344
1341
  export class BlockRecordPlayerComponent extends BlockComponent {
1345
- protected constructor();
1342
+ private constructor();
1346
1343
  /**
1347
1344
  * @remarks
1348
1345
  * Identifier of this component. Should always be
@@ -1383,8 +1380,9 @@ export class BlockRecordPlayerComponent extends BlockComponent {
1383
1380
  * @beta
1384
1381
  * Represents a block that can display text on it.
1385
1382
  */
1383
+ // @ts-ignore Class inheritance allowed for native defined classes
1386
1384
  export class BlockSignComponent extends BlockComponent {
1387
- protected constructor();
1385
+ private constructor();
1388
1386
  /**
1389
1387
  * @remarks
1390
1388
  * Whether or not players can edit the sign. This happens if a
@@ -1456,27 +1454,27 @@ export class BlockSignComponent extends BlockComponent {
1456
1454
  * @throws This function can throw errors.
1457
1455
  * @example SetRawMessage.ts
1458
1456
  * ```typescript
1459
- * const helloWorldMessage: RawMessage = { text: 'Hello World' };
1460
- * sign.setText(helloWorldMessage);
1457
+ * const helloWorldMessage: RawMessage = { text: 'Hello World' };
1458
+ * sign.setText(helloWorldMessage);
1461
1459
  *
1462
- * // Sign text will be saved as a RawText
1463
- * const result: RawText = sign.getRawText();
1464
- * JSON.stringify(result); // { rawtext: [{ text: 'Hello World' }] };
1460
+ * // Sign text will be saved as a RawText
1461
+ * const result: RawText = sign.getRawText();
1462
+ * JSON.stringify(result); // { rawtext: [{ text: 'Hello World' }] };
1465
1463
  * ```
1466
1464
  * @example SetRawText.ts
1467
1465
  * ```typescript
1468
- * const helloWorldText: RawText = { rawtext: [{ text: 'Hello World' }] };
1469
- * sign.setText(helloWorldText);
1466
+ * const helloWorldText: RawText = { rawtext: [{ text: 'Hello World' }] };
1467
+ * sign.setText(helloWorldText);
1470
1468
  *
1471
- * // There will be no data transformation unlike calling setText with a RawMessage
1472
- * const result: RawText = sign.getRawText();
1473
- * JSON.stringify(result); // { rawtext: [{ text: 'Hello World' }] };
1469
+ * // There will be no data transformation unlike calling setText with a RawMessage
1470
+ * const result: RawText = sign.getRawText();
1471
+ * JSON.stringify(result); // { rawtext: [{ text: 'Hello World' }] };
1474
1472
  * ```
1475
1473
  * @example SetString.ts
1476
1474
  * ```typescript
1477
- * // Set sign to say 'Hello'
1478
- * sign.setText('Hello');
1479
- * sign.getText(); // 'Hello'
1475
+ * // Set sign to say 'Hello'
1476
+ * sign.setText('Hello');
1477
+ * sign.getText(); // 'Hello'
1480
1478
  * ```
1481
1479
  */
1482
1480
  setText(message: RawMessage | RawText | string, side?: SignSide): void;
@@ -1512,8 +1510,9 @@ export class BlockSignComponent extends BlockComponent {
1512
1510
  * Represents a fluid container block that currently contains
1513
1511
  * snow.
1514
1512
  */
1513
+ // @ts-ignore Class inheritance allowed for native defined classes
1515
1514
  export class BlockSnowContainerComponent extends BlockLiquidContainerComponent {
1516
- protected constructor();
1515
+ private constructor();
1517
1516
  /**
1518
1517
  * @remarks
1519
1518
  * Identifier of this component. Should always be
@@ -1528,7 +1527,7 @@ export class BlockSnowContainerComponent extends BlockLiquidContainerComponent {
1528
1527
  * Enumerates all {@link BlockStateType}s.
1529
1528
  */
1530
1529
  export class BlockStates {
1531
- protected constructor();
1530
+ private constructor();
1532
1531
  /**
1533
1532
  * @remarks
1534
1533
  * Retrieves a specific block state instance.
@@ -1550,7 +1549,7 @@ export class BlockStates {
1550
1549
  * a block state.
1551
1550
  */
1552
1551
  export class BlockStateType {
1553
- protected constructor();
1552
+ private constructor();
1554
1553
  /**
1555
1554
  * @remarks
1556
1555
  * Identifier of the block property.
@@ -1573,7 +1572,7 @@ export class BlockStateType {
1573
1572
  * 1.17.10.21.
1574
1573
  */
1575
1574
  export class BlockType {
1576
- protected constructor();
1575
+ private constructor();
1577
1576
  /**
1578
1577
  * @remarks
1579
1578
  * Represents whether this type of block can be waterlogged.
@@ -1595,7 +1594,7 @@ export class BlockType {
1595
1594
  * @minecraft-server.BlockVolume} objects
1596
1595
  */
1597
1596
  export class BlockVolumeUtils {
1598
- protected constructor();
1597
+ private constructor();
1599
1598
  /**
1600
1599
  * @remarks
1601
1600
  * Check to see if the given location is directly adjacent to
@@ -1732,8 +1731,9 @@ export class BlockVolumeUtils {
1732
1731
  * Represents a fluid container block that currently contains
1733
1732
  * water.
1734
1733
  */
1734
+ // @ts-ignore Class inheritance allowed for native defined classes
1735
1735
  export class BlockWaterContainerComponent extends BlockLiquidContainerComponent {
1736
- protected constructor();
1736
+ private constructor();
1737
1737
  /**
1738
1738
  * @remarks
1739
1739
  * Identifier of this component. Should always be
@@ -1777,7 +1777,7 @@ export class BlockWaterContainerComponent extends BlockLiquidContainerComponent
1777
1777
  * @minecraft-server.BoundingBox} objects
1778
1778
  */
1779
1779
  export class BoundingBoxUtils {
1780
- protected constructor();
1780
+ private constructor();
1781
1781
  /**
1782
1782
  * @remarks
1783
1783
  * Create a validated instance of a {@link
@@ -1905,8 +1905,9 @@ export class BoundingBoxUtils {
1905
1905
  * @beta
1906
1906
  * Contains information related to changes to a button push.
1907
1907
  */
1908
+ // @ts-ignore Class inheritance allowed for native defined classes
1908
1909
  export class ButtonPushAfterEvent extends BlockEvent {
1909
- protected constructor();
1910
+ private constructor();
1910
1911
  /**
1911
1912
  * @remarks
1912
1913
  * Optional source that triggered the button push.
@@ -1920,8 +1921,9 @@ export class ButtonPushAfterEvent extends BlockEvent {
1920
1921
  * Manages callbacks that are connected to when a button is
1921
1922
  * pushed.
1922
1923
  */
1924
+ // @ts-ignore Class inheritance allowed for native defined classes
1923
1925
  export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal {
1924
- protected constructor();
1926
+ private constructor();
1925
1927
  }
1926
1928
 
1927
1929
  /**
@@ -1929,7 +1931,7 @@ export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal {
1929
1931
  * An event that fires as players enter chat messages.
1930
1932
  */
1931
1933
  export class ChatSendAfterEvent {
1932
- protected constructor();
1934
+ private constructor();
1933
1935
  /**
1934
1936
  * @remarks
1935
1937
  * Message that is being broadcast. In a beforeChat event
@@ -1966,16 +1968,18 @@ export class ChatSendAfterEvent {
1966
1968
  * Manages callbacks that are connected to chat messages being
1967
1969
  * sent.
1968
1970
  */
1971
+ // @ts-ignore Class inheritance allowed for native defined classes
1969
1972
  export class ChatSendAfterEventSignal extends IChatSendAfterEventSignal {
1970
- protected constructor();
1973
+ private constructor();
1971
1974
  }
1972
1975
 
1973
1976
  /**
1974
1977
  * @beta
1975
1978
  * An event that fires as players enter chat messages.
1976
1979
  */
1980
+ // @ts-ignore Class inheritance allowed for native defined classes
1977
1981
  export class ChatSendBeforeEvent extends ChatSendAfterEvent {
1978
- protected constructor();
1982
+ private constructor();
1979
1983
  /**
1980
1984
  * @remarks
1981
1985
  * If set to true in a beforeChat event handler, this message
@@ -1999,15 +2003,16 @@ export class ChatSendBeforeEvent extends ChatSendAfterEvent {
1999
2003
  * Manages callbacks that are connected to an event that fires
2000
2004
  * before chat messages are sent.
2001
2005
  */
2006
+ // @ts-ignore Class inheritance allowed for native defined classes
2002
2007
  export class ChatSendBeforeEventSignal extends IChatSendBeforeEventSignal {
2003
- protected constructor();
2008
+ private constructor();
2004
2009
  }
2005
2010
 
2006
2011
  /**
2007
2012
  * Contains return data on the result of a command execution.
2008
2013
  */
2009
2014
  export class CommandResult {
2010
- protected constructor();
2015
+ private constructor();
2011
2016
  /**
2012
2017
  * @remarks
2013
2018
  * If the command operates against a number of entities,
@@ -2019,11 +2024,10 @@ export class CommandResult {
2019
2024
  }
2020
2025
 
2021
2026
  /**
2022
- * @beta
2023
2027
  * Base class for downstream Component implementations.
2024
2028
  */
2025
2029
  export class Component {
2026
- protected constructor();
2030
+ private constructor();
2027
2031
  /**
2028
2032
  * @remarks
2029
2033
  * Identifier of the component.
@@ -2197,13 +2201,12 @@ export class CompoundBlockVolume {
2197
2201
  }
2198
2202
 
2199
2203
  /**
2200
- * @beta
2201
2204
  * Represents a container that can hold sets of items. Used
2202
2205
  * with entities such as Players, Chest Minecarts, Llamas, and
2203
2206
  * more.
2204
2207
  */
2205
2208
  export class Container {
2206
- protected constructor();
2209
+ private constructor();
2207
2210
  /**
2208
2211
  * @remarks
2209
2212
  * Count of the slots in the container that are empty.
@@ -2262,10 +2265,9 @@ export class Container {
2262
2265
  * out of bounds.
2263
2266
  * @example getItem.ts
2264
2267
  * ```typescript
2265
- * // Get a copy of the first item in the player's hotbar
2266
- * const inventory = player.getComponent("inventory") as EntityInventoryComponent;
2267
- * const itemStack = inventory.container.getItem(0);
2268
- *
2268
+ * // Get a copy of the first item in the player's hotbar
2269
+ * const inventory = player.getComponent("inventory") as EntityInventoryComponent;
2270
+ * const itemStack = inventory.container.getItem(0);
2269
2271
  * ```
2270
2272
  */
2271
2273
  getItem(slot: number): ItemStack | undefined;
@@ -2304,11 +2306,10 @@ export class Container {
2304
2306
  * or if the `fromSlot` or `toSlot` indices out of bounds.
2305
2307
  * @example moveItem.ts
2306
2308
  * ```typescript
2307
- * // Move an item from the first slot of fromPlayer's inventory to the fifth slot of toPlayer's inventory
2308
- * const fromInventory = fromPlayer.getComponent('inventory') as EntityInventoryComponent;
2309
- * const toInventory = toPlayer.getComponent('inventory') as EntityInventoryComponent;
2310
- * fromInventory.container.moveItem(0, 4, toInventory.container);
2311
- *
2309
+ * // Move an item from the first slot of fromPlayer's inventory to the fifth slot of toPlayer's inventory
2310
+ * const fromInventory = fromPlayer.getComponent('inventory') as EntityInventoryComponent;
2311
+ * const toInventory = toPlayer.getComponent('inventory') as EntityInventoryComponent;
2312
+ * fromInventory.container.moveItem(0, 4, toInventory.container);
2312
2313
  * ```
2313
2314
  */
2314
2315
  moveItem(fromSlot: number, toSlot: number, toContainer: Container): void;
@@ -2346,10 +2347,9 @@ export class Container {
2346
2347
  * invalid or if the `slot` or `otherSlot` are out of bounds.
2347
2348
  * @example swapItems.ts
2348
2349
  * ```typescript
2349
- * // Swaps an item between slots 0 and 4 in the player's inventory
2350
- * const inventory = fromPlayer.getComponent('inventory') as EntityInventoryComponent;
2351
- * inventory.container.swapItems(0, 4, inventory);
2352
- *
2350
+ * // Swaps an item between slots 0 and 4 in the player's inventory
2351
+ * const inventory = fromPlayer.getComponent('inventory') as EntityInventoryComponent;
2352
+ * inventory.container.swapItems(0, 4, inventory);
2353
2353
  * ```
2354
2354
  */
2355
2355
  swapItems(slot: number, otherSlot: number, otherContainer: Container): void;
@@ -2371,11 +2371,10 @@ export class Container {
2371
2371
  * or if the `fromSlot` or `toSlot` indices out of bounds.
2372
2372
  * @example transferItem.ts
2373
2373
  * ```typescript
2374
- * // Transfer an item from the first slot of fromPlayer's inventory to toPlayer's inventory
2375
- * const fromInventory = fromPlayer.getComponent('inventory') as EntityInventoryComponent;
2376
- * const toInventory = toPlayer.getComponent('inventory') as EntityInventoryComponent;
2377
- * fromInventory.container.transferItem(0, toInventory.container);
2378
- *
2374
+ * // Transfer an item from the first slot of fromPlayer's inventory to toPlayer's inventory
2375
+ * const fromInventory = fromPlayer.getComponent('inventory') as EntityInventoryComponent;
2376
+ * const toInventory = toPlayer.getComponent('inventory') as EntityInventoryComponent;
2377
+ * fromInventory.container.transferItem(0, toInventory.container);
2379
2378
  * ```
2380
2379
  */
2381
2380
  transferItem(fromSlot: number, toContainer: Container): ItemStack;
@@ -2387,7 +2386,7 @@ export class Container {
2387
2386
  * inventory.)
2388
2387
  */
2389
2388
  export class ContainerSlot {
2390
- protected constructor();
2389
+ private constructor();
2391
2390
  /**
2392
2391
  * @remarks
2393
2392
  * Number of the items in the stack. Valid values range between
@@ -2622,7 +2621,7 @@ export class ContainerSlot {
2622
2621
  * event on a chicken.
2623
2622
  */
2624
2623
  export class DataDrivenEntityTriggerAfterEvent {
2625
- protected constructor();
2624
+ private constructor();
2626
2625
  /**
2627
2626
  * @remarks
2628
2627
  * Entity that the event triggered on.
@@ -2652,8 +2651,9 @@ export class DataDrivenEntityTriggerAfterEvent {
2652
2651
  * driven entity event - for example, the
2653
2652
  * minecraft:ageable_grow_up event on a chicken.
2654
2653
  */
2654
+ // @ts-ignore Class inheritance allowed for native defined classes
2655
2655
  export class DataDrivenEntityTriggerAfterEventSignal extends IDataDrivenEntityTriggerAfterEventSignal {
2656
- protected constructor();
2656
+ private constructor();
2657
2657
  }
2658
2658
 
2659
2659
  /**
@@ -2663,7 +2663,7 @@ export class DataDrivenEntityTriggerAfterEventSignal extends IDataDrivenEntityTr
2663
2663
  * event on a chicken.
2664
2664
  */
2665
2665
  export class DataDrivenEntityTriggerBeforeEvent {
2666
- protected constructor();
2666
+ private constructor();
2667
2667
  /**
2668
2668
  * @remarks
2669
2669
  * If set to true, this entity event is not triggered.
@@ -2706,8 +2706,9 @@ export class DataDrivenEntityTriggerBeforeEvent {
2706
2706
  * entity event - for example, the minecraft:ageable_grow_up
2707
2707
  * event on a chicken.
2708
2708
  */
2709
+ // @ts-ignore Class inheritance allowed for native defined classes
2709
2710
  export class DataDrivenEntityTriggerBeforeEventSignal extends IDataDrivenEntityTriggerBeforeEventSignal {
2710
- protected constructor();
2711
+ private constructor();
2711
2712
  }
2712
2713
 
2713
2714
  /**
@@ -2765,7 +2766,7 @@ export class DefinitionModifier {
2765
2766
  * End) within a world.
2766
2767
  */
2767
2768
  export class Dimension {
2768
- protected constructor();
2769
+ private constructor();
2769
2770
  /**
2770
2771
  * @remarks
2771
2772
  * Identifier of the dimension.
@@ -2789,43 +2790,41 @@ export class Dimension {
2789
2790
  * @throws This function can throw errors.
2790
2791
  * @example createExplosion.ts
2791
2792
  * ```typescript
2792
- * overworld.createExplosion(targetLocation, 10, new mc.ExplosionOptions());
2793
+ * overworld.createExplosion(targetLocation, 10, new mc.ExplosionOptions());
2793
2794
  * ```
2794
2795
  * @example createFireAndWaterExplosions.ts
2795
2796
  * ```typescript
2796
- * const explosionLoc: mc.Vector3 = { x: targetLocation.x + 0.5, y: targetLocation.y + 0.5, z: targetLocation.z + 0.5 };
2797
+ * const explosionLoc: mc.Vector3 = { x: targetLocation.x + 0.5, y: targetLocation.y + 0.5, z: targetLocation.z + 0.5 };
2797
2798
  *
2798
- * const fireExplosionOptions = new mc.ExplosionOptions();
2799
+ * const fireExplosionOptions = new mc.ExplosionOptions();
2799
2800
  *
2800
- * // Explode with fire
2801
- * fireExplosionOptions.causesFire = true;
2801
+ * // Explode with fire
2802
+ * fireExplosionOptions.causesFire = true;
2802
2803
  *
2803
- * overworld.createExplosion(explosionLoc, 15, fireExplosionOptions);
2804
- * const waterExplosionOptions = new mc.ExplosionOptions();
2804
+ * overworld.createExplosion(explosionLoc, 15, fireExplosionOptions);
2805
+ * const waterExplosionOptions = new mc.ExplosionOptions();
2805
2806
  *
2806
- * // Explode in water
2807
- * waterExplosionOptions.allowUnderwater = true;
2807
+ * // Explode in water
2808
+ * waterExplosionOptions.allowUnderwater = true;
2808
2809
  *
2809
- * const belowWaterLoc: mc.Vector3 = { x: targetLocation.x + 3, y: targetLocation.y + 1, z: targetLocation.z + 3 };
2810
- *
2811
- * overworld.createExplosion(belowWaterLoc, 10, waterExplosionOptions);
2810
+ * const belowWaterLoc: mc.Vector3 = { x: targetLocation.x + 3, y: targetLocation.y + 1, z: targetLocation.z + 3 };
2812
2811
  *
2812
+ * overworld.createExplosion(belowWaterLoc, 10, waterExplosionOptions);
2813
2813
  * ```
2814
2814
  * @example createNoBlockExplosion.ts
2815
2815
  * ```typescript
2816
- * const explosionOptions = new mc.ExplosionOptions();
2817
- *
2818
- * // Start by exploding without breaking blocks
2819
- * explosionOptions.breaksBlocks = false;
2816
+ * const explosionOptions = new mc.ExplosionOptions();
2820
2817
  *
2821
- * const explodeNoBlocksLoc: mc.Vector3 = {
2822
- * x: Math.floor(targetLocation.x + 1),
2823
- * y: Math.floor(targetLocation.y + 2),
2824
- * z: Math.floor(targetLocation.z + 1),
2825
- * };
2818
+ * // Start by exploding without breaking blocks
2819
+ * explosionOptions.breaksBlocks = false;
2826
2820
  *
2827
- * overworld.createExplosion(explodeNoBlocksLoc, 15, explosionOptions);
2821
+ * const explodeNoBlocksLoc: mc.Vector3 = {
2822
+ * x: Math.floor(targetLocation.x + 1),
2823
+ * y: Math.floor(targetLocation.y + 2),
2824
+ * z: Math.floor(targetLocation.z + 1),
2825
+ * };
2828
2826
  *
2827
+ * overworld.createExplosion(explodeNoBlocksLoc, 15, explosionOptions);
2829
2828
  * ```
2830
2829
  */
2831
2830
  createExplosion(location: Vector3, radius: number, explosionOptions?: ExplosionOptions): void;
@@ -2852,7 +2851,6 @@ export class Dimension {
2852
2851
  */
2853
2852
  fillBlocks(begin: Vector3, end: Vector3, block: BlockPermutation | BlockType, options?: BlockFillOptions): number;
2854
2853
  /**
2855
- * @beta
2856
2854
  * @remarks
2857
2855
  * Returns a block instance at the given location.
2858
2856
  *
@@ -2879,7 +2877,6 @@ export class Dimension {
2879
2877
  */
2880
2878
  getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): Block;
2881
2879
  /**
2882
- * @beta
2883
2880
  * @remarks
2884
2881
  * Returns a set of entities based on a set of conditions
2885
2882
  * defined via the EntityQueryOptions set of filter criteria.
@@ -2892,27 +2889,25 @@ export class Dimension {
2892
2889
  * @throws This function can throw errors.
2893
2890
  * @example testThatEntityIsFeatherItem.ts
2894
2891
  * ```typescript
2895
- * const query = {
2896
- * type: "item",
2897
- * location: targetLocation,
2898
- * };
2899
- * const items = overworld.getEntities(query);
2900
- *
2901
- * for (const item of items) {
2902
- * const itemComp = item.getComponent("item") as any;
2903
- *
2904
- * if (itemComp) {
2905
- * if (itemComp.itemStack.id.endsWith("feather")) {
2906
- * console.log("Success! Found a feather", 1);
2907
- * }
2908
- * }
2909
- * }
2910
- *
2892
+ * const query = {
2893
+ * type: "item",
2894
+ * location: targetLocation,
2895
+ * };
2896
+ * const items = overworld.getEntities(query);
2897
+ *
2898
+ * for (const item of items) {
2899
+ * const itemComp = item.getComponent("item") as any;
2900
+ *
2901
+ * if (itemComp) {
2902
+ * if (itemComp.itemStack.id.endsWith("feather")) {
2903
+ * console.log("Success! Found a feather", 1);
2904
+ * }
2905
+ * }
2906
+ * }
2911
2907
  * ```
2912
2908
  */
2913
2909
  getEntities(options?: EntityQueryOptions): Entity[];
2914
2910
  /**
2915
- * @beta
2916
2911
  * @remarks
2917
2912
  * Returns a set of entities at a particular location.
2918
2913
  *
@@ -2934,7 +2929,6 @@ export class Dimension {
2934
2929
  */
2935
2930
  getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): Entity[];
2936
2931
  /**
2937
- * @beta
2938
2932
  * @remarks
2939
2933
  * Returns a set of players based on a set of conditions
2940
2934
  * defined via the EntityQueryOptions set of filter criteria.
@@ -2948,7 +2942,6 @@ export class Dimension {
2948
2942
  */
2949
2943
  getPlayers(options?: EntityQueryOptions): Player[];
2950
2944
  /**
2951
- * @beta
2952
2945
  * @remarks
2953
2946
  * This function can't be called in read-only mode.
2954
2947
  *
@@ -2996,41 +2989,40 @@ export class Dimension {
2996
2989
  * @throws This function can throw errors.
2997
2990
  * @example createOldHorse.ts
2998
2991
  * ```typescript
2999
- * // create a horse and trigger the 'ageable_grow_up' event, ensuring the horse is created as an adult
3000
- * overworld.spawnEntity("minecraft:horse<minecraft:ageable_grow_up>", targetLocation);
2992
+ * // create a horse and trigger the 'ageable_grow_up' event, ensuring the horse is created as an adult
2993
+ * overworld.spawnEntity("minecraft:horse<minecraft:ageable_grow_up>", targetLocation);
3001
2994
  * ```
3002
2995
  * @example quickFoxLazyDog.ts
3003
2996
  * ```typescript
3004
- * const fox = overworld.spawnEntity("minecraft:fox", {
3005
- * x: targetLocation.x + 1,
3006
- * y: targetLocation.y + 2,
3007
- * z: targetLocation.z + 3,
3008
- * });
3009
- * fox.addEffect(mc.MinecraftEffectTypes.speed, 10, 20);
3010
- * log("Created a fox.");
3011
- *
3012
- * const wolf = overworld.spawnEntity("minecraft:wolf", {
3013
- * x: targetLocation.x + 4,
3014
- * y: targetLocation.y + 2,
3015
- * z: targetLocation.z + 3,
3016
- * });
3017
- * wolf.addEffect(mc.MinecraftEffectTypes.slowness, 10, 20);
3018
- * wolf.isSneaking = true;
3019
- * log("Created a sneaking wolf.", 1);
3020
- *
2997
+ * const fox = overworld.spawnEntity("minecraft:fox", {
2998
+ * x: targetLocation.x + 1,
2999
+ * y: targetLocation.y + 2,
3000
+ * z: targetLocation.z + 3,
3001
+ * });
3002
+ * fox.addEffect(mc.MinecraftEffectTypes.Speed, 10, 20);
3003
+ * log("Created a fox.");
3004
+ *
3005
+ * const wolf = overworld.spawnEntity("minecraft:wolf", {
3006
+ * x: targetLocation.x + 4,
3007
+ * y: targetLocation.y + 2,
3008
+ * z: targetLocation.z + 3,
3009
+ * });
3010
+ * wolf.addEffect(mc.MinecraftEffectTypes.Slowness, 10, 20);
3011
+ * wolf.isSneaking = true;
3012
+ * log("Created a sneaking wolf.", 1);
3021
3013
  * ```
3022
3014
  * @example trapTick.ts
3023
3015
  * ```typescript
3024
- * let ticks = 0;
3016
+ * let ticks = 0;
3025
3017
  *
3026
- * mc.world.events.tick.subscribe((event: mc.TickEvent) => {
3027
- * ticks++;
3018
+ * mc.world.events.tick.subscribe((event: mc.TickEvent) => {
3019
+ * ticks++;
3028
3020
  *
3029
- * // Minecraft runs at 20 ticks per second
3030
- * if (ticks % 1200 === 0) {
3031
- * overworld.runCommand("say Another minute passes...");
3032
- * }
3033
- * });
3021
+ * // Minecraft runs at 20 ticks per second
3022
+ * if (ticks % 1200 === 0) {
3023
+ * overworld.runCommand("say Another minute passes...");
3024
+ * }
3025
+ * });
3034
3026
  * ```
3035
3027
  */
3036
3028
  spawnEntity(identifier: string, location: Vector3): Entity;
@@ -3049,25 +3041,24 @@ export class Dimension {
3049
3041
  * @throws This function can throw errors.
3050
3042
  * @example itemStacks.ts
3051
3043
  * ```typescript
3052
- * const oneItemLoc: mc.Vector3 = { x: 3, y: 2, z: 1 };
3053
- * const fiveItemsLoc: mc.Vector3 = { x: 1, y: 2, z: 1 };
3054
- * const diamondPickaxeLoc: mc.Vector3 = { x: 2, y: 2, z: 4 };
3044
+ * const oneItemLoc: mc.Vector3 = { x: 3, y: 2, z: 1 };
3045
+ * const fiveItemsLoc: mc.Vector3 = { x: 1, y: 2, z: 1 };
3046
+ * const diamondPickaxeLoc: mc.Vector3 = { x: 2, y: 2, z: 4 };
3055
3047
  *
3056
- * const oneEmerald = new mc.ItemStack(mc.MinecraftItemTypes.emerald, 1, 0);
3057
- * const onePickaxe = new mc.ItemStack(mc.MinecraftItemTypes.diamondPickaxe, 1, 0);
3058
- * const fiveEmeralds = new mc.ItemStack(mc.MinecraftItemTypes.emerald, 5, 0);
3059
- *
3060
- * overworld.spawnItem(oneEmerald, oneItemLoc);
3061
- * overworld.spawnItem(fiveEmeralds, fiveItemsLoc);
3062
- * overworld.spawnItem(onePickaxe, diamondPickaxeLoc);
3048
+ * const oneEmerald = new mc.ItemStack(mc.MinecraftItemTypes.emerald, 1, 0);
3049
+ * const onePickaxe = new mc.ItemStack(mc.MinecraftItemTypes.diamondPickaxe, 1, 0);
3050
+ * const fiveEmeralds = new mc.ItemStack(mc.MinecraftItemTypes.emerald, 5, 0);
3063
3051
  *
3052
+ * overworld.spawnItem(oneEmerald, oneItemLoc);
3053
+ * overworld.spawnItem(fiveEmeralds, fiveItemsLoc);
3054
+ * overworld.spawnItem(onePickaxe, diamondPickaxeLoc);
3064
3055
  * ```
3065
3056
  * @example spawnItem.ts
3066
3057
  * ```typescript
3067
- * const featherItem = new mc.ItemStack(mc.MinecraftItemTypes.feather, 1, 0);
3058
+ * const featherItem = new mc.ItemStack(mc.MinecraftItemTypes.feather, 1, 0);
3068
3059
  *
3069
- * overworld.spawnItem(featherItem, targetLocation);
3070
- * log("New feather created!");
3060
+ * overworld.spawnItem(featherItem, targetLocation);
3061
+ * log("New feather created!");
3071
3062
  * ```
3072
3063
  */
3073
3064
  spawnItem(itemStack: ItemStack, location: Vector3): Entity;
@@ -3129,7 +3120,7 @@ export class DynamicPropertiesDefinition {
3129
3120
  * an Entity.
3130
3121
  */
3131
3122
  export class Effect {
3132
- protected constructor();
3123
+ private constructor();
3133
3124
  /**
3134
3125
  * @remarks
3135
3126
  * Gets an amplifier that may have been applied to this effect.
@@ -3171,7 +3162,7 @@ export class Effect {
3171
3162
  * poison - being added to an entity.
3172
3163
  */
3173
3164
  export class EffectAddAfterEvent {
3174
- protected constructor();
3165
+ private constructor();
3175
3166
  /**
3176
3167
  * @remarks
3177
3168
  * Additional properties and details of the effect.
@@ -3203,8 +3194,9 @@ export class EffectAddAfterEvent {
3203
3194
  * Manages callbacks that are connected to when an effect is
3204
3195
  * added to an entity.
3205
3196
  */
3197
+ // @ts-ignore Class inheritance allowed for native defined classes
3206
3198
  export class EffectAddAfterEventSignal extends IEffectAddAfterEventSignal {
3207
- protected constructor();
3199
+ private constructor();
3208
3200
  }
3209
3201
 
3210
3202
  /**
@@ -3213,7 +3205,7 @@ export class EffectAddAfterEventSignal extends IEffectAddAfterEventSignal {
3213
3205
  * applied to an entity.
3214
3206
  */
3215
3207
  export class EffectType {
3216
- protected constructor();
3208
+ private constructor();
3217
3209
  /**
3218
3210
  * @remarks
3219
3211
  * Identifier name of this effect type.
@@ -3230,7 +3222,7 @@ export class EffectType {
3230
3222
  * applied to an entity.
3231
3223
  */
3232
3224
  export class EffectTypes {
3233
- protected constructor();
3225
+ private constructor();
3234
3226
  /**
3235
3227
  * @remarks
3236
3228
  * Effect type for the given identifier.
@@ -3371,7 +3363,7 @@ export class EnchantmentList implements Iterable<Enchantment> {
3371
3363
  * enchantment can be applied to.
3372
3364
  */
3373
3365
  export class EnchantmentSlot {
3374
- protected constructor();
3366
+ private constructor();
3375
3367
  static readonly all = -1;
3376
3368
  static readonly armorFeet = 4;
3377
3369
  static readonly armorHead = 1;
@@ -3403,7 +3395,7 @@ export class EnchantmentSlot {
3403
3395
  * Contains information on a type of enchantment.
3404
3396
  */
3405
3397
  export class EnchantmentType {
3406
- protected constructor();
3398
+ private constructor();
3407
3399
  /**
3408
3400
  * @remarks
3409
3401
  * The name of the enchantment type.
@@ -3422,7 +3414,7 @@ export class EnchantmentType {
3422
3414
  * @beta
3423
3415
  */
3424
3416
  export class EnchantmentTypes {
3425
- protected constructor();
3417
+ private constructor();
3426
3418
  /**
3427
3419
  * @remarks
3428
3420
  * Retrieves an enchantment with the specified identifier.
@@ -3442,9 +3434,8 @@ export class EnchantmentTypes {
3442
3434
  * other moving objects like minecarts) in the world.
3443
3435
  */
3444
3436
  export class Entity {
3445
- protected constructor();
3437
+ private constructor();
3446
3438
  /**
3447
- * @beta
3448
3439
  * @remarks
3449
3440
  * Dimension that the entity is currently within.
3450
3441
  *
@@ -3482,7 +3473,6 @@ export class Entity {
3482
3473
  */
3483
3474
  readonly lifetimeState: EntityLifetimeState;
3484
3475
  /**
3485
- * @beta
3486
3476
  * @remarks
3487
3477
  * Current location of the entity.
3488
3478
  *
@@ -3490,7 +3480,6 @@ export class Entity {
3490
3480
  */
3491
3481
  readonly location: Vector3;
3492
3482
  /**
3493
- * @beta
3494
3483
  * @remarks
3495
3484
  * Given name of the entity.
3496
3485
  *
@@ -3526,7 +3515,7 @@ export class Entity {
3526
3515
  /**
3527
3516
  * @beta
3528
3517
  * @remarks
3529
- * Adds an effect, like poison, to the entity.
3518
+ * Adds or updates an effect, like poison, to the entity.
3530
3519
  *
3531
3520
  * This function can't be called in read-only mode.
3532
3521
  *
@@ -3540,44 +3529,42 @@ export class Entity {
3540
3529
  * @param options
3541
3530
  * Additional options for the effect.
3542
3531
  * @returns
3543
- * Returns true if the effect was added successfully. This can
3544
- * fail if the duration or amplifier are outside of the valid
3545
- * ranges.
3532
+ * Returns nothing if the effect was added or updated
3533
+ * successfully. This can throw an error if the duration or
3534
+ * amplifier are outside of the valid ranges, or if the effect
3535
+ * does not exist.
3546
3536
  * @throws This function can throw errors.
3547
3537
  * @example addEffect.js
3548
3538
  * ```typescript
3549
- * const villagerId = 'minecraft:villager_v2<minecraft:ageable_grow_up>';
3550
- * const villagerLoc: mc.Vector3 = { x: 1, y: 2, z: 1 };
3551
- * const villager = test.spawn(villagerId, villagerLoc);
3552
- * const duration = 20;
3553
- *
3554
- * villager.addEffect(EffectTypes.get('poison'), duration, { amplifier: 1 });
3539
+ * const villagerId = 'minecraft:villager_v2<minecraft:ageable_grow_up>';
3540
+ * const villagerLoc: mc.Vector3 = { x: 1, y: 2, z: 1 };
3541
+ * const villager = test.spawn(villagerId, villagerLoc);
3542
+ * const duration = 20;
3555
3543
  *
3544
+ * villager.addEffect(EffectTypes.get('poison'), duration, { amplifier: 1 });
3556
3545
  * ```
3557
3546
  * @example quickFoxLazyDog.ts
3558
3547
  * ```typescript
3559
- * const fox = overworld.spawnEntity('minecraft:fox', {
3560
- * x: targetLocation.x + 1,
3561
- * y: targetLocation.y + 2,
3562
- * z: targetLocation.z + 3,
3563
- * });
3564
- * fox.addEffect(mc.MinecraftEffectTypes.speed, 10, { amplifier: 20 });
3565
- * log('Created a fox.');
3566
- *
3567
- * const wolf = overworld.spawnEntity('minecraft:wolf', {
3568
- * x: targetLocation.x + 4,
3569
- * y: targetLocation.y + 2,
3570
- * z: targetLocation.z + 3,
3571
- * });
3572
- * wolf.addEffect(mc.MinecraftEffectTypes.slowness, 10, { amplifier: 20 });
3573
- * wolf.isSneaking = true;
3574
- * log('Created a sneaking wolf.', 1);
3575
- *
3548
+ * const fox = overworld.spawnEntity('minecraft:fox', {
3549
+ * x: targetLocation.x + 1,
3550
+ * y: targetLocation.y + 2,
3551
+ * z: targetLocation.z + 3,
3552
+ * });
3553
+ * fox.addEffect(mc.MinecraftEffectTypes.Speed, 10, { amplifier: 20 });
3554
+ * log('Created a fox.');
3555
+ *
3556
+ * const wolf = overworld.spawnEntity('minecraft:wolf', {
3557
+ * x: targetLocation.x + 4,
3558
+ * y: targetLocation.y + 2,
3559
+ * z: targetLocation.z + 3,
3560
+ * });
3561
+ * wolf.addEffect(mc.MinecraftEffectTypes.Slowness, 10, { amplifier: 20 });
3562
+ * wolf.isSneaking = true;
3563
+ * log('Created a sneaking wolf.', 1);
3576
3564
  * ```
3577
3565
  */
3578
3566
  addEffect(effectType: EffectType | string, duration: number, options?: EntityEffectOptions): boolean;
3579
3567
  /**
3580
- * @beta
3581
3568
  * @remarks
3582
3569
  * Adds a specified tag to an entity.
3583
3570
  *
@@ -3592,7 +3579,6 @@ export class Entity {
3592
3579
  */
3593
3580
  addTag(tag: string): boolean;
3594
3581
  /**
3595
- * @beta
3596
3582
  * @remarks
3597
3583
  * Applies a set of damage to an entity.
3598
3584
  *
@@ -3612,7 +3598,6 @@ export class Entity {
3612
3598
  */
3613
3599
  applyDamage(amount: number, options?: EntityApplyDamageByProjectileOptions | EntityApplyDamageOptions): boolean;
3614
3600
  /**
3615
- * @beta
3616
3601
  * @remarks
3617
3602
  * Applies impulse vector to the current velocity of the
3618
3603
  * entity.
@@ -3625,7 +3610,6 @@ export class Entity {
3625
3610
  */
3626
3611
  applyImpulse(vector: Vector3): void;
3627
3612
  /**
3628
- * @beta
3629
3613
  * @remarks
3630
3614
  * Applies impulse vector to the current velocity of the
3631
3615
  * entity.
@@ -3644,7 +3628,6 @@ export class Entity {
3644
3628
  */
3645
3629
  applyKnockback(directionX: number, directionZ: number, horizontalStrength: number, verticalStrength: number): void;
3646
3630
  /**
3647
- * @beta
3648
3631
  * @remarks
3649
3632
  * Sets the current velocity of the Entity to zero. Note that
3650
3633
  * this method may not have an impact on Players.
@@ -3686,7 +3669,6 @@ export class Entity {
3686
3669
  */
3687
3670
  getBlockFromViewDirection(options?: BlockRaycastOptions): Block;
3688
3671
  /**
3689
- * @beta
3690
3672
  * @remarks
3691
3673
  * Gets a component (that represents additional capabilities)
3692
3674
  * for an entity.
@@ -3702,7 +3684,6 @@ export class Entity {
3702
3684
  */
3703
3685
  getComponent(componentId: string): EntityComponent | undefined;
3704
3686
  /**
3705
- * @beta
3706
3687
  * @remarks
3707
3688
  * Returns all components that are both present on this entity
3708
3689
  * and supported by the API.
@@ -3729,13 +3710,15 @@ export class Entity {
3729
3710
  * @beta
3730
3711
  * @remarks
3731
3712
  * Returns the effect for the specified EffectType on the
3732
- * entity, or undefined if the effect is not present.
3713
+ * entity, undefined if the effect is not present, or throws an
3714
+ * error if the effect does not exist.
3733
3715
  *
3734
3716
  * @param effectType
3735
3717
  * The effect identifier.
3736
3718
  * @returns
3737
- * Effect object for the specified effect, or undefined if the
3738
- * effect is not present.
3719
+ * Effect object for the specified effect, undefined if the
3720
+ * effect is not present, or throws an error if the effect does
3721
+ * not exist.
3739
3722
  * @throws This function can throw errors.
3740
3723
  */
3741
3724
  getEffect(effectType: EffectType | string): Effect | undefined;
@@ -3764,7 +3747,6 @@ export class Entity {
3764
3747
  */
3765
3748
  getEntitiesFromViewDirection(options?: EntityRaycastOptions): Entity[];
3766
3749
  /**
3767
- * @beta
3768
3750
  * @remarks
3769
3751
  * Returns the current location of the head component of this
3770
3752
  * entity.
@@ -3786,7 +3768,6 @@ export class Entity {
3786
3768
  */
3787
3769
  getRotation(): Vector2;
3788
3770
  /**
3789
- * @beta
3790
3771
  * @remarks
3791
3772
  * Returns all tags associated with an entity.
3792
3773
  *
@@ -3796,7 +3777,6 @@ export class Entity {
3796
3777
  */
3797
3778
  getTags(): string[];
3798
3779
  /**
3799
- * @beta
3800
3780
  * @remarks
3801
3781
  * Returns the current velocity vector of the entity.
3802
3782
  *
@@ -3806,7 +3786,6 @@ export class Entity {
3806
3786
  */
3807
3787
  getVelocity(): Vector3;
3808
3788
  /**
3809
- * @beta
3810
3789
  * @remarks
3811
3790
  * Returns the current view direction of the entity.
3812
3791
  *
@@ -3816,7 +3795,6 @@ export class Entity {
3816
3795
  */
3817
3796
  getViewDirection(): Vector3;
3818
3797
  /**
3819
- * @beta
3820
3798
  * @remarks
3821
3799
  * Returns true if the specified component is present on this
3822
3800
  * entity.
@@ -3831,7 +3809,6 @@ export class Entity {
3831
3809
  */
3832
3810
  hasComponent(componentId: string): boolean;
3833
3811
  /**
3834
- * @beta
3835
3812
  * @remarks
3836
3813
  * Returns whether an entity has a particular tag.
3837
3814
  *
@@ -3843,7 +3820,6 @@ export class Entity {
3843
3820
  */
3844
3821
  hasTag(tag: string): boolean;
3845
3822
  /**
3846
- * @beta
3847
3823
  * @remarks
3848
3824
  * Kills this entity. The entity will drop loot as normal.
3849
3825
  *
@@ -3893,13 +3869,13 @@ export class Entity {
3893
3869
  * @param effectType
3894
3870
  * The effect identifier.
3895
3871
  * @returns
3896
- * Returns true if the effect has been removed and false if the
3897
- * effect is not present.
3872
+ * Returns true if the effect has been removed, false if the
3873
+ * effect is not present, or will throw an error if the effect
3874
+ * does not exist.
3898
3875
  * @throws This function can throw errors.
3899
3876
  */
3900
3877
  removeEffect(effectType: EffectType | string): boolean;
3901
3878
  /**
3902
- * @beta
3903
3879
  * @remarks
3904
3880
  * Removes a specified tag from an entity.
3905
3881
  *
@@ -3913,7 +3889,6 @@ export class Entity {
3913
3889
  */
3914
3890
  removeTag(tag: string): boolean;
3915
3891
  /**
3916
- * @beta
3917
3892
  * @remarks
3918
3893
  * Runs a synchronous command on the entity.
3919
3894
  *
@@ -4048,8 +4023,9 @@ export class Entity {
4048
4023
  * When added, this component makes the entity spawn with a
4049
4024
  * rider of the specified entityType.
4050
4025
  */
4026
+ // @ts-ignore Class inheritance allowed for native defined classes
4051
4027
  export class EntityAddRiderComponent extends EntityComponent {
4052
- protected constructor();
4028
+ private constructor();
4053
4029
  /**
4054
4030
  * @remarks
4055
4031
  * The type of entity that is added as a rider for this entity
@@ -4081,8 +4057,9 @@ export class EntityAddRiderComponent extends EntityComponent {
4081
4057
  * accelerated by giving the entity the items it likes as
4082
4058
  * defined by feedItems.
4083
4059
  */
4060
+ // @ts-ignore Class inheritance allowed for native defined classes
4084
4061
  export class EntityAgeableComponent extends EntityComponent {
4085
- protected constructor();
4062
+ private constructor();
4086
4063
  /**
4087
4064
  * @remarks
4088
4065
  * Amount of time before the entity grows up, -1 for always a
@@ -4126,8 +4103,9 @@ export class EntityAgeableComponent extends EntityComponent {
4126
4103
  /**
4127
4104
  * @beta
4128
4105
  */
4106
+ // @ts-ignore Class inheritance allowed for native defined classes
4129
4107
  export class EntityAttributeComponent extends EntityComponent {
4130
- protected constructor();
4108
+ private constructor();
4131
4109
  readonly current: number;
4132
4110
  readonly value: number;
4133
4111
  /**
@@ -4161,11 +4139,11 @@ export class EntityAttributeComponent extends EntityComponent {
4161
4139
  }
4162
4140
 
4163
4141
  /**
4164
- * @beta
4165
4142
  * Base class for a family of entity movement events.
4166
4143
  */
4144
+ // @ts-ignore Class inheritance allowed for native defined classes
4167
4145
  export class EntityBaseMovementComponent extends EntityComponent {
4168
- protected constructor();
4146
+ private constructor();
4169
4147
  readonly maxTurn: number;
4170
4148
  }
4171
4149
 
@@ -4174,8 +4152,9 @@ export class EntityBaseMovementComponent extends EntityComponent {
4174
4152
  * Defines what blocks this entity can breathe in and gives
4175
4153
  * them the ability to suffocate.
4176
4154
  */
4155
+ // @ts-ignore Class inheritance allowed for native defined classes
4177
4156
  export class EntityBreathableComponent extends EntityComponent {
4178
- protected constructor();
4157
+ private constructor();
4179
4158
  /**
4180
4159
  * @remarks
4181
4160
  * If true, this entity can breathe in air.
@@ -4267,12 +4246,12 @@ export class EntityBreathableComponent extends EntityComponent {
4267
4246
  }
4268
4247
 
4269
4248
  /**
4270
- * @beta
4271
4249
  * When added, this component signifies that the entity can
4272
4250
  * climb up ladders.
4273
4251
  */
4252
+ // @ts-ignore Class inheritance allowed for native defined classes
4274
4253
  export class EntityCanClimbComponent extends EntityComponent {
4275
- protected constructor();
4254
+ private constructor();
4276
4255
  /**
4277
4256
  * @remarks
4278
4257
  * Identifier of this component. Should always be
@@ -4283,13 +4262,13 @@ export class EntityCanClimbComponent extends EntityComponent {
4283
4262
  }
4284
4263
 
4285
4264
  /**
4286
- * @beta
4287
4265
  * When added, this component signifies that the entity can
4288
4266
  * fly, and the pathfinder won't be restricted to paths where a
4289
4267
  * solid block is required underneath it.
4290
4268
  */
4269
+ // @ts-ignore Class inheritance allowed for native defined classes
4291
4270
  export class EntityCanFlyComponent extends EntityComponent {
4292
- protected constructor();
4271
+ private constructor();
4293
4272
  /**
4294
4273
  * @remarks
4295
4274
  * Identifier of this component. Should always be
@@ -4300,12 +4279,12 @@ export class EntityCanFlyComponent extends EntityComponent {
4300
4279
  }
4301
4280
 
4302
4281
  /**
4303
- * @beta
4304
4282
  * When added, this component signifies that the entity can
4305
4283
  * power jump like the horse does within Minecraft.
4306
4284
  */
4285
+ // @ts-ignore Class inheritance allowed for native defined classes
4307
4286
  export class EntityCanPowerJumpComponent extends EntityComponent {
4308
- protected constructor();
4287
+ private constructor();
4309
4288
  /**
4310
4289
  * @remarks
4311
4290
  * Identifier of this component. Should always be
@@ -4316,12 +4295,12 @@ export class EntityCanPowerJumpComponent extends EntityComponent {
4316
4295
  }
4317
4296
 
4318
4297
  /**
4319
- * @beta
4320
4298
  * Defines the entity's color. Only works on certain entities
4321
4299
  * that have predefined color values (sheep, llama, shulker).
4322
4300
  */
4301
+ // @ts-ignore Class inheritance allowed for native defined classes
4323
4302
  export class EntityColorComponent extends EntityComponent {
4324
- protected constructor();
4303
+ private constructor();
4325
4304
  /**
4326
4305
  * @remarks
4327
4306
  * This property can't be edited in read-only mode.
@@ -4338,11 +4317,11 @@ export class EntityColorComponent extends EntityComponent {
4338
4317
  }
4339
4318
 
4340
4319
  /**
4341
- * @beta
4342
4320
  * Base class for downstream entity components.
4343
4321
  */
4322
+ // @ts-ignore Class inheritance allowed for native defined classes
4344
4323
  export class EntityComponent extends Component {
4345
- protected constructor();
4324
+ private constructor();
4346
4325
  /**
4347
4326
  * @beta
4348
4327
  * @remarks
@@ -4359,7 +4338,7 @@ export class EntityComponent extends Component {
4359
4338
  * causes them to grow.
4360
4339
  */
4361
4340
  export class EntityDefinitionFeedItem {
4362
- protected constructor();
4341
+ private constructor();
4363
4342
  /**
4364
4343
  * @remarks
4365
4344
  * The amount by which an entity's age will increase when fed
@@ -4381,7 +4360,7 @@ export class EntityDefinitionFeedItem {
4381
4360
  * @beta
4382
4361
  */
4383
4362
  export class EntityDieAfterEvent {
4384
- protected constructor();
4363
+ private constructor();
4385
4364
  readonly damageSource: EntityDamageSource;
4386
4365
  readonly deadEntity: Entity;
4387
4366
  }
@@ -4389,8 +4368,9 @@ export class EntityDieAfterEvent {
4389
4368
  /**
4390
4369
  * @beta
4391
4370
  */
4371
+ // @ts-ignore Class inheritance allowed for native defined classes
4392
4372
  export class EntityDieAfterEventSignal extends IEntityDieAfterEventSignal {
4393
- protected constructor();
4373
+ private constructor();
4394
4374
  }
4395
4375
 
4396
4376
  /**
@@ -4398,8 +4378,9 @@ export class EntityDieAfterEventSignal extends IEntityDieAfterEventSignal {
4398
4378
  * Provides access to a mob's equipment slots. This component
4399
4379
  * exists for all mob entities.
4400
4380
  */
4381
+ // @ts-ignore Class inheritance allowed for native defined classes
4401
4382
  export class EntityEquipmentInventoryComponent extends EntityComponent {
4402
- protected constructor();
4383
+ private constructor();
4403
4384
  static readonly componentId = 'minecraft:equipment_inventory';
4404
4385
  /**
4405
4386
  * @remarks
@@ -4446,12 +4427,12 @@ export class EntityEquipmentInventoryComponent extends EntityComponent {
4446
4427
  }
4447
4428
 
4448
4429
  /**
4449
- * @beta
4450
4430
  * When added, this component signifies that this entity
4451
4431
  * doesn't take damage from fire.
4452
4432
  */
4433
+ // @ts-ignore Class inheritance allowed for native defined classes
4453
4434
  export class EntityFireImmuneComponent extends EntityComponent {
4454
- protected constructor();
4435
+ private constructor();
4455
4436
  /**
4456
4437
  * @remarks
4457
4438
  * Identifier of this component. Should always be
@@ -4462,12 +4443,12 @@ export class EntityFireImmuneComponent extends EntityComponent {
4462
4443
  }
4463
4444
 
4464
4445
  /**
4465
- * @beta
4466
4446
  * When added, this component signifies that this entity can
4467
4447
  * float in liquid blocks.
4468
4448
  */
4449
+ // @ts-ignore Class inheritance allowed for native defined classes
4469
4450
  export class EntityFloatsInLiquidComponent extends EntityComponent {
4470
- protected constructor();
4451
+ private constructor();
4471
4452
  /**
4472
4453
  * @remarks
4473
4454
  * Identifier of this component. Should always be
@@ -4478,11 +4459,11 @@ export class EntityFloatsInLiquidComponent extends EntityComponent {
4478
4459
  }
4479
4460
 
4480
4461
  /**
4481
- * @beta
4482
4462
  * Represents the flying speed of an entity.
4483
4463
  */
4464
+ // @ts-ignore Class inheritance allowed for native defined classes
4484
4465
  export class EntityFlyingSpeedComponent extends EntityComponent {
4485
- protected constructor();
4466
+ private constructor();
4486
4467
  /**
4487
4468
  * @remarks
4488
4469
  * This property can't be edited in read-only mode.
@@ -4499,11 +4480,11 @@ export class EntityFlyingSpeedComponent extends EntityComponent {
4499
4480
  }
4500
4481
 
4501
4482
  /**
4502
- * @beta
4503
4483
  * Defines how much friction affects this entity.
4504
4484
  */
4485
+ // @ts-ignore Class inheritance allowed for native defined classes
4505
4486
  export class EntityFrictionModifierComponent extends EntityComponent {
4506
- protected constructor();
4487
+ private constructor();
4507
4488
  /**
4508
4489
  * @remarks
4509
4490
  * This property can't be edited in read-only mode.
@@ -4520,12 +4501,12 @@ export class EntityFrictionModifierComponent extends EntityComponent {
4520
4501
  }
4521
4502
 
4522
4503
  /**
4523
- * @beta
4524
4504
  * Sets the offset from the ground that the entity is actually
4525
4505
  * at.
4526
4506
  */
4507
+ // @ts-ignore Class inheritance allowed for native defined classes
4527
4508
  export class EntityGroundOffsetComponent extends EntityComponent {
4528
- protected constructor();
4509
+ private constructor();
4529
4510
  /**
4530
4511
  * @remarks
4531
4512
  * This property can't be edited in read-only mode.
@@ -4545,8 +4526,9 @@ export class EntityGroundOffsetComponent extends EntityComponent {
4545
4526
  * @beta
4546
4527
  * Defines the interactions with this entity for healing it.
4547
4528
  */
4529
+ // @ts-ignore Class inheritance allowed for native defined classes
4548
4530
  export class EntityHealableComponent extends EntityComponent {
4549
- protected constructor();
4531
+ private constructor();
4550
4532
  /**
4551
4533
  * @remarks
4552
4534
  * A set of filters for when these Healable items would apply.
@@ -4584,8 +4566,9 @@ export class EntityHealableComponent extends EntityComponent {
4584
4566
  * @beta
4585
4567
  * Defines the health properties of an entity.
4586
4568
  */
4569
+ // @ts-ignore Class inheritance allowed for native defined classes
4587
4570
  export class EntityHealthComponent extends EntityAttributeComponent {
4588
- protected constructor();
4571
+ private constructor();
4589
4572
  /**
4590
4573
  * @remarks
4591
4574
  * Identifier of this component. Should always be
@@ -4601,7 +4584,7 @@ export class EntityHealthComponent extends EntityAttributeComponent {
4601
4584
  * attacking) another entity.
4602
4585
  */
4603
4586
  export class EntityHitAfterEvent {
4604
- protected constructor();
4587
+ private constructor();
4605
4588
  /**
4606
4589
  * @remarks
4607
4590
  * Entity that made a hit/melee attack.
@@ -4633,8 +4616,9 @@ export class EntityHitAfterEvent {
4633
4616
  * Manages callbacks that are connected to when an entity makes
4634
4617
  * a melee attack on another entity.
4635
4618
  */
4619
+ // @ts-ignore Class inheritance allowed for native defined classes
4636
4620
  export class EntityHitAfterEventSignal extends IEntityHitAfterEventSignal {
4637
- protected constructor();
4621
+ private constructor();
4638
4622
  }
4639
4623
 
4640
4624
  /**
@@ -4643,7 +4627,7 @@ export class EntityHitAfterEventSignal extends IEntityHitAfterEventSignal {
4643
4627
  * another entity.
4644
4628
  */
4645
4629
  export class EntityHurtAfterEvent {
4646
- protected constructor();
4630
+ private constructor();
4647
4631
  /**
4648
4632
  * @remarks
4649
4633
  * Describes the amount of damage caused.
@@ -4670,16 +4654,17 @@ export class EntityHurtAfterEvent {
4670
4654
  * Manages callbacks that are connected to when an entity is
4671
4655
  * hurt.
4672
4656
  */
4657
+ // @ts-ignore Class inheritance allowed for native defined classes
4673
4658
  export class EntityHurtAfterEventSignal extends IEntityHurtAfterEventSignal {
4674
- protected constructor();
4659
+ private constructor();
4675
4660
  }
4676
4661
 
4677
4662
  /**
4678
- * @beta
4679
4663
  * Defines this entity's inventory properties.
4680
4664
  */
4665
+ // @ts-ignore Class inheritance allowed for native defined classes
4681
4666
  export class EntityInventoryComponent extends EntityComponent {
4682
- protected constructor();
4667
+ private constructor();
4683
4668
  /**
4684
4669
  * @remarks
4685
4670
  * Number of slots that this entity can gain per extra
@@ -4742,12 +4727,12 @@ export class EntityInventoryComponent extends EntityComponent {
4742
4727
  }
4743
4728
 
4744
4729
  /**
4745
- * @beta
4746
4730
  * When added, this component signifies that this entity is a
4747
4731
  * baby.
4748
4732
  */
4733
+ // @ts-ignore Class inheritance allowed for native defined classes
4749
4734
  export class EntityIsBabyComponent extends EntityComponent {
4750
- protected constructor();
4735
+ private constructor();
4751
4736
  /**
4752
4737
  * @remarks
4753
4738
  * Identifier of this component. Should always be
@@ -4758,12 +4743,12 @@ export class EntityIsBabyComponent extends EntityComponent {
4758
4743
  }
4759
4744
 
4760
4745
  /**
4761
- * @beta
4762
4746
  * When added, this component signifies that this entity is
4763
4747
  * charged.
4764
4748
  */
4749
+ // @ts-ignore Class inheritance allowed for native defined classes
4765
4750
  export class EntityIsChargedComponent extends EntityComponent {
4766
- protected constructor();
4751
+ private constructor();
4767
4752
  /**
4768
4753
  * @remarks
4769
4754
  * Identifier of this component. Should always be
@@ -4774,12 +4759,12 @@ export class EntityIsChargedComponent extends EntityComponent {
4774
4759
  }
4775
4760
 
4776
4761
  /**
4777
- * @beta
4778
4762
  * When added, this component signifies that this entity is
4779
4763
  * currently carrying a chest.
4780
4764
  */
4765
+ // @ts-ignore Class inheritance allowed for native defined classes
4781
4766
  export class EntityIsChestedComponent extends EntityComponent {
4782
- protected constructor();
4767
+ private constructor();
4783
4768
  /**
4784
4769
  * @remarks
4785
4770
  * Identifier of this component. Should always be
@@ -4790,12 +4775,12 @@ export class EntityIsChestedComponent extends EntityComponent {
4790
4775
  }
4791
4776
 
4792
4777
  /**
4793
- * @beta
4794
4778
  * When added, this component signifies that dyes can be used
4795
4779
  * on this entity to change its color.
4796
4780
  */
4781
+ // @ts-ignore Class inheritance allowed for native defined classes
4797
4782
  export class EntityIsDyeableComponent extends EntityComponent {
4798
- protected constructor();
4783
+ private constructor();
4799
4784
  /**
4800
4785
  * @remarks
4801
4786
  * Identifier of this component. Should always be
@@ -4806,12 +4791,12 @@ export class EntityIsDyeableComponent extends EntityComponent {
4806
4791
  }
4807
4792
 
4808
4793
  /**
4809
- * @beta
4810
4794
  * When added, this component signifies that this entity can
4811
4795
  * hide from hostile mobs while invisible.
4812
4796
  */
4797
+ // @ts-ignore Class inheritance allowed for native defined classes
4813
4798
  export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
4814
- protected constructor();
4799
+ private constructor();
4815
4800
  /**
4816
4801
  * @remarks
4817
4802
  * Identifier of this component. Should always be
@@ -4822,12 +4807,12 @@ export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
4822
4807
  }
4823
4808
 
4824
4809
  /**
4825
- * @beta
4826
4810
  * When added, this component signifies that this entity this
4827
4811
  * currently on fire.
4828
4812
  */
4813
+ // @ts-ignore Class inheritance allowed for native defined classes
4829
4814
  export class EntityIsIgnitedComponent extends EntityComponent {
4830
- protected constructor();
4815
+ private constructor();
4831
4816
  /**
4832
4817
  * @remarks
4833
4818
  * Identifier of this component. Should always be
@@ -4838,12 +4823,12 @@ export class EntityIsIgnitedComponent extends EntityComponent {
4838
4823
  }
4839
4824
 
4840
4825
  /**
4841
- * @beta
4842
4826
  * When added, this component signifies that this entity is an
4843
4827
  * illager captain.
4844
4828
  */
4829
+ // @ts-ignore Class inheritance allowed for native defined classes
4845
4830
  export class EntityIsIllagerCaptainComponent extends EntityComponent {
4846
- protected constructor();
4831
+ private constructor();
4847
4832
  /**
4848
4833
  * @remarks
4849
4834
  * Identifier of this component. Should always be
@@ -4854,12 +4839,12 @@ export class EntityIsIllagerCaptainComponent extends EntityComponent {
4854
4839
  }
4855
4840
 
4856
4841
  /**
4857
- * @beta
4858
4842
  * When added, this component signifies that this entity is
4859
4843
  * currently saddled.
4860
4844
  */
4845
+ // @ts-ignore Class inheritance allowed for native defined classes
4861
4846
  export class EntityIsSaddledComponent extends EntityComponent {
4862
- protected constructor();
4847
+ private constructor();
4863
4848
  /**
4864
4849
  * @remarks
4865
4850
  * Identifier of this component. Should always be
@@ -4870,12 +4855,12 @@ export class EntityIsSaddledComponent extends EntityComponent {
4870
4855
  }
4871
4856
 
4872
4857
  /**
4873
- * @beta
4874
4858
  * When added, this component signifies that this entity is
4875
4859
  * currently shaking.
4876
4860
  */
4861
+ // @ts-ignore Class inheritance allowed for native defined classes
4877
4862
  export class EntityIsShakingComponent extends EntityComponent {
4878
- protected constructor();
4863
+ private constructor();
4879
4864
  /**
4880
4865
  * @remarks
4881
4866
  * Identifier of this component. Should always be
@@ -4886,12 +4871,12 @@ export class EntityIsShakingComponent extends EntityComponent {
4886
4871
  }
4887
4872
 
4888
4873
  /**
4889
- * @beta
4890
4874
  * When added, this component signifies that this entity is
4891
4875
  * currently sheared.
4892
4876
  */
4877
+ // @ts-ignore Class inheritance allowed for native defined classes
4893
4878
  export class EntityIsShearedComponent extends EntityComponent {
4894
- protected constructor();
4879
+ private constructor();
4895
4880
  /**
4896
4881
  * @remarks
4897
4882
  * Identifier of this component. Should always be
@@ -4902,12 +4887,12 @@ export class EntityIsShearedComponent extends EntityComponent {
4902
4887
  }
4903
4888
 
4904
4889
  /**
4905
- * @beta
4906
4890
  * When added, this component signifies that this entity can be
4907
4891
  * stacked.
4908
4892
  */
4893
+ // @ts-ignore Class inheritance allowed for native defined classes
4909
4894
  export class EntityIsStackableComponent extends EntityComponent {
4910
- protected constructor();
4895
+ private constructor();
4911
4896
  /**
4912
4897
  * @remarks
4913
4898
  * Identifier of this component. Should always be
@@ -4918,12 +4903,12 @@ export class EntityIsStackableComponent extends EntityComponent {
4918
4903
  }
4919
4904
 
4920
4905
  /**
4921
- * @beta
4922
4906
  * When added, this component signifies that this entity is
4923
4907
  * currently stunned.
4924
4908
  */
4909
+ // @ts-ignore Class inheritance allowed for native defined classes
4925
4910
  export class EntityIsStunnedComponent extends EntityComponent {
4926
- protected constructor();
4911
+ private constructor();
4927
4912
  /**
4928
4913
  * @remarks
4929
4914
  * Identifier of this component. Should always be
@@ -4934,12 +4919,12 @@ export class EntityIsStunnedComponent extends EntityComponent {
4934
4919
  }
4935
4920
 
4936
4921
  /**
4937
- * @beta
4938
4922
  * When added, this component signifies that this entity is
4939
4923
  * currently tamed.
4940
4924
  */
4925
+ // @ts-ignore Class inheritance allowed for native defined classes
4941
4926
  export class EntityIsTamedComponent extends EntityComponent {
4942
- protected constructor();
4927
+ private constructor();
4943
4928
  /**
4944
4929
  * @remarks
4945
4930
  * Identifier of this component. Should always be
@@ -4950,14 +4935,14 @@ export class EntityIsTamedComponent extends EntityComponent {
4950
4935
  }
4951
4936
 
4952
4937
  /**
4953
- * @beta
4954
4938
  * If added onto the entity, this indicates that the entity
4955
4939
  * represents a free-floating item in the world. Lets you
4956
4940
  * retrieve the actual item stack contents via the itemStack
4957
4941
  * property.
4958
4942
  */
4943
+ // @ts-ignore Class inheritance allowed for native defined classes
4959
4944
  export class EntityItemComponent extends EntityComponent {
4960
- protected constructor();
4945
+ private constructor();
4961
4946
  /**
4962
4947
  * @remarks
4963
4948
  * Item stack represented by this entity in the world.
@@ -4980,7 +4965,7 @@ export class EntityItemComponent extends EntityComponent {
4980
4965
  * statements, Array.from(iterator), and more.
4981
4966
  */
4982
4967
  export class EntityIterator implements Iterable<Entity> {
4983
- protected constructor();
4968
+ private constructor();
4984
4969
  /**
4985
4970
  * @remarks
4986
4971
  * This function can't be called in read-only mode.
@@ -5003,8 +4988,9 @@ export class EntityIterator implements Iterable<Entity> {
5003
4988
  * @beta
5004
4989
  * Defines the base movement speed in lava of this entity.
5005
4990
  */
4991
+ // @ts-ignore Class inheritance allowed for native defined classes
5006
4992
  export class EntityLavaMovementComponent extends EntityAttributeComponent {
5007
- protected constructor();
4993
+ private constructor();
5008
4994
  /**
5009
4995
  * @remarks
5010
4996
  * Identifier of this component. Should always be
@@ -5019,8 +5005,9 @@ export class EntityLavaMovementComponent extends EntityAttributeComponent {
5019
5005
  * Allows this entity to be leashed and defines the conditions
5020
5006
  * and events for this entity when is leashed.
5021
5007
  */
5008
+ // @ts-ignore Class inheritance allowed for native defined classes
5022
5009
  export class EntityLeashableComponent extends EntityComponent {
5023
- protected constructor();
5010
+ private constructor();
5024
5011
  /**
5025
5012
  * @remarks
5026
5013
  * Distance in blocks at which the 'spring' effect starts
@@ -5060,12 +5047,12 @@ export class EntityLeashableComponent extends EntityComponent {
5060
5047
  }
5061
5048
 
5062
5049
  /**
5063
- * @beta
5064
5050
  * Additional variant value. Can be used to further
5065
5051
  * differentiate variants.
5066
5052
  */
5053
+ // @ts-ignore Class inheritance allowed for native defined classes
5067
5054
  export class EntityMarkVariantComponent extends EntityComponent {
5068
- protected constructor();
5055
+ private constructor();
5069
5056
  /**
5070
5057
  * @remarks
5071
5058
  * This property can't be edited in read-only mode.
@@ -5086,8 +5073,9 @@ export class EntityMarkVariantComponent extends EntityComponent {
5086
5073
  * Contains options for taming a rideable entity based on the
5087
5074
  * entity that mounts it.
5088
5075
  */
5076
+ // @ts-ignore Class inheritance allowed for native defined classes
5089
5077
  export class EntityMountTamingComponent extends EntityComponent {
5090
- protected constructor();
5078
+ private constructor();
5091
5079
  /**
5092
5080
  * @remarks
5093
5081
  * Identifier of this component. Should always be
@@ -5109,12 +5097,12 @@ export class EntityMountTamingComponent extends EntityComponent {
5109
5097
  }
5110
5098
 
5111
5099
  /**
5112
- * @beta
5113
5100
  * When added, this movement control allows the mob to swim in
5114
5101
  * water and walk on land.
5115
5102
  */
5103
+ // @ts-ignore Class inheritance allowed for native defined classes
5116
5104
  export class EntityMovementAmphibiousComponent extends EntityBaseMovementComponent {
5117
- protected constructor();
5105
+ private constructor();
5118
5106
  /**
5119
5107
  * @remarks
5120
5108
  * Identifier of this component. Should always be
@@ -5125,11 +5113,11 @@ export class EntityMovementAmphibiousComponent extends EntityBaseMovementCompone
5125
5113
  }
5126
5114
 
5127
5115
  /**
5128
- * @beta
5129
5116
  * This component accents the movement of an entity.
5130
5117
  */
5118
+ // @ts-ignore Class inheritance allowed for native defined classes
5131
5119
  export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
5132
- protected constructor();
5120
+ private constructor();
5133
5121
  /**
5134
5122
  * @remarks
5135
5123
  * Identifier of this component. Should always be
@@ -5143,8 +5131,9 @@ export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
5143
5131
  * @beta
5144
5132
  * Defines the general movement speed of this entity.
5145
5133
  */
5134
+ // @ts-ignore Class inheritance allowed for native defined classes
5146
5135
  export class EntityMovementComponent extends EntityAttributeComponent {
5147
- protected constructor();
5136
+ private constructor();
5148
5137
  /**
5149
5138
  * @remarks
5150
5139
  * Identifier of this component. Should always be
@@ -5155,11 +5144,11 @@ export class EntityMovementComponent extends EntityAttributeComponent {
5155
5144
  }
5156
5145
 
5157
5146
  /**
5158
- * @beta
5159
5147
  * When added, this move control causes the mob to fly.
5160
5148
  */
5149
+ // @ts-ignore Class inheritance allowed for native defined classes
5161
5150
  export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
5162
- protected constructor();
5151
+ private constructor();
5163
5152
  /**
5164
5153
  * @remarks
5165
5154
  * Identifier of this component. Should always be
@@ -5170,12 +5159,12 @@ export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
5170
5159
  }
5171
5160
 
5172
5161
  /**
5173
- * @beta
5174
5162
  * When added, this move control allows a mob to fly, swim,
5175
5163
  * climb, etc.
5176
5164
  */
5165
+ // @ts-ignore Class inheritance allowed for native defined classes
5177
5166
  export class EntityMovementGenericComponent extends EntityBaseMovementComponent {
5178
- protected constructor();
5167
+ private constructor();
5179
5168
  /**
5180
5169
  * @remarks
5181
5170
  * Identifier of this component. Should always be
@@ -5189,8 +5178,9 @@ export class EntityMovementGenericComponent extends EntityBaseMovementComponent
5189
5178
  * @beta
5190
5179
  * When added, this movement control allows the mob to glide.
5191
5180
  */
5181
+ // @ts-ignore Class inheritance allowed for native defined classes
5192
5182
  export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
5193
- protected constructor();
5183
+ private constructor();
5194
5184
  /**
5195
5185
  * @remarks
5196
5186
  * Speed in effect when the entity is turning.
@@ -5215,11 +5205,11 @@ export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
5215
5205
  }
5216
5206
 
5217
5207
  /**
5218
- * @beta
5219
5208
  * When added, this move control causes the mob to hover.
5220
5209
  */
5210
+ // @ts-ignore Class inheritance allowed for native defined classes
5221
5211
  export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
5222
- protected constructor();
5212
+ private constructor();
5223
5213
  /**
5224
5214
  * @remarks
5225
5215
  * Identifier of this component. Should always be
@@ -5230,12 +5220,12 @@ export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
5230
5220
  }
5231
5221
 
5232
5222
  /**
5233
- * @beta
5234
5223
  * Move control that causes the mob to jump as it moves with a
5235
5224
  * specified delay between jumps.
5236
5225
  */
5226
+ // @ts-ignore Class inheritance allowed for native defined classes
5237
5227
  export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
5238
- protected constructor();
5228
+ private constructor();
5239
5229
  /**
5240
5230
  * @remarks
5241
5231
  * Identifier of this component. Should always be
@@ -5246,12 +5236,12 @@ export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
5246
5236
  }
5247
5237
 
5248
5238
  /**
5249
- * @beta
5250
5239
  * When added, this move control causes the mob to hop as it
5251
5240
  * moves.
5252
5241
  */
5242
+ // @ts-ignore Class inheritance allowed for native defined classes
5253
5243
  export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
5254
- protected constructor();
5244
+ private constructor();
5255
5245
  /**
5256
5246
  * @remarks
5257
5247
  * Identifier of this component. Should always be
@@ -5266,8 +5256,9 @@ export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
5266
5256
  * When added, this move control causes the mob to sway side to
5267
5257
  * side giving the impression it is swimming.
5268
5258
  */
5259
+ // @ts-ignore Class inheritance allowed for native defined classes
5269
5260
  export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
5270
- protected constructor();
5261
+ private constructor();
5271
5262
  /**
5272
5263
  * @remarks
5273
5264
  * Amplitude of the sway motion.
@@ -5296,8 +5287,9 @@ export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
5296
5287
  * Allows this entity to generate paths that include vertical
5297
5288
  * walls (for example, like Minecraft spiders do.)
5298
5289
  */
5290
+ // @ts-ignore Class inheritance allowed for native defined classes
5299
5291
  export class EntityNavigationClimbComponent extends EntityNavigationComponent {
5300
- protected constructor();
5292
+ private constructor();
5301
5293
  /**
5302
5294
  * @remarks
5303
5295
  * Identifier of this component. Should always be
@@ -5312,8 +5304,9 @@ export class EntityNavigationClimbComponent extends EntityNavigationComponent {
5312
5304
  * Allows this entity to generate paths that include vertical
5313
5305
  * walls (for example, like Minecraft spiders do.)
5314
5306
  */
5307
+ // @ts-ignore Class inheritance allowed for native defined classes
5315
5308
  export class EntityNavigationComponent extends EntityComponent {
5316
- protected constructor();
5309
+ private constructor();
5317
5310
  /**
5318
5311
  * @remarks
5319
5312
  * Tells the pathfinder to avoid blocks that cause damage when
@@ -5469,8 +5462,9 @@ export class EntityNavigationComponent extends EntityComponent {
5469
5462
  * Allows this entity to generate paths by flying around the
5470
5463
  * air like the regular Ghast.
5471
5464
  */
5465
+ // @ts-ignore Class inheritance allowed for native defined classes
5472
5466
  export class EntityNavigationFloatComponent extends EntityNavigationComponent {
5473
- protected constructor();
5467
+ private constructor();
5474
5468
  /**
5475
5469
  * @remarks
5476
5470
  * Identifier of this component. Should always be
@@ -5485,8 +5479,9 @@ export class EntityNavigationFloatComponent extends EntityNavigationComponent {
5485
5479
  * Allows this entity to generate paths in the air (for
5486
5480
  * example, like Minecraft parrots do.)
5487
5481
  */
5482
+ // @ts-ignore Class inheritance allowed for native defined classes
5488
5483
  export class EntityNavigationFlyComponent extends EntityNavigationComponent {
5489
- protected constructor();
5484
+ private constructor();
5490
5485
  /**
5491
5486
  * @remarks
5492
5487
  * Identifier of this component. Should always be
@@ -5502,8 +5497,9 @@ export class EntityNavigationFlyComponent extends EntityNavigationComponent {
5502
5497
  * flying and/or climbing around and jumping up and down a
5503
5498
  * block.
5504
5499
  */
5500
+ // @ts-ignore Class inheritance allowed for native defined classes
5505
5501
  export class EntityNavigationGenericComponent extends EntityNavigationComponent {
5506
- protected constructor();
5502
+ private constructor();
5507
5503
  /**
5508
5504
  * @remarks
5509
5505
  * Identifier of this component. Should always be
@@ -5519,8 +5515,9 @@ export class EntityNavigationGenericComponent extends EntityNavigationComponent
5519
5515
  * example, like the Minecraft Bees do.) Keeps them from
5520
5516
  * falling out of the skies and doing predictive movement.
5521
5517
  */
5518
+ // @ts-ignore Class inheritance allowed for native defined classes
5522
5519
  export class EntityNavigationHoverComponent extends EntityNavigationComponent {
5523
- protected constructor();
5520
+ private constructor();
5524
5521
  /**
5525
5522
  * @remarks
5526
5523
  * Identifier of this component. Should always be
@@ -5535,8 +5532,9 @@ export class EntityNavigationHoverComponent extends EntityNavigationComponent {
5535
5532
  * Allows this entity to generate paths by walking around and
5536
5533
  * jumping up and down a block like regular mobs.
5537
5534
  */
5535
+ // @ts-ignore Class inheritance allowed for native defined classes
5538
5536
  export class EntityNavigationWalkComponent extends EntityNavigationComponent {
5539
- protected constructor();
5537
+ private constructor();
5540
5538
  /**
5541
5539
  * @remarks
5542
5540
  * Identifier of this component. Should always be
@@ -5550,8 +5548,9 @@ export class EntityNavigationWalkComponent extends EntityNavigationComponent {
5550
5548
  * @beta
5551
5549
  * When present on an entity, this entity is on fire.
5552
5550
  */
5551
+ // @ts-ignore Class inheritance allowed for native defined classes
5553
5552
  export class EntityOnFireComponent extends EntityComponent {
5554
- protected constructor();
5553
+ private constructor();
5555
5554
  /**
5556
5555
  * @remarks
5557
5556
  * The number of ticks remaining before the fire goes out.
@@ -5562,11 +5561,11 @@ export class EntityOnFireComponent extends EntityComponent {
5562
5561
  }
5563
5562
 
5564
5563
  /**
5565
- * @beta
5566
5564
  * Sets the distance through which the entity can push through.
5567
5565
  */
5566
+ // @ts-ignore Class inheritance allowed for native defined classes
5568
5567
  export class EntityPushThroughComponent extends EntityComponent {
5569
- protected constructor();
5568
+ private constructor();
5570
5569
  /**
5571
5570
  * @remarks
5572
5571
  * This property can't be edited in read-only mode.
@@ -5586,15 +5585,16 @@ export class EntityPushThroughComponent extends EntityComponent {
5586
5585
  * @beta
5587
5586
  */
5588
5587
  export class EntityRemovedAfterEvent {
5589
- protected constructor();
5588
+ private constructor();
5590
5589
  readonly removedEntity: string;
5591
5590
  }
5592
5591
 
5593
5592
  /**
5594
5593
  * @beta
5595
5594
  */
5595
+ // @ts-ignore Class inheritance allowed for native defined classes
5596
5596
  export class EntityRemovedAfterEventSignal extends IEntityRemovedAfterEventSignal {
5597
- protected constructor();
5597
+ private constructor();
5598
5598
  }
5599
5599
 
5600
5600
  /**
@@ -5602,8 +5602,9 @@ export class EntityRemovedAfterEventSignal extends IEntityRemovedAfterEventSigna
5602
5602
  * When added, this component adds the capability that an
5603
5603
  * entity can be ridden by another entity.
5604
5604
  */
5605
+ // @ts-ignore Class inheritance allowed for native defined classes
5605
5606
  export class EntityRideableComponent extends EntityComponent {
5606
- protected constructor();
5607
+ private constructor();
5607
5608
  /**
5608
5609
  * @remarks
5609
5610
  * Zero-based index of the seat that can used to control this
@@ -5723,8 +5724,9 @@ export class EntityRideableComponent extends EntityComponent {
5723
5724
  * This component is added to any entity when it is riding
5724
5725
  * another entity.
5725
5726
  */
5727
+ // @ts-ignore Class inheritance allowed for native defined classes
5726
5728
  export class EntityRidingComponent extends EntityComponent {
5727
- protected constructor();
5729
+ private constructor();
5728
5730
  /**
5729
5731
  * @remarks
5730
5732
  * The entity this entity is currently riding on.
@@ -5742,11 +5744,11 @@ export class EntityRidingComponent extends EntityComponent {
5742
5744
  }
5743
5745
 
5744
5746
  /**
5745
- * @beta
5746
5747
  * Sets the entity's visual size.
5747
5748
  */
5749
+ // @ts-ignore Class inheritance allowed for native defined classes
5748
5750
  export class EntityScaleComponent extends EntityComponent {
5749
- protected constructor();
5751
+ private constructor();
5750
5752
  /**
5751
5753
  * @remarks
5752
5754
  * This property can't be edited in read-only mode.
@@ -5763,12 +5765,12 @@ export class EntityScaleComponent extends EntityComponent {
5763
5765
  }
5764
5766
 
5765
5767
  /**
5766
- * @beta
5767
5768
  * Skin Id value. Can be used to differentiate skins, such as
5768
5769
  * base skins for villagers.
5769
5770
  */
5771
+ // @ts-ignore Class inheritance allowed for native defined classes
5770
5772
  export class EntitySkinIdComponent extends EntityComponent {
5771
- protected constructor();
5773
+ private constructor();
5772
5774
  /**
5773
5775
  * @remarks
5774
5776
  * This property can't be edited in read-only mode.
@@ -5790,7 +5792,7 @@ export class EntitySkinIdComponent extends EntityComponent {
5790
5792
  * world.
5791
5793
  */
5792
5794
  export class EntitySpawnAfterEvent {
5793
- protected constructor();
5795
+ private constructor();
5794
5796
  /**
5795
5797
  * @remarks
5796
5798
  * Entity that was spawned.
@@ -5806,16 +5808,18 @@ export class EntitySpawnAfterEvent {
5806
5808
  * Registers a script-based event handler for handling what
5807
5809
  * happens when an entity spawns.
5808
5810
  */
5811
+ // @ts-ignore Class inheritance allowed for native defined classes
5809
5812
  export class EntitySpawnAfterEventSignal extends IEntitySpawnAfterEventSignal {
5810
- protected constructor();
5813
+ private constructor();
5811
5814
  }
5812
5815
 
5813
5816
  /**
5814
5817
  * @beta
5815
5818
  * Defines the entity's strength to carry items.
5816
5819
  */
5820
+ // @ts-ignore Class inheritance allowed for native defined classes
5817
5821
  export class EntityStrengthComponent extends EntityComponent {
5818
- protected constructor();
5822
+ private constructor();
5819
5823
  /**
5820
5824
  * @remarks
5821
5825
  * Maximum strength of this entity, as defined in the entity
@@ -5838,8 +5842,9 @@ export class EntityStrengthComponent extends EntityComponent {
5838
5842
  * @beta
5839
5843
  * Defines the rules for an entity to be tamed by the player.
5840
5844
  */
5845
+ // @ts-ignore Class inheritance allowed for native defined classes
5841
5846
  export class EntityTameableComponent extends EntityComponent {
5842
- protected constructor();
5847
+ private constructor();
5843
5848
  /**
5844
5849
  * @remarks
5845
5850
  * The chance of taming the entity with each item use between
@@ -5880,7 +5885,7 @@ export class EntityTameableComponent extends EntityComponent {
5880
5885
  * Represents information about a type of entity.
5881
5886
  */
5882
5887
  export class EntityType {
5883
- protected constructor();
5888
+ private constructor();
5884
5889
  /**
5885
5890
  * @remarks
5886
5891
  * Identifier of this entity type - for example,
@@ -5895,7 +5900,7 @@ export class EntityType {
5895
5900
  * An iterator that loops through available entity types.
5896
5901
  */
5897
5902
  export class EntityTypeIterator implements Iterable<EntityType> {
5898
- protected constructor();
5903
+ private constructor();
5899
5904
  /**
5900
5905
  * @remarks
5901
5906
  * This function can't be called in read-only mode.
@@ -5916,7 +5921,7 @@ export class EntityTypeIterator implements Iterable<EntityType> {
5916
5921
  * use within the world.
5917
5922
  */
5918
5923
  export class EntityTypes {
5919
- protected constructor();
5924
+ private constructor();
5920
5925
  /**
5921
5926
  * @remarks
5922
5927
  * Retrieves an entity type using a string-based identifier.
@@ -5936,8 +5941,9 @@ export class EntityTypes {
5936
5941
  * Defines the general movement speed underwater of this
5937
5942
  * entity.
5938
5943
  */
5944
+ // @ts-ignore Class inheritance allowed for native defined classes
5939
5945
  export class EntityUnderwaterMovementComponent extends EntityAttributeComponent {
5940
- protected constructor();
5946
+ private constructor();
5941
5947
  /**
5942
5948
  * @remarks
5943
5949
  * Identifier of this component. Should always be
@@ -5948,12 +5954,12 @@ export class EntityUnderwaterMovementComponent extends EntityAttributeComponent
5948
5954
  }
5949
5955
 
5950
5956
  /**
5951
- * @beta
5952
5957
  * Used to differentiate the component group of a variant of an
5953
5958
  * entity from others. (e.g. ocelot, villager).
5954
5959
  */
5960
+ // @ts-ignore Class inheritance allowed for native defined classes
5955
5961
  export class EntityVariantComponent extends EntityComponent {
5956
- protected constructor();
5962
+ private constructor();
5957
5963
  readonly value: number;
5958
5964
  /**
5959
5965
  * @remarks
@@ -5965,12 +5971,12 @@ export class EntityVariantComponent extends EntityComponent {
5965
5971
  }
5966
5972
 
5967
5973
  /**
5968
- * @beta
5969
5974
  * When added, this component signifies that this entity wants
5970
5975
  * to become a jockey.
5971
5976
  */
5977
+ // @ts-ignore Class inheritance allowed for native defined classes
5972
5978
  export class EntityWantsJockeyComponent extends EntityComponent {
5973
- protected constructor();
5979
+ private constructor();
5974
5980
  /**
5975
5981
  * @remarks
5976
5982
  * Identifier of this component. Should always be
@@ -5986,7 +5992,7 @@ export class EntityWantsJockeyComponent extends EntityComponent {
5986
5992
  * happened.
5987
5993
  */
5988
5994
  export class ExplosionAfterEvent {
5989
- protected constructor();
5995
+ private constructor();
5990
5996
  /**
5991
5997
  * @remarks
5992
5998
  * Dimension where the explosion has occurred.
@@ -6012,8 +6018,9 @@ export class ExplosionAfterEvent {
6012
6018
  * Manages callbacks that are connected to when an explosion
6013
6019
  * occurs.
6014
6020
  */
6021
+ // @ts-ignore Class inheritance allowed for native defined classes
6015
6022
  export class ExplosionAfterEventSignal extends IExplosionAfterEventSignal {
6016
- protected constructor();
6023
+ private constructor();
6017
6024
  }
6018
6025
 
6019
6026
  /**
@@ -6021,8 +6028,9 @@ export class ExplosionAfterEventSignal extends IExplosionAfterEventSignal {
6021
6028
  * Contains information regarding an explosion that has
6022
6029
  * happened.
6023
6030
  */
6031
+ // @ts-ignore Class inheritance allowed for native defined classes
6024
6032
  export class ExplosionBeforeEvent extends ExplosionAfterEvent {
6025
- protected constructor();
6033
+ private constructor();
6026
6034
  /**
6027
6035
  * @remarks
6028
6036
  * If set to true, cancels the explosion event.
@@ -6045,8 +6053,9 @@ export class ExplosionBeforeEvent extends ExplosionAfterEvent {
6045
6053
  * Manages callbacks that are connected to before an explosion
6046
6054
  * occurs.
6047
6055
  */
6056
+ // @ts-ignore Class inheritance allowed for native defined classes
6048
6057
  export class ExplosionBeforeEventSignal extends IExplosionBeforeEventSignal {
6049
- protected constructor();
6058
+ private constructor();
6050
6059
  }
6051
6060
 
6052
6061
  /**
@@ -6055,7 +6064,7 @@ export class ExplosionBeforeEventSignal extends IExplosionBeforeEventSignal {
6055
6064
  * item that can be fed to an entity to cause health effects.
6056
6065
  */
6057
6066
  export class FeedItem {
6058
- protected constructor();
6067
+ private constructor();
6059
6068
  /**
6060
6069
  * @remarks
6061
6070
  * The amount of health this entity gains when fed this item.
@@ -6087,7 +6096,7 @@ export class FeedItem {
6087
6096
  * item being fed to an entity.
6088
6097
  */
6089
6098
  export class FeedItemEffect {
6090
- protected constructor();
6099
+ private constructor();
6091
6100
  /**
6092
6101
  * @remarks
6093
6102
  * Gets an amplifier that may have been applied to this effect.
@@ -6123,7 +6132,7 @@ export class FeedItemEffect {
6123
6132
  * Represents a set of filters for when an event should occur.
6124
6133
  */
6125
6134
  export class FilterGroup {
6126
- protected constructor();
6135
+ private constructor();
6127
6136
  }
6128
6137
 
6129
6138
  /**
@@ -6131,7 +6140,7 @@ export class FilterGroup {
6131
6140
  * Represents constants related to fluid containers.
6132
6141
  */
6133
6142
  export class FluidContainer {
6134
- protected constructor();
6143
+ private constructor();
6135
6144
  /**
6136
6145
  * @remarks
6137
6146
  * Constant that represents the maximum fill level of a fluid
@@ -6154,7 +6163,7 @@ export class FluidContainer {
6154
6163
  * an event that fires when blocks are broken.
6155
6164
  */
6156
6165
  export class IBlockBreakAfterEventSignal {
6157
- protected constructor();
6166
+ private constructor();
6158
6167
  /**
6159
6168
  * @remarks
6160
6169
  * This function can't be called in read-only mode.
@@ -6176,7 +6185,7 @@ export class IBlockBreakAfterEventSignal {
6176
6185
  * an event that fires when an explosion occurs.
6177
6186
  */
6178
6187
  export class IBlockExplodeAfterEventSignal {
6179
- protected constructor();
6188
+ private constructor();
6180
6189
  /**
6181
6190
  * @remarks
6182
6191
  * This function can't be called in read-only mode.
@@ -6198,7 +6207,7 @@ export class IBlockExplodeAfterEventSignal {
6198
6207
  * an event that fires after a block is placed.
6199
6208
  */
6200
6209
  export class IBlockPlaceAfterEventSignal {
6201
- protected constructor();
6210
+ private constructor();
6202
6211
  /**
6203
6212
  * @remarks
6204
6213
  * This function can't be called in read-only mode.
@@ -6220,7 +6229,7 @@ export class IBlockPlaceAfterEventSignal {
6220
6229
  * an event that fires when a button is pushed.
6221
6230
  */
6222
6231
  export class IButtonPushAfterEventSignal {
6223
- protected constructor();
6232
+ private constructor();
6224
6233
  /**
6225
6234
  * @remarks
6226
6235
  * This function can't be called in read-only mode.
@@ -6242,7 +6251,7 @@ export class IButtonPushAfterEventSignal {
6242
6251
  * an event that fires when a chat message is sent.
6243
6252
  */
6244
6253
  export class IChatSendAfterEventSignal {
6245
- protected constructor();
6254
+ private constructor();
6246
6255
  /**
6247
6256
  * @remarks
6248
6257
  * This function can't be called in read-only mode.
@@ -6264,7 +6273,7 @@ export class IChatSendAfterEventSignal {
6264
6273
  * an event that fires before a chat message is sent.
6265
6274
  */
6266
6275
  export class IChatSendBeforeEventSignal {
6267
- protected constructor();
6276
+ private constructor();
6268
6277
  /**
6269
6278
  * @remarks
6270
6279
  * This function can't be called in read-only mode.
@@ -6287,7 +6296,7 @@ export class IChatSendBeforeEventSignal {
6287
6296
  * triggered to change.
6288
6297
  */
6289
6298
  export class IDataDrivenEntityTriggerAfterEventSignal {
6290
- protected constructor();
6299
+ private constructor();
6291
6300
  /**
6292
6301
  * @remarks
6293
6302
  * This function can't be called in read-only mode.
@@ -6313,7 +6322,7 @@ export class IDataDrivenEntityTriggerAfterEventSignal {
6313
6322
  * scheduled to change via a triggered event.
6314
6323
  */
6315
6324
  export class IDataDrivenEntityTriggerBeforeEventSignal {
6316
- protected constructor();
6325
+ private constructor();
6317
6326
  /**
6318
6327
  * @remarks
6319
6328
  * This function can't be called in read-only mode.
@@ -6338,7 +6347,7 @@ export class IDataDrivenEntityTriggerBeforeEventSignal {
6338
6347
  * an event that fires when an effect is added to an entity.
6339
6348
  */
6340
6349
  export class IEffectAddAfterEventSignal {
6341
- protected constructor();
6350
+ private constructor();
6342
6351
  /**
6343
6352
  * @remarks
6344
6353
  * This function can't be called in read-only mode.
@@ -6363,7 +6372,7 @@ export class IEffectAddAfterEventSignal {
6363
6372
  * an event that fires when an entity dies.
6364
6373
  */
6365
6374
  export class IEntityDieAfterEventSignal {
6366
- protected constructor();
6375
+ private constructor();
6367
6376
  /**
6368
6377
  * @remarks
6369
6378
  * This function can't be called in read-only mode.
@@ -6389,7 +6398,7 @@ export class IEntityDieAfterEventSignal {
6389
6398
  * another entity.
6390
6399
  */
6391
6400
  export class IEntityHitAfterEventSignal {
6392
- protected constructor();
6401
+ private constructor();
6393
6402
  /**
6394
6403
  * @remarks
6395
6404
  * This function can't be called in read-only mode.
@@ -6414,7 +6423,7 @@ export class IEntityHitAfterEventSignal {
6414
6423
  * an event that fires when an entity is hurt.
6415
6424
  */
6416
6425
  export class IEntityHurtAfterEventSignal {
6417
- protected constructor();
6426
+ private constructor();
6418
6427
  /**
6419
6428
  * @remarks
6420
6429
  * This function can't be called in read-only mode.
@@ -6437,7 +6446,7 @@ export class IEntityHurtAfterEventSignal {
6437
6446
  * @beta
6438
6447
  */
6439
6448
  export class IEntityRemovedAfterEventSignal {
6440
- protected constructor();
6449
+ private constructor();
6441
6450
  /**
6442
6451
  * @remarks
6443
6452
  * This function can't be called in read-only mode.
@@ -6462,7 +6471,7 @@ export class IEntityRemovedAfterEventSignal {
6462
6471
  * an event that fires after an entity is spawned.
6463
6472
  */
6464
6473
  export class IEntitySpawnAfterEventSignal {
6465
- protected constructor();
6474
+ private constructor();
6466
6475
  /**
6467
6476
  * @remarks
6468
6477
  * This function can't be called in read-only mode.
@@ -6484,7 +6493,7 @@ export class IEntitySpawnAfterEventSignal {
6484
6493
  * an event that fires after an explosion occurs.
6485
6494
  */
6486
6495
  export class IExplosionAfterEventSignal {
6487
- protected constructor();
6496
+ private constructor();
6488
6497
  /**
6489
6498
  * @remarks
6490
6499
  * This function can't be called in read-only mode.
@@ -6506,7 +6515,7 @@ export class IExplosionAfterEventSignal {
6506
6515
  * an event that fires before an explosion begins.
6507
6516
  */
6508
6517
  export class IExplosionBeforeEventSignal {
6509
- protected constructor();
6518
+ private constructor();
6510
6519
  /**
6511
6520
  * @remarks
6512
6521
  * This function can't be called in read-only mode.
@@ -6528,7 +6537,7 @@ export class IExplosionBeforeEventSignal {
6528
6537
  * an event that fires after an item has completed charging.
6529
6538
  */
6530
6539
  export class IItemCompleteChargeAfterEventSignal {
6531
- protected constructor();
6540
+ private constructor();
6532
6541
  /**
6533
6542
  * @remarks
6534
6543
  * This function can't be called in read-only mode.
@@ -6550,7 +6559,7 @@ export class IItemCompleteChargeAfterEventSignal {
6550
6559
  * an event that fires after an items' definition has changed.
6551
6560
  */
6552
6561
  export class IItemDefinitionAfterEventSignal {
6553
- protected constructor();
6562
+ private constructor();
6554
6563
  /**
6555
6564
  * @remarks
6556
6565
  * This function can't be called in read-only mode.
@@ -6574,7 +6583,7 @@ export class IItemDefinitionAfterEventSignal {
6574
6583
  * an event that fires before an items' definition changes.
6575
6584
  */
6576
6585
  export class IItemDefinitionBeforeEventSignal {
6577
- protected constructor();
6586
+ private constructor();
6578
6587
  /**
6579
6588
  * @remarks
6580
6589
  * This function can't be called in read-only mode.
@@ -6598,7 +6607,7 @@ export class IItemDefinitionBeforeEventSignal {
6598
6607
  * an event that fires after a charged item is released.
6599
6608
  */
6600
6609
  export class IItemReleaseChargeAfterEventSignal {
6601
- protected constructor();
6610
+ private constructor();
6602
6611
  /**
6603
6612
  * @remarks
6604
6613
  * This function can't be called in read-only mode.
@@ -6620,7 +6629,7 @@ export class IItemReleaseChargeAfterEventSignal {
6620
6629
  * an event that fires when a chargeable item starts charging.
6621
6630
  */
6622
6631
  export class IItemStartChargeAfterEventSignal {
6623
- protected constructor();
6632
+ private constructor();
6624
6633
  /**
6625
6634
  * @remarks
6626
6635
  * This function can't be called in read-only mode.
@@ -6643,7 +6652,7 @@ export class IItemStartChargeAfterEventSignal {
6643
6652
  * on a block.
6644
6653
  */
6645
6654
  export class IItemStartUseOnAfterEventSignal {
6646
- protected constructor();
6655
+ private constructor();
6647
6656
  /**
6648
6657
  * @remarks
6649
6658
  * This function can't be called in read-only mode.
@@ -6665,7 +6674,7 @@ export class IItemStartUseOnAfterEventSignal {
6665
6674
  * an event that fires when an item stops charging.
6666
6675
  */
6667
6676
  export class IItemStopChargeAfterEventSignal {
6668
- protected constructor();
6677
+ private constructor();
6669
6678
  /**
6670
6679
  * @remarks
6671
6680
  * This function can't be called in read-only mode.
@@ -6688,7 +6697,7 @@ export class IItemStopChargeAfterEventSignal {
6688
6697
  * block.
6689
6698
  */
6690
6699
  export class IItemStopUseOnAfterEventSignal {
6691
- protected constructor();
6700
+ private constructor();
6692
6701
  /**
6693
6702
  * @remarks
6694
6703
  * This function can't be called in read-only mode.
@@ -6710,7 +6719,7 @@ export class IItemStopUseOnAfterEventSignal {
6710
6719
  * an event that fires after an item is used.
6711
6720
  */
6712
6721
  export class IItemUseAfterEventSignal {
6713
- protected constructor();
6722
+ private constructor();
6714
6723
  /**
6715
6724
  * @remarks
6716
6725
  * This function can't be called in read-only mode.
@@ -6732,7 +6741,7 @@ export class IItemUseAfterEventSignal {
6732
6741
  * an event that fires before an item is used.
6733
6742
  */
6734
6743
  export class IItemUseBeforeEventSignal {
6735
- protected constructor();
6744
+ private constructor();
6736
6745
  /**
6737
6746
  * @remarks
6738
6747
  * This function can't be called in read-only mode.
@@ -6754,7 +6763,7 @@ export class IItemUseBeforeEventSignal {
6754
6763
  * an event that fires after an item is used on a block.
6755
6764
  */
6756
6765
  export class IItemUseOnAfterEventSignal {
6757
- protected constructor();
6766
+ private constructor();
6758
6767
  /**
6759
6768
  * @remarks
6760
6769
  * This function can't be called in read-only mode.
@@ -6776,7 +6785,7 @@ export class IItemUseOnAfterEventSignal {
6776
6785
  * an event that fires before an item is being used on a block.
6777
6786
  */
6778
6787
  export class IItemUseOnBeforeEventSignal {
6779
- protected constructor();
6788
+ private constructor();
6780
6789
  /**
6781
6790
  * @remarks
6782
6791
  * This function can't be called in read-only mode.
@@ -6798,7 +6807,7 @@ export class IItemUseOnBeforeEventSignal {
6798
6807
  * an event that fires after a lever is used.
6799
6808
  */
6800
6809
  export class ILeverActionAfterEventSignal {
6801
- protected constructor();
6810
+ private constructor();
6802
6811
  /**
6803
6812
  * @remarks
6804
6813
  * This function can't be called in read-only mode.
@@ -6820,7 +6829,7 @@ export class ILeverActionAfterEventSignal {
6820
6829
  * an event that fires after a piston is activated.
6821
6830
  */
6822
6831
  export class IPistonActivateAfterEventSignal {
6823
- protected constructor();
6832
+ private constructor();
6824
6833
  /**
6825
6834
  * @remarks
6826
6835
  * This function can't be called in read-only mode.
@@ -6842,7 +6851,7 @@ export class IPistonActivateAfterEventSignal {
6842
6851
  * an event that fires before a piston is activated.
6843
6852
  */
6844
6853
  export class IPistonActivateBeforeEventSignal {
6845
- protected constructor();
6854
+ private constructor();
6846
6855
  /**
6847
6856
  * @remarks
6848
6857
  * This function can't be called in read-only mode.
@@ -6864,7 +6873,7 @@ export class IPistonActivateBeforeEventSignal {
6864
6873
  * an event that fires after a player joins a world.
6865
6874
  */
6866
6875
  export class IPlayerJoinAfterEventSignal {
6867
- protected constructor();
6876
+ private constructor();
6868
6877
  /**
6869
6878
  * @remarks
6870
6879
  * This function can't be called in read-only mode.
@@ -6886,7 +6895,7 @@ export class IPlayerJoinAfterEventSignal {
6886
6895
  * an event that fires after a player leaves a world.
6887
6896
  */
6888
6897
  export class IPlayerLeaveAfterEventSignal {
6889
- protected constructor();
6898
+ private constructor();
6890
6899
  /**
6891
6900
  * @remarks
6892
6901
  * This function can't be called in read-only mode.
@@ -6908,7 +6917,7 @@ export class IPlayerLeaveAfterEventSignal {
6908
6917
  * an event that fires after a player spawns.
6909
6918
  */
6910
6919
  export class IPlayerSpawnAfterEventSignal {
6911
- protected constructor();
6920
+ private constructor();
6912
6921
  /**
6913
6922
  * @remarks
6914
6923
  * This function can't be called in read-only mode.
@@ -6930,7 +6939,7 @@ export class IPlayerSpawnAfterEventSignal {
6930
6939
  * an event that fires after a projectile hits a target.
6931
6940
  */
6932
6941
  export class IProjectileHitAfterEventSignal {
6933
- protected constructor();
6942
+ private constructor();
6934
6943
  /**
6935
6944
  * @remarks
6936
6945
  * This function can't be called in read-only mode.
@@ -6952,7 +6961,7 @@ export class IProjectileHitAfterEventSignal {
6952
6961
  * an event that fires when /script event command is called.
6953
6962
  */
6954
6963
  export class IScriptEventCommandMessageAfterEventSignal {
6955
- protected constructor();
6964
+ private constructor();
6956
6965
  /**
6957
6966
  * @remarks
6958
6967
  * This function can't be called in read-only mode.
@@ -6978,7 +6987,7 @@ export class IScriptEventCommandMessageAfterEventSignal {
6978
6987
  * that this event is for internal use only.
6979
6988
  */
6980
6989
  export class IServerMessageAfterEventSignal {
6981
- protected constructor();
6990
+ private constructor();
6982
6991
  /**
6983
6992
  * @remarks
6984
6993
  * This function can't be called in read-only mode.
@@ -6998,7 +7007,7 @@ export class IServerMessageAfterEventSignal {
6998
7007
  * @beta
6999
7008
  */
7000
7009
  export class ItemCompleteChargeAfterEvent {
7001
- protected constructor();
7010
+ private constructor();
7002
7011
  readonly itemStack: ItemStack;
7003
7012
  readonly source: Entity;
7004
7013
  readonly useDuration: number;
@@ -7007,16 +7016,17 @@ export class ItemCompleteChargeAfterEvent {
7007
7016
  /**
7008
7017
  * @beta
7009
7018
  */
7019
+ // @ts-ignore Class inheritance allowed for native defined classes
7010
7020
  export class ItemCompleteChargeAfterEventSignal extends IItemCompleteChargeAfterEventSignal {
7011
- protected constructor();
7021
+ private constructor();
7012
7022
  }
7013
7023
 
7014
7024
  /**
7015
- * @beta
7016
7025
  * Base class for item components.
7017
7026
  */
7027
+ // @ts-ignore Class inheritance allowed for native defined classes
7018
7028
  export class ItemComponent extends Component {
7019
- protected constructor();
7029
+ private constructor();
7020
7030
  }
7021
7031
 
7022
7032
  /**
@@ -7024,8 +7034,9 @@ export class ItemComponent extends Component {
7024
7034
  * When present on an item, this item has a cooldown effect
7025
7035
  * when used by entities.
7026
7036
  */
7037
+ // @ts-ignore Class inheritance allowed for native defined classes
7027
7038
  export class ItemCooldownComponent extends ItemComponent {
7028
- protected constructor();
7039
+ private constructor();
7029
7040
  /**
7030
7041
  * @remarks
7031
7042
  * Represents the cooldown category that this item is
@@ -7065,8 +7076,9 @@ export class ItemCooldownComponent extends ItemComponent {
7065
7076
  * Manages callbacks that are connected to an item's definition
7066
7077
  * and components changing.
7067
7078
  */
7079
+ // @ts-ignore Class inheritance allowed for native defined classes
7068
7080
  export class ItemDefinitionAfterEventSignal extends IItemDefinitionAfterEventSignal {
7069
- protected constructor();
7081
+ private constructor();
7070
7082
  }
7071
7083
 
7072
7084
  /**
@@ -7074,8 +7086,9 @@ export class ItemDefinitionAfterEventSignal extends IItemDefinitionAfterEventSig
7074
7086
  * Manages callbacks that are connected to an item's definition
7075
7087
  * and components changing.
7076
7088
  */
7089
+ // @ts-ignore Class inheritance allowed for native defined classes
7077
7090
  export class ItemDefinitionBeforeEventSignal extends IItemDefinitionBeforeEventSignal {
7078
- protected constructor();
7091
+ private constructor();
7079
7092
  }
7080
7093
 
7081
7094
  /**
@@ -7084,7 +7097,7 @@ export class ItemDefinitionBeforeEventSignal extends IItemDefinitionBeforeEventS
7084
7097
  * definition change being triggered.
7085
7098
  */
7086
7099
  export class ItemDefinitionTriggeredAfterEvent {
7087
- protected constructor();
7100
+ private constructor();
7088
7101
  /**
7089
7102
  * @remarks
7090
7103
  * Name of the data-driven item event that is triggering this
@@ -7106,8 +7119,9 @@ export class ItemDefinitionTriggeredAfterEvent {
7106
7119
  * Contains information related to a triggering of a custom
7107
7120
  * item definition change.
7108
7121
  */
7122
+ // @ts-ignore Class inheritance allowed for native defined classes
7109
7123
  export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredAfterEvent {
7110
- protected constructor();
7124
+ private constructor();
7111
7125
  /**
7112
7126
  * @remarks
7113
7127
  * If set to true, will cancel the application of this item
@@ -7123,8 +7137,9 @@ export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredA
7123
7137
  * process of being used. Note that this component only applies
7124
7138
  * to data-driven items.
7125
7139
  */
7140
+ // @ts-ignore Class inheritance allowed for native defined classes
7126
7141
  export class ItemDurabilityComponent extends ItemComponent {
7127
- protected constructor();
7142
+ private constructor();
7128
7143
  /**
7129
7144
  * @remarks
7130
7145
  * Returns the current damage level of this particular item.
@@ -7180,8 +7195,9 @@ export class ItemDurabilityComponent extends ItemComponent {
7180
7195
  * effects. Note that this component only applies to
7181
7196
  * data-driven items.
7182
7197
  */
7198
+ // @ts-ignore Class inheritance allowed for native defined classes
7183
7199
  export class ItemEnchantsComponent extends ItemComponent {
7184
- protected constructor();
7200
+ private constructor();
7185
7201
  /**
7186
7202
  * @remarks
7187
7203
  * Returns a collection of the enchantments applied to this
@@ -7214,8 +7230,9 @@ export class ItemEnchantsComponent extends ItemComponent {
7214
7230
  * entities. Note that this component only applies to
7215
7231
  * data-driven items.
7216
7232
  */
7233
+ // @ts-ignore Class inheritance allowed for native defined classes
7217
7234
  export class ItemFoodComponent extends ItemComponent {
7218
- protected constructor();
7235
+ private constructor();
7219
7236
  /**
7220
7237
  * @remarks
7221
7238
  * If true, the player can always eat this item (even when not
@@ -7262,7 +7279,7 @@ export class ItemFoodComponent extends ItemComponent {
7262
7279
  * @beta
7263
7280
  */
7264
7281
  export class ItemReleaseChargeAfterEvent {
7265
- protected constructor();
7282
+ private constructor();
7266
7283
  readonly itemStack: ItemStack;
7267
7284
  readonly source: Entity;
7268
7285
  readonly useDuration: number;
@@ -7271,12 +7288,12 @@ export class ItemReleaseChargeAfterEvent {
7271
7288
  /**
7272
7289
  * @beta
7273
7290
  */
7291
+ // @ts-ignore Class inheritance allowed for native defined classes
7274
7292
  export class ItemReleaseChargeAfterEventSignal extends IItemReleaseChargeAfterEventSignal {
7275
- protected constructor();
7293
+ private constructor();
7276
7294
  }
7277
7295
 
7278
7296
  /**
7279
- * @beta
7280
7297
  * Defines a collection of items.
7281
7298
  */
7282
7299
  export class ItemStack {
@@ -7392,11 +7409,10 @@ export class ItemStack {
7392
7409
  * stack, undefined is returned.
7393
7410
  * @example durability.ts
7394
7411
  * ```typescript
7395
- * // Get the maximum durability of a custom sword item
7396
- * const itemStack = new ItemStack("custom:sword");
7397
- * const durability = itemStack.getComponent("minecraft:durability") as ItemDurabilityComponent;
7398
- * const maxDurability = durability.maxDurability;
7399
- *
7412
+ * // Get the maximum durability of a custom sword item
7413
+ * const itemStack = new ItemStack("custom:sword");
7414
+ * const durability = itemStack.getComponent("minecraft:durability") as ItemDurabilityComponent;
7415
+ * const maxDurability = durability.maxDurability;
7400
7416
  * ```
7401
7417
  */
7402
7418
  getComponent(componentId: string): ItemComponent | undefined;
@@ -7472,10 +7488,9 @@ export class ItemStack {
7472
7488
  * Throws if any of the provided block identifiers are invalid.
7473
7489
  * @example example.ts
7474
7490
  * ```typescript
7475
- * // Creates a diamond pickaxe that can destroy cobblestone and obsidian
7476
- * const specialPickaxe = new ItemStack("minecraft:diamond_pickaxe");
7477
- * specialPickaxe.setCanDestroy(["minecraft:cobblestone", "minecraft:obsidian"]);
7478
- *
7491
+ * // Creates a diamond pickaxe that can destroy cobblestone and obsidian
7492
+ * const specialPickaxe = new ItemStack("minecraft:diamond_pickaxe");
7493
+ * specialPickaxe.setCanDestroy(["minecraft:cobblestone", "minecraft:obsidian"]);
7479
7494
  * ```
7480
7495
  */
7481
7496
  setCanDestroy(blockIdentifiers?: string[]): void;
@@ -7493,10 +7508,9 @@ export class ItemStack {
7493
7508
  * Throws if any of the provided block identifiers are invalid.
7494
7509
  * @example example.ts
7495
7510
  * ```typescript
7496
- * // Creates a gold block that can be placed on grass and dirt
7497
- * const specialGoldBlock = new ItemStack("minecraft:gold_block");
7498
- * specialPickaxe.setCanPlaceOn(["minecraft:grass", "minecraft:dirt"]);
7499
- *
7511
+ * // Creates a gold block that can be placed on grass and dirt
7512
+ * const specialGoldBlock = new ItemStack("minecraft:gold_block");
7513
+ * specialPickaxe.setCanPlaceOn(["minecraft:grass", "minecraft:dirt"]);
7500
7514
  * ```
7501
7515
  */
7502
7516
  setCanPlaceOn(blockIdentifiers?: string[]): void;
@@ -7510,10 +7524,9 @@ export class ItemStack {
7510
7524
  *
7511
7525
  * @example multilineLore.ts
7512
7526
  * ```typescript
7513
- * // Set the lore of an item to multiple lines of text
7514
- * const itemStack = new ItemStack("minecraft:diamond_sword");
7515
- * itemStack.setLore(["Line 1", "Line 2", "Line 3"]);
7516
- *
7527
+ * // Set the lore of an item to multiple lines of text
7528
+ * const itemStack = new ItemStack("minecraft:diamond_sword");
7529
+ * itemStack.setLore(["Line 1", "Line 2", "Line 3"]);
7517
7530
  * ```
7518
7531
  */
7519
7532
  setLore(loreList?: string[]): void;
@@ -7537,7 +7550,7 @@ export class ItemStack {
7537
7550
  * @beta
7538
7551
  */
7539
7552
  export class ItemStartChargeAfterEvent {
7540
- protected constructor();
7553
+ private constructor();
7541
7554
  readonly itemStack: ItemStack;
7542
7555
  readonly source: Entity;
7543
7556
  readonly useDuration: number;
@@ -7546,8 +7559,9 @@ export class ItemStartChargeAfterEvent {
7546
7559
  /**
7547
7560
  * @beta
7548
7561
  */
7562
+ // @ts-ignore Class inheritance allowed for native defined classes
7549
7563
  export class ItemStartChargeAfterEventSignal extends IItemStartChargeAfterEventSignal {
7550
- protected constructor();
7564
+ private constructor();
7551
7565
  }
7552
7566
 
7553
7567
  /**
@@ -7559,7 +7573,7 @@ export class ItemStartChargeAfterEventSignal extends IItemStartChargeAfterEventS
7559
7573
  * Axe items.
7560
7574
  */
7561
7575
  export class ItemStartUseOnAfterEvent {
7562
- protected constructor();
7576
+ private constructor();
7563
7577
  /**
7564
7578
  * @remarks
7565
7579
  * The block that the item is used on.
@@ -7591,15 +7605,16 @@ export class ItemStartUseOnAfterEvent {
7591
7605
  * Manages callbacks that are connected to an item starting
7592
7606
  * being used on a block event.
7593
7607
  */
7608
+ // @ts-ignore Class inheritance allowed for native defined classes
7594
7609
  export class ItemStartUseOnAfterEventSignal extends IItemStartUseOnAfterEventSignal {
7595
- protected constructor();
7610
+ private constructor();
7596
7611
  }
7597
7612
 
7598
7613
  /**
7599
7614
  * @beta
7600
7615
  */
7601
7616
  export class ItemStopChargeAfterEvent {
7602
- protected constructor();
7617
+ private constructor();
7603
7618
  readonly itemStack: ItemStack;
7604
7619
  readonly source: Entity;
7605
7620
  readonly useDuration: number;
@@ -7608,8 +7623,9 @@ export class ItemStopChargeAfterEvent {
7608
7623
  /**
7609
7624
  * @beta
7610
7625
  */
7626
+ // @ts-ignore Class inheritance allowed for native defined classes
7611
7627
  export class ItemStopChargeAfterEventSignal extends IItemStopChargeAfterEventSignal {
7612
- protected constructor();
7628
+ private constructor();
7613
7629
  }
7614
7630
 
7615
7631
  /**
@@ -7623,7 +7639,7 @@ export class ItemStopChargeAfterEventSignal extends IItemStopChargeAfterEventSig
7623
7639
  * Hoe or Axe items.
7624
7640
  */
7625
7641
  export class ItemStopUseOnAfterEvent {
7626
- protected constructor();
7642
+ private constructor();
7627
7643
  /**
7628
7644
  * @remarks
7629
7645
  * The block that the item is used on.
@@ -7649,16 +7665,16 @@ export class ItemStopUseOnAfterEvent {
7649
7665
  * Manages callbacks that are connected to an item stops used
7650
7666
  * on a block event.
7651
7667
  */
7668
+ // @ts-ignore Class inheritance allowed for native defined classes
7652
7669
  export class ItemStopUseOnAfterEventSignal extends IItemStopUseOnAfterEventSignal {
7653
- protected constructor();
7670
+ private constructor();
7654
7671
  }
7655
7672
 
7656
7673
  /**
7657
- * @beta
7658
7674
  * Represents the type of an item - for example, Wool.
7659
7675
  */
7660
7676
  export class ItemType {
7661
- protected constructor();
7677
+ private constructor();
7662
7678
  /**
7663
7679
  * @remarks
7664
7680
  * Returns the identifier of the item type - for example,
@@ -7673,7 +7689,7 @@ export class ItemType {
7673
7689
  * An iterator over a set of available item types.
7674
7690
  */
7675
7691
  export class ItemTypeIterator implements Iterable<ItemType> {
7676
- protected constructor();
7692
+ private constructor();
7677
7693
  /**
7678
7694
  * @remarks
7679
7695
  * This function can't be called in read-only mode.
@@ -7693,7 +7709,7 @@ export class ItemTypeIterator implements Iterable<ItemType> {
7693
7709
  * Returns the set of item types registered within Minecraft.
7694
7710
  */
7695
7711
  export class ItemTypes {
7696
- protected constructor();
7712
+ private constructor();
7697
7713
  /**
7698
7714
  * @remarks
7699
7715
  * Returns a specific item type, if available within Minecraft.
@@ -7715,7 +7731,7 @@ export class ItemTypes {
7715
7731
  * event fires when an item is successfully used by a player.
7716
7732
  */
7717
7733
  export class ItemUseAfterEvent {
7718
- protected constructor();
7734
+ private constructor();
7719
7735
  /**
7720
7736
  * @remarks
7721
7737
  * The impacted item stack that is being used.
@@ -7734,16 +7750,18 @@ export class ItemUseAfterEvent {
7734
7750
  * @beta
7735
7751
  * Manages callbacks that are connected to an item use event.
7736
7752
  */
7753
+ // @ts-ignore Class inheritance allowed for native defined classes
7737
7754
  export class ItemUseAfterEventSignal extends IItemUseAfterEventSignal {
7738
- protected constructor();
7755
+ private constructor();
7739
7756
  }
7740
7757
 
7741
7758
  /**
7742
7759
  * @beta
7743
7760
  * Contains information related to an item being used.
7744
7761
  */
7762
+ // @ts-ignore Class inheritance allowed for native defined classes
7745
7763
  export class ItemUseBeforeEvent extends ItemUseAfterEvent {
7746
- protected constructor();
7764
+ private constructor();
7747
7765
  /**
7748
7766
  * @remarks
7749
7767
  * If set to true, this will cancel the item use behavior.
@@ -7756,8 +7774,9 @@ export class ItemUseBeforeEvent extends ItemUseAfterEvent {
7756
7774
  * @beta
7757
7775
  * Manages callbacks that fire before an item is used.
7758
7776
  */
7777
+ // @ts-ignore Class inheritance allowed for native defined classes
7759
7778
  export class ItemUseBeforeEventSignal extends IItemUseBeforeEventSignal {
7760
- protected constructor();
7779
+ private constructor();
7761
7780
  }
7762
7781
 
7763
7782
  /**
@@ -7767,7 +7786,7 @@ export class ItemUseBeforeEventSignal extends IItemUseBeforeEventSignal {
7767
7786
  * player.
7768
7787
  */
7769
7788
  export class ItemUseOnAfterEvent {
7770
- protected constructor();
7789
+ private constructor();
7771
7790
  /**
7772
7791
  * @remarks
7773
7792
  * The block that the item is used on.
@@ -7806,8 +7825,9 @@ export class ItemUseOnAfterEvent {
7806
7825
  * Manages callbacks that are connected to an item being used
7807
7826
  * on a block event.
7808
7827
  */
7828
+ // @ts-ignore Class inheritance allowed for native defined classes
7809
7829
  export class ItemUseOnAfterEventSignal extends IItemUseOnAfterEventSignal {
7810
- protected constructor();
7830
+ private constructor();
7811
7831
  }
7812
7832
 
7813
7833
  /**
@@ -7815,8 +7835,9 @@ export class ItemUseOnAfterEventSignal extends IItemUseOnAfterEventSignal {
7815
7835
  * Contains information related to an item being used on a
7816
7836
  * block.
7817
7837
  */
7838
+ // @ts-ignore Class inheritance allowed for native defined classes
7818
7839
  export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
7819
- protected constructor();
7840
+ private constructor();
7820
7841
  /**
7821
7842
  * @remarks
7822
7843
  * If set to true, this will cancel the item use behavior.
@@ -7830,8 +7851,9 @@ export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
7830
7851
  * Manages callbacks that fire before an item being used on a
7831
7852
  * block event.
7832
7853
  */
7854
+ // @ts-ignore Class inheritance allowed for native defined classes
7833
7855
  export class ItemUseOnBeforeEventSignal extends IItemUseOnBeforeEventSignal {
7834
- protected constructor();
7856
+ private constructor();
7835
7857
  }
7836
7858
 
7837
7859
  /**
@@ -7841,7 +7863,7 @@ export class ItemUseOnBeforeEventSignal extends IItemUseOnBeforeEventSignal {
7841
7863
  * scripting have exceeded a threshold.
7842
7864
  */
7843
7865
  export class IWatchdogTerminateBeforeEventSignal {
7844
- protected constructor();
7866
+ private constructor();
7845
7867
  /**
7846
7868
  * @remarks
7847
7869
  * This function can't be called in read-only mode.
@@ -7862,7 +7884,7 @@ export class IWatchdogTerminateBeforeEventSignal {
7862
7884
  * An event that fires after the weather has changed.
7863
7885
  */
7864
7886
  export class IWeatherChangeAfterEventSignal {
7865
- protected constructor();
7887
+ private constructor();
7866
7888
  /**
7867
7889
  * @remarks
7868
7890
  * This function can't be called in read-only mode.
@@ -7884,7 +7906,7 @@ export class IWeatherChangeAfterEventSignal {
7884
7906
  * loaded.
7885
7907
  */
7886
7908
  export class IWorldInitializeAfterEventSignal {
7887
- protected constructor();
7909
+ private constructor();
7888
7910
  /**
7889
7911
  * @remarks
7890
7912
  * This function can't be called in read-only mode.
@@ -7905,8 +7927,9 @@ export class IWorldInitializeAfterEventSignal {
7905
7927
  * Contains information related to changes to a lever
7906
7928
  * activating or deactivating.
7907
7929
  */
7930
+ // @ts-ignore Class inheritance allowed for native defined classes
7908
7931
  export class LeverActionAfterEvent extends BlockEvent {
7909
- protected constructor();
7932
+ private constructor();
7910
7933
  /**
7911
7934
  * @remarks
7912
7935
  * True if the lever is activated (that is, transmitting
@@ -7927,8 +7950,9 @@ export class LeverActionAfterEvent extends BlockEvent {
7927
7950
  * Manages callbacks that are connected to lever moves
7928
7951
  * (activates or deactivates).
7929
7952
  */
7953
+ // @ts-ignore Class inheritance allowed for native defined classes
7930
7954
  export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
7931
- protected constructor();
7955
+ private constructor();
7932
7956
  }
7933
7957
 
7934
7958
  /**
@@ -7937,7 +7961,7 @@ export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
7937
7961
  * messages from client to server.
7938
7962
  */
7939
7963
  export class MessageReceiveAfterEvent {
7940
- protected constructor();
7964
+ private constructor();
7941
7965
  readonly id: string;
7942
7966
  readonly message: string;
7943
7967
  readonly player: Player;
@@ -7950,7 +7974,7 @@ export class MessageReceiveAfterEvent {
7950
7974
  * Education Edition block types.
7951
7975
  */
7952
7976
  export class MinecraftBlockTypes {
7953
- protected constructor();
7977
+ private constructor();
7954
7978
  /**
7955
7979
  * @remarks
7956
7980
  * Represents an acacia button within Minecraft.
@@ -12461,7 +12485,7 @@ export class MinecraftBlockTypes {
12461
12485
  * A collection of default Minecraft dimension types.
12462
12486
  */
12463
12487
  export class MinecraftDimensionTypes {
12464
- protected constructor();
12488
+ private constructor();
12465
12489
  /**
12466
12490
  * @remarks
12467
12491
  * The Nether is a collection of biomes separate from the
@@ -12499,10 +12523,9 @@ export class MinecraftDimensionTypes {
12499
12523
 
12500
12524
  /**
12501
12525
  * @beta
12502
- * Returns available installed effect types within Minecraft.
12503
12526
  */
12504
12527
  export class MinecraftEffectTypes {
12505
- protected constructor();
12528
+ private constructor();
12506
12529
  static readonly absorption: EffectType;
12507
12530
  static readonly badOmen: EffectType;
12508
12531
  static readonly blindness: EffectType;
@@ -12540,7 +12563,7 @@ export class MinecraftEffectTypes {
12540
12563
  * @beta
12541
12564
  */
12542
12565
  export class MinecraftEntityTypes {
12543
- protected constructor();
12566
+ private constructor();
12544
12567
  static readonly agent: EntityType;
12545
12568
  static readonly allay: EntityType;
12546
12569
  static readonly areaEffectCloud: EntityType;
@@ -12663,7 +12686,7 @@ export class MinecraftEntityTypes {
12663
12686
  * Education Edition block types.
12664
12687
  */
12665
12688
  export class MinecraftItemTypes {
12666
- protected constructor();
12689
+ private constructor();
12667
12690
  static readonly acaciaBoat: ItemType;
12668
12691
  /**
12669
12692
  * @remarks
@@ -16430,7 +16453,7 @@ export class MolangVariableMap {
16430
16453
  * navigation.
16431
16454
  */
16432
16455
  export class NavigationResult {
16433
- protected constructor();
16456
+ private constructor();
16434
16457
  /**
16435
16458
  * @remarks
16436
16459
  * Whether the navigation result contains a full path,
@@ -16451,8 +16474,9 @@ export class NavigationResult {
16451
16474
  * Contains information related to changes to a piston
16452
16475
  * expanding or retracting.
16453
16476
  */
16477
+ // @ts-ignore Class inheritance allowed for native defined classes
16454
16478
  export class PistonActivateAfterEvent extends BlockEvent {
16455
- protected constructor();
16479
+ private constructor();
16456
16480
  /**
16457
16481
  * @remarks
16458
16482
  * True if the piston is the process of expanding.
@@ -16471,8 +16495,9 @@ export class PistonActivateAfterEvent extends BlockEvent {
16471
16495
  * @beta
16472
16496
  * Manages callbacks that are connected to piston activations.
16473
16497
  */
16498
+ // @ts-ignore Class inheritance allowed for native defined classes
16474
16499
  export class PistonActivateAfterEventSignal extends IPistonActivateAfterEventSignal {
16475
- protected constructor();
16500
+ private constructor();
16476
16501
  }
16477
16502
 
16478
16503
  /**
@@ -16480,8 +16505,9 @@ export class PistonActivateAfterEventSignal extends IPistonActivateAfterEventSig
16480
16505
  * Contains information related to changes before a piston
16481
16506
  * expands or retracts.
16482
16507
  */
16508
+ // @ts-ignore Class inheritance allowed for native defined classes
16483
16509
  export class PistonActivateBeforeEvent extends BlockEvent {
16484
- protected constructor();
16510
+ private constructor();
16485
16511
  /**
16486
16512
  * @remarks
16487
16513
  * If this is set to true within an event handler, the piston
@@ -16508,15 +16534,17 @@ export class PistonActivateBeforeEvent extends BlockEvent {
16508
16534
  * Manages callbacks that are connected to an event that fires
16509
16535
  * before a piston is activated.
16510
16536
  */
16537
+ // @ts-ignore Class inheritance allowed for native defined classes
16511
16538
  export class PistonActivateBeforeEventSignal extends IPistonActivateBeforeEventSignal {
16512
- protected constructor();
16539
+ private constructor();
16513
16540
  }
16514
16541
 
16515
16542
  /**
16516
16543
  * Represents a player within the world.
16517
16544
  */
16545
+ // @ts-ignore Class inheritance allowed for native defined classes
16518
16546
  export class Player extends Entity {
16519
- protected constructor();
16547
+ private constructor();
16520
16548
  /**
16521
16549
  * @beta
16522
16550
  * @remarks
@@ -16658,7 +16686,6 @@ export class Player extends Entity {
16658
16686
  */
16659
16687
  isOp(): boolean;
16660
16688
  /**
16661
- * @beta
16662
16689
  * @remarks
16663
16690
  * Plays a sound that only this particular player can hear.
16664
16691
  *
@@ -16693,7 +16720,6 @@ export class Player extends Entity {
16693
16720
  */
16694
16721
  resetLevel(): void;
16695
16722
  /**
16696
- * @beta
16697
16723
  * @remarks
16698
16724
  * Sends a message to the player.
16699
16725
  *
@@ -16705,33 +16731,29 @@ export class Player extends Entity {
16705
16731
  * is provided to `score`.
16706
16732
  * @example nestedTranslation.ts
16707
16733
  * ```typescript
16708
- * // Displays "Apple or Coal"
16709
- * let rawMessage = {
16710
- * translate: "accessibility.list.or.two",
16711
- * with: { rawtext: [{ translate: "item.apple.name" }, { translate: "item.coal.name" }] },
16712
- * };
16713
- * player.sendMessage(rawMessage);
16714
- *
16734
+ * // Displays "Apple or Coal"
16735
+ * let rawMessage = {
16736
+ * translate: "accessibility.list.or.two",
16737
+ * with: { rawtext: [{ translate: "item.apple.name" }, { translate: "item.coal.name" }] },
16738
+ * };
16739
+ * player.sendMessage(rawMessage);
16715
16740
  * ```
16716
16741
  * @example scoreWildcard.ts
16717
16742
  * ```typescript
16718
- * // Displays the player's score for objective "obj". Each player will see their own score.
16719
- * const rawMessage = { score: { name: "*", objective: "obj" } };
16720
- * world.sendMessage(rawMessage);
16721
- *
16743
+ * // Displays the player's score for objective "obj". Each player will see their own score.
16744
+ * const rawMessage = { score: { name: "*", objective: "obj" } };
16745
+ * world.sendMessage(rawMessage);
16722
16746
  * ```
16723
16747
  * @example simpleString.ts
16724
16748
  * ```typescript
16725
- * // Displays "Hello, world!"
16726
- * world.sendMessage("Hello, world!");
16727
- *
16749
+ * // Displays "Hello, world!"
16750
+ * world.sendMessage("Hello, world!");
16728
16751
  * ```
16729
16752
  * @example translation.ts
16730
16753
  * ```typescript
16731
- * // Displays "First or Second"
16732
- * const rawMessage = { translate: "accessibility.list.or.two", with: ["First", "Second"] };
16733
- * player.sendMessage(rawMessage);
16734
- *
16754
+ * // Displays "First or Second"
16755
+ * const rawMessage = { translate: "accessibility.list.or.two", with: ["First", "Second"] };
16756
+ * player.sendMessage(rawMessage);
16735
16757
  * ```
16736
16758
  */
16737
16759
  sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
@@ -16788,7 +16810,7 @@ export class Player extends Entity {
16788
16810
  * statements, Array.from(iterator), and more.
16789
16811
  */
16790
16812
  export class PlayerIterator implements Iterable<Player> {
16791
- protected constructor();
16813
+ private constructor();
16792
16814
  /**
16793
16815
  * @remarks
16794
16816
  * This function can't be called in read-only mode.
@@ -16815,7 +16837,7 @@ export class PlayerIterator implements Iterable<Player> {
16815
16837
  * within the game.
16816
16838
  */
16817
16839
  export class PlayerJoinAfterEvent {
16818
- protected constructor();
16840
+ private constructor();
16819
16841
  /**
16820
16842
  * @remarks
16821
16843
  * Opaque string identifier of the player that joined the game.
@@ -16835,8 +16857,9 @@ export class PlayerJoinAfterEvent {
16835
16857
  * Manages callbacks that are connected to a player joining the
16836
16858
  * world.
16837
16859
  */
16860
+ // @ts-ignore Class inheritance allowed for native defined classes
16838
16861
  export class PlayerJoinAfterEventSignal extends IPlayerJoinAfterEventSignal {
16839
- protected constructor();
16862
+ private constructor();
16840
16863
  }
16841
16864
 
16842
16865
  /**
@@ -16845,7 +16868,7 @@ export class PlayerJoinAfterEventSignal extends IPlayerJoinAfterEventSignal {
16845
16868
  * world.
16846
16869
  */
16847
16870
  export class PlayerLeaveAfterEvent {
16848
- protected constructor();
16871
+ private constructor();
16849
16872
  /**
16850
16873
  * @remarks
16851
16874
  * Opaque string identifier of the player that has left the
@@ -16866,8 +16889,9 @@ export class PlayerLeaveAfterEvent {
16866
16889
  * Manages callbacks that are connected to a player leaving the
16867
16890
  * world.
16868
16891
  */
16892
+ // @ts-ignore Class inheritance allowed for native defined classes
16869
16893
  export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
16870
- protected constructor();
16894
+ private constructor();
16871
16895
  }
16872
16896
 
16873
16897
  /**
@@ -16876,7 +16900,7 @@ export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
16876
16900
  * spawning.
16877
16901
  */
16878
16902
  export class PlayerSpawnAfterEvent {
16879
- protected constructor();
16903
+ private constructor();
16880
16904
  /**
16881
16905
  * @remarks
16882
16906
  * If true, this is the initial spawn of a player after joining
@@ -16901,8 +16925,9 @@ export class PlayerSpawnAfterEvent {
16901
16925
  * Registers an event when a player is spawned (or re-spawned
16902
16926
  * after death) and fully ready within the world.
16903
16927
  */
16928
+ // @ts-ignore Class inheritance allowed for native defined classes
16904
16929
  export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal {
16905
- protected constructor();
16930
+ private constructor();
16906
16931
  }
16907
16932
 
16908
16933
  /**
@@ -16911,7 +16936,7 @@ export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal {
16911
16936
  * entity or block.
16912
16937
  */
16913
16938
  export class ProjectileHitAfterEvent {
16914
- protected constructor();
16939
+ private constructor();
16915
16940
  /**
16916
16941
  * @remarks
16917
16942
  * Dimension where this projectile hit took place.
@@ -16967,8 +16992,9 @@ export class ProjectileHitAfterEvent {
16967
16992
  * Manages callbacks that are connected to when a projectile
16968
16993
  * hits an entity or block.
16969
16994
  */
16995
+ // @ts-ignore Class inheritance allowed for native defined classes
16970
16996
  export class ProjectileHitAfterEventSignal extends IProjectileHitAfterEventSignal {
16971
- protected constructor();
16997
+ private constructor();
16972
16998
  }
16973
16999
 
16974
17000
  /**
@@ -16978,7 +17004,7 @@ export class ProjectileHitAfterEventSignal extends IProjectileHitAfterEventSigna
16978
17004
  * used and stored within Minecraft.
16979
17005
  */
16980
17006
  export class PropertyRegistry {
16981
- protected constructor();
17007
+ private constructor();
16982
17008
  /**
16983
17009
  * @remarks
16984
17010
  * Registers a dynamic property for a particular entity type
@@ -17008,7 +17034,7 @@ export class PropertyRegistry {
17008
17034
  * Contains objectives and participants for the scoreboard.
17009
17035
  */
17010
17036
  export class Scoreboard {
17011
- protected constructor();
17037
+ private constructor();
17012
17038
  /**
17013
17039
  * @remarks
17014
17040
  * Adds a new objective to the scoreboard.
@@ -17113,7 +17139,7 @@ export class Scoreboard {
17113
17139
  * Contains an identity of the scoreboard item.
17114
17140
  */
17115
17141
  export class ScoreboardIdentity {
17116
- protected constructor();
17142
+ private constructor();
17117
17143
  /**
17118
17144
  * @remarks
17119
17145
  * Returns the player-visible name of this identity.
@@ -17184,7 +17210,7 @@ export class ScoreboardIdentity {
17184
17210
  * Contains objectives and participants for the scoreboard.
17185
17211
  */
17186
17212
  export class ScoreboardObjective {
17187
- protected constructor();
17213
+ private constructor();
17188
17214
  /**
17189
17215
  * @remarks
17190
17216
  * Returns the player-visible name of this scoreboard
@@ -17257,7 +17283,7 @@ export class ScoreboardObjective {
17257
17283
  * respective score.
17258
17284
  */
17259
17285
  export class ScoreboardScoreInfo {
17260
- protected constructor();
17286
+ private constructor();
17261
17287
  /**
17262
17288
  * @remarks
17263
17289
  * This scoreboard participant for this score.
@@ -17278,11 +17304,9 @@ export class ScoreboardScoreInfo {
17278
17304
  * showing up on the screen.
17279
17305
  */
17280
17306
  export class ScreenDisplay {
17281
- protected constructor();
17307
+ private constructor();
17282
17308
  /**
17283
17309
  * @remarks
17284
- * Clears the title and subtitle, if currently displayed.
17285
- *
17286
17310
  * This function can't be called in read-only mode.
17287
17311
  *
17288
17312
  * @throws This function can throw errors.
@@ -17301,8 +17325,9 @@ export class ScreenDisplay {
17301
17325
  /**
17302
17326
  * @remarks
17303
17327
  * Will cause a title to show up on the player's on screen
17304
- * display. You can optionally specify an additional subtitle
17305
- * as well as fade in, stay and fade out times.
17328
+ * display. Will clear the title if set to empty string. You
17329
+ * can optionally specify an additional subtitle as well as
17330
+ * fade in, stay and fade out times.
17306
17331
  *
17307
17332
  * This function can't be called in read-only mode.
17308
17333
  *
@@ -17327,7 +17352,7 @@ export class ScreenDisplay {
17327
17352
  * invocation.
17328
17353
  */
17329
17354
  export class ScriptEventCommandMessageAfterEvent {
17330
- protected constructor();
17355
+ private constructor();
17331
17356
  /**
17332
17357
  * @remarks
17333
17358
  * Identifier of this ScriptEvent command message.
@@ -17375,8 +17400,9 @@ export class ScriptEventCommandMessageAfterEvent {
17375
17400
  * Allows for registering an event handler that responds to
17376
17401
  * inbound /scriptevent commands.
17377
17402
  */
17403
+ // @ts-ignore Class inheritance allowed for native defined classes
17378
17404
  export class ScriptEventCommandMessageAfterEventSignal extends IScriptEventCommandMessageAfterEventSignal {
17379
- protected constructor();
17405
+ private constructor();
17380
17406
  }
17381
17407
 
17382
17408
  /**
@@ -17385,7 +17411,7 @@ export class ScriptEventCommandMessageAfterEventSignal extends IScriptEventComma
17385
17411
  * entity.
17386
17412
  */
17387
17413
  export class Seat {
17388
- protected constructor();
17414
+ private constructor();
17389
17415
  /**
17390
17416
  * @remarks
17391
17417
  * If specified, contains a forced rotation that the riders in
@@ -17421,17 +17447,17 @@ export class Seat {
17421
17447
  * event is not currently fully implemented, and should not be
17422
17448
  * used.
17423
17449
  */
17450
+ // @ts-ignore Class inheritance allowed for native defined classes
17424
17451
  export class ServerMessageAfterEventSignal extends IServerMessageAfterEventSignal {
17425
- protected constructor();
17452
+ private constructor();
17426
17453
  }
17427
17454
 
17428
17455
  /**
17429
17456
  * A class that provides system-level events and functions.
17430
17457
  */
17431
17458
  export class System {
17432
- protected constructor();
17459
+ private constructor();
17433
17460
  /**
17434
- * @beta
17435
17461
  * @remarks
17436
17462
  * Represents the current world tick of the server.
17437
17463
  *
@@ -17446,7 +17472,6 @@ export class System {
17446
17472
  */
17447
17473
  readonly events: SystemEvents;
17448
17474
  /**
17449
- * @beta
17450
17475
  * @remarks
17451
17476
  * Cancels the execution of a function run that was previously
17452
17477
  * scheduled via the `run` function.
@@ -17468,7 +17493,6 @@ export class System {
17468
17493
  */
17469
17494
  run(callback: () => void): number;
17470
17495
  /**
17471
- * @beta
17472
17496
  * @remarks
17473
17497
  * Runs a set of code on an interval.
17474
17498
  *
@@ -17483,7 +17507,6 @@ export class System {
17483
17507
  */
17484
17508
  runInterval(callback: () => void, tickInterval?: number): number;
17485
17509
  /**
17486
- * @beta
17487
17510
  * @remarks
17488
17511
  * Runs a set of code at a future time specified by tickDelay.
17489
17512
  *
@@ -17505,7 +17528,7 @@ export class System {
17505
17528
  * of the Minecraft add-on system.
17506
17529
  */
17507
17530
  export class SystemEvents {
17508
- protected constructor();
17531
+ private constructor();
17509
17532
  /**
17510
17533
  * @remarks
17511
17534
  * This event fires before a the performance watchdog
@@ -17728,7 +17751,7 @@ export class Vector {
17728
17751
  * termination.
17729
17752
  */
17730
17753
  export class WatchdogTerminateBeforeEvent {
17731
- protected constructor();
17754
+ private constructor();
17732
17755
  /**
17733
17756
  * @remarks
17734
17757
  * If set to true, cancels the termination of the script
@@ -17753,8 +17776,9 @@ export class WatchdogTerminateBeforeEvent {
17753
17776
  * be called when a script runtime is being terminated due to a
17754
17777
  * violation of the performance watchdog system.
17755
17778
  */
17779
+ // @ts-ignore Class inheritance allowed for native defined classes
17756
17780
  export class WatchdogTerminateBeforeEventSignal extends IWatchdogTerminateBeforeEventSignal {
17757
- protected constructor();
17781
+ private constructor();
17758
17782
  }
17759
17783
 
17760
17784
  /**
@@ -17763,7 +17787,7 @@ export class WatchdogTerminateBeforeEventSignal extends IWatchdogTerminateBefore
17763
17787
  * environment.
17764
17788
  */
17765
17789
  export class WeatherChangeAfterEvent {
17766
- protected constructor();
17790
+ private constructor();
17767
17791
  /**
17768
17792
  * @remarks
17769
17793
  * Dimension in which the weather has changed.
@@ -17788,8 +17812,9 @@ export class WeatherChangeAfterEvent {
17788
17812
  * @beta
17789
17813
  * Manages callbacks that are connected to weather changing.
17790
17814
  */
17815
+ // @ts-ignore Class inheritance allowed for native defined classes
17791
17816
  export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSignal {
17792
- protected constructor();
17817
+ private constructor();
17793
17818
  }
17794
17819
 
17795
17820
  /**
@@ -17797,7 +17822,7 @@ export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSigna
17797
17822
  * dimensions and the environment of Minecraft.
17798
17823
  */
17799
17824
  export class World {
17800
- protected constructor();
17825
+ private constructor();
17801
17826
  /**
17802
17827
  * @beta
17803
17828
  * @remarks
@@ -17896,7 +17921,6 @@ export class World {
17896
17921
  */
17897
17922
  getEntity(id: string): Entity | undefined;
17898
17923
  /**
17899
- * @beta
17900
17924
  * @remarks
17901
17925
  * Returns a set of players based on a set of conditions
17902
17926
  * defined via the EntityQueryOptions set of filter criteria.
@@ -17917,7 +17941,6 @@ export class World {
17917
17941
  */
17918
17942
  getTime(): number;
17919
17943
  /**
17920
- * @beta
17921
17944
  * @remarks
17922
17945
  * Plays a particular music track for all players.
17923
17946
  *
@@ -17927,7 +17950,6 @@ export class World {
17927
17950
  */
17928
17951
  playMusic(trackID: string, musicOptions?: MusicOptions): void;
17929
17952
  /**
17930
- * @beta
17931
17953
  * @remarks
17932
17954
  * Plays a sound for all players.
17933
17955
  *
@@ -17937,7 +17959,6 @@ export class World {
17937
17959
  */
17938
17960
  playSound(soundID: string, location: Vector3, soundOptions?: WorldSoundOptions): void;
17939
17961
  /**
17940
- * @beta
17941
17962
  * @remarks
17942
17963
  * Queues an additional music track for players. If a track is
17943
17964
  * not playing, a music track will play.
@@ -17958,7 +17979,6 @@ export class World {
17958
17979
  */
17959
17980
  removeDynamicProperty(identifier: string): boolean;
17960
17981
  /**
17961
- * @beta
17962
17982
  * @remarks
17963
17983
  * Sends a message to all players.
17964
17984
  *
@@ -17970,33 +17990,29 @@ export class World {
17970
17990
  * is provided to `score`.
17971
17991
  * @example nestedTranslation.ts
17972
17992
  * ```typescript
17973
- * // Displays "Apple or Coal"
17974
- * let rawMessage = {
17975
- * translate: "accessibility.list.or.two",
17976
- * with: { rawtext: [{ translate: "item.apple.name" }, { translate: "item.coal.name" }] },
17977
- * };
17978
- * world.sendMessage(rawMessage);
17979
- *
17993
+ * // Displays "Apple or Coal"
17994
+ * let rawMessage = {
17995
+ * translate: "accessibility.list.or.two",
17996
+ * with: { rawtext: [{ translate: "item.apple.name" }, { translate: "item.coal.name" }] },
17997
+ * };
17998
+ * world.sendMessage(rawMessage);
17980
17999
  * ```
17981
18000
  * @example scoreWildcard.ts
17982
18001
  * ```typescript
17983
- * // Displays the player's score for objective "obj". Each player will see their own score.
17984
- * const rawMessage = { score: { name: "*", objective: "obj" } };
17985
- * world.sendMessage(rawMessage);
17986
- *
18002
+ * // Displays the player's score for objective "obj". Each player will see their own score.
18003
+ * const rawMessage = { score: { name: "*", objective: "obj" } };
18004
+ * world.sendMessage(rawMessage);
17987
18005
  * ```
17988
18006
  * @example simpleString.ts
17989
18007
  * ```typescript
17990
- * // Displays "Hello, world!"
17991
- * world.sendMessage("Hello, world!");
17992
- *
18008
+ * // Displays "Hello, world!"
18009
+ * world.sendMessage("Hello, world!");
17993
18010
  * ```
17994
18011
  * @example translation.ts
17995
18012
  * ```typescript
17996
- * // Displays "First or Second"
17997
- * const rawMessage = { translate: "accessibility.list.or.two", with: ["First", "Second"] };
17998
- * world.sendMessage(rawMessage);
17999
- *
18013
+ * // Displays "First or Second"
18014
+ * const rawMessage = { translate: "accessibility.list.or.two", with: ["First", "Second"] };
18015
+ * world.sendMessage(rawMessage);
18000
18016
  * ```
18001
18017
  */
18002
18018
  sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
@@ -18037,7 +18053,6 @@ export class World {
18037
18053
  */
18038
18054
  setTime(timeOfDay: number): void;
18039
18055
  /**
18040
- * @beta
18041
18056
  * @remarks
18042
18057
  * Stops any music tracks from playing.
18043
18058
  *
@@ -18056,7 +18071,7 @@ export class World {
18056
18071
  * Initialize execution.
18057
18072
  */
18058
18073
  export class WorldInitializeAfterEvent {
18059
- protected constructor();
18074
+ private constructor();
18060
18075
  /**
18061
18076
  * @remarks
18062
18077
  * Contains methods for scripts to initialize and register
@@ -18064,18 +18079,17 @@ export class WorldInitializeAfterEvent {
18064
18079
  *
18065
18080
  * @example propertyRegistration.js
18066
18081
  * ```typescript
18067
- * import { DynamicPropertiesDefinition, MinecraftEntityTypes, world } from "@minecraft/server";
18068
- *
18069
- * world.afterEvents.worldInitialize.subscribe((e) => {
18070
- * let def = new DynamicPropertiesDefinition();
18082
+ * import { DynamicPropertiesDefinition, MinecraftEntityTypes, world } from "@minecraft/server";
18071
18083
  *
18072
- * def.defineNumber("rpgStrength");
18073
- * def.defineString("rpgRole", 16);
18074
- * def.defineBoolean("rpgIsHero");
18084
+ * world.afterEvents.worldInitialize.subscribe((e) => {
18085
+ * let def = new DynamicPropertiesDefinition();
18075
18086
  *
18076
- * e.propertyRegistry.registerEntityTypeDynamicProperties(def, MinecraftEntityTypes.skeleton);
18077
- * });
18087
+ * def.defineNumber("rpgStrength");
18088
+ * def.defineString("rpgRole", 16);
18089
+ * def.defineBoolean("rpgIsHero");
18078
18090
  *
18091
+ * e.propertyRegistry.registerEntityTypeDynamicProperties(def, MinecraftEntityTypes.skeleton);
18092
+ * });
18079
18093
  * ```
18080
18094
  */
18081
18095
  readonly propertyRegistry: PropertyRegistry;
@@ -18088,8 +18102,9 @@ export class WorldInitializeAfterEvent {
18088
18102
  * may run multiple times within a session in the case that the
18089
18103
  * /reload command is used.
18090
18104
  */
18105
+ // @ts-ignore Class inheritance allowed for native defined classes
18091
18106
  export class WorldInitializeAfterEventSignal extends IWorldInitializeAfterEventSignal {
18092
- protected constructor();
18107
+ private constructor();
18093
18108
  }
18094
18109
 
18095
18110
  /**
@@ -18304,7 +18319,6 @@ export interface CompoundBlockVolumeItem {
18304
18319
  }
18305
18320
 
18306
18321
  /**
18307
- * @beta
18308
18322
  * Additional options for when damage has been applied via a
18309
18323
  * projectile.
18310
18324
  */
@@ -18324,7 +18338,6 @@ export interface EntityApplyDamageByProjectileOptions {
18324
18338
  }
18325
18339
 
18326
18340
  /**
18327
- * @beta
18328
18341
  * Additional descriptions and metadata for a damage event.
18329
18342
  */
18330
18343
  export interface EntityApplyDamageOptions {
@@ -18454,7 +18467,6 @@ export interface EntityHitInformation {
18454
18467
  }
18455
18468
 
18456
18469
  /**
18457
- * @beta
18458
18470
  * Contains options for selecting entities within an area.
18459
18471
  */
18460
18472
  export interface EntityQueryOptions {
@@ -18625,7 +18637,6 @@ export interface EntityQueryOptions {
18625
18637
  }
18626
18638
 
18627
18639
  /**
18628
- * @beta
18629
18640
  * Contains additional options for filtering players based on
18630
18641
  * their score for an objective.
18631
18642
  */
@@ -18707,7 +18718,6 @@ export interface ExplosionOptions {
18707
18718
  }
18708
18719
 
18709
18720
  /**
18710
- * @beta
18711
18721
  * Additional configuration options for {@link
18712
18722
  * World.playMusic}/{@link World.queueMusic} methods.
18713
18723
  */
@@ -18786,7 +18796,6 @@ export interface PlayAnimationOptions {
18786
18796
  }
18787
18797
 
18788
18798
  /**
18789
- * @beta
18790
18799
  * Additional options for how a sound plays for a player.
18791
18800
  */
18792
18801
  export interface PlayerSoundOptions {
@@ -18811,9 +18820,6 @@ export interface PlayerSoundOptions {
18811
18820
  volume?: number;
18812
18821
  }
18813
18822
 
18814
- /**
18815
- * @beta
18816
- */
18817
18823
  export interface RawMessage {
18818
18824
  rawtext?: RawMessage[];
18819
18825
  score?: RawMessageScore;
@@ -18823,7 +18829,6 @@ export interface RawMessage {
18823
18829
  }
18824
18830
 
18825
18831
  /**
18826
- * @beta
18827
18832
  * Provides a description of a score token to use within a raw
18828
18833
  * message.
18829
18834
  */
@@ -18935,23 +18940,8 @@ export interface TeleportOptions {
18935
18940
  * optional subtitle.
18936
18941
  */
18937
18942
  export interface TitleDisplayOptions {
18938
- /**
18939
- * @remarks
18940
- * Fade-in time for the title and subtitle, in seconds.
18941
- *
18942
- */
18943
18943
  fadeInSeconds: number;
18944
- /**
18945
- * @remarks
18946
- * Fade-out time for the title and subtitle, in seconds.
18947
- *
18948
- */
18949
18944
  fadeOutSeconds: number;
18950
- /**
18951
- * @remarks
18952
- * Amount of time for the title and subtitle to stay in place.
18953
- *
18954
- */
18955
18945
  staySeconds: number;
18956
18946
  /**
18957
18947
  * @remarks
@@ -18981,7 +18971,6 @@ export interface Vector2 {
18981
18971
  }
18982
18972
 
18983
18973
  /**
18984
- * @beta
18985
18974
  * Contains a description of a vector.
18986
18975
  */
18987
18976
  export interface Vector3 {
@@ -19006,7 +18995,6 @@ export interface Vector3 {
19006
18995
  }
19007
18996
 
19008
18997
  /**
19009
- * @beta
19010
18998
  * Contains additional options for a world-level playSound
19011
18999
  * occurrence.
19012
19000
  */
@@ -19028,22 +19016,25 @@ export interface WorldSoundOptions {
19028
19016
  /**
19029
19017
  * @beta
19030
19018
  */
19019
+ // @ts-ignore Class inheritance allowed for native defined classes
19031
19020
  export class CommandError extends Error {
19032
- protected constructor();
19021
+ private constructor();
19033
19022
  }
19034
19023
 
19035
19024
  /**
19036
19025
  * @beta
19037
19026
  */
19027
+ // @ts-ignore Class inheritance allowed for native defined classes
19038
19028
  export class PositionInUnloadedChunkError extends Error {
19039
- protected constructor();
19029
+ private constructor();
19040
19030
  }
19041
19031
 
19042
19032
  /**
19043
19033
  * @beta
19044
19034
  */
19035
+ // @ts-ignore Class inheritance allowed for native defined classes
19045
19036
  export class PositionOutOfWorldBoundariesError extends Error {
19046
- protected constructor();
19037
+ private constructor();
19047
19038
  }
19048
19039
 
19049
19040
  /**