@minecraft/server 1.4.0-beta.1.20.10-preview.21 → 1.5.0-beta.1.20.10-preview.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +740 -527
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  * ```json
17
17
  * {
18
18
  * "module_name": "@minecraft/server",
19
- * "version": "1.4.0-internal.1.20.10-preview.21"
19
+ * "version": "1.5.0-internal.1.20.10-preview.23"
20
20
  * }
21
21
  * ```
22
22
  *
@@ -42,43 +42,43 @@ export enum CompoundBlockVolumeAction {
42
42
  * @beta
43
43
  */
44
44
  export enum Direction {
45
- down = 'down',
46
- east = 'east',
47
- north = 'north',
48
- south = 'south',
49
- up = 'up',
50
- west = 'west',
45
+ Down = 'Down',
46
+ East = 'East',
47
+ North = 'North',
48
+ South = 'South',
49
+ Up = 'Up',
50
+ West = 'West',
51
51
  }
52
52
 
53
53
  /**
54
54
  * @beta
55
55
  */
56
56
  export enum DisplaySlotId {
57
- belowname = 'belowname',
58
- list = 'list',
59
- sidebar = 'sidebar',
57
+ BelowName = 'BelowName',
58
+ List = 'List',
59
+ Sidebar = 'Sidebar',
60
60
  }
61
61
 
62
62
  /**
63
63
  * @beta
64
64
  */
65
65
  export enum DyeColor {
66
- black = 'black',
67
- blue = 'blue',
68
- brown = 'brown',
69
- cyan = 'cyan',
70
- gray = 'gray',
71
- green = 'green',
72
- lightBlue = 'lightBlue',
73
- lime = 'lime',
74
- magenta = 'magenta',
75
- orange = 'orange',
76
- pink = 'pink',
77
- purple = 'purple',
78
- red = 'red',
79
- silver = 'silver',
80
- white = 'white',
81
- yellow = 'yellow',
66
+ Black = 'Black',
67
+ Blue = 'Blue',
68
+ Brown = 'Brown',
69
+ Cyan = 'Cyan',
70
+ Gray = 'Gray',
71
+ Green = 'Green',
72
+ LightBlue = 'LightBlue',
73
+ Lime = 'Lime',
74
+ Magenta = 'Magenta',
75
+ Orange = 'Orange',
76
+ Pink = 'Pink',
77
+ Purple = 'Purple',
78
+ Red = 'Red',
79
+ Silver = 'Silver',
80
+ White = 'White',
81
+ Yellow = 'Yellow',
82
82
  }
83
83
 
84
84
  /**
@@ -122,8 +122,8 @@ export enum EntityDamageCause {
122
122
  * @beta
123
123
  */
124
124
  export enum EntityLifetimeState {
125
- loaded = 'loaded',
126
- unloaded = 'unloaded',
125
+ Loaded = 'Loaded',
126
+ Unloaded = 'Unloaded',
127
127
  }
128
128
 
129
129
  /**
@@ -150,28 +150,28 @@ export enum FluidType {
150
150
  * Represents lava as a type of fluid.
151
151
  *
152
152
  */
153
- lava = 'lava',
153
+ Lava = 'Lava',
154
154
  /**
155
155
  * @beta
156
156
  * @remarks
157
157
  * Represents a potion as a type of fluid.
158
158
  *
159
159
  */
160
- potion = 'potion',
160
+ Potion = 'Potion',
161
161
  /**
162
162
  * @beta
163
163
  * @remarks
164
164
  * Represents powder snow as a type of fluid.
165
165
  *
166
166
  */
167
- powderSnow = 'powderSnow',
167
+ PowderSnow = 'PowderSnow',
168
168
  /**
169
169
  * @beta
170
170
  * @remarks
171
171
  * Represents water as a type of fluida.
172
172
  *
173
173
  */
174
- water = 'water',
174
+ Water = 'Water',
175
175
  }
176
176
 
177
177
  /**
@@ -236,7 +236,7 @@ export enum ObjectiveSortOrder {
236
236
  * A-Z) order.
237
237
  *
238
238
  */
239
- ascending = 0,
239
+ Ascending = 0,
240
240
  /**
241
241
  * @beta
242
242
  * @remarks
@@ -244,7 +244,7 @@ export enum ObjectiveSortOrder {
244
244
  * Z-A) order.
245
245
  *
246
246
  */
247
- descending = 1,
247
+ Descending = 1,
248
248
  }
249
249
 
250
250
  /**
@@ -258,7 +258,7 @@ export enum ScoreboardIdentityType {
258
258
  * This scoreboard participant is tied to an entity.
259
259
  *
260
260
  */
261
- entity = 'entity',
261
+ Entity = 'Entity',
262
262
  /**
263
263
  * @beta
264
264
  * @remarks
@@ -267,24 +267,24 @@ export enum ScoreboardIdentityType {
267
267
  * as abstract progress.
268
268
  *
269
269
  */
270
- fakePlayer = 'fakePlayer',
270
+ FakePlayer = 'FakePlayer',
271
271
  /**
272
272
  * @beta
273
273
  * @remarks
274
274
  * This scoreboard participant is tied to a player.
275
275
  *
276
276
  */
277
- player = 'player',
277
+ Player = 'Player',
278
278
  }
279
279
 
280
280
  /**
281
281
  * @beta
282
282
  */
283
283
  export enum ScriptEventSource {
284
- block = 'block',
285
- entity = 'entity',
286
- npcDialogue = 'npcDialogue',
287
- server = 'server',
284
+ Block = 'Block',
285
+ Entity = 'Entity',
286
+ NPCDialogue = 'NPCDialogue',
287
+ Server = 'Server',
288
288
  }
289
289
 
290
290
  /**
@@ -298,14 +298,14 @@ export enum SignSide {
298
298
  * The back of the sign.
299
299
  *
300
300
  */
301
- back = 'back',
301
+ Back = 'Back',
302
302
  /**
303
303
  * @beta
304
304
  * @remarks
305
305
  * The front of the sign.
306
306
  *
307
307
  */
308
- front = 'front',
308
+ Front = 'Front',
309
309
  }
310
310
 
311
311
  /**
@@ -333,7 +333,7 @@ export enum WatchdogTerminateReason {
333
333
  * non-responsiveness from script (a hang or infinite loop).
334
334
  *
335
335
  */
336
- hang = 'hang',
336
+ Hang = 'Hang',
337
337
  /**
338
338
  * @beta
339
339
  * @remarks
@@ -342,16 +342,16 @@ export enum WatchdogTerminateReason {
342
342
  * function calls.
343
343
  *
344
344
  */
345
- stackOverflow = 'stackOverflow',
345
+ StackOverflow = 'StackOverflow',
346
346
  }
347
347
 
348
348
  /**
349
349
  * @beta
350
350
  */
351
351
  export enum WeatherType {
352
- clear = 'clear',
353
- rain = 'rain',
354
- thunder = 'thunder',
352
+ Clear = 'Clear',
353
+ Rain = 'Rain',
354
+ Thunder = 'Thunder',
355
355
  }
356
356
 
357
357
  /**
@@ -362,7 +362,7 @@ export enum WeatherType {
362
362
  * updated in version 1.17.10.21.
363
363
  */
364
364
  export class Block {
365
- protected constructor();
365
+ private constructor();
366
366
  /**
367
367
  * @remarks
368
368
  * Returns the dimension that the block is within.
@@ -644,8 +644,9 @@ export class BlockAreaSize {
644
644
  * Contains information regarding an event where a player
645
645
  * breaks a block.
646
646
  */
647
+ // @ts-ignore Class inheritance allowed for native defined classes
647
648
  export class BlockBreakAfterEvent extends BlockEvent {
648
- protected constructor();
649
+ private constructor();
649
650
  /**
650
651
  * @remarks
651
652
  * Returns permutation information about this block before it
@@ -666,17 +667,20 @@ export class BlockBreakAfterEvent extends BlockEvent {
666
667
  * Manages callbacks that are connected to when a block is
667
668
  * broken.
668
669
  */
670
+ // @ts-ignore Class inheritance allowed for native defined classes
669
671
  export class BlockBreakAfterEventSignal extends IBlockBreakAfterEventSignal {
670
- protected constructor();
672
+ private constructor();
671
673
  }
672
674
 
673
675
  /**
674
676
  * @beta
675
677
  * Base type for components associated with blocks.
676
678
  */
679
+ // @ts-ignore Class inheritance allowed for native defined classes
677
680
  export class BlockComponent extends Component {
678
- protected constructor();
681
+ private constructor();
679
682
  /**
683
+ * @beta
680
684
  * @remarks
681
685
  * Block instance that this component pertains to.
682
686
  *
@@ -690,7 +694,7 @@ export class BlockComponent extends Component {
690
694
  * specific block.
691
695
  */
692
696
  export class BlockEvent {
693
- protected constructor();
697
+ private constructor();
694
698
  /**
695
699
  * @remarks
696
700
  * Block impacted by this event.
@@ -711,8 +715,9 @@ export class BlockEvent {
711
715
  * Contains information regarding an explosion that has
712
716
  * occurred for a specific block.
713
717
  */
718
+ // @ts-ignore Class inheritance allowed for native defined classes
714
719
  export class BlockExplodeAfterEvent extends BlockEvent {
715
- protected constructor();
720
+ private constructor();
716
721
  /**
717
722
  * @remarks
718
723
  * Description of the block that has exploded.
@@ -732,8 +737,9 @@ export class BlockExplodeAfterEvent extends BlockEvent {
732
737
  * Manages callbacks that are connected to when an explosion
733
738
  * occurs, as it impacts individual blocks.
734
739
  */
740
+ // @ts-ignore Class inheritance allowed for native defined classes
735
741
  export class BlockExplodeAfterEventSignal extends IBlockExplodeAfterEventSignal {
736
- protected constructor();
742
+ private constructor();
737
743
  }
738
744
 
739
745
  /**
@@ -741,8 +747,9 @@ export class BlockExplodeAfterEventSignal extends IBlockExplodeAfterEventSignal
741
747
  * Represents the inventory of a block in the world. Used with
742
748
  * blocks like chests.
743
749
  */
750
+ // @ts-ignore Class inheritance allowed for native defined classes
744
751
  export class BlockInventoryComponent extends BlockComponent {
745
- protected constructor();
752
+ private constructor();
746
753
  /**
747
754
  * @remarks
748
755
  * The container which holds an {@link ItemStack}.
@@ -764,8 +771,9 @@ export class BlockInventoryComponent extends BlockComponent {
764
771
  * Represents a fluid container block that currently contains
765
772
  * lava.
766
773
  */
774
+ // @ts-ignore Class inheritance allowed for native defined classes
767
775
  export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
768
- protected constructor();
776
+ private constructor();
769
777
  /**
770
778
  * @remarks
771
779
  * Identifier of this component. Should always be
@@ -780,8 +788,9 @@ export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
780
788
  * For blocks that can contain a liquid (e.g., a cauldron),
781
789
  * this is a base component for liquid containers.
782
790
  */
791
+ // @ts-ignore Class inheritance allowed for native defined classes
783
792
  export class BlockLiquidContainerComponent extends BlockComponent {
784
- protected constructor();
793
+ private constructor();
785
794
  /**
786
795
  * @remarks
787
796
  * Relative fill level of the liquid container.
@@ -790,6 +799,7 @@ export class BlockLiquidContainerComponent extends BlockComponent {
790
799
  *
791
800
  */
792
801
  fillLevel: number;
802
+ isValidLiquid(): boolean;
793
803
  }
794
804
 
795
805
  /**
@@ -811,7 +821,7 @@ export class BlockLiquidContainerComponent extends BlockComponent {
811
821
  * coordinate to the next XZ slice)
812
822
  */
813
823
  export class BlockLocationIterator implements Iterable<Vector3> {
814
- protected constructor();
824
+ private constructor();
815
825
  /**
816
826
  * @remarks
817
827
  * This function can't be called in read-only mode.
@@ -834,7 +844,7 @@ export class BlockLocationIterator implements Iterable<Vector3> {
834
844
  * Block}). This type was introduced as of version 1.17.10.21.
835
845
  */
836
846
  export class BlockPermutation {
837
- protected constructor();
847
+ private constructor();
838
848
  /**
839
849
  * @beta
840
850
  * @remarks
@@ -955,8 +965,9 @@ export class BlockPermutation {
955
965
  * When present, this block has piston-like behavior. Contains
956
966
  * additional properties for discovering block piston state.
957
967
  */
968
+ // @ts-ignore Class inheritance allowed for native defined classes
958
969
  export class BlockPistonComponent extends BlockComponent {
959
- protected constructor();
970
+ private constructor();
960
971
  /**
961
972
  * @remarks
962
973
  * Whether the piston is fully expanded.
@@ -1014,8 +1025,9 @@ export class BlockPistonComponent extends BlockComponent {
1014
1025
  * Contains information regarding an event where a player
1015
1026
  * places a block.
1016
1027
  */
1028
+ // @ts-ignore Class inheritance allowed for native defined classes
1017
1029
  export class BlockPlaceAfterEvent extends BlockEvent {
1018
- protected constructor();
1030
+ private constructor();
1019
1031
  /**
1020
1032
  * @remarks
1021
1033
  * Player that placed the block for this event.
@@ -1029,8 +1041,9 @@ export class BlockPlaceAfterEvent extends BlockEvent {
1029
1041
  * Manages callbacks that are connected to when a block is
1030
1042
  * placed.
1031
1043
  */
1044
+ // @ts-ignore Class inheritance allowed for native defined classes
1032
1045
  export class BlockPlaceAfterEventSignal extends IBlockPlaceAfterEventSignal {
1033
- protected constructor();
1046
+ private constructor();
1034
1047
  }
1035
1048
 
1036
1049
  /**
@@ -1038,8 +1051,9 @@ export class BlockPlaceAfterEventSignal extends IBlockPlaceAfterEventSignal {
1038
1051
  * Represents a fluid container block that currently contains a
1039
1052
  * potion.
1040
1053
  */
1054
+ // @ts-ignore Class inheritance allowed for native defined classes
1041
1055
  export class BlockPotionContainerComponent extends BlockLiquidContainerComponent {
1042
- protected constructor();
1056
+ private constructor();
1043
1057
  /**
1044
1058
  * @remarks
1045
1059
  * Identifier of this component. Should always be
@@ -1062,8 +1076,9 @@ export class BlockPotionContainerComponent extends BlockLiquidContainerComponent
1062
1076
  * @beta
1063
1077
  * Represents a block that can play a record.
1064
1078
  */
1079
+ // @ts-ignore Class inheritance allowed for native defined classes
1065
1080
  export class BlockRecordPlayerComponent extends BlockComponent {
1066
- protected constructor();
1081
+ private constructor();
1067
1082
  /**
1068
1083
  * @remarks
1069
1084
  * Identifier of this component. Should always be
@@ -1104,8 +1119,9 @@ export class BlockRecordPlayerComponent extends BlockComponent {
1104
1119
  * @beta
1105
1120
  * Represents a block that can display text on it.
1106
1121
  */
1122
+ // @ts-ignore Class inheritance allowed for native defined classes
1107
1123
  export class BlockSignComponent extends BlockComponent {
1108
- protected constructor();
1124
+ private constructor();
1109
1125
  /**
1110
1126
  * @remarks
1111
1127
  * Whether or not players can edit the sign. This happens if a
@@ -1233,8 +1249,9 @@ export class BlockSignComponent extends BlockComponent {
1233
1249
  * Represents a fluid container block that currently contains
1234
1250
  * snow.
1235
1251
  */
1252
+ // @ts-ignore Class inheritance allowed for native defined classes
1236
1253
  export class BlockSnowContainerComponent extends BlockLiquidContainerComponent {
1237
- protected constructor();
1254
+ private constructor();
1238
1255
  /**
1239
1256
  * @remarks
1240
1257
  * Identifier of this component. Should always be
@@ -1249,7 +1266,7 @@ export class BlockSnowContainerComponent extends BlockLiquidContainerComponent {
1249
1266
  * Enumerates all {@link BlockStateType}s.
1250
1267
  */
1251
1268
  export class BlockStates {
1252
- protected constructor();
1269
+ private constructor();
1253
1270
  /**
1254
1271
  * @remarks
1255
1272
  * Retrieves a specific block state instance.
@@ -1271,7 +1288,7 @@ export class BlockStates {
1271
1288
  * a block state.
1272
1289
  */
1273
1290
  export class BlockStateType {
1274
- protected constructor();
1291
+ private constructor();
1275
1292
  /**
1276
1293
  * @remarks
1277
1294
  * Identifier of the block property.
@@ -1294,7 +1311,7 @@ export class BlockStateType {
1294
1311
  * 1.17.10.21.
1295
1312
  */
1296
1313
  export class BlockType {
1297
- protected constructor();
1314
+ private constructor();
1298
1315
  /**
1299
1316
  * @remarks
1300
1317
  * Represents whether this type of block can be waterlogged.
@@ -1316,7 +1333,7 @@ export class BlockType {
1316
1333
  * @minecraft-server.BlockVolume} objects
1317
1334
  */
1318
1335
  export class BlockVolumeUtils {
1319
- protected constructor();
1336
+ private constructor();
1320
1337
  /**
1321
1338
  * @remarks
1322
1339
  * Check to see if the given location is directly adjacent to
@@ -1453,8 +1470,9 @@ export class BlockVolumeUtils {
1453
1470
  * Represents a fluid container block that currently contains
1454
1471
  * water.
1455
1472
  */
1473
+ // @ts-ignore Class inheritance allowed for native defined classes
1456
1474
  export class BlockWaterContainerComponent extends BlockLiquidContainerComponent {
1457
- protected constructor();
1475
+ private constructor();
1458
1476
  /**
1459
1477
  * @remarks
1460
1478
  * Identifier of this component. Should always be
@@ -1498,7 +1516,7 @@ export class BlockWaterContainerComponent extends BlockLiquidContainerComponent
1498
1516
  * @minecraft-server.BoundingBox} objects
1499
1517
  */
1500
1518
  export class BoundingBoxUtils {
1501
- protected constructor();
1519
+ private constructor();
1502
1520
  /**
1503
1521
  * @remarks
1504
1522
  * Create a validated instance of a {@link
@@ -1625,8 +1643,9 @@ export class BoundingBoxUtils {
1625
1643
  * @beta
1626
1644
  * Contains information related to changes to a button push.
1627
1645
  */
1646
+ // @ts-ignore Class inheritance allowed for native defined classes
1628
1647
  export class ButtonPushAfterEvent extends BlockEvent {
1629
- protected constructor();
1648
+ private constructor();
1630
1649
  /**
1631
1650
  * @remarks
1632
1651
  * Optional source that triggered the button push.
@@ -1640,8 +1659,9 @@ export class ButtonPushAfterEvent extends BlockEvent {
1640
1659
  * Manages callbacks that are connected to when a button is
1641
1660
  * pushed.
1642
1661
  */
1662
+ // @ts-ignore Class inheritance allowed for native defined classes
1643
1663
  export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal {
1644
- protected constructor();
1664
+ private constructor();
1645
1665
  }
1646
1666
 
1647
1667
  /**
@@ -1649,7 +1669,7 @@ export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal {
1649
1669
  * An event that fires as players enter chat messages.
1650
1670
  */
1651
1671
  export class ChatSendAfterEvent {
1652
- protected constructor();
1672
+ private constructor();
1653
1673
  /**
1654
1674
  * @remarks
1655
1675
  * Message that is being broadcast. In a beforeChat event
@@ -1686,16 +1706,18 @@ export class ChatSendAfterEvent {
1686
1706
  * Manages callbacks that are connected to chat messages being
1687
1707
  * sent.
1688
1708
  */
1709
+ // @ts-ignore Class inheritance allowed for native defined classes
1689
1710
  export class ChatSendAfterEventSignal extends IChatSendAfterEventSignal {
1690
- protected constructor();
1711
+ private constructor();
1691
1712
  }
1692
1713
 
1693
1714
  /**
1694
1715
  * @beta
1695
1716
  * An event that fires as players enter chat messages.
1696
1717
  */
1718
+ // @ts-ignore Class inheritance allowed for native defined classes
1697
1719
  export class ChatSendBeforeEvent extends ChatSendAfterEvent {
1698
- protected constructor();
1720
+ private constructor();
1699
1721
  /**
1700
1722
  * @remarks
1701
1723
  * If set to true in a beforeChat event handler, this message
@@ -1719,15 +1741,16 @@ export class ChatSendBeforeEvent extends ChatSendAfterEvent {
1719
1741
  * Manages callbacks that are connected to an event that fires
1720
1742
  * before chat messages are sent.
1721
1743
  */
1744
+ // @ts-ignore Class inheritance allowed for native defined classes
1722
1745
  export class ChatSendBeforeEventSignal extends IChatSendBeforeEventSignal {
1723
- protected constructor();
1746
+ private constructor();
1724
1747
  }
1725
1748
 
1726
1749
  /**
1727
1750
  * Contains return data on the result of a command execution.
1728
1751
  */
1729
1752
  export class CommandResult {
1730
- protected constructor();
1753
+ private constructor();
1731
1754
  /**
1732
1755
  * @remarks
1733
1756
  * If the command operates against a number of entities,
@@ -1743,13 +1766,17 @@ export class CommandResult {
1743
1766
  * Base class for downstream Component implementations.
1744
1767
  */
1745
1768
  export class Component {
1746
- protected constructor();
1769
+ private constructor();
1747
1770
  /**
1748
1771
  * @remarks
1749
1772
  * Identifier of the component.
1750
1773
  *
1751
1774
  */
1752
1775
  readonly typeId: string;
1776
+ /**
1777
+ * @beta
1778
+ */
1779
+ isValid(): boolean;
1753
1780
  }
1754
1781
 
1755
1782
  /**
@@ -1923,7 +1950,7 @@ export class CompoundBlockVolume {
1923
1950
  * more.
1924
1951
  */
1925
1952
  export class Container {
1926
- protected constructor();
1953
+ private constructor();
1927
1954
  /**
1928
1955
  * @remarks
1929
1956
  * Count of the slots in the container that are empty.
@@ -2107,7 +2134,7 @@ export class Container {
2107
2134
  * inventory.)
2108
2135
  */
2109
2136
  export class ContainerSlot {
2110
- protected constructor();
2137
+ private constructor();
2111
2138
  /**
2112
2139
  * @remarks
2113
2140
  * Number of the items in the stack. Valid values range between
@@ -2328,7 +2355,7 @@ export class ContainerSlot {
2328
2355
  * event on a chicken.
2329
2356
  */
2330
2357
  export class DataDrivenEntityTriggerAfterEvent {
2331
- protected constructor();
2358
+ private constructor();
2332
2359
  /**
2333
2360
  * @remarks
2334
2361
  * Entity that the event triggered on.
@@ -2358,8 +2385,9 @@ export class DataDrivenEntityTriggerAfterEvent {
2358
2385
  * driven entity event - for example, the
2359
2386
  * minecraft:ageable_grow_up event on a chicken.
2360
2387
  */
2388
+ // @ts-ignore Class inheritance allowed for native defined classes
2361
2389
  export class DataDrivenEntityTriggerAfterEventSignal extends IDataDrivenEntityTriggerAfterEventSignal {
2362
- protected constructor();
2390
+ private constructor();
2363
2391
  }
2364
2392
 
2365
2393
  /**
@@ -2369,7 +2397,7 @@ export class DataDrivenEntityTriggerAfterEventSignal extends IDataDrivenEntityTr
2369
2397
  * event on a chicken.
2370
2398
  */
2371
2399
  export class DataDrivenEntityTriggerBeforeEvent {
2372
- protected constructor();
2400
+ private constructor();
2373
2401
  /**
2374
2402
  * @remarks
2375
2403
  * If set to true, this entity event is not triggered.
@@ -2412,8 +2440,9 @@ export class DataDrivenEntityTriggerBeforeEvent {
2412
2440
  * entity event - for example, the minecraft:ageable_grow_up
2413
2441
  * event on a chicken.
2414
2442
  */
2443
+ // @ts-ignore Class inheritance allowed for native defined classes
2415
2444
  export class DataDrivenEntityTriggerBeforeEventSignal extends IDataDrivenEntityTriggerBeforeEventSignal {
2416
- protected constructor();
2445
+ private constructor();
2417
2446
  }
2418
2447
 
2419
2448
  /**
@@ -2471,7 +2500,7 @@ export class DefinitionModifier {
2471
2500
  * End) within a world.
2472
2501
  */
2473
2502
  export class Dimension {
2474
- protected constructor();
2503
+ private constructor();
2475
2504
  /**
2476
2505
  * @remarks
2477
2506
  * Identifier of the dimension.
@@ -2579,9 +2608,8 @@ export class Dimension {
2579
2608
  * Vector direction to cast the ray.
2580
2609
  * @param options
2581
2610
  * Additional options for processing this raycast query.
2582
- * @throws This function can throw errors.
2583
2611
  */
2584
- getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): Block;
2612
+ getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined;
2585
2613
  /**
2586
2614
  * @beta
2587
2615
  * @remarks
@@ -2633,9 +2661,8 @@ export class Dimension {
2633
2661
  *
2634
2662
  * @param options
2635
2663
  * Additional options for processing this raycast query.
2636
- * @throws This function can throw errors.
2637
2664
  */
2638
- getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): Entity[];
2665
+ getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): EntityRaycastHit[];
2639
2666
  /**
2640
2667
  * @beta
2641
2668
  * @remarks
@@ -2830,7 +2857,7 @@ export class DynamicPropertiesDefinition {
2830
2857
  * an Entity.
2831
2858
  */
2832
2859
  export class Effect {
2833
- protected constructor();
2860
+ private constructor();
2834
2861
  /**
2835
2862
  * @remarks
2836
2863
  * Gets an amplifier that may have been applied to this effect.
@@ -2873,7 +2900,7 @@ export class Effect {
2873
2900
  * poison - being added to an entity.
2874
2901
  */
2875
2902
  export class EffectAddAfterEvent {
2876
- protected constructor();
2903
+ private constructor();
2877
2904
  /**
2878
2905
  * @remarks
2879
2906
  * Additional properties and details of the effect.
@@ -2905,8 +2932,9 @@ export class EffectAddAfterEvent {
2905
2932
  * Manages callbacks that are connected to when an effect is
2906
2933
  * added to an entity.
2907
2934
  */
2935
+ // @ts-ignore Class inheritance allowed for native defined classes
2908
2936
  export class EffectAddAfterEventSignal extends IEffectAddAfterEventSignal {
2909
- protected constructor();
2937
+ private constructor();
2910
2938
  }
2911
2939
 
2912
2940
  /**
@@ -2915,7 +2943,7 @@ export class EffectAddAfterEventSignal extends IEffectAddAfterEventSignal {
2915
2943
  * applied to an entity.
2916
2944
  */
2917
2945
  export class EffectType {
2918
- protected constructor();
2946
+ private constructor();
2919
2947
  /**
2920
2948
  * @remarks
2921
2949
  * Identifier name of this effect type.
@@ -2932,7 +2960,7 @@ export class EffectType {
2932
2960
  * applied to an entity.
2933
2961
  */
2934
2962
  export class EffectTypes {
2935
- protected constructor();
2963
+ private constructor();
2936
2964
  /**
2937
2965
  * @remarks
2938
2966
  * Effect type for the given identifier.
@@ -3073,7 +3101,7 @@ export class EnchantmentList implements Iterable<Enchantment> {
3073
3101
  * enchantment can be applied to.
3074
3102
  */
3075
3103
  export class EnchantmentSlot {
3076
- protected constructor();
3104
+ private constructor();
3077
3105
  static readonly all = -1;
3078
3106
  static readonly armorFeet = 4;
3079
3107
  static readonly armorHead = 1;
@@ -3105,7 +3133,7 @@ export class EnchantmentSlot {
3105
3133
  * Contains information on a type of enchantment.
3106
3134
  */
3107
3135
  export class EnchantmentType {
3108
- protected constructor();
3136
+ private constructor();
3109
3137
  /**
3110
3138
  * @remarks
3111
3139
  * The name of the enchantment type.
@@ -3124,7 +3152,7 @@ export class EnchantmentType {
3124
3152
  * @beta
3125
3153
  */
3126
3154
  export class EnchantmentTypes {
3127
- protected constructor();
3155
+ private constructor();
3128
3156
  /**
3129
3157
  * @remarks
3130
3158
  * Retrieves an enchantment with the specified identifier.
@@ -3144,7 +3172,7 @@ export class EnchantmentTypes {
3144
3172
  * other moving objects like minecarts) in the world.
3145
3173
  */
3146
3174
  export class Entity {
3147
- protected constructor();
3175
+ private constructor();
3148
3176
  /**
3149
3177
  * @beta
3150
3178
  * @remarks
@@ -3449,7 +3477,7 @@ export class Entity {
3449
3477
  * this entity is looking at.
3450
3478
  * @throws This function can throw errors.
3451
3479
  */
3452
- getBlockFromViewDirection(options?: BlockRaycastOptions): Block;
3480
+ getBlockFromViewDirection(options?: BlockRaycastOptions): BlockRaycastHit | undefined;
3453
3481
  /**
3454
3482
  * @beta
3455
3483
  * @remarks
@@ -3529,7 +3557,7 @@ export class Entity {
3529
3557
  * entity is looking at.
3530
3558
  * @throws This function can throw errors.
3531
3559
  */
3532
- getEntitiesFromViewDirection(options?: EntityRaycastOptions): Entity[];
3560
+ getEntitiesFromViewDirection(options?: EntityRaycastOptions): EntityRaycastHit[];
3533
3561
  /**
3534
3562
  * @beta
3535
3563
  * @remarks
@@ -3609,6 +3637,10 @@ export class Entity {
3609
3637
  * @throws This function can throw errors.
3610
3638
  */
3611
3639
  hasTag(tag: string): boolean;
3640
+ /**
3641
+ * @beta
3642
+ */
3643
+ isValid(): boolean;
3612
3644
  /**
3613
3645
  * @beta
3614
3646
  * @remarks
@@ -3816,8 +3848,9 @@ export class Entity {
3816
3848
  * When added, this component makes the entity spawn with a
3817
3849
  * rider of the specified entityType.
3818
3850
  */
3851
+ // @ts-ignore Class inheritance allowed for native defined classes
3819
3852
  export class EntityAddRiderComponent extends EntityComponent {
3820
- protected constructor();
3853
+ private constructor();
3821
3854
  /**
3822
3855
  * @remarks
3823
3856
  * The type of entity that is added as a rider for this entity
@@ -3849,8 +3882,9 @@ export class EntityAddRiderComponent extends EntityComponent {
3849
3882
  * accelerated by giving the entity the items it likes as
3850
3883
  * defined by feedItems.
3851
3884
  */
3885
+ // @ts-ignore Class inheritance allowed for native defined classes
3852
3886
  export class EntityAgeableComponent extends EntityComponent {
3853
- protected constructor();
3887
+ private constructor();
3854
3888
  /**
3855
3889
  * @remarks
3856
3890
  * Amount of time before the entity grows up, -1 for always a
@@ -3894,8 +3928,9 @@ export class EntityAgeableComponent extends EntityComponent {
3894
3928
  /**
3895
3929
  * @beta
3896
3930
  */
3931
+ // @ts-ignore Class inheritance allowed for native defined classes
3897
3932
  export class EntityAttributeComponent extends EntityComponent {
3898
- protected constructor();
3933
+ private constructor();
3899
3934
  readonly currentValue: number;
3900
3935
  readonly defaultValue: number;
3901
3936
  readonly effectiveMax: number;
@@ -3934,8 +3969,9 @@ export class EntityAttributeComponent extends EntityComponent {
3934
3969
  * @beta
3935
3970
  * Base class for a family of entity movement events.
3936
3971
  */
3972
+ // @ts-ignore Class inheritance allowed for native defined classes
3937
3973
  export class EntityBaseMovementComponent extends EntityComponent {
3938
- protected constructor();
3974
+ private constructor();
3939
3975
  readonly maxTurn: number;
3940
3976
  }
3941
3977
 
@@ -3944,8 +3980,9 @@ export class EntityBaseMovementComponent extends EntityComponent {
3944
3980
  * Defines what blocks this entity can breathe in and gives
3945
3981
  * them the ability to suffocate.
3946
3982
  */
3983
+ // @ts-ignore Class inheritance allowed for native defined classes
3947
3984
  export class EntityBreathableComponent extends EntityComponent {
3948
- protected constructor();
3985
+ private constructor();
3949
3986
  /**
3950
3987
  * @remarks
3951
3988
  * If true, this entity can breathe in air.
@@ -4041,8 +4078,9 @@ export class EntityBreathableComponent extends EntityComponent {
4041
4078
  * When added, this component signifies that the entity can
4042
4079
  * climb up ladders.
4043
4080
  */
4081
+ // @ts-ignore Class inheritance allowed for native defined classes
4044
4082
  export class EntityCanClimbComponent extends EntityComponent {
4045
- protected constructor();
4083
+ private constructor();
4046
4084
  /**
4047
4085
  * @remarks
4048
4086
  * Identifier of this component. Should always be
@@ -4058,8 +4096,9 @@ export class EntityCanClimbComponent extends EntityComponent {
4058
4096
  * fly, and the pathfinder won't be restricted to paths where a
4059
4097
  * solid block is required underneath it.
4060
4098
  */
4099
+ // @ts-ignore Class inheritance allowed for native defined classes
4061
4100
  export class EntityCanFlyComponent extends EntityComponent {
4062
- protected constructor();
4101
+ private constructor();
4063
4102
  /**
4064
4103
  * @remarks
4065
4104
  * Identifier of this component. Should always be
@@ -4074,8 +4113,9 @@ export class EntityCanFlyComponent extends EntityComponent {
4074
4113
  * When added, this component signifies that the entity can
4075
4114
  * power jump like the horse does within Minecraft.
4076
4115
  */
4116
+ // @ts-ignore Class inheritance allowed for native defined classes
4077
4117
  export class EntityCanPowerJumpComponent extends EntityComponent {
4078
- protected constructor();
4118
+ private constructor();
4079
4119
  /**
4080
4120
  * @remarks
4081
4121
  * Identifier of this component. Should always be
@@ -4090,8 +4130,9 @@ export class EntityCanPowerJumpComponent extends EntityComponent {
4090
4130
  * Defines the entity's color. Only works on certain entities
4091
4131
  * that have predefined color values (sheep, llama, shulker).
4092
4132
  */
4133
+ // @ts-ignore Class inheritance allowed for native defined classes
4093
4134
  export class EntityColorComponent extends EntityComponent {
4094
- protected constructor();
4135
+ private constructor();
4095
4136
  /**
4096
4137
  * @remarks
4097
4138
  * This property can't be edited in read-only mode.
@@ -4111,8 +4152,9 @@ export class EntityColorComponent extends EntityComponent {
4111
4152
  * @beta
4112
4153
  * Base class for downstream entity components.
4113
4154
  */
4155
+ // @ts-ignore Class inheritance allowed for native defined classes
4114
4156
  export class EntityComponent extends Component {
4115
- protected constructor();
4157
+ private constructor();
4116
4158
  /**
4117
4159
  * @beta
4118
4160
  * @remarks
@@ -4120,10 +4162,6 @@ export class EntityComponent extends Component {
4120
4162
  *
4121
4163
  */
4122
4164
  readonly entity: Entity;
4123
- /**
4124
- * @beta
4125
- */
4126
- isValid(): boolean;
4127
4165
  }
4128
4166
 
4129
4167
  /**
@@ -4133,7 +4171,7 @@ export class EntityComponent extends Component {
4133
4171
  * causes them to grow.
4134
4172
  */
4135
4173
  export class EntityDefinitionFeedItem {
4136
- protected constructor();
4174
+ private constructor();
4137
4175
  /**
4138
4176
  * @remarks
4139
4177
  * The amount by which an entity's age will increase when fed
@@ -4155,7 +4193,7 @@ export class EntityDefinitionFeedItem {
4155
4193
  * @beta
4156
4194
  */
4157
4195
  export class EntityDieAfterEvent {
4158
- protected constructor();
4196
+ private constructor();
4159
4197
  readonly damageSource: EntityDamageSource;
4160
4198
  readonly deadEntity: Entity;
4161
4199
  }
@@ -4163,8 +4201,9 @@ export class EntityDieAfterEvent {
4163
4201
  /**
4164
4202
  * @beta
4165
4203
  */
4204
+ // @ts-ignore Class inheritance allowed for native defined classes
4166
4205
  export class EntityDieAfterEventSignal extends IEntityDieAfterEventSignal {
4167
- protected constructor();
4206
+ private constructor();
4168
4207
  }
4169
4208
 
4170
4209
  /**
@@ -4172,8 +4211,9 @@ export class EntityDieAfterEventSignal extends IEntityDieAfterEventSignal {
4172
4211
  * Provides access to a mob's equipment slots. This component
4173
4212
  * exists for all mob entities.
4174
4213
  */
4214
+ // @ts-ignore Class inheritance allowed for native defined classes
4175
4215
  export class EntityEquipmentInventoryComponent extends EntityComponent {
4176
- protected constructor();
4216
+ private constructor();
4177
4217
  static readonly componentId = 'minecraft:equipment_inventory';
4178
4218
  /**
4179
4219
  * @remarks
@@ -4224,8 +4264,9 @@ export class EntityEquipmentInventoryComponent extends EntityComponent {
4224
4264
  * When added, this component signifies that this entity
4225
4265
  * doesn't take damage from fire.
4226
4266
  */
4267
+ // @ts-ignore Class inheritance allowed for native defined classes
4227
4268
  export class EntityFireImmuneComponent extends EntityComponent {
4228
- protected constructor();
4269
+ private constructor();
4229
4270
  /**
4230
4271
  * @remarks
4231
4272
  * Identifier of this component. Should always be
@@ -4240,8 +4281,9 @@ export class EntityFireImmuneComponent extends EntityComponent {
4240
4281
  * When added, this component signifies that this entity can
4241
4282
  * float in liquid blocks.
4242
4283
  */
4284
+ // @ts-ignore Class inheritance allowed for native defined classes
4243
4285
  export class EntityFloatsInLiquidComponent extends EntityComponent {
4244
- protected constructor();
4286
+ private constructor();
4245
4287
  /**
4246
4288
  * @remarks
4247
4289
  * Identifier of this component. Should always be
@@ -4255,8 +4297,9 @@ export class EntityFloatsInLiquidComponent extends EntityComponent {
4255
4297
  * @beta
4256
4298
  * Represents the flying speed of an entity.
4257
4299
  */
4300
+ // @ts-ignore Class inheritance allowed for native defined classes
4258
4301
  export class EntityFlyingSpeedComponent extends EntityComponent {
4259
- protected constructor();
4302
+ private constructor();
4260
4303
  /**
4261
4304
  * @remarks
4262
4305
  * This property can't be edited in read-only mode.
@@ -4276,8 +4319,9 @@ export class EntityFlyingSpeedComponent extends EntityComponent {
4276
4319
  * @beta
4277
4320
  * Defines how much friction affects this entity.
4278
4321
  */
4322
+ // @ts-ignore Class inheritance allowed for native defined classes
4279
4323
  export class EntityFrictionModifierComponent extends EntityComponent {
4280
- protected constructor();
4324
+ private constructor();
4281
4325
  /**
4282
4326
  * @remarks
4283
4327
  * This property can't be edited in read-only mode.
@@ -4298,8 +4342,9 @@ export class EntityFrictionModifierComponent extends EntityComponent {
4298
4342
  * Sets the offset from the ground that the entity is actually
4299
4343
  * at.
4300
4344
  */
4345
+ // @ts-ignore Class inheritance allowed for native defined classes
4301
4346
  export class EntityGroundOffsetComponent extends EntityComponent {
4302
- protected constructor();
4347
+ private constructor();
4303
4348
  /**
4304
4349
  * @remarks
4305
4350
  * This property can't be edited in read-only mode.
@@ -4319,8 +4364,17 @@ export class EntityGroundOffsetComponent extends EntityComponent {
4319
4364
  * @beta
4320
4365
  * Defines the interactions with this entity for healing it.
4321
4366
  */
4367
+ // @ts-ignore Class inheritance allowed for native defined classes
4322
4368
  export class EntityHealableComponent extends EntityComponent {
4323
- protected constructor();
4369
+ private constructor();
4370
+ /**
4371
+ * @beta
4372
+ * @remarks
4373
+ * A set of filters for when these Healable items would apply.
4374
+ *
4375
+ * @throws This property can throw when used.
4376
+ */
4377
+ readonly filters: FilterGroup;
4324
4378
  /**
4325
4379
  * @remarks
4326
4380
  * Determines if an item can be used regardless of the entity
@@ -4354,7 +4408,7 @@ export class EntityHealableComponent extends EntityComponent {
4354
4408
  * this event, or it will cause an infinite loop!
4355
4409
  */
4356
4410
  export class EntityHealthChangedAfterEvent {
4357
- protected constructor();
4411
+ private constructor();
4358
4412
  /**
4359
4413
  * @remarks
4360
4414
  * Entity whose health changed.
@@ -4380,16 +4434,18 @@ export class EntityHealthChangedAfterEvent {
4380
4434
  * Manages callbacks that are connected to when the health of
4381
4435
  * an entity changes.
4382
4436
  */
4437
+ // @ts-ignore Class inheritance allowed for native defined classes
4383
4438
  export class EntityHealthChangedAfterEventSignal extends IEntityHealthChangedAfterEventSignal {
4384
- protected constructor();
4439
+ private constructor();
4385
4440
  }
4386
4441
 
4387
4442
  /**
4388
4443
  * @beta
4389
4444
  * Defines the health properties of an entity.
4390
4445
  */
4446
+ // @ts-ignore Class inheritance allowed for native defined classes
4391
4447
  export class EntityHealthComponent extends EntityAttributeComponent {
4392
- protected constructor();
4448
+ private constructor();
4393
4449
  /**
4394
4450
  * @remarks
4395
4451
  * Identifier of this component. Should always be
@@ -4401,35 +4457,54 @@ export class EntityHealthComponent extends EntityAttributeComponent {
4401
4457
 
4402
4458
  /**
4403
4459
  * @beta
4404
- * Contains information related to an entity hitting (melee
4405
- * attacking) another entity.
4460
+ * Contains information related to an entity hitting a block.
4406
4461
  */
4407
- export class EntityHitAfterEvent {
4408
- protected constructor();
4462
+ export class EntityHitBlockAfterEvent {
4463
+ private constructor();
4464
+ readonly blockFace: Direction;
4409
4465
  /**
4410
4466
  * @remarks
4411
- * Entity that made a hit/melee attack.
4467
+ * Entity that made the attack.
4412
4468
  *
4413
4469
  */
4414
- readonly entity: Entity;
4470
+ readonly damagingEntity: Entity;
4415
4471
  /**
4416
4472
  * @remarks
4417
- * Block that was hit by the attack, or undefined if the hit
4418
- * attack did not hit a block. If both hitEntity and hitBlock
4419
- * are undefined, then the entity basically swiped into the
4420
- * air.
4473
+ * Block that was hit by the attack.
4474
+ *
4475
+ */
4476
+ readonly hitBlock: Block;
4477
+ }
4478
+
4479
+ /**
4480
+ * @beta
4481
+ * Manages callbacks that are connected to when an entity hits
4482
+ * a block.
4483
+ */
4484
+ // @ts-ignore Class inheritance allowed for native defined classes
4485
+ export class EntityHitBlockAfterEventSignal extends IEntityHitBlockAfterEventSignal {
4486
+ private constructor();
4487
+ }
4488
+
4489
+ /**
4490
+ * @beta
4491
+ * Contains information related to an entity hitting (melee
4492
+ * attacking) another entity.
4493
+ */
4494
+ export class EntityHitEntityAfterEvent {
4495
+ private constructor();
4496
+ /**
4497
+ * @remarks
4498
+ * Entity that made a hit/melee attack.
4421
4499
  *
4422
4500
  */
4423
- readonly hitBlock?: Block;
4501
+ readonly damagingEntity: Entity;
4424
4502
  /**
4425
4503
  * @remarks
4426
- * Entity that was hit by the attack, or undefined if the hit
4427
- * attack did not hit an entity. If both hitEntity and hitBlock
4428
- * are undefined, then the entity basically swiped into the
4429
- * air.
4504
+ * Entity that was hit by the attack.
4430
4505
  *
4431
4506
  */
4432
- readonly hitEntity?: Entity;
4507
+ readonly hitEntity: Entity;
4433
4508
  }
4434
4509
 
4435
4510
  /**
@@ -4437,17 +4512,17 @@ export class EntityHitAfterEvent {
4437
4512
  * Manages callbacks that are connected to when an entity makes
4438
4513
  * a melee attack on another entity.
4439
4514
  */
4440
- export class EntityHitAfterEventSignal extends IEntityHitAfterEventSignal {
4441
- protected constructor();
4515
+ // @ts-ignore Class inheritance allowed for native defined classes
4516
+ export class EntityHitEntityAfterEventSignal extends IEntityHitEntityAfterEventSignal {
4517
+ private constructor();
4442
4518
  }
4443
4519
 
4444
4520
  /**
4445
4521
  * @beta
4446
- * Contains information related to an entity getting hurt by
4447
- * another entity.
4522
+ * Contains information related to an entity getting hurt.
4448
4523
  */
4449
4524
  export class EntityHurtAfterEvent {
4450
- protected constructor();
4525
+ private constructor();
4451
4526
  /**
4452
4527
  * @remarks
4453
4528
  * Describes the amount of damage caused.
@@ -4474,16 +4549,18 @@ export class EntityHurtAfterEvent {
4474
4549
  * Manages callbacks that are connected to when an entity is
4475
4550
  * hurt.
4476
4551
  */
4552
+ // @ts-ignore Class inheritance allowed for native defined classes
4477
4553
  export class EntityHurtAfterEventSignal extends IEntityHurtAfterEventSignal {
4478
- protected constructor();
4554
+ private constructor();
4479
4555
  }
4480
4556
 
4481
4557
  /**
4482
4558
  * @beta
4483
4559
  * Defines this entity's inventory properties.
4484
4560
  */
4561
+ // @ts-ignore Class inheritance allowed for native defined classes
4485
4562
  export class EntityInventoryComponent extends EntityComponent {
4486
- protected constructor();
4563
+ private constructor();
4487
4564
  /**
4488
4565
  * @remarks
4489
4566
  * Number of slots that this entity can gain per extra
@@ -4550,8 +4627,9 @@ export class EntityInventoryComponent extends EntityComponent {
4550
4627
  * When added, this component signifies that this entity is a
4551
4628
  * baby.
4552
4629
  */
4630
+ // @ts-ignore Class inheritance allowed for native defined classes
4553
4631
  export class EntityIsBabyComponent extends EntityComponent {
4554
- protected constructor();
4632
+ private constructor();
4555
4633
  /**
4556
4634
  * @remarks
4557
4635
  * Identifier of this component. Should always be
@@ -4566,8 +4644,9 @@ export class EntityIsBabyComponent extends EntityComponent {
4566
4644
  * When added, this component signifies that this entity is
4567
4645
  * charged.
4568
4646
  */
4647
+ // @ts-ignore Class inheritance allowed for native defined classes
4569
4648
  export class EntityIsChargedComponent extends EntityComponent {
4570
- protected constructor();
4649
+ private constructor();
4571
4650
  /**
4572
4651
  * @remarks
4573
4652
  * Identifier of this component. Should always be
@@ -4582,8 +4661,9 @@ export class EntityIsChargedComponent extends EntityComponent {
4582
4661
  * When added, this component signifies that this entity is
4583
4662
  * currently carrying a chest.
4584
4663
  */
4664
+ // @ts-ignore Class inheritance allowed for native defined classes
4585
4665
  export class EntityIsChestedComponent extends EntityComponent {
4586
- protected constructor();
4666
+ private constructor();
4587
4667
  /**
4588
4668
  * @remarks
4589
4669
  * Identifier of this component. Should always be
@@ -4598,8 +4678,9 @@ export class EntityIsChestedComponent extends EntityComponent {
4598
4678
  * When added, this component signifies that dyes can be used
4599
4679
  * on this entity to change its color.
4600
4680
  */
4681
+ // @ts-ignore Class inheritance allowed for native defined classes
4601
4682
  export class EntityIsDyeableComponent extends EntityComponent {
4602
- protected constructor();
4683
+ private constructor();
4603
4684
  /**
4604
4685
  * @remarks
4605
4686
  * Identifier of this component. Should always be
@@ -4614,8 +4695,9 @@ export class EntityIsDyeableComponent extends EntityComponent {
4614
4695
  * When added, this component signifies that this entity can
4615
4696
  * hide from hostile mobs while invisible.
4616
4697
  */
4698
+ // @ts-ignore Class inheritance allowed for native defined classes
4617
4699
  export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
4618
- protected constructor();
4700
+ private constructor();
4619
4701
  /**
4620
4702
  * @remarks
4621
4703
  * Identifier of this component. Should always be
@@ -4630,8 +4712,9 @@ export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
4630
4712
  * When added, this component signifies that this entity this
4631
4713
  * currently on fire.
4632
4714
  */
4715
+ // @ts-ignore Class inheritance allowed for native defined classes
4633
4716
  export class EntityIsIgnitedComponent extends EntityComponent {
4634
- protected constructor();
4717
+ private constructor();
4635
4718
  /**
4636
4719
  * @remarks
4637
4720
  * Identifier of this component. Should always be
@@ -4646,8 +4729,9 @@ export class EntityIsIgnitedComponent extends EntityComponent {
4646
4729
  * When added, this component signifies that this entity is an
4647
4730
  * illager captain.
4648
4731
  */
4732
+ // @ts-ignore Class inheritance allowed for native defined classes
4649
4733
  export class EntityIsIllagerCaptainComponent extends EntityComponent {
4650
- protected constructor();
4734
+ private constructor();
4651
4735
  /**
4652
4736
  * @remarks
4653
4737
  * Identifier of this component. Should always be
@@ -4662,8 +4746,9 @@ export class EntityIsIllagerCaptainComponent extends EntityComponent {
4662
4746
  * When added, this component signifies that this entity is
4663
4747
  * currently saddled.
4664
4748
  */
4749
+ // @ts-ignore Class inheritance allowed for native defined classes
4665
4750
  export class EntityIsSaddledComponent extends EntityComponent {
4666
- protected constructor();
4751
+ private constructor();
4667
4752
  /**
4668
4753
  * @remarks
4669
4754
  * Identifier of this component. Should always be
@@ -4678,8 +4763,9 @@ export class EntityIsSaddledComponent extends EntityComponent {
4678
4763
  * When added, this component signifies that this entity is
4679
4764
  * currently shaking.
4680
4765
  */
4766
+ // @ts-ignore Class inheritance allowed for native defined classes
4681
4767
  export class EntityIsShakingComponent extends EntityComponent {
4682
- protected constructor();
4768
+ private constructor();
4683
4769
  /**
4684
4770
  * @remarks
4685
4771
  * Identifier of this component. Should always be
@@ -4694,8 +4780,9 @@ export class EntityIsShakingComponent extends EntityComponent {
4694
4780
  * When added, this component signifies that this entity is
4695
4781
  * currently sheared.
4696
4782
  */
4783
+ // @ts-ignore Class inheritance allowed for native defined classes
4697
4784
  export class EntityIsShearedComponent extends EntityComponent {
4698
- protected constructor();
4785
+ private constructor();
4699
4786
  /**
4700
4787
  * @remarks
4701
4788
  * Identifier of this component. Should always be
@@ -4710,8 +4797,9 @@ export class EntityIsShearedComponent extends EntityComponent {
4710
4797
  * When added, this component signifies that this entity can be
4711
4798
  * stacked.
4712
4799
  */
4800
+ // @ts-ignore Class inheritance allowed for native defined classes
4713
4801
  export class EntityIsStackableComponent extends EntityComponent {
4714
- protected constructor();
4802
+ private constructor();
4715
4803
  /**
4716
4804
  * @remarks
4717
4805
  * Identifier of this component. Should always be
@@ -4726,8 +4814,9 @@ export class EntityIsStackableComponent extends EntityComponent {
4726
4814
  * When added, this component signifies that this entity is
4727
4815
  * currently stunned.
4728
4816
  */
4817
+ // @ts-ignore Class inheritance allowed for native defined classes
4729
4818
  export class EntityIsStunnedComponent extends EntityComponent {
4730
- protected constructor();
4819
+ private constructor();
4731
4820
  /**
4732
4821
  * @remarks
4733
4822
  * Identifier of this component. Should always be
@@ -4742,8 +4831,9 @@ export class EntityIsStunnedComponent extends EntityComponent {
4742
4831
  * When added, this component signifies that this entity is
4743
4832
  * currently tamed.
4744
4833
  */
4834
+ // @ts-ignore Class inheritance allowed for native defined classes
4745
4835
  export class EntityIsTamedComponent extends EntityComponent {
4746
- protected constructor();
4836
+ private constructor();
4747
4837
  /**
4748
4838
  * @remarks
4749
4839
  * Identifier of this component. Should always be
@@ -4760,8 +4850,9 @@ export class EntityIsTamedComponent extends EntityComponent {
4760
4850
  * retrieve the actual item stack contents via the itemStack
4761
4851
  * property.
4762
4852
  */
4853
+ // @ts-ignore Class inheritance allowed for native defined classes
4763
4854
  export class EntityItemComponent extends EntityComponent {
4764
- protected constructor();
4855
+ private constructor();
4765
4856
  /**
4766
4857
  * @remarks
4767
4858
  * Item stack represented by this entity in the world.
@@ -4784,7 +4875,7 @@ export class EntityItemComponent extends EntityComponent {
4784
4875
  * statements, Array.from(iterator), and more.
4785
4876
  */
4786
4877
  export class EntityIterator implements Iterable<Entity> {
4787
- protected constructor();
4878
+ private constructor();
4788
4879
  /**
4789
4880
  * @remarks
4790
4881
  * This function can't be called in read-only mode.
@@ -4807,8 +4898,9 @@ export class EntityIterator implements Iterable<Entity> {
4807
4898
  * @beta
4808
4899
  * Defines the base movement speed in lava of this entity.
4809
4900
  */
4901
+ // @ts-ignore Class inheritance allowed for native defined classes
4810
4902
  export class EntityLavaMovementComponent extends EntityAttributeComponent {
4811
- protected constructor();
4903
+ private constructor();
4812
4904
  /**
4813
4905
  * @remarks
4814
4906
  * Identifier of this component. Should always be
@@ -4823,8 +4915,9 @@ export class EntityLavaMovementComponent extends EntityAttributeComponent {
4823
4915
  * Allows this entity to be leashed and defines the conditions
4824
4916
  * and events for this entity when is leashed.
4825
4917
  */
4918
+ // @ts-ignore Class inheritance allowed for native defined classes
4826
4919
  export class EntityLeashableComponent extends EntityComponent {
4827
- protected constructor();
4920
+ private constructor();
4828
4921
  /**
4829
4922
  * @remarks
4830
4923
  * Distance in blocks at which the 'spring' effect starts
@@ -4868,8 +4961,9 @@ export class EntityLeashableComponent extends EntityComponent {
4868
4961
  * Additional variant value. Can be used to further
4869
4962
  * differentiate variants.
4870
4963
  */
4964
+ // @ts-ignore Class inheritance allowed for native defined classes
4871
4965
  export class EntityMarkVariantComponent extends EntityComponent {
4872
- protected constructor();
4966
+ private constructor();
4873
4967
  /**
4874
4968
  * @remarks
4875
4969
  * This property can't be edited in read-only mode.
@@ -4890,8 +4984,9 @@ export class EntityMarkVariantComponent extends EntityComponent {
4890
4984
  * Contains options for taming a rideable entity based on the
4891
4985
  * entity that mounts it.
4892
4986
  */
4987
+ // @ts-ignore Class inheritance allowed for native defined classes
4893
4988
  export class EntityMountTamingComponent extends EntityComponent {
4894
- protected constructor();
4989
+ private constructor();
4895
4990
  /**
4896
4991
  * @remarks
4897
4992
  * Identifier of this component. Should always be
@@ -4917,8 +5012,9 @@ export class EntityMountTamingComponent extends EntityComponent {
4917
5012
  * When added, this movement control allows the mob to swim in
4918
5013
  * water and walk on land.
4919
5014
  */
5015
+ // @ts-ignore Class inheritance allowed for native defined classes
4920
5016
  export class EntityMovementAmphibiousComponent extends EntityBaseMovementComponent {
4921
- protected constructor();
5017
+ private constructor();
4922
5018
  /**
4923
5019
  * @remarks
4924
5020
  * Identifier of this component. Should always be
@@ -4932,8 +5028,9 @@ export class EntityMovementAmphibiousComponent extends EntityBaseMovementCompone
4932
5028
  * @beta
4933
5029
  * This component accents the movement of an entity.
4934
5030
  */
5031
+ // @ts-ignore Class inheritance allowed for native defined classes
4935
5032
  export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
4936
- protected constructor();
5033
+ private constructor();
4937
5034
  /**
4938
5035
  * @remarks
4939
5036
  * Identifier of this component. Should always be
@@ -4947,8 +5044,9 @@ export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
4947
5044
  * @beta
4948
5045
  * Defines the general movement speed of this entity.
4949
5046
  */
5047
+ // @ts-ignore Class inheritance allowed for native defined classes
4950
5048
  export class EntityMovementComponent extends EntityAttributeComponent {
4951
- protected constructor();
5049
+ private constructor();
4952
5050
  /**
4953
5051
  * @remarks
4954
5052
  * Identifier of this component. Should always be
@@ -4962,8 +5060,9 @@ export class EntityMovementComponent extends EntityAttributeComponent {
4962
5060
  * @beta
4963
5061
  * When added, this move control causes the mob to fly.
4964
5062
  */
5063
+ // @ts-ignore Class inheritance allowed for native defined classes
4965
5064
  export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
4966
- protected constructor();
5065
+ private constructor();
4967
5066
  /**
4968
5067
  * @remarks
4969
5068
  * Identifier of this component. Should always be
@@ -4978,8 +5077,9 @@ export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
4978
5077
  * When added, this move control allows a mob to fly, swim,
4979
5078
  * climb, etc.
4980
5079
  */
5080
+ // @ts-ignore Class inheritance allowed for native defined classes
4981
5081
  export class EntityMovementGenericComponent extends EntityBaseMovementComponent {
4982
- protected constructor();
5082
+ private constructor();
4983
5083
  /**
4984
5084
  * @remarks
4985
5085
  * Identifier of this component. Should always be
@@ -4993,8 +5093,9 @@ export class EntityMovementGenericComponent extends EntityBaseMovementComponent
4993
5093
  * @beta
4994
5094
  * When added, this movement control allows the mob to glide.
4995
5095
  */
5096
+ // @ts-ignore Class inheritance allowed for native defined classes
4996
5097
  export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
4997
- protected constructor();
5098
+ private constructor();
4998
5099
  /**
4999
5100
  * @remarks
5000
5101
  * Speed in effect when the entity is turning.
@@ -5022,8 +5123,9 @@ export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
5022
5123
  * @beta
5023
5124
  * When added, this move control causes the mob to hover.
5024
5125
  */
5126
+ // @ts-ignore Class inheritance allowed for native defined classes
5025
5127
  export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
5026
- protected constructor();
5128
+ private constructor();
5027
5129
  /**
5028
5130
  * @remarks
5029
5131
  * Identifier of this component. Should always be
@@ -5038,8 +5140,9 @@ export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
5038
5140
  * Move control that causes the mob to jump as it moves with a
5039
5141
  * specified delay between jumps.
5040
5142
  */
5143
+ // @ts-ignore Class inheritance allowed for native defined classes
5041
5144
  export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
5042
- protected constructor();
5145
+ private constructor();
5043
5146
  /**
5044
5147
  * @remarks
5045
5148
  * Identifier of this component. Should always be
@@ -5054,8 +5157,9 @@ export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
5054
5157
  * When added, this move control causes the mob to hop as it
5055
5158
  * moves.
5056
5159
  */
5160
+ // @ts-ignore Class inheritance allowed for native defined classes
5057
5161
  export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
5058
- protected constructor();
5162
+ private constructor();
5059
5163
  /**
5060
5164
  * @remarks
5061
5165
  * Identifier of this component. Should always be
@@ -5070,8 +5174,9 @@ export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
5070
5174
  * When added, this move control causes the mob to sway side to
5071
5175
  * side giving the impression it is swimming.
5072
5176
  */
5177
+ // @ts-ignore Class inheritance allowed for native defined classes
5073
5178
  export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
5074
- protected constructor();
5179
+ private constructor();
5075
5180
  /**
5076
5181
  * @remarks
5077
5182
  * Amplitude of the sway motion.
@@ -5100,8 +5205,9 @@ export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
5100
5205
  * Allows this entity to generate paths that include vertical
5101
5206
  * walls (for example, like Minecraft spiders do.)
5102
5207
  */
5208
+ // @ts-ignore Class inheritance allowed for native defined classes
5103
5209
  export class EntityNavigationClimbComponent extends EntityNavigationComponent {
5104
- protected constructor();
5210
+ private constructor();
5105
5211
  /**
5106
5212
  * @remarks
5107
5213
  * Identifier of this component. Should always be
@@ -5116,8 +5222,9 @@ export class EntityNavigationClimbComponent extends EntityNavigationComponent {
5116
5222
  * Allows this entity to generate paths that include vertical
5117
5223
  * walls (for example, like Minecraft spiders do.)
5118
5224
  */
5225
+ // @ts-ignore Class inheritance allowed for native defined classes
5119
5226
  export class EntityNavigationComponent extends EntityComponent {
5120
- protected constructor();
5227
+ private constructor();
5121
5228
  /**
5122
5229
  * @remarks
5123
5230
  * Tells the pathfinder to avoid blocks that cause damage when
@@ -5273,8 +5380,9 @@ export class EntityNavigationComponent extends EntityComponent {
5273
5380
  * Allows this entity to generate paths by flying around the
5274
5381
  * air like the regular Ghast.
5275
5382
  */
5383
+ // @ts-ignore Class inheritance allowed for native defined classes
5276
5384
  export class EntityNavigationFloatComponent extends EntityNavigationComponent {
5277
- protected constructor();
5385
+ private constructor();
5278
5386
  /**
5279
5387
  * @remarks
5280
5388
  * Identifier of this component. Should always be
@@ -5289,8 +5397,9 @@ export class EntityNavigationFloatComponent extends EntityNavigationComponent {
5289
5397
  * Allows this entity to generate paths in the air (for
5290
5398
  * example, like Minecraft parrots do.)
5291
5399
  */
5400
+ // @ts-ignore Class inheritance allowed for native defined classes
5292
5401
  export class EntityNavigationFlyComponent extends EntityNavigationComponent {
5293
- protected constructor();
5402
+ private constructor();
5294
5403
  /**
5295
5404
  * @remarks
5296
5405
  * Identifier of this component. Should always be
@@ -5306,8 +5415,9 @@ export class EntityNavigationFlyComponent extends EntityNavigationComponent {
5306
5415
  * flying and/or climbing around and jumping up and down a
5307
5416
  * block.
5308
5417
  */
5418
+ // @ts-ignore Class inheritance allowed for native defined classes
5309
5419
  export class EntityNavigationGenericComponent extends EntityNavigationComponent {
5310
- protected constructor();
5420
+ private constructor();
5311
5421
  /**
5312
5422
  * @remarks
5313
5423
  * Identifier of this component. Should always be
@@ -5323,8 +5433,9 @@ export class EntityNavigationGenericComponent extends EntityNavigationComponent
5323
5433
  * example, like the Minecraft Bees do.) Keeps them from
5324
5434
  * falling out of the skies and doing predictive movement.
5325
5435
  */
5436
+ // @ts-ignore Class inheritance allowed for native defined classes
5326
5437
  export class EntityNavigationHoverComponent extends EntityNavigationComponent {
5327
- protected constructor();
5438
+ private constructor();
5328
5439
  /**
5329
5440
  * @remarks
5330
5441
  * Identifier of this component. Should always be
@@ -5339,8 +5450,9 @@ export class EntityNavigationHoverComponent extends EntityNavigationComponent {
5339
5450
  * Allows this entity to generate paths by walking around and
5340
5451
  * jumping up and down a block like regular mobs.
5341
5452
  */
5453
+ // @ts-ignore Class inheritance allowed for native defined classes
5342
5454
  export class EntityNavigationWalkComponent extends EntityNavigationComponent {
5343
- protected constructor();
5455
+ private constructor();
5344
5456
  /**
5345
5457
  * @remarks
5346
5458
  * Identifier of this component. Should always be
@@ -5354,8 +5466,9 @@ export class EntityNavigationWalkComponent extends EntityNavigationComponent {
5354
5466
  * @beta
5355
5467
  * When present on an entity, this entity is on fire.
5356
5468
  */
5469
+ // @ts-ignore Class inheritance allowed for native defined classes
5357
5470
  export class EntityOnFireComponent extends EntityComponent {
5358
- protected constructor();
5471
+ private constructor();
5359
5472
  /**
5360
5473
  * @remarks
5361
5474
  * The number of ticks remaining before the fire goes out.
@@ -5369,8 +5482,9 @@ export class EntityOnFireComponent extends EntityComponent {
5369
5482
  * @beta
5370
5483
  * Sets the distance through which the entity can push through.
5371
5484
  */
5485
+ // @ts-ignore Class inheritance allowed for native defined classes
5372
5486
  export class EntityPushThroughComponent extends EntityComponent {
5373
- protected constructor();
5487
+ private constructor();
5374
5488
  /**
5375
5489
  * @remarks
5376
5490
  * This property can't be edited in read-only mode.
@@ -5390,15 +5504,16 @@ export class EntityPushThroughComponent extends EntityComponent {
5390
5504
  * @beta
5391
5505
  */
5392
5506
  export class EntityRemovedAfterEvent {
5393
- protected constructor();
5507
+ private constructor();
5394
5508
  readonly removedEntity: string;
5395
5509
  }
5396
5510
 
5397
5511
  /**
5398
5512
  * @beta
5399
5513
  */
5514
+ // @ts-ignore Class inheritance allowed for native defined classes
5400
5515
  export class EntityRemovedAfterEventSignal extends IEntityRemovedAfterEventSignal {
5401
- protected constructor();
5516
+ private constructor();
5402
5517
  }
5403
5518
 
5404
5519
  /**
@@ -5406,8 +5521,9 @@ export class EntityRemovedAfterEventSignal extends IEntityRemovedAfterEventSigna
5406
5521
  * When added, this component adds the capability that an
5407
5522
  * entity can be ridden by another entity.
5408
5523
  */
5524
+ // @ts-ignore Class inheritance allowed for native defined classes
5409
5525
  export class EntityRideableComponent extends EntityComponent {
5410
- protected constructor();
5526
+ private constructor();
5411
5527
  /**
5412
5528
  * @remarks
5413
5529
  * Zero-based index of the seat that can used to control this
@@ -5527,8 +5643,9 @@ export class EntityRideableComponent extends EntityComponent {
5527
5643
  * This component is added to any entity when it is riding
5528
5644
  * another entity.
5529
5645
  */
5646
+ // @ts-ignore Class inheritance allowed for native defined classes
5530
5647
  export class EntityRidingComponent extends EntityComponent {
5531
- protected constructor();
5648
+ private constructor();
5532
5649
  /**
5533
5650
  * @remarks
5534
5651
  * The entity this entity is currently riding on.
@@ -5549,8 +5666,9 @@ export class EntityRidingComponent extends EntityComponent {
5549
5666
  * @beta
5550
5667
  * Sets the entity's visual size.
5551
5668
  */
5669
+ // @ts-ignore Class inheritance allowed for native defined classes
5552
5670
  export class EntityScaleComponent extends EntityComponent {
5553
- protected constructor();
5671
+ private constructor();
5554
5672
  /**
5555
5673
  * @remarks
5556
5674
  * This property can't be edited in read-only mode.
@@ -5571,8 +5689,9 @@ export class EntityScaleComponent extends EntityComponent {
5571
5689
  * Skin Id value. Can be used to differentiate skins, such as
5572
5690
  * base skins for villagers.
5573
5691
  */
5692
+ // @ts-ignore Class inheritance allowed for native defined classes
5574
5693
  export class EntitySkinIdComponent extends EntityComponent {
5575
- protected constructor();
5694
+ private constructor();
5576
5695
  /**
5577
5696
  * @remarks
5578
5697
  * This property can't be edited in read-only mode.
@@ -5594,7 +5713,7 @@ export class EntitySkinIdComponent extends EntityComponent {
5594
5713
  * world.
5595
5714
  */
5596
5715
  export class EntitySpawnAfterEvent {
5597
- protected constructor();
5716
+ private constructor();
5598
5717
  /**
5599
5718
  * @remarks
5600
5719
  * Entity that was spawned.
@@ -5610,16 +5729,18 @@ export class EntitySpawnAfterEvent {
5610
5729
  * Registers a script-based event handler for handling what
5611
5730
  * happens when an entity spawns.
5612
5731
  */
5732
+ // @ts-ignore Class inheritance allowed for native defined classes
5613
5733
  export class EntitySpawnAfterEventSignal extends IEntitySpawnAfterEventSignal {
5614
- protected constructor();
5734
+ private constructor();
5615
5735
  }
5616
5736
 
5617
5737
  /**
5618
5738
  * @beta
5619
5739
  * Defines the entity's strength to carry items.
5620
5740
  */
5741
+ // @ts-ignore Class inheritance allowed for native defined classes
5621
5742
  export class EntityStrengthComponent extends EntityComponent {
5622
- protected constructor();
5743
+ private constructor();
5623
5744
  /**
5624
5745
  * @remarks
5625
5746
  * Maximum strength of this entity, as defined in the entity
@@ -5642,8 +5763,9 @@ export class EntityStrengthComponent extends EntityComponent {
5642
5763
  * @beta
5643
5764
  * Defines the rules for an entity to be tamed by the player.
5644
5765
  */
5766
+ // @ts-ignore Class inheritance allowed for native defined classes
5645
5767
  export class EntityTameableComponent extends EntityComponent {
5646
- protected constructor();
5768
+ private constructor();
5647
5769
  /**
5648
5770
  * @remarks
5649
5771
  * The chance of taming the entity with each item use between
@@ -5684,7 +5806,7 @@ export class EntityTameableComponent extends EntityComponent {
5684
5806
  * Represents information about a type of entity.
5685
5807
  */
5686
5808
  export class EntityType {
5687
- protected constructor();
5809
+ private constructor();
5688
5810
  /**
5689
5811
  * @remarks
5690
5812
  * Identifier of this entity type - for example,
@@ -5699,7 +5821,7 @@ export class EntityType {
5699
5821
  * An iterator that loops through available entity types.
5700
5822
  */
5701
5823
  export class EntityTypeIterator implements Iterable<EntityType> {
5702
- protected constructor();
5824
+ private constructor();
5703
5825
  /**
5704
5826
  * @remarks
5705
5827
  * This function can't be called in read-only mode.
@@ -5720,7 +5842,7 @@ export class EntityTypeIterator implements Iterable<EntityType> {
5720
5842
  * use within the world.
5721
5843
  */
5722
5844
  export class EntityTypes {
5723
- protected constructor();
5845
+ private constructor();
5724
5846
  /**
5725
5847
  * @remarks
5726
5848
  * Retrieves an entity type using a string-based identifier.
@@ -5740,8 +5862,9 @@ export class EntityTypes {
5740
5862
  * Defines the general movement speed underwater of this
5741
5863
  * entity.
5742
5864
  */
5865
+ // @ts-ignore Class inheritance allowed for native defined classes
5743
5866
  export class EntityUnderwaterMovementComponent extends EntityAttributeComponent {
5744
- protected constructor();
5867
+ private constructor();
5745
5868
  /**
5746
5869
  * @remarks
5747
5870
  * Identifier of this component. Should always be
@@ -5756,8 +5879,9 @@ export class EntityUnderwaterMovementComponent extends EntityAttributeComponent
5756
5879
  * Used to differentiate the component group of a variant of an
5757
5880
  * entity from others. (e.g. ocelot, villager).
5758
5881
  */
5882
+ // @ts-ignore Class inheritance allowed for native defined classes
5759
5883
  export class EntityVariantComponent extends EntityComponent {
5760
- protected constructor();
5884
+ private constructor();
5761
5885
  readonly value: number;
5762
5886
  /**
5763
5887
  * @remarks
@@ -5773,8 +5897,9 @@ export class EntityVariantComponent extends EntityComponent {
5773
5897
  * When added, this component signifies that this entity wants
5774
5898
  * to become a jockey.
5775
5899
  */
5900
+ // @ts-ignore Class inheritance allowed for native defined classes
5776
5901
  export class EntityWantsJockeyComponent extends EntityComponent {
5777
- protected constructor();
5902
+ private constructor();
5778
5903
  /**
5779
5904
  * @remarks
5780
5905
  * Identifier of this component. Should always be
@@ -5790,7 +5915,7 @@ export class EntityWantsJockeyComponent extends EntityComponent {
5790
5915
  * happened.
5791
5916
  */
5792
5917
  export class ExplosionAfterEvent {
5793
- protected constructor();
5918
+ private constructor();
5794
5919
  /**
5795
5920
  * @remarks
5796
5921
  * Dimension where the explosion has occurred.
@@ -5816,8 +5941,9 @@ export class ExplosionAfterEvent {
5816
5941
  * Manages callbacks that are connected to when an explosion
5817
5942
  * occurs.
5818
5943
  */
5944
+ // @ts-ignore Class inheritance allowed for native defined classes
5819
5945
  export class ExplosionAfterEventSignal extends IExplosionAfterEventSignal {
5820
- protected constructor();
5946
+ private constructor();
5821
5947
  }
5822
5948
 
5823
5949
  /**
@@ -5825,8 +5951,9 @@ export class ExplosionAfterEventSignal extends IExplosionAfterEventSignal {
5825
5951
  * Contains information regarding an explosion that has
5826
5952
  * happened.
5827
5953
  */
5954
+ // @ts-ignore Class inheritance allowed for native defined classes
5828
5955
  export class ExplosionBeforeEvent extends ExplosionAfterEvent {
5829
- protected constructor();
5956
+ private constructor();
5830
5957
  /**
5831
5958
  * @remarks
5832
5959
  * If set to true, cancels the explosion event.
@@ -5849,8 +5976,9 @@ export class ExplosionBeforeEvent extends ExplosionAfterEvent {
5849
5976
  * Manages callbacks that are connected to before an explosion
5850
5977
  * occurs.
5851
5978
  */
5979
+ // @ts-ignore Class inheritance allowed for native defined classes
5852
5980
  export class ExplosionBeforeEventSignal extends IExplosionBeforeEventSignal {
5853
- protected constructor();
5981
+ private constructor();
5854
5982
  }
5855
5983
 
5856
5984
  /**
@@ -5859,7 +5987,7 @@ export class ExplosionBeforeEventSignal extends IExplosionBeforeEventSignal {
5859
5987
  * item that can be fed to an entity to cause health effects.
5860
5988
  */
5861
5989
  export class FeedItem {
5862
- protected constructor();
5990
+ private constructor();
5863
5991
  /**
5864
5992
  * @remarks
5865
5993
  * The amount of health this entity gains when fed this item.
@@ -5891,7 +6019,7 @@ export class FeedItem {
5891
6019
  * item being fed to an entity.
5892
6020
  */
5893
6021
  export class FeedItemEffect {
5894
- protected constructor();
6022
+ private constructor();
5895
6023
  /**
5896
6024
  * @remarks
5897
6025
  * Gets an amplifier that may have been applied to this effect.
@@ -5927,7 +6055,7 @@ export class FeedItemEffect {
5927
6055
  * Represents a set of filters for when an event should occur.
5928
6056
  */
5929
6057
  export class FilterGroup {
5930
- protected constructor();
6058
+ private constructor();
5931
6059
  }
5932
6060
 
5933
6061
  /**
@@ -5935,7 +6063,7 @@ export class FilterGroup {
5935
6063
  * Represents constants related to fluid containers.
5936
6064
  */
5937
6065
  export class FluidContainer {
5938
- protected constructor();
6066
+ private constructor();
5939
6067
  /**
5940
6068
  * @remarks
5941
6069
  * Constant that represents the maximum fill level of a fluid
@@ -5958,7 +6086,7 @@ export class FluidContainer {
5958
6086
  * an event that fires when blocks are broken.
5959
6087
  */
5960
6088
  export class IBlockBreakAfterEventSignal {
5961
- protected constructor();
6089
+ private constructor();
5962
6090
  /**
5963
6091
  * @remarks
5964
6092
  * This function can't be called in read-only mode.
@@ -5980,7 +6108,7 @@ export class IBlockBreakAfterEventSignal {
5980
6108
  * an event that fires when an explosion occurs.
5981
6109
  */
5982
6110
  export class IBlockExplodeAfterEventSignal {
5983
- protected constructor();
6111
+ private constructor();
5984
6112
  /**
5985
6113
  * @remarks
5986
6114
  * This function can't be called in read-only mode.
@@ -6002,7 +6130,7 @@ export class IBlockExplodeAfterEventSignal {
6002
6130
  * an event that fires after a block is placed.
6003
6131
  */
6004
6132
  export class IBlockPlaceAfterEventSignal {
6005
- protected constructor();
6133
+ private constructor();
6006
6134
  /**
6007
6135
  * @remarks
6008
6136
  * This function can't be called in read-only mode.
@@ -6024,7 +6152,7 @@ export class IBlockPlaceAfterEventSignal {
6024
6152
  * an event that fires when a button is pushed.
6025
6153
  */
6026
6154
  export class IButtonPushAfterEventSignal {
6027
- protected constructor();
6155
+ private constructor();
6028
6156
  /**
6029
6157
  * @remarks
6030
6158
  * This function can't be called in read-only mode.
@@ -6046,7 +6174,7 @@ export class IButtonPushAfterEventSignal {
6046
6174
  * an event that fires when a chat message is sent.
6047
6175
  */
6048
6176
  export class IChatSendAfterEventSignal {
6049
- protected constructor();
6177
+ private constructor();
6050
6178
  /**
6051
6179
  * @remarks
6052
6180
  * This function can't be called in read-only mode.
@@ -6068,7 +6196,7 @@ export class IChatSendAfterEventSignal {
6068
6196
  * an event that fires before a chat message is sent.
6069
6197
  */
6070
6198
  export class IChatSendBeforeEventSignal {
6071
- protected constructor();
6199
+ private constructor();
6072
6200
  /**
6073
6201
  * @remarks
6074
6202
  * This function can't be called in read-only mode.
@@ -6091,7 +6219,7 @@ export class IChatSendBeforeEventSignal {
6091
6219
  * triggered to change.
6092
6220
  */
6093
6221
  export class IDataDrivenEntityTriggerAfterEventSignal {
6094
- protected constructor();
6222
+ private constructor();
6095
6223
  /**
6096
6224
  * @remarks
6097
6225
  * This function can't be called in read-only mode.
@@ -6117,7 +6245,7 @@ export class IDataDrivenEntityTriggerAfterEventSignal {
6117
6245
  * scheduled to change via a triggered event.
6118
6246
  */
6119
6247
  export class IDataDrivenEntityTriggerBeforeEventSignal {
6120
- protected constructor();
6248
+ private constructor();
6121
6249
  /**
6122
6250
  * @remarks
6123
6251
  * This function can't be called in read-only mode.
@@ -6142,7 +6270,7 @@ export class IDataDrivenEntityTriggerBeforeEventSignal {
6142
6270
  * an event that fires when an effect is added to an entity.
6143
6271
  */
6144
6272
  export class IEffectAddAfterEventSignal {
6145
- protected constructor();
6273
+ private constructor();
6146
6274
  /**
6147
6275
  * @remarks
6148
6276
  * This function can't be called in read-only mode.
@@ -6167,7 +6295,7 @@ export class IEffectAddAfterEventSignal {
6167
6295
  * an event that fires when an entity dies.
6168
6296
  */
6169
6297
  export class IEntityDieAfterEventSignal {
6170
- protected constructor();
6298
+ private constructor();
6171
6299
  /**
6172
6300
  * @remarks
6173
6301
  * This function can't be called in read-only mode.
@@ -6190,7 +6318,7 @@ export class IEntityDieAfterEventSignal {
6190
6318
  * @beta
6191
6319
  */
6192
6320
  export class IEntityHealthChangedAfterEventSignal {
6193
- protected constructor();
6321
+ private constructor();
6194
6322
  /**
6195
6323
  * @remarks
6196
6324
  * This function can't be called in read-only mode.
@@ -6211,28 +6339,48 @@ export class IEntityHealthChangedAfterEventSignal {
6211
6339
 
6212
6340
  /**
6213
6341
  * @beta
6214
- * Provides an adaptable interface for callers to subscribe to
6215
- * an event that fires when an entity hits (melee attacks)
6216
- * another entity.
6217
6342
  */
6218
- export class IEntityHitAfterEventSignal {
6219
- protected constructor();
6343
+ export class IEntityHitBlockAfterEventSignal {
6344
+ private constructor();
6345
+ /**
6346
+ * @remarks
6347
+ * This function can't be called in read-only mode.
6348
+ *
6349
+ */
6350
+ subscribe(
6351
+ callback: (arg: EntityHitBlockAfterEvent) => void,
6352
+ options?: EntityEventOptions,
6353
+ ): (arg: EntityHitBlockAfterEvent) => void;
6354
+ /**
6355
+ * @remarks
6356
+ * This function can't be called in read-only mode.
6357
+ *
6358
+ * @throws This function can throw errors.
6359
+ */
6360
+ unsubscribe(callback: (arg: EntityHitBlockAfterEvent) => void): void;
6361
+ }
6362
+
6363
+ /**
6364
+ * @beta
6365
+ */
6366
+ export class IEntityHitEntityAfterEventSignal {
6367
+ private constructor();
6220
6368
  /**
6221
6369
  * @remarks
6222
6370
  * This function can't be called in read-only mode.
6223
6371
  *
6224
6372
  */
6225
6373
  subscribe(
6226
- callback: (arg: EntityHitAfterEvent) => void,
6374
+ callback: (arg: EntityHitEntityAfterEvent) => void,
6227
6375
  options?: EntityEventOptions,
6228
- ): (arg: EntityHitAfterEvent) => void;
6376
+ ): (arg: EntityHitEntityAfterEvent) => void;
6229
6377
  /**
6230
6378
  * @remarks
6231
6379
  * This function can't be called in read-only mode.
6232
6380
  *
6233
6381
  * @throws This function can throw errors.
6234
6382
  */
6235
- unsubscribe(callback: (arg: EntityHitAfterEvent) => void): void;
6383
+ unsubscribe(callback: (arg: EntityHitEntityAfterEvent) => void): void;
6236
6384
  }
6237
6385
 
6238
6386
  /**
@@ -6241,7 +6389,7 @@ export class IEntityHitAfterEventSignal {
6241
6389
  * an event that fires when an entity is hurt.
6242
6390
  */
6243
6391
  export class IEntityHurtAfterEventSignal {
6244
- protected constructor();
6392
+ private constructor();
6245
6393
  /**
6246
6394
  * @remarks
6247
6395
  * This function can't be called in read-only mode.
@@ -6264,7 +6412,7 @@ export class IEntityHurtAfterEventSignal {
6264
6412
  * @beta
6265
6413
  */
6266
6414
  export class IEntityRemovedAfterEventSignal {
6267
- protected constructor();
6415
+ private constructor();
6268
6416
  /**
6269
6417
  * @remarks
6270
6418
  * This function can't be called in read-only mode.
@@ -6289,7 +6437,7 @@ export class IEntityRemovedAfterEventSignal {
6289
6437
  * an event that fires after an entity is spawned.
6290
6438
  */
6291
6439
  export class IEntitySpawnAfterEventSignal {
6292
- protected constructor();
6440
+ private constructor();
6293
6441
  /**
6294
6442
  * @remarks
6295
6443
  * This function can't be called in read-only mode.
@@ -6311,7 +6459,7 @@ export class IEntitySpawnAfterEventSignal {
6311
6459
  * an event that fires after an explosion occurs.
6312
6460
  */
6313
6461
  export class IExplosionAfterEventSignal {
6314
- protected constructor();
6462
+ private constructor();
6315
6463
  /**
6316
6464
  * @remarks
6317
6465
  * This function can't be called in read-only mode.
@@ -6333,7 +6481,7 @@ export class IExplosionAfterEventSignal {
6333
6481
  * an event that fires before an explosion begins.
6334
6482
  */
6335
6483
  export class IExplosionBeforeEventSignal {
6336
- protected constructor();
6484
+ private constructor();
6337
6485
  /**
6338
6486
  * @remarks
6339
6487
  * This function can't be called in read-only mode.
@@ -6353,7 +6501,7 @@ export class IExplosionBeforeEventSignal {
6353
6501
  * @beta
6354
6502
  */
6355
6503
  export class IItemCompleteUseAfterEventSignal {
6356
- protected constructor();
6504
+ private constructor();
6357
6505
  /**
6358
6506
  * @remarks
6359
6507
  * This function can't be called in read-only mode.
@@ -6375,7 +6523,7 @@ export class IItemCompleteUseAfterEventSignal {
6375
6523
  * an event that fires after an items' definition has changed.
6376
6524
  */
6377
6525
  export class IItemDefinitionAfterEventSignal {
6378
- protected constructor();
6526
+ private constructor();
6379
6527
  /**
6380
6528
  * @remarks
6381
6529
  * This function can't be called in read-only mode.
@@ -6399,7 +6547,7 @@ export class IItemDefinitionAfterEventSignal {
6399
6547
  * an event that fires before an items' definition changes.
6400
6548
  */
6401
6549
  export class IItemDefinitionBeforeEventSignal {
6402
- protected constructor();
6550
+ private constructor();
6403
6551
  /**
6404
6552
  * @remarks
6405
6553
  * This function can't be called in read-only mode.
@@ -6421,7 +6569,7 @@ export class IItemDefinitionBeforeEventSignal {
6421
6569
  * @beta
6422
6570
  */
6423
6571
  export class IItemReleaseUseAfterEventSignal {
6424
- protected constructor();
6572
+ private constructor();
6425
6573
  /**
6426
6574
  * @remarks
6427
6575
  * This function can't be called in read-only mode.
@@ -6441,7 +6589,7 @@ export class IItemReleaseUseAfterEventSignal {
6441
6589
  * @beta
6442
6590
  */
6443
6591
  export class IItemStartUseAfterEventSignal {
6444
- protected constructor();
6592
+ private constructor();
6445
6593
  /**
6446
6594
  * @remarks
6447
6595
  * This function can't be called in read-only mode.
@@ -6464,7 +6612,7 @@ export class IItemStartUseAfterEventSignal {
6464
6612
  * on a block.
6465
6613
  */
6466
6614
  export class IItemStartUseOnAfterEventSignal {
6467
- protected constructor();
6615
+ private constructor();
6468
6616
  /**
6469
6617
  * @remarks
6470
6618
  * This function can't be called in read-only mode.
@@ -6484,7 +6632,7 @@ export class IItemStartUseOnAfterEventSignal {
6484
6632
  * @beta
6485
6633
  */
6486
6634
  export class IItemStopUseAfterEventSignal {
6487
- protected constructor();
6635
+ private constructor();
6488
6636
  /**
6489
6637
  * @remarks
6490
6638
  * This function can't be called in read-only mode.
@@ -6507,7 +6655,7 @@ export class IItemStopUseAfterEventSignal {
6507
6655
  * block.
6508
6656
  */
6509
6657
  export class IItemStopUseOnAfterEventSignal {
6510
- protected constructor();
6658
+ private constructor();
6511
6659
  /**
6512
6660
  * @remarks
6513
6661
  * This function can't be called in read-only mode.
@@ -6529,7 +6677,7 @@ export class IItemStopUseOnAfterEventSignal {
6529
6677
  * an event that fires after an item is used.
6530
6678
  */
6531
6679
  export class IItemUseAfterEventSignal {
6532
- protected constructor();
6680
+ private constructor();
6533
6681
  /**
6534
6682
  * @remarks
6535
6683
  * This function can't be called in read-only mode.
@@ -6551,7 +6699,7 @@ export class IItemUseAfterEventSignal {
6551
6699
  * an event that fires before an item is used.
6552
6700
  */
6553
6701
  export class IItemUseBeforeEventSignal {
6554
- protected constructor();
6702
+ private constructor();
6555
6703
  /**
6556
6704
  * @remarks
6557
6705
  * This function can't be called in read-only mode.
@@ -6573,7 +6721,7 @@ export class IItemUseBeforeEventSignal {
6573
6721
  * an event that fires after an item is used on a block.
6574
6722
  */
6575
6723
  export class IItemUseOnAfterEventSignal {
6576
- protected constructor();
6724
+ private constructor();
6577
6725
  /**
6578
6726
  * @remarks
6579
6727
  * This function can't be called in read-only mode.
@@ -6595,7 +6743,7 @@ export class IItemUseOnAfterEventSignal {
6595
6743
  * an event that fires before an item is being used on a block.
6596
6744
  */
6597
6745
  export class IItemUseOnBeforeEventSignal {
6598
- protected constructor();
6746
+ private constructor();
6599
6747
  /**
6600
6748
  * @remarks
6601
6749
  * This function can't be called in read-only mode.
@@ -6617,7 +6765,7 @@ export class IItemUseOnBeforeEventSignal {
6617
6765
  * an event that fires after a lever is used.
6618
6766
  */
6619
6767
  export class ILeverActionAfterEventSignal {
6620
- protected constructor();
6768
+ private constructor();
6621
6769
  /**
6622
6770
  * @remarks
6623
6771
  * This function can't be called in read-only mode.
@@ -6639,7 +6787,7 @@ export class ILeverActionAfterEventSignal {
6639
6787
  * an event that fires after a piston is activated.
6640
6788
  */
6641
6789
  export class IPistonActivateAfterEventSignal {
6642
- protected constructor();
6790
+ private constructor();
6643
6791
  /**
6644
6792
  * @remarks
6645
6793
  * This function can't be called in read-only mode.
@@ -6661,7 +6809,7 @@ export class IPistonActivateAfterEventSignal {
6661
6809
  * an event that fires before a piston is activated.
6662
6810
  */
6663
6811
  export class IPistonActivateBeforeEventSignal {
6664
- protected constructor();
6812
+ private constructor();
6665
6813
  /**
6666
6814
  * @remarks
6667
6815
  * This function can't be called in read-only mode.
@@ -6683,7 +6831,7 @@ export class IPistonActivateBeforeEventSignal {
6683
6831
  * an event that fires after a player joins a world.
6684
6832
  */
6685
6833
  export class IPlayerJoinAfterEventSignal {
6686
- protected constructor();
6834
+ private constructor();
6687
6835
  /**
6688
6836
  * @remarks
6689
6837
  * This function can't be called in read-only mode.
@@ -6705,7 +6853,7 @@ export class IPlayerJoinAfterEventSignal {
6705
6853
  * an event that fires after a player leaves a world.
6706
6854
  */
6707
6855
  export class IPlayerLeaveAfterEventSignal {
6708
- protected constructor();
6856
+ private constructor();
6709
6857
  /**
6710
6858
  * @remarks
6711
6859
  * This function can't be called in read-only mode.
@@ -6727,7 +6875,7 @@ export class IPlayerLeaveAfterEventSignal {
6727
6875
  * an event that fires after a player spawns.
6728
6876
  */
6729
6877
  export class IPlayerSpawnAfterEventSignal {
6730
- protected constructor();
6878
+ private constructor();
6731
6879
  /**
6732
6880
  * @remarks
6733
6881
  * This function can't be called in read-only mode.
@@ -6747,7 +6895,7 @@ export class IPlayerSpawnAfterEventSignal {
6747
6895
  * @beta
6748
6896
  */
6749
6897
  export class IPressurePlatePopAfterEventSignal {
6750
- protected constructor();
6898
+ private constructor();
6751
6899
  /**
6752
6900
  * @remarks
6753
6901
  * This function can't be called in read-only mode.
@@ -6767,7 +6915,7 @@ export class IPressurePlatePopAfterEventSignal {
6767
6915
  * @beta
6768
6916
  */
6769
6917
  export class IPressurePlatePushAfterEventSignal {
6770
- protected constructor();
6918
+ private constructor();
6771
6919
  /**
6772
6920
  * @remarks
6773
6921
  * This function can't be called in read-only mode.
@@ -6789,7 +6937,7 @@ export class IPressurePlatePushAfterEventSignal {
6789
6937
  * an event that fires after a projectile hits a target.
6790
6938
  */
6791
6939
  export class IProjectileHitAfterEventSignal {
6792
- protected constructor();
6940
+ private constructor();
6793
6941
  /**
6794
6942
  * @remarks
6795
6943
  * This function can't be called in read-only mode.
@@ -6811,7 +6959,7 @@ export class IProjectileHitAfterEventSignal {
6811
6959
  * an event that fires when /script event command is called.
6812
6960
  */
6813
6961
  export class IScriptEventCommandMessageAfterEventSignal {
6814
- protected constructor();
6962
+ private constructor();
6815
6963
  /**
6816
6964
  * @remarks
6817
6965
  * This function can't be called in read-only mode.
@@ -6837,7 +6985,7 @@ export class IScriptEventCommandMessageAfterEventSignal {
6837
6985
  * that this event is for internal use only.
6838
6986
  */
6839
6987
  export class IServerMessageAfterEventSignal {
6840
- protected constructor();
6988
+ private constructor();
6841
6989
  /**
6842
6990
  * @remarks
6843
6991
  * This function can't be called in read-only mode.
@@ -6857,7 +7005,7 @@ export class IServerMessageAfterEventSignal {
6857
7005
  * @beta
6858
7006
  */
6859
7007
  export class ITargetBlockHitAfterEventSignal {
6860
- protected constructor();
7008
+ private constructor();
6861
7009
  /**
6862
7010
  * @remarks
6863
7011
  * This function can't be called in read-only mode.
@@ -6879,7 +7027,7 @@ export class ITargetBlockHitAfterEventSignal {
6879
7027
  * being charged.
6880
7028
  */
6881
7029
  export class ItemCompleteUseAfterEvent {
6882
- protected constructor();
7030
+ private constructor();
6883
7031
  /**
6884
7032
  * @remarks
6885
7033
  * Returns the item stack that has completed charging.
@@ -6906,20 +7054,18 @@ export class ItemCompleteUseAfterEvent {
6906
7054
  * Manages callbacks that are connected to the completion of
6907
7055
  * charging for a chargeable item.
6908
7056
  */
7057
+ // @ts-ignore Class inheritance allowed for native defined classes
6909
7058
  export class ItemCompleteUseAfterEventSignal extends IItemCompleteUseAfterEventSignal {
6910
- protected constructor();
7059
+ private constructor();
6911
7060
  }
6912
7061
 
6913
7062
  /**
6914
7063
  * @beta
6915
7064
  * Base class for item components.
6916
7065
  */
7066
+ // @ts-ignore Class inheritance allowed for native defined classes
6917
7067
  export class ItemComponent extends Component {
6918
- protected constructor();
6919
- /**
6920
- * @beta
6921
- */
6922
- isValid(): boolean;
7068
+ private constructor();
6923
7069
  }
6924
7070
 
6925
7071
  /**
@@ -6927,8 +7073,9 @@ export class ItemComponent extends Component {
6927
7073
  * When present on an item, this item has a cooldown effect
6928
7074
  * when used by entities.
6929
7075
  */
7076
+ // @ts-ignore Class inheritance allowed for native defined classes
6930
7077
  export class ItemCooldownComponent extends ItemComponent {
6931
- protected constructor();
7078
+ private constructor();
6932
7079
  /**
6933
7080
  * @remarks
6934
7081
  * Represents the cooldown category that this item is
@@ -6968,8 +7115,9 @@ export class ItemCooldownComponent extends ItemComponent {
6968
7115
  * Manages callbacks that are connected to an item's definition
6969
7116
  * and components changing.
6970
7117
  */
7118
+ // @ts-ignore Class inheritance allowed for native defined classes
6971
7119
  export class ItemDefinitionAfterEventSignal extends IItemDefinitionAfterEventSignal {
6972
- protected constructor();
7120
+ private constructor();
6973
7121
  }
6974
7122
 
6975
7123
  /**
@@ -6977,8 +7125,9 @@ export class ItemDefinitionAfterEventSignal extends IItemDefinitionAfterEventSig
6977
7125
  * Manages callbacks that are connected to an item's definition
6978
7126
  * and components changing.
6979
7127
  */
7128
+ // @ts-ignore Class inheritance allowed for native defined classes
6980
7129
  export class ItemDefinitionBeforeEventSignal extends IItemDefinitionBeforeEventSignal {
6981
- protected constructor();
7130
+ private constructor();
6982
7131
  }
6983
7132
 
6984
7133
  /**
@@ -6987,7 +7136,7 @@ export class ItemDefinitionBeforeEventSignal extends IItemDefinitionBeforeEventS
6987
7136
  * definition change being triggered.
6988
7137
  */
6989
7138
  export class ItemDefinitionTriggeredAfterEvent {
6990
- protected constructor();
7139
+ private constructor();
6991
7140
  /**
6992
7141
  * @remarks
6993
7142
  * Name of the data-driven item event that is triggering this
@@ -7009,8 +7158,9 @@ export class ItemDefinitionTriggeredAfterEvent {
7009
7158
  * Contains information related to a triggering of a custom
7010
7159
  * item definition change.
7011
7160
  */
7161
+ // @ts-ignore Class inheritance allowed for native defined classes
7012
7162
  export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredAfterEvent {
7013
- protected constructor();
7163
+ private constructor();
7014
7164
  /**
7015
7165
  * @remarks
7016
7166
  * If set to true, will cancel the application of this item
@@ -7026,8 +7176,9 @@ export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredA
7026
7176
  * process of being used. Note that this component only applies
7027
7177
  * to data-driven items.
7028
7178
  */
7179
+ // @ts-ignore Class inheritance allowed for native defined classes
7029
7180
  export class ItemDurabilityComponent extends ItemComponent {
7030
- protected constructor();
7181
+ private constructor();
7031
7182
  /**
7032
7183
  * @remarks
7033
7184
  * Returns the current damage level of this particular item.
@@ -7083,8 +7234,9 @@ export class ItemDurabilityComponent extends ItemComponent {
7083
7234
  * effects. Note that this component only applies to
7084
7235
  * data-driven items.
7085
7236
  */
7237
+ // @ts-ignore Class inheritance allowed for native defined classes
7086
7238
  export class ItemEnchantsComponent extends ItemComponent {
7087
- protected constructor();
7239
+ private constructor();
7088
7240
  /**
7089
7241
  * @remarks
7090
7242
  * Returns a collection of the enchantments applied to this
@@ -7117,8 +7269,9 @@ export class ItemEnchantsComponent extends ItemComponent {
7117
7269
  * entities. Note that this component only applies to
7118
7270
  * data-driven items.
7119
7271
  */
7272
+ // @ts-ignore Class inheritance allowed for native defined classes
7120
7273
  export class ItemFoodComponent extends ItemComponent {
7121
- protected constructor();
7274
+ private constructor();
7122
7275
  /**
7123
7276
  * @remarks
7124
7277
  * If true, the player can always eat this item (even when not
@@ -7168,7 +7321,7 @@ export class ItemFoodComponent extends ItemComponent {
7168
7321
  * action.
7169
7322
  */
7170
7323
  export class ItemReleaseUseAfterEvent {
7171
- protected constructor();
7324
+ private constructor();
7172
7325
  /**
7173
7326
  * @remarks
7174
7327
  * Returns the item stack that triggered this item event.
@@ -7195,8 +7348,9 @@ export class ItemReleaseUseAfterEvent {
7195
7348
  * Manages callbacks that are connected to the releasing of
7196
7349
  * charging for a chargeable item.
7197
7350
  */
7351
+ // @ts-ignore Class inheritance allowed for native defined classes
7198
7352
  export class ItemReleaseUseAfterEventSignal extends IItemReleaseUseAfterEventSignal {
7199
- protected constructor();
7353
+ private constructor();
7200
7354
  }
7201
7355
 
7202
7356
  /**
@@ -7205,6 +7359,7 @@ export class ItemReleaseUseAfterEventSignal extends IItemReleaseUseAfterEventSig
7205
7359
  */
7206
7360
  export class ItemStack {
7207
7361
  /**
7362
+ * @beta
7208
7363
  * @remarks
7209
7364
  * Number of the items in the stack. Valid values range between
7210
7365
  * 1-255. The provided value will be clamped to the item's
@@ -7225,6 +7380,7 @@ export class ItemStack {
7225
7380
  */
7226
7381
  readonly isStackable: boolean;
7227
7382
  /**
7383
+ * @beta
7228
7384
  * @remarks
7229
7385
  * Gets or sets whether the item is kept on death.
7230
7386
  *
@@ -7233,6 +7389,7 @@ export class ItemStack {
7233
7389
  */
7234
7390
  keepOnDeath: boolean;
7235
7391
  /**
7392
+ * @beta
7236
7393
  * @remarks
7237
7394
  * Gets or sets the item's lock mode. The default value is
7238
7395
  * `ItemLockMode.none`.
@@ -7250,6 +7407,7 @@ export class ItemStack {
7250
7407
  */
7251
7408
  readonly maxAmount: number;
7252
7409
  /**
7410
+ * @beta
7253
7411
  * @remarks
7254
7412
  * Given name of this stack of items. The name tag is displayed
7255
7413
  * when hovering over the item. Setting the name tag to an
@@ -7429,6 +7587,7 @@ export class ItemStack {
7429
7587
  *
7430
7588
  * This function can't be called in read-only mode.
7431
7589
  *
7590
+ * @throws This function can throw errors.
7432
7591
  * @example multilineLore.ts
7433
7592
  * ```typescript
7434
7593
  * // Set the lore of an item to multiple lines of text
@@ -7459,7 +7618,7 @@ export class ItemStack {
7459
7618
  * to be charged.
7460
7619
  */
7461
7620
  export class ItemStartUseAfterEvent {
7462
- protected constructor();
7621
+ private constructor();
7463
7622
  /**
7464
7623
  * @remarks
7465
7624
  * The impacted item stack that is starting to be charged.
@@ -7486,8 +7645,9 @@ export class ItemStartUseAfterEvent {
7486
7645
  * Manages callbacks that are connected to the start of
7487
7646
  * charging for a chargeable item.
7488
7647
  */
7648
+ // @ts-ignore Class inheritance allowed for native defined classes
7489
7649
  export class ItemStartUseAfterEventSignal extends IItemStartUseAfterEventSignal {
7490
- protected constructor();
7650
+ private constructor();
7491
7651
  }
7492
7652
 
7493
7653
  /**
@@ -7499,7 +7659,7 @@ export class ItemStartUseAfterEventSignal extends IItemStartUseAfterEventSignal
7499
7659
  * Axe items.
7500
7660
  */
7501
7661
  export class ItemStartUseOnAfterEvent {
7502
- protected constructor();
7662
+ private constructor();
7503
7663
  /**
7504
7664
  * @remarks
7505
7665
  * The block that the item is used on.
@@ -7531,8 +7691,9 @@ export class ItemStartUseOnAfterEvent {
7531
7691
  * Manages callbacks that are connected to an item starting
7532
7692
  * being used on a block event.
7533
7693
  */
7694
+ // @ts-ignore Class inheritance allowed for native defined classes
7534
7695
  export class ItemStartUseOnAfterEventSignal extends IItemStartUseOnAfterEventSignal {
7535
- protected constructor();
7696
+ private constructor();
7536
7697
  }
7537
7698
 
7538
7699
  /**
@@ -7542,7 +7703,7 @@ export class ItemStartUseOnAfterEventSignal extends IItemStartUseOnAfterEventSig
7542
7703
  * the use action with the item.
7543
7704
  */
7544
7705
  export class ItemStopUseAfterEvent {
7545
- protected constructor();
7706
+ private constructor();
7546
7707
  /**
7547
7708
  * @remarks
7548
7709
  * The impacted item stack that is stopping being charged.
@@ -7570,8 +7731,9 @@ export class ItemStopUseAfterEvent {
7570
7731
  * charging for an item that has a registered
7571
7732
  * minecraft:chargeable component.
7572
7733
  */
7734
+ // @ts-ignore Class inheritance allowed for native defined classes
7573
7735
  export class ItemStopUseAfterEventSignal extends IItemStopUseAfterEventSignal {
7574
- protected constructor();
7736
+ private constructor();
7575
7737
  }
7576
7738
 
7577
7739
  /**
@@ -7585,7 +7747,7 @@ export class ItemStopUseAfterEventSignal extends IItemStopUseAfterEventSignal {
7585
7747
  * Hoe or Axe items.
7586
7748
  */
7587
7749
  export class ItemStopUseOnAfterEvent {
7588
- protected constructor();
7750
+ private constructor();
7589
7751
  /**
7590
7752
  * @remarks
7591
7753
  * The block that the item is used on.
@@ -7611,8 +7773,9 @@ export class ItemStopUseOnAfterEvent {
7611
7773
  * Manages callbacks that are connected to an item stops used
7612
7774
  * on a block event.
7613
7775
  */
7776
+ // @ts-ignore Class inheritance allowed for native defined classes
7614
7777
  export class ItemStopUseOnAfterEventSignal extends IItemStopUseOnAfterEventSignal {
7615
- protected constructor();
7778
+ private constructor();
7616
7779
  }
7617
7780
 
7618
7781
  /**
@@ -7620,7 +7783,7 @@ export class ItemStopUseOnAfterEventSignal extends IItemStopUseOnAfterEventSigna
7620
7783
  * Represents the type of an item - for example, Wool.
7621
7784
  */
7622
7785
  export class ItemType {
7623
- protected constructor();
7786
+ private constructor();
7624
7787
  /**
7625
7788
  * @remarks
7626
7789
  * Returns the identifier of the item type - for example,
@@ -7635,7 +7798,7 @@ export class ItemType {
7635
7798
  * An iterator over a set of available item types.
7636
7799
  */
7637
7800
  export class ItemTypeIterator implements Iterable<ItemType> {
7638
- protected constructor();
7801
+ private constructor();
7639
7802
  /**
7640
7803
  * @remarks
7641
7804
  * This function can't be called in read-only mode.
@@ -7655,7 +7818,7 @@ export class ItemTypeIterator implements Iterable<ItemType> {
7655
7818
  * Returns the set of item types registered within Minecraft.
7656
7819
  */
7657
7820
  export class ItemTypes {
7658
- protected constructor();
7821
+ private constructor();
7659
7822
  /**
7660
7823
  * @remarks
7661
7824
  * Returns a specific item type, if available within Minecraft.
@@ -7677,7 +7840,7 @@ export class ItemTypes {
7677
7840
  * event fires when an item is successfully used by a player.
7678
7841
  */
7679
7842
  export class ItemUseAfterEvent {
7680
- protected constructor();
7843
+ private constructor();
7681
7844
  /**
7682
7845
  * @remarks
7683
7846
  * The impacted item stack that is being used.
@@ -7696,16 +7859,18 @@ export class ItemUseAfterEvent {
7696
7859
  * @beta
7697
7860
  * Manages callbacks that are connected to an item use event.
7698
7861
  */
7862
+ // @ts-ignore Class inheritance allowed for native defined classes
7699
7863
  export class ItemUseAfterEventSignal extends IItemUseAfterEventSignal {
7700
- protected constructor();
7864
+ private constructor();
7701
7865
  }
7702
7866
 
7703
7867
  /**
7704
7868
  * @beta
7705
7869
  * Contains information related to an item being used.
7706
7870
  */
7871
+ // @ts-ignore Class inheritance allowed for native defined classes
7707
7872
  export class ItemUseBeforeEvent extends ItemUseAfterEvent {
7708
- protected constructor();
7873
+ private constructor();
7709
7874
  /**
7710
7875
  * @remarks
7711
7876
  * If set to true, this will cancel the item use behavior.
@@ -7718,8 +7883,9 @@ export class ItemUseBeforeEvent extends ItemUseAfterEvent {
7718
7883
  * @beta
7719
7884
  * Manages callbacks that fire before an item is used.
7720
7885
  */
7886
+ // @ts-ignore Class inheritance allowed for native defined classes
7721
7887
  export class ItemUseBeforeEventSignal extends IItemUseBeforeEventSignal {
7722
- protected constructor();
7888
+ private constructor();
7723
7889
  }
7724
7890
 
7725
7891
  /**
@@ -7729,7 +7895,7 @@ export class ItemUseBeforeEventSignal extends IItemUseBeforeEventSignal {
7729
7895
  * player.
7730
7896
  */
7731
7897
  export class ItemUseOnAfterEvent {
7732
- protected constructor();
7898
+ private constructor();
7733
7899
  /**
7734
7900
  * @remarks
7735
7901
  * The block that the item is used on.
@@ -7768,8 +7934,9 @@ export class ItemUseOnAfterEvent {
7768
7934
  * Manages callbacks that are connected to an item being used
7769
7935
  * on a block event.
7770
7936
  */
7937
+ // @ts-ignore Class inheritance allowed for native defined classes
7771
7938
  export class ItemUseOnAfterEventSignal extends IItemUseOnAfterEventSignal {
7772
- protected constructor();
7939
+ private constructor();
7773
7940
  }
7774
7941
 
7775
7942
  /**
@@ -7777,8 +7944,9 @@ export class ItemUseOnAfterEventSignal extends IItemUseOnAfterEventSignal {
7777
7944
  * Contains information related to an item being used on a
7778
7945
  * block.
7779
7946
  */
7947
+ // @ts-ignore Class inheritance allowed for native defined classes
7780
7948
  export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
7781
- protected constructor();
7949
+ private constructor();
7782
7950
  /**
7783
7951
  * @remarks
7784
7952
  * If set to true, this will cancel the item use behavior.
@@ -7792,15 +7960,16 @@ export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
7792
7960
  * Manages callbacks that fire before an item being used on a
7793
7961
  * block event.
7794
7962
  */
7963
+ // @ts-ignore Class inheritance allowed for native defined classes
7795
7964
  export class ItemUseOnBeforeEventSignal extends IItemUseOnBeforeEventSignal {
7796
- protected constructor();
7965
+ private constructor();
7797
7966
  }
7798
7967
 
7799
7968
  /**
7800
7969
  * @beta
7801
7970
  */
7802
7971
  export class ITripWireTripAfterEventSignal {
7803
- protected constructor();
7972
+ private constructor();
7804
7973
  /**
7805
7974
  * @remarks
7806
7975
  * This function can't be called in read-only mode.
@@ -7823,7 +7992,7 @@ export class ITripWireTripAfterEventSignal {
7823
7992
  * scripting have exceeded a threshold.
7824
7993
  */
7825
7994
  export class IWatchdogTerminateBeforeEventSignal {
7826
- protected constructor();
7995
+ private constructor();
7827
7996
  /**
7828
7997
  * @remarks
7829
7998
  * This function can't be called in read-only mode.
@@ -7844,7 +8013,7 @@ export class IWatchdogTerminateBeforeEventSignal {
7844
8013
  * An event that fires after the weather has changed.
7845
8014
  */
7846
8015
  export class IWeatherChangeAfterEventSignal {
7847
- protected constructor();
8016
+ private constructor();
7848
8017
  /**
7849
8018
  * @remarks
7850
8019
  * This function can't be called in read-only mode.
@@ -7866,7 +8035,7 @@ export class IWeatherChangeAfterEventSignal {
7866
8035
  * loaded.
7867
8036
  */
7868
8037
  export class IWorldInitializeAfterEventSignal {
7869
- protected constructor();
8038
+ private constructor();
7870
8039
  /**
7871
8040
  * @remarks
7872
8041
  * This function can't be called in read-only mode.
@@ -7887,8 +8056,9 @@ export class IWorldInitializeAfterEventSignal {
7887
8056
  * Contains information related to changes to a lever
7888
8057
  * activating or deactivating.
7889
8058
  */
8059
+ // @ts-ignore Class inheritance allowed for native defined classes
7890
8060
  export class LeverActionAfterEvent extends BlockEvent {
7891
- protected constructor();
8061
+ private constructor();
7892
8062
  /**
7893
8063
  * @remarks
7894
8064
  * True if the lever is activated (that is, transmitting
@@ -7909,8 +8079,9 @@ export class LeverActionAfterEvent extends BlockEvent {
7909
8079
  * Manages callbacks that are connected to lever moves
7910
8080
  * (activates or deactivates).
7911
8081
  */
8082
+ // @ts-ignore Class inheritance allowed for native defined classes
7912
8083
  export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
7913
- protected constructor();
8084
+ private constructor();
7914
8085
  }
7915
8086
 
7916
8087
  /**
@@ -7919,7 +8090,7 @@ export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
7919
8090
  * messages from client to server.
7920
8091
  */
7921
8092
  export class MessageReceiveAfterEvent {
7922
- protected constructor();
8093
+ private constructor();
7923
8094
  readonly id: string;
7924
8095
  readonly message: string;
7925
8096
  readonly player: Player;
@@ -7931,7 +8102,7 @@ export class MessageReceiveAfterEvent {
7931
8102
  * Education Edition block types.
7932
8103
  */
7933
8104
  export class MinecraftBlockTypes {
7934
- protected constructor();
8105
+ private constructor();
7935
8106
  /**
7936
8107
  * @remarks
7937
8108
  * Represents an acacia button within Minecraft.
@@ -12462,7 +12633,7 @@ export class MinecraftBlockTypes {
12462
12633
  * A collection of default Minecraft dimension types.
12463
12634
  */
12464
12635
  export class MinecraftDimensionTypes {
12465
- protected constructor();
12636
+ private constructor();
12466
12637
  /**
12467
12638
  * @remarks
12468
12639
  * The Nether is a collection of biomes separate from the
@@ -12498,49 +12669,11 @@ export class MinecraftDimensionTypes {
12498
12669
  static readonly theEnd = 'minecraft:the_end';
12499
12670
  }
12500
12671
 
12501
- /**
12502
- * @beta
12503
- */
12504
- export class MinecraftEffectTypes {
12505
- protected constructor();
12506
- static readonly absorption: EffectType;
12507
- static readonly badOmen: EffectType;
12508
- static readonly blindness: EffectType;
12509
- static readonly conduitPower: EffectType;
12510
- static readonly darkness: EffectType;
12511
- static readonly empty: EffectType;
12512
- static readonly fatalPoison: EffectType;
12513
- static readonly fireResistance: EffectType;
12514
- static readonly haste: EffectType;
12515
- static readonly healthBoost: EffectType;
12516
- static readonly hunger: EffectType;
12517
- static readonly instantDamage: EffectType;
12518
- static readonly instantHealth: EffectType;
12519
- static readonly invisibility: EffectType;
12520
- static readonly jumpBoost: EffectType;
12521
- static readonly levitation: EffectType;
12522
- static readonly miningFatigue: EffectType;
12523
- static readonly nausea: EffectType;
12524
- static readonly nightVision: EffectType;
12525
- static readonly poison: EffectType;
12526
- static readonly regeneration: EffectType;
12527
- static readonly resistance: EffectType;
12528
- static readonly saturation: EffectType;
12529
- static readonly slowFalling: EffectType;
12530
- static readonly slowness: EffectType;
12531
- static readonly speed: EffectType;
12532
- static readonly strength: EffectType;
12533
- static readonly villageHero: EffectType;
12534
- static readonly waterBreathing: EffectType;
12535
- static readonly weakness: EffectType;
12536
- static readonly wither: EffectType;
12537
- }
12538
-
12539
12672
  /**
12540
12673
  * @beta
12541
12674
  */
12542
12675
  export class MinecraftEntityTypes {
12543
- protected constructor();
12676
+ private constructor();
12544
12677
  static readonly agent: EntityType;
12545
12678
  static readonly allay: EntityType;
12546
12679
  static readonly areaEffectCloud: EntityType;
@@ -12663,7 +12796,7 @@ export class MinecraftEntityTypes {
12663
12796
  * Education Edition block types.
12664
12797
  */
12665
12798
  export class MinecraftItemTypes {
12666
- protected constructor();
12799
+ private constructor();
12667
12800
  static readonly acaciaBoat: ItemType;
12668
12801
  /**
12669
12802
  * @remarks
@@ -16462,7 +16595,7 @@ export class MolangVariableMap {
16462
16595
  * navigation.
16463
16596
  */
16464
16597
  export class NavigationResult {
16465
- protected constructor();
16598
+ private constructor();
16466
16599
  /**
16467
16600
  * @remarks
16468
16601
  * Whether the navigation result contains a full path,
@@ -16483,8 +16616,9 @@ export class NavigationResult {
16483
16616
  * Contains information related to changes to a piston
16484
16617
  * expanding or retracting.
16485
16618
  */
16619
+ // @ts-ignore Class inheritance allowed for native defined classes
16486
16620
  export class PistonActivateAfterEvent extends BlockEvent {
16487
- protected constructor();
16621
+ private constructor();
16488
16622
  /**
16489
16623
  * @remarks
16490
16624
  * True if the piston is the process of expanding.
@@ -16503,8 +16637,9 @@ export class PistonActivateAfterEvent extends BlockEvent {
16503
16637
  * @beta
16504
16638
  * Manages callbacks that are connected to piston activations.
16505
16639
  */
16640
+ // @ts-ignore Class inheritance allowed for native defined classes
16506
16641
  export class PistonActivateAfterEventSignal extends IPistonActivateAfterEventSignal {
16507
- protected constructor();
16642
+ private constructor();
16508
16643
  }
16509
16644
 
16510
16645
  /**
@@ -16512,8 +16647,9 @@ export class PistonActivateAfterEventSignal extends IPistonActivateAfterEventSig
16512
16647
  * Contains information related to changes before a piston
16513
16648
  * expands or retracts.
16514
16649
  */
16650
+ // @ts-ignore Class inheritance allowed for native defined classes
16515
16651
  export class PistonActivateBeforeEvent extends BlockEvent {
16516
- protected constructor();
16652
+ private constructor();
16517
16653
  /**
16518
16654
  * @remarks
16519
16655
  * If this is set to true within an event handler, the piston
@@ -16540,15 +16676,17 @@ export class PistonActivateBeforeEvent extends BlockEvent {
16540
16676
  * Manages callbacks that are connected to an event that fires
16541
16677
  * before a piston is activated.
16542
16678
  */
16679
+ // @ts-ignore Class inheritance allowed for native defined classes
16543
16680
  export class PistonActivateBeforeEventSignal extends IPistonActivateBeforeEventSignal {
16544
- protected constructor();
16681
+ private constructor();
16545
16682
  }
16546
16683
 
16547
16684
  /**
16548
16685
  * Represents a player within the world.
16549
16686
  */
16687
+ // @ts-ignore Class inheritance allowed for native defined classes
16550
16688
  export class Player extends Entity {
16551
- protected constructor();
16689
+ private constructor();
16552
16690
  /**
16553
16691
  * @beta
16554
16692
  * @remarks
@@ -16597,6 +16735,7 @@ export class Player extends Entity {
16597
16735
  * Contains methods for manipulating the on-screen display of a
16598
16736
  * Player.
16599
16737
  *
16738
+ * @throws This property can throw when used.
16600
16739
  */
16601
16740
  readonly onScreenDisplay: ScreenDisplay;
16602
16741
  /**
@@ -16608,15 +16747,6 @@ export class Player extends Entity {
16608
16747
  *
16609
16748
  */
16610
16749
  selectedSlot: number;
16611
- /**
16612
- * @beta
16613
- * @remarks
16614
- * If this player has an individual spawn point set, returns
16615
- * the dimension that their spawn point is within.
16616
- *
16617
- * @throws This property can throw when used.
16618
- */
16619
- readonly spawnDimension?: Dimension;
16620
16750
  /**
16621
16751
  * @beta
16622
16752
  * @remarks
@@ -16664,17 +16794,6 @@ export class Player extends Entity {
16664
16794
  * @throws This function can throw errors.
16665
16795
  */
16666
16796
  addLevels(amount: number): number;
16667
- /**
16668
- * @beta
16669
- * @remarks
16670
- * Clears the spawn point that has been individually set for a
16671
- * player.
16672
- *
16673
- * This function can't be called in read-only mode.
16674
- *
16675
- * @throws This function can throw errors.
16676
- */
16677
- clearSpawn(): void;
16678
16797
  /**
16679
16798
  * @beta
16680
16799
  * @remarks
@@ -16689,16 +16808,9 @@ export class Player extends Entity {
16689
16808
  getItemCooldown(itemCategory: string): number;
16690
16809
  /**
16691
16810
  * @beta
16692
- * @remarks
16693
- * Returns an individualized spawn position, if set, for a
16694
- * player.
16695
- *
16696
- * @returns
16697
- * The individual spawn position, or undefined if there is no
16698
- * specific spawn position set for a player.
16699
16811
  * @throws This function can throw errors.
16700
16812
  */
16701
- getSpawnPosition(): Vector3 | undefined;
16813
+ getSpawnPoint(): DimensionLocation | undefined;
16702
16814
  /**
16703
16815
  * @beta
16704
16816
  * @remarks
@@ -16803,20 +16915,11 @@ export class Player extends Entity {
16803
16915
  /**
16804
16916
  * @beta
16805
16917
  * @remarks
16806
- * Sets the individual spawn point of this player.
16807
- *
16808
16918
  * This function can't be called in read-only mode.
16809
16919
  *
16810
- * @param spawnPosition
16811
- * Location of the spawn point.
16812
- * @param spawnDimension
16813
- * Dimension to place the players' individualized spawn point
16814
- * within.
16815
- * @returns
16816
- * Returns undefined/void.
16817
16920
  * @throws This function can throw errors.
16818
16921
  */
16819
- setSpawn(spawnPosition: Vector3, spawnDimension: Dimension): void;
16922
+ setSpawnPoint(spawnPoint?: DimensionLocation): void;
16820
16923
  /**
16821
16924
  * @beta
16822
16925
  * @remarks
@@ -16842,7 +16945,7 @@ export class Player extends Entity {
16842
16945
  * statements, Array.from(iterator), and more.
16843
16946
  */
16844
16947
  export class PlayerIterator implements Iterable<Player> {
16845
- protected constructor();
16948
+ private constructor();
16846
16949
  /**
16847
16950
  * @remarks
16848
16951
  * This function can't be called in read-only mode.
@@ -16869,7 +16972,7 @@ export class PlayerIterator implements Iterable<Player> {
16869
16972
  * within the game.
16870
16973
  */
16871
16974
  export class PlayerJoinAfterEvent {
16872
- protected constructor();
16975
+ private constructor();
16873
16976
  /**
16874
16977
  * @remarks
16875
16978
  * Opaque string identifier of the player that joined the game.
@@ -16889,8 +16992,9 @@ export class PlayerJoinAfterEvent {
16889
16992
  * Manages callbacks that are connected to a player joining the
16890
16993
  * world.
16891
16994
  */
16995
+ // @ts-ignore Class inheritance allowed for native defined classes
16892
16996
  export class PlayerJoinAfterEventSignal extends IPlayerJoinAfterEventSignal {
16893
- protected constructor();
16997
+ private constructor();
16894
16998
  }
16895
16999
 
16896
17000
  /**
@@ -16899,7 +17003,7 @@ export class PlayerJoinAfterEventSignal extends IPlayerJoinAfterEventSignal {
16899
17003
  * world.
16900
17004
  */
16901
17005
  export class PlayerLeaveAfterEvent {
16902
- protected constructor();
17006
+ private constructor();
16903
17007
  /**
16904
17008
  * @remarks
16905
17009
  * Opaque string identifier of the player that has left the
@@ -16920,8 +17024,9 @@ export class PlayerLeaveAfterEvent {
16920
17024
  * Manages callbacks that are connected to a player leaving the
16921
17025
  * world.
16922
17026
  */
17027
+ // @ts-ignore Class inheritance allowed for native defined classes
16923
17028
  export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
16924
- protected constructor();
17029
+ private constructor();
16925
17030
  }
16926
17031
 
16927
17032
  /**
@@ -16930,7 +17035,7 @@ export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
16930
17035
  * spawning.
16931
17036
  */
16932
17037
  export class PlayerSpawnAfterEvent {
16933
- protected constructor();
17038
+ private constructor();
16934
17039
  /**
16935
17040
  * @remarks
16936
17041
  * If true, this is the initial spawn of a player after joining
@@ -16955,8 +17060,9 @@ export class PlayerSpawnAfterEvent {
16955
17060
  * Registers an event when a player is spawned (or re-spawned
16956
17061
  * after death) and fully ready within the world.
16957
17062
  */
17063
+ // @ts-ignore Class inheritance allowed for native defined classes
16958
17064
  export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal {
16959
- protected constructor();
17065
+ private constructor();
16960
17066
  }
16961
17067
 
16962
17068
  /**
@@ -16964,8 +17070,9 @@ export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal {
16964
17070
  * Contains information related to changes to a pressure plate
16965
17071
  * pop.
16966
17072
  */
17073
+ // @ts-ignore Class inheritance allowed for native defined classes
16967
17074
  export class PressurePlatePopAfterEvent extends BlockEvent {
16968
- protected constructor();
17075
+ private constructor();
16969
17076
  /**
16970
17077
  * @remarks
16971
17078
  * The redstone power of the pressure plate before it was
@@ -16987,8 +17094,9 @@ export class PressurePlatePopAfterEvent extends BlockEvent {
16987
17094
  * Manages callbacks that are connected to when a pressure
16988
17095
  * plate is popped.
16989
17096
  */
17097
+ // @ts-ignore Class inheritance allowed for native defined classes
16990
17098
  export class PressurePlatePopAfterEventSignal extends IPressurePlatePopAfterEventSignal {
16991
- protected constructor();
17099
+ private constructor();
16992
17100
  }
16993
17101
 
16994
17102
  /**
@@ -16996,8 +17104,9 @@ export class PressurePlatePopAfterEventSignal extends IPressurePlatePopAfterEven
16996
17104
  * Contains information related to changes to a pressure plate
16997
17105
  * push.
16998
17106
  */
17107
+ // @ts-ignore Class inheritance allowed for native defined classes
16999
17108
  export class PressurePlatePushAfterEvent extends BlockEvent {
17000
- protected constructor();
17109
+ private constructor();
17001
17110
  /**
17002
17111
  * @remarks
17003
17112
  * The redstone power of the pressure plate before it was
@@ -17025,8 +17134,9 @@ export class PressurePlatePushAfterEvent extends BlockEvent {
17025
17134
  * Manages callbacks that are connected to when a pressure
17026
17135
  * plate is pushed.
17027
17136
  */
17137
+ // @ts-ignore Class inheritance allowed for native defined classes
17028
17138
  export class PressurePlatePushAfterEventSignal extends IPressurePlatePushAfterEventSignal {
17029
- protected constructor();
17139
+ private constructor();
17030
17140
  }
17031
17141
 
17032
17142
  /**
@@ -17035,7 +17145,7 @@ export class PressurePlatePushAfterEventSignal extends IPressurePlatePushAfterEv
17035
17145
  * entity or block.
17036
17146
  */
17037
17147
  export class ProjectileHitAfterEvent {
17038
- protected constructor();
17148
+ private constructor();
17039
17149
  /**
17040
17150
  * @remarks
17041
17151
  * Dimension where this projectile hit took place.
@@ -17091,8 +17201,9 @@ export class ProjectileHitAfterEvent {
17091
17201
  * Manages callbacks that are connected to when a projectile
17092
17202
  * hits an entity or block.
17093
17203
  */
17204
+ // @ts-ignore Class inheritance allowed for native defined classes
17094
17205
  export class ProjectileHitAfterEventSignal extends IProjectileHitAfterEventSignal {
17095
- protected constructor();
17206
+ private constructor();
17096
17207
  }
17097
17208
 
17098
17209
  /**
@@ -17102,7 +17213,7 @@ export class ProjectileHitAfterEventSignal extends IProjectileHitAfterEventSigna
17102
17213
  * used and stored within Minecraft.
17103
17214
  */
17104
17215
  export class PropertyRegistry {
17105
- protected constructor();
17216
+ private constructor();
17106
17217
  /**
17107
17218
  * @remarks
17108
17219
  * Registers a dynamic property for a particular entity type
@@ -17132,7 +17243,7 @@ export class PropertyRegistry {
17132
17243
  * Contains objectives and participants for the scoreboard.
17133
17244
  */
17134
17245
  export class Scoreboard {
17135
- protected constructor();
17246
+ private constructor();
17136
17247
  /**
17137
17248
  * @remarks
17138
17249
  * Adds a new objective to the scoreboard.
@@ -17150,7 +17261,7 @@ export class Scoreboard {
17150
17261
  *
17151
17262
  * @throws This function can throw errors.
17152
17263
  */
17153
- clearObjectiveAtDisplaySlot(displaySlotId: string): ScoreboardObjective;
17264
+ clearObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjective;
17154
17265
  /**
17155
17266
  * @remarks
17156
17267
  * Returns a specific objective (by id).
@@ -17167,7 +17278,7 @@ export class Scoreboard {
17167
17278
  *
17168
17279
  * @throws This function can throw errors.
17169
17280
  */
17170
- getObjectiveAtDisplaySlot(displaySlotId: string): ScoreboardObjectiveDisplayOptions;
17281
+ getObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjectiveDisplayOptions;
17171
17282
  /**
17172
17283
  * @remarks
17173
17284
  * Returns all defined objectives.
@@ -17182,19 +17293,6 @@ export class Scoreboard {
17182
17293
  * @throws This function can throw errors.
17183
17294
  */
17184
17295
  getParticipants(): ScoreboardIdentity[];
17185
- /**
17186
- * @remarks
17187
- * Returns a score given an objective and participant.
17188
- *
17189
- * @param objective
17190
- * Objective to retrieve the score for.
17191
- * @param participant
17192
- * Participant to retrieve the score for.
17193
- * @returns
17194
- * Score value.
17195
- * @throws This function can throw errors.
17196
- */
17197
- getScore(objective: ScoreboardObjective, participant: ScoreboardIdentity): number;
17198
17296
  /**
17199
17297
  * @remarks
17200
17298
  * Removes an objective from the scoreboard.
@@ -17214,22 +17312,9 @@ export class Scoreboard {
17214
17312
  * @throws This function can throw errors.
17215
17313
  */
17216
17314
  setObjectiveAtDisplaySlot(
17217
- displaySlotId: string,
17315
+ displaySlotId: DisplaySlotId,
17218
17316
  objectiveDisplaySetting: ScoreboardObjectiveDisplayOptions,
17219
17317
  ): ScoreboardObjective;
17220
- /**
17221
- * @remarks
17222
- * Sets the score given a participant and objective.
17223
- *
17224
- * This function can't be called in read-only mode.
17225
- *
17226
- * @param objective
17227
- * Objective to use for the scoreboard.
17228
- * @param participant
17229
- * Participant to apply the scoreboard value to.
17230
- * @throws This function can throw errors.
17231
- */
17232
- setScore(objective: ScoreboardObjective, participant: ScoreboardIdentity, score: number): boolean;
17233
17318
  }
17234
17319
 
17235
17320
  /**
@@ -17237,7 +17322,7 @@ export class Scoreboard {
17237
17322
  * Contains an identity of the scoreboard item.
17238
17323
  */
17239
17324
  export class ScoreboardIdentity {
17240
- protected constructor();
17325
+ private constructor();
17241
17326
  /**
17242
17327
  * @remarks
17243
17328
  * Returns the player-visible name of this identity.
@@ -17264,44 +17349,7 @@ export class ScoreboardIdentity {
17264
17349
  * @throws This function can throw errors.
17265
17350
  */
17266
17351
  getEntity(): Entity;
17267
- /**
17268
- * @remarks
17269
- * Gets the current score for this participant based on an
17270
- * objective.
17271
- *
17272
- * @param objective
17273
- * The objective to retrieve the score for.
17274
- * @returns
17275
- * Score value.
17276
- * @throws This function can throw errors.
17277
- */
17278
- getScore(objective: ScoreboardObjective): number;
17279
17352
  isValid(): boolean;
17280
- /**
17281
- * @remarks
17282
- * Removes this participant from an objective.
17283
- *
17284
- * This function can't be called in read-only mode.
17285
- *
17286
- * @param objective
17287
- * The objective to remove this participant from.
17288
- * @throws This function can throw errors.
17289
- */
17290
- removeFromObjective(objective: ScoreboardObjective): boolean;
17291
- /**
17292
- * @remarks
17293
- * Sets a score for this participant for a particular
17294
- * objective.
17295
- *
17296
- * This function can't be called in read-only mode.
17297
- *
17298
- * @param objective
17299
- * Objective to apply the score to.
17300
- * @param score
17301
- * Score value.
17302
- * @throws This function can throw errors.
17303
- */
17304
- setScore(objective: ScoreboardObjective, score: number): boolean;
17305
17353
  }
17306
17354
 
17307
17355
  /**
@@ -17309,7 +17357,7 @@ export class ScoreboardIdentity {
17309
17357
  * Contains objectives and participants for the scoreboard.
17310
17358
  */
17311
17359
  export class ScoreboardObjective {
17312
- protected constructor();
17360
+ private constructor();
17313
17361
  /**
17314
17362
  * @remarks
17315
17363
  * Returns the player-visible name of this scoreboard
@@ -17340,7 +17388,7 @@ export class ScoreboardObjective {
17340
17388
  * Identifier of the participant to retrieve a score for.
17341
17389
  * @throws This function can throw errors.
17342
17390
  */
17343
- getScore(participant: ScoreboardIdentity): number;
17391
+ getScore(participant: Entity | ScoreboardIdentity | string): number | undefined;
17344
17392
  /**
17345
17393
  * @remarks
17346
17394
  * Returns specific scores for this objective for all
@@ -17349,6 +17397,14 @@ export class ScoreboardObjective {
17349
17397
  * @throws This function can throw errors.
17350
17398
  */
17351
17399
  getScores(): ScoreboardScoreInfo[];
17400
+ /**
17401
+ * @remarks
17402
+ * Returns if the specified identity is a participant of the
17403
+ * scoreboard objective.
17404
+ *
17405
+ * @throws This function can throw errors.
17406
+ */
17407
+ hasParticipant(participant: Entity | ScoreboardIdentity | string): boolean;
17352
17408
  isValid(): boolean;
17353
17409
  /**
17354
17410
  * @remarks
@@ -17361,7 +17417,7 @@ export class ScoreboardObjective {
17361
17417
  * objective.
17362
17418
  * @throws This function can throw errors.
17363
17419
  */
17364
- removeParticipant(participant: ScoreboardIdentity): boolean;
17420
+ removeParticipant(participant: Entity | ScoreboardIdentity | string): boolean;
17365
17421
  /**
17366
17422
  * @remarks
17367
17423
  * Sets a score for a participant.
@@ -17374,7 +17430,7 @@ export class ScoreboardObjective {
17374
17430
  * New value of the score.
17375
17431
  * @throws This function can throw errors.
17376
17432
  */
17377
- setScore(participant: ScoreboardIdentity, score: number): boolean;
17433
+ setScore(participant: Entity | ScoreboardIdentity | string, score: number): void;
17378
17434
  }
17379
17435
 
17380
17436
  /**
@@ -17383,7 +17439,7 @@ export class ScoreboardObjective {
17383
17439
  * respective score.
17384
17440
  */
17385
17441
  export class ScoreboardScoreInfo {
17386
- protected constructor();
17442
+ private constructor();
17387
17443
  /**
17388
17444
  * @remarks
17389
17445
  * This scoreboard participant for this score.
@@ -17404,7 +17460,7 @@ export class ScoreboardScoreInfo {
17404
17460
  * showing up on the screen.
17405
17461
  */
17406
17462
  export class ScreenDisplay {
17407
- protected constructor();
17463
+ private constructor();
17408
17464
  isValid(): boolean;
17409
17465
  /**
17410
17466
  * @remarks
@@ -17446,7 +17502,7 @@ export class ScreenDisplay {
17446
17502
  * invocation.
17447
17503
  */
17448
17504
  export class ScriptEventCommandMessageAfterEvent {
17449
- protected constructor();
17505
+ private constructor();
17450
17506
  /**
17451
17507
  * @remarks
17452
17508
  * Identifier of this ScriptEvent command message.
@@ -17494,8 +17550,9 @@ export class ScriptEventCommandMessageAfterEvent {
17494
17550
  * Allows for registering an event handler that responds to
17495
17551
  * inbound /scriptevent commands.
17496
17552
  */
17553
+ // @ts-ignore Class inheritance allowed for native defined classes
17497
17554
  export class ScriptEventCommandMessageAfterEventSignal extends IScriptEventCommandMessageAfterEventSignal {
17498
- protected constructor();
17555
+ private constructor();
17499
17556
  }
17500
17557
 
17501
17558
  /**
@@ -17504,7 +17561,7 @@ export class ScriptEventCommandMessageAfterEventSignal extends IScriptEventComma
17504
17561
  * entity.
17505
17562
  */
17506
17563
  export class Seat {
17507
- protected constructor();
17564
+ private constructor();
17508
17565
  /**
17509
17566
  * @remarks
17510
17567
  * If specified, contains a forced rotation that the riders in
@@ -17540,15 +17597,16 @@ export class Seat {
17540
17597
  * event is not currently fully implemented, and should not be
17541
17598
  * used.
17542
17599
  */
17600
+ // @ts-ignore Class inheritance allowed for native defined classes
17543
17601
  export class ServerMessageAfterEventSignal extends IServerMessageAfterEventSignal {
17544
- protected constructor();
17602
+ private constructor();
17545
17603
  }
17546
17604
 
17547
17605
  /**
17548
17606
  * A class that provides system-level events and functions.
17549
17607
  */
17550
17608
  export class System {
17551
- protected constructor();
17609
+ private constructor();
17552
17610
  /**
17553
17611
  * @beta
17554
17612
  */
@@ -17622,7 +17680,7 @@ export class System {
17622
17680
  * @beta
17623
17681
  */
17624
17682
  export class SystemAfterEvents {
17625
- protected constructor();
17683
+ private constructor();
17626
17684
  readonly scriptEventReceive: ScriptEventCommandMessageAfterEventSignal;
17627
17685
  }
17628
17686
 
@@ -17630,7 +17688,7 @@ export class SystemAfterEvents {
17630
17688
  * @beta
17631
17689
  */
17632
17690
  export class SystemBeforeEvents {
17633
- protected constructor();
17691
+ private constructor();
17634
17692
  readonly watchdogTerminate: WatchdogTerminateBeforeEventSignal;
17635
17693
  }
17636
17694
 
@@ -17639,8 +17697,9 @@ export class SystemBeforeEvents {
17639
17697
  * Contains information related to changes to a target block
17640
17698
  * hit.
17641
17699
  */
17700
+ // @ts-ignore Class inheritance allowed for native defined classes
17642
17701
  export class TargetBlockHitAfterEvent extends BlockEvent {
17643
- protected constructor();
17702
+ private constructor();
17644
17703
  /**
17645
17704
  * @remarks
17646
17705
  * The position where the source hit the block.
@@ -17672,8 +17731,9 @@ export class TargetBlockHitAfterEvent extends BlockEvent {
17672
17731
  * Manages callbacks that are connected to when a target block
17673
17732
  * is hit.
17674
17733
  */
17734
+ // @ts-ignore Class inheritance allowed for native defined classes
17675
17735
  export class TargetBlockHitAfterEventSignal extends ITargetBlockHitAfterEventSignal {
17676
- protected constructor();
17736
+ private constructor();
17677
17737
  }
17678
17738
 
17679
17739
  /**
@@ -17699,8 +17759,9 @@ export class Trigger {
17699
17759
  * @beta
17700
17760
  * Contains information related to changes to a trip wire trip.
17701
17761
  */
17762
+ // @ts-ignore Class inheritance allowed for native defined classes
17702
17763
  export class TripWireTripAfterEvent extends BlockEvent {
17703
- protected constructor();
17764
+ private constructor();
17704
17765
  /**
17705
17766
  * @remarks
17706
17767
  * Whether or not the block has redstone power.
@@ -17720,8 +17781,9 @@ export class TripWireTripAfterEvent extends BlockEvent {
17720
17781
  * Manages callbacks that are connected to when a trip wire is
17721
17782
  * tripped.
17722
17783
  */
17784
+ // @ts-ignore Class inheritance allowed for native defined classes
17723
17785
  export class TripWireTripAfterEventSignal extends ITripWireTripAfterEventSignal {
17724
- protected constructor();
17786
+ private constructor();
17725
17787
  }
17726
17788
 
17727
17789
  /**
@@ -17908,7 +17970,7 @@ export class Vector {
17908
17970
  * termination.
17909
17971
  */
17910
17972
  export class WatchdogTerminateBeforeEvent {
17911
- protected constructor();
17973
+ private constructor();
17912
17974
  /**
17913
17975
  * @remarks
17914
17976
  * If set to true, cancels the termination of the script
@@ -17933,8 +17995,9 @@ export class WatchdogTerminateBeforeEvent {
17933
17995
  * be called when a script runtime is being terminated due to a
17934
17996
  * violation of the performance watchdog system.
17935
17997
  */
17998
+ // @ts-ignore Class inheritance allowed for native defined classes
17936
17999
  export class WatchdogTerminateBeforeEventSignal extends IWatchdogTerminateBeforeEventSignal {
17937
- protected constructor();
18000
+ private constructor();
17938
18001
  }
17939
18002
 
17940
18003
  /**
@@ -17943,7 +18006,7 @@ export class WatchdogTerminateBeforeEventSignal extends IWatchdogTerminateBefore
17943
18006
  * environment.
17944
18007
  */
17945
18008
  export class WeatherChangeAfterEvent {
17946
- protected constructor();
18009
+ private constructor();
17947
18010
  /**
17948
18011
  * @remarks
17949
18012
  * Dimension in which the weather has changed.
@@ -17968,8 +18031,9 @@ export class WeatherChangeAfterEvent {
17968
18031
  * @beta
17969
18032
  * Manages callbacks that are connected to weather changing.
17970
18033
  */
18034
+ // @ts-ignore Class inheritance allowed for native defined classes
17971
18035
  export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSignal {
17972
- protected constructor();
18036
+ private constructor();
17973
18037
  }
17974
18038
 
17975
18039
  /**
@@ -17977,7 +18041,7 @@ export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSigna
17977
18041
  * dimensions and the environment of Minecraft.
17978
18042
  */
17979
18043
  export class World {
17980
- protected constructor();
18044
+ private constructor();
17981
18045
  /**
17982
18046
  * @beta
17983
18047
  * @remarks
@@ -18032,15 +18096,12 @@ export class World {
18032
18096
  getAllPlayers(): Player[];
18033
18097
  /**
18034
18098
  * @beta
18035
- * @remarks
18036
- * Returns the default spawn position within the world where
18037
- * players are spawned if they don't have a specific spawn
18038
- * position set.
18039
- *
18040
- * @returns
18041
- * Returns the default spawn position.
18042
18099
  */
18043
- getDefaultSpawnPosition(): Vector3;
18100
+ getDay(): number;
18101
+ /**
18102
+ * @beta
18103
+ */
18104
+ getDefaultSpawnLocation(): Vector3;
18044
18105
  /**
18045
18106
  * @remarks
18046
18107
  * Returns a dimension object.
@@ -18091,11 +18152,8 @@ export class World {
18091
18152
  getPlayers(options?: EntityQueryOptions): Player[];
18092
18153
  /**
18093
18154
  * @beta
18094
- * @remarks
18095
- * Sets the current game time of the day.
18096
- *
18097
18155
  */
18098
- getTime(): number;
18156
+ getTimeOfDay(): number;
18099
18157
  /**
18100
18158
  * @beta
18101
18159
  * @remarks
@@ -18179,18 +18237,18 @@ export class World {
18179
18237
  /**
18180
18238
  * @beta
18181
18239
  * @remarks
18182
- * Sets the default spawn location for players within the
18183
- * world. Note that players can override this with their own
18184
- * spawn position. Note also that the default spawn position
18185
- * must be in the overworld dimension.
18240
+ * This function can't be called in read-only mode.
18186
18241
  *
18242
+ */
18243
+ setAbsoluteTime(absoluteTime: number): void;
18244
+ /**
18245
+ * @beta
18246
+ * @remarks
18187
18247
  * This function can't be called in read-only mode.
18188
18248
  *
18189
- * @param spawnPosition
18190
- * Location within the overworld where a player will spawn.
18191
18249
  * @throws This function can throw errors.
18192
18250
  */
18193
- setDefaultSpawn(spawnPosition: Vector3): void;
18251
+ setDefaultSpawnLocation(spawnLocation: Vector3): void;
18194
18252
  /**
18195
18253
  * @beta
18196
18254
  * @remarks
@@ -18206,12 +18264,11 @@ export class World {
18206
18264
  /**
18207
18265
  * @beta
18208
18266
  * @remarks
18209
- * Returns the current game time of the day.
18210
- *
18211
18267
  * This function can't be called in read-only mode.
18212
18268
  *
18269
+ * @throws This function can throw errors.
18213
18270
  */
18214
- setTime(timeOfDay: number): void;
18271
+ setTimeOfDay(timeOfDay: number | TimeOfDay): void;
18215
18272
  /**
18216
18273
  * @beta
18217
18274
  * @remarks
@@ -18227,42 +18284,139 @@ export class World {
18227
18284
  * @beta
18228
18285
  */
18229
18286
  export class WorldAfterEvents {
18230
- protected constructor();
18287
+ private constructor();
18288
+ /**
18289
+ * @beta
18290
+ */
18231
18291
  readonly blockBreak: BlockBreakAfterEventSignal;
18292
+ /**
18293
+ * @beta
18294
+ */
18232
18295
  readonly blockExplode: BlockExplodeAfterEventSignal;
18296
+ /**
18297
+ * @beta
18298
+ */
18233
18299
  readonly blockPlace: BlockPlaceAfterEventSignal;
18234
18300
  readonly buttonPush: ButtonPushAfterEventSignal;
18301
+ /**
18302
+ * @beta
18303
+ */
18235
18304
  readonly chatSend: ChatSendAfterEventSignal;
18305
+ /**
18306
+ * @beta
18307
+ */
18236
18308
  readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerAfterEventSignal;
18309
+ /**
18310
+ * @beta
18311
+ */
18237
18312
  readonly effectAdd: EffectAddAfterEventSignal;
18313
+ /**
18314
+ * @beta
18315
+ */
18238
18316
  readonly entityDie: EntityDieAfterEventSignal;
18317
+ /**
18318
+ * @beta
18319
+ */
18239
18320
  readonly entityHealthChanged: EntityHealthChangedAfterEventSignal;
18240
- readonly entityHit: EntityHitAfterEventSignal;
18321
+ /**
18322
+ * @beta
18323
+ */
18324
+ readonly entityHitBlock: EntityHitBlockAfterEventSignal;
18325
+ /**
18326
+ * @beta
18327
+ */
18328
+ readonly entityHitEntity: EntityHitEntityAfterEventSignal;
18329
+ /**
18330
+ * @beta
18331
+ */
18241
18332
  readonly entityHurt: EntityHurtAfterEventSignal;
18333
+ /**
18334
+ * @beta
18335
+ */
18242
18336
  readonly entityRemoved: EntityRemovedAfterEventSignal;
18337
+ /**
18338
+ * @beta
18339
+ */
18243
18340
  readonly entitySpawn: EntitySpawnAfterEventSignal;
18341
+ /**
18342
+ * @beta
18343
+ */
18244
18344
  readonly explosion: ExplosionAfterEventSignal;
18345
+ /**
18346
+ * @beta
18347
+ */
18245
18348
  readonly itemCompleteUse: ItemCompleteUseAfterEventSignal;
18349
+ /**
18350
+ * @beta
18351
+ */
18246
18352
  readonly itemDefinitionEvent: ItemDefinitionAfterEventSignal;
18353
+ /**
18354
+ * @beta
18355
+ */
18247
18356
  readonly itemReleaseUse: ItemReleaseUseAfterEventSignal;
18357
+ /**
18358
+ * @beta
18359
+ */
18248
18360
  readonly itemStartUse: ItemStartUseAfterEventSignal;
18361
+ /**
18362
+ * @beta
18363
+ */
18249
18364
  readonly itemStartUseOn: ItemStartUseOnAfterEventSignal;
18365
+ /**
18366
+ * @beta
18367
+ */
18250
18368
  readonly itemStopUse: ItemStopUseAfterEventSignal;
18369
+ /**
18370
+ * @beta
18371
+ */
18251
18372
  readonly itemStopUseOn: ItemStopUseOnAfterEventSignal;
18373
+ /**
18374
+ * @beta
18375
+ */
18252
18376
  readonly itemUse: ItemUseAfterEventSignal;
18377
+ /**
18378
+ * @beta
18379
+ */
18253
18380
  readonly itemUseOn: ItemUseOnAfterEventSignal;
18254
- readonly leverActivate: LeverActionAfterEventSignal;
18381
+ readonly leverAction: LeverActionAfterEventSignal;
18382
+ /**
18383
+ * @beta
18384
+ */
18255
18385
  readonly messageReceive: ServerMessageAfterEventSignal;
18386
+ /**
18387
+ * @beta
18388
+ */
18256
18389
  readonly pistonActivate: PistonActivateAfterEventSignal;
18257
18390
  readonly playerJoin: PlayerJoinAfterEventSignal;
18258
18391
  readonly playerLeave: PlayerLeaveAfterEventSignal;
18259
18392
  readonly playerSpawn: PlayerSpawnAfterEventSignal;
18393
+ /**
18394
+ * @beta
18395
+ */
18260
18396
  readonly pressurePlatePop: PressurePlatePopAfterEventSignal;
18397
+ /**
18398
+ * @beta
18399
+ */
18261
18400
  readonly pressurePlatePush: PressurePlatePushAfterEventSignal;
18401
+ /**
18402
+ * @beta
18403
+ */
18262
18404
  readonly projectileHit: ProjectileHitAfterEventSignal;
18405
+ /**
18406
+ * @beta
18407
+ */
18263
18408
  readonly targetBlockHit: TargetBlockHitAfterEventSignal;
18409
+ /**
18410
+ * @beta
18411
+ */
18264
18412
  readonly tripWireTrip: TripWireTripAfterEventSignal;
18413
+ /**
18414
+ * @beta
18415
+ */
18265
18416
  readonly weatherChange: WeatherChangeAfterEventSignal;
18417
+ /**
18418
+ * @beta
18419
+ */
18266
18420
  readonly worldInitialize: WorldInitializeAfterEventSignal;
18267
18421
  }
18268
18422
 
@@ -18270,7 +18424,7 @@ export class WorldAfterEvents {
18270
18424
  * @beta
18271
18425
  */
18272
18426
  export class WorldBeforeEvents {
18273
- protected constructor();
18427
+ private constructor();
18274
18428
  readonly chatSend: ChatSendBeforeEventSignal;
18275
18429
  readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerBeforeEventSignal;
18276
18430
  readonly explosion: ExplosionBeforeEventSignal;
@@ -18289,7 +18443,7 @@ export class WorldBeforeEvents {
18289
18443
  * Initialize execution.
18290
18444
  */
18291
18445
  export class WorldInitializeAfterEvent {
18292
- protected constructor();
18446
+ private constructor();
18293
18447
  /**
18294
18448
  * @remarks
18295
18449
  * Contains methods for scripts to initialize and register
@@ -18320,8 +18474,9 @@ export class WorldInitializeAfterEvent {
18320
18474
  * may run multiple times within a session in the case that the
18321
18475
  * /reload command is used.
18322
18476
  */
18477
+ // @ts-ignore Class inheritance allowed for native defined classes
18323
18478
  export class WorldInitializeAfterEventSignal extends IWorldInitializeAfterEventSignal {
18324
- protected constructor();
18479
+ private constructor();
18325
18480
  }
18326
18481
 
18327
18482
  /**
@@ -18364,6 +18519,32 @@ export interface BlockHitInformation {
18364
18519
  faceLocation: Vector3;
18365
18520
  }
18366
18521
 
18522
+ /**
18523
+ * @beta
18524
+ * Contains information for block raycast hit results.
18525
+ */
18526
+ export interface BlockRaycastHit {
18527
+ /**
18528
+ * @remarks
18529
+ * Block that was hit.
18530
+ *
18531
+ */
18532
+ block: Block;
18533
+ /**
18534
+ * @remarks
18535
+ * Face of the block that was hit.
18536
+ *
18537
+ */
18538
+ face: Direction;
18539
+ /**
18540
+ * @remarks
18541
+ * Hit location relative to the bottom north-west corner of the
18542
+ * block.
18543
+ *
18544
+ */
18545
+ faceLocation: Vector3;
18546
+ }
18547
+
18367
18548
  /**
18368
18549
  * @beta
18369
18550
  * Contains additional options for configuring a block raycast
@@ -18535,6 +18716,16 @@ export interface CompoundBlockVolumeItem {
18535
18716
  volume: BlockVolume;
18536
18717
  }
18537
18718
 
18719
+ /**
18720
+ * @beta
18721
+ */
18722
+ export interface DimensionLocation {
18723
+ dimension: Dimension;
18724
+ x: number;
18725
+ y: number;
18726
+ z: number;
18727
+ }
18728
+
18538
18729
  /**
18539
18730
  * @beta
18540
18731
  * Additional options for when damage has been applied via a
@@ -18891,6 +19082,25 @@ export interface EntityQueryScoreOptions {
18891
19082
  objective?: string;
18892
19083
  }
18893
19084
 
19085
+ /**
19086
+ * @beta
19087
+ * Contains information for entity raycast hit results.
19088
+ */
19089
+ export interface EntityRaycastHit {
19090
+ /**
19091
+ * @remarks
19092
+ * Distance from ray origin to entity bounds.
19093
+ *
19094
+ */
19095
+ distance: number;
19096
+ /**
19097
+ * @remarks
19098
+ * Entity that was hit.
19099
+ *
19100
+ */
19101
+ entity: Entity;
19102
+ }
19103
+
18894
19104
  /**
18895
19105
  * @beta
18896
19106
  * Contains additional options for an entity raycast operation.
@@ -19267,22 +19477,25 @@ export interface WorldSoundOptions {
19267
19477
  /**
19268
19478
  * @beta
19269
19479
  */
19480
+ // @ts-ignore Class inheritance allowed for native defined classes
19270
19481
  export class CommandError extends Error {
19271
- protected constructor();
19482
+ private constructor();
19272
19483
  }
19273
19484
 
19274
19485
  /**
19275
19486
  * @beta
19276
19487
  */
19488
+ // @ts-ignore Class inheritance allowed for native defined classes
19277
19489
  export class PositionInUnloadedChunkError extends Error {
19278
- protected constructor();
19490
+ private constructor();
19279
19491
  }
19280
19492
 
19281
19493
  /**
19282
19494
  * @beta
19283
19495
  */
19496
+ // @ts-ignore Class inheritance allowed for native defined classes
19284
19497
  export class PositionOutOfWorldBoundariesError extends Error {
19285
- protected constructor();
19498
+ private constructor();
19286
19499
  }
19287
19500
 
19288
19501
  /**