@minecraft/server 1.4.0-beta.1.20.10-preview.20 → 1.4.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 +845 -837
  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.20"
19
+ * "version": "1.4.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
  /**
@@ -223,18 +223,6 @@ export enum ItemLockMode {
223
223
  slot = 'slot',
224
224
  }
225
225
 
226
- /**
227
- * @beta
228
- */
229
- export enum MessageSourceType {
230
- clientScript = 'clientScript',
231
- commandBlock = 'commandBlock',
232
- dialogueCommand = 'dialogueCommand',
233
- entityCommand = 'entityCommand',
234
- serverCommand = 'serverCommand',
235
- serverScript = 'serverScript',
236
- }
237
-
238
226
  /**
239
227
  * @beta
240
228
  * Used for specifying a sort order for how to display an
@@ -248,7 +236,7 @@ export enum ObjectiveSortOrder {
248
236
  * A-Z) order.
249
237
  *
250
238
  */
251
- ascending = 0,
239
+ Ascending = 0,
252
240
  /**
253
241
  * @beta
254
242
  * @remarks
@@ -256,7 +244,7 @@ export enum ObjectiveSortOrder {
256
244
  * Z-A) order.
257
245
  *
258
246
  */
259
- descending = 1,
247
+ Descending = 1,
260
248
  }
261
249
 
262
250
  /**
@@ -270,7 +258,7 @@ export enum ScoreboardIdentityType {
270
258
  * This scoreboard participant is tied to an entity.
271
259
  *
272
260
  */
273
- entity = 'entity',
261
+ Entity = 'Entity',
274
262
  /**
275
263
  * @beta
276
264
  * @remarks
@@ -279,14 +267,24 @@ export enum ScoreboardIdentityType {
279
267
  * as abstract progress.
280
268
  *
281
269
  */
282
- fakePlayer = 'fakePlayer',
270
+ FakePlayer = 'FakePlayer',
283
271
  /**
284
272
  * @beta
285
273
  * @remarks
286
274
  * This scoreboard participant is tied to a player.
287
275
  *
288
276
  */
289
- player = 'player',
277
+ Player = 'Player',
278
+ }
279
+
280
+ /**
281
+ * @beta
282
+ */
283
+ export enum ScriptEventSource {
284
+ Block = 'Block',
285
+ Entity = 'Entity',
286
+ NPCDialogue = 'NPCDialogue',
287
+ Server = 'Server',
290
288
  }
291
289
 
292
290
  /**
@@ -300,14 +298,14 @@ export enum SignSide {
300
298
  * The back of the sign.
301
299
  *
302
300
  */
303
- back = 'back',
301
+ Back = 'Back',
304
302
  /**
305
303
  * @beta
306
304
  * @remarks
307
305
  * The front of the sign.
308
306
  *
309
307
  */
310
- front = 'front',
308
+ Front = 'Front',
311
309
  }
312
310
 
313
311
  /**
@@ -335,7 +333,7 @@ export enum WatchdogTerminateReason {
335
333
  * non-responsiveness from script (a hang or infinite loop).
336
334
  *
337
335
  */
338
- hang = 'hang',
336
+ Hang = 'Hang',
339
337
  /**
340
338
  * @beta
341
339
  * @remarks
@@ -344,279 +342,16 @@ export enum WatchdogTerminateReason {
344
342
  * function calls.
345
343
  *
346
344
  */
347
- stackOverflow = 'stackOverflow',
345
+ StackOverflow = 'StackOverflow',
348
346
  }
349
347
 
350
348
  /**
351
349
  * @beta
352
350
  */
353
351
  export enum WeatherType {
354
- clear = 'clear',
355
- rain = 'rain',
356
- thunder = 'thunder',
357
- }
358
-
359
- /**
360
- * @beta
361
- * Contains a set of events that are available across the scope
362
- * of the World.
363
- */
364
- export class AfterEvents {
365
- protected constructor();
366
- /**
367
- * @remarks
368
- * This event fires for a block that is broken by a player.
369
- *
370
- */
371
- readonly blockBreak: BlockBreakAfterEventSignal;
372
- /**
373
- * @remarks
374
- * This event fires for each BlockLocation destroyed by an
375
- * explosion. It is fired after the blocks have already been
376
- * destroyed.
377
- *
378
- */
379
- readonly blockExplode: BlockExplodeAfterEventSignal;
380
- /**
381
- * @remarks
382
- * This event fires for a block that is placed by a player.
383
- *
384
- */
385
- readonly blockPlace: BlockPlaceAfterEventSignal;
386
- /**
387
- * @remarks
388
- * This event fires when a button is pushed.
389
- *
390
- */
391
- readonly buttonPush: ButtonPushAfterEventSignal;
392
- /**
393
- * @remarks
394
- * This event is triggered after a chat message has been
395
- * broadcast or sent to players.
396
- *
397
- */
398
- readonly chatSend: ChatSendAfterEventSignal;
399
- /**
400
- * @remarks
401
- * This event is fired when an entity event has been triggered
402
- * that will update the component definition state of an
403
- * entity.
404
- *
405
- */
406
- readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerAfterEventSignal;
407
- /**
408
- * @remarks
409
- * This event fires when an effect, like poisoning, is added to
410
- * an entity.
411
- *
412
- */
413
- readonly effectAdd: EffectAddAfterEventSignal;
414
- /**
415
- * @remarks
416
- * This event fires when an entity dies.
417
- *
418
- */
419
- readonly entityDie: EntityDieAfterEventSignal;
420
- readonly entityHealthChanged: EntityHealthChangedAfterEventSignal;
421
- /**
422
- * @remarks
423
- * This event fires when an entity hits (makes a melee attack)
424
- * and potentially impacts another entity or block.
425
- *
426
- */
427
- readonly entityHit: EntityHitAfterEventSignal;
428
- /**
429
- * @remarks
430
- * This event fires when an entity is hurt (takes damage).
431
- *
432
- */
433
- readonly entityHurt: EntityHurtAfterEventSignal;
434
- readonly entityRemoved: EntityRemovedAfterEventSignal;
435
- /**
436
- * @remarks
437
- * This event fires when an entity is spawned.
438
- *
439
- */
440
- readonly entitySpawn: EntitySpawnAfterEventSignal;
441
- /**
442
- * @remarks
443
- * This event is fired after an explosion occurs.
444
- *
445
- */
446
- readonly explosion: ExplosionAfterEventSignal;
447
- readonly itemCompleteUse: ItemCompleteUseAfterEventSignal;
448
- /**
449
- * @remarks
450
- * For custom items, this event is triggered when the
451
- * fundamental set of defined components for the item change.
452
- * Note that this event is only fired for custom data-driven
453
- * items.
454
- *
455
- */
456
- readonly itemDefinitionEvent: ItemDefinitionAfterEventSignal;
457
- readonly itemReleaseUse: ItemReleaseUseAfterEventSignal;
458
- readonly itemStartUse: ItemStartUseAfterEventSignal;
459
- /**
460
- * @remarks
461
- * This event fires when a player successfully uses an item or
462
- * places a block by pressing the Use Item / Place Block
463
- * button. If multiple blocks are placed, this event will only
464
- * occur once at the beginning of the block placement. Note:
465
- * This event cannot be used with Hoe or Axe items.
466
- *
467
- */
468
- readonly itemStartUseOn: ItemStartUseOnAfterEventSignal;
469
- readonly itemStopUse: ItemStopUseAfterEventSignal;
470
- /**
471
- * @remarks
472
- * This event fires when a player releases the Use Item / Place
473
- * Block button after successfully using an item. Note: This
474
- * event cannot be used with Hoe or Axe items.
475
- *
476
- */
477
- readonly itemStopUseOn: ItemStopUseOnAfterEventSignal;
478
- /**
479
- * @remarks
480
- * This event fires when an item is successfully used by a
481
- * player.
482
- *
483
- */
484
- readonly itemUse: ItemUseAfterEventSignal;
485
- /**
486
- * @remarks
487
- * This event fires when an item is used on a block by a
488
- * player.
489
- *
490
- */
491
- readonly itemUseOn: ItemUseOnAfterEventSignal;
492
- /**
493
- * @remarks
494
- * This event fires when a lever activates or is deactivated.
495
- *
496
- */
497
- readonly leverActivate: LeverActionAfterEventSignal;
498
- /**
499
- * @remarks
500
- * This event is an internal implementation detail, and is
501
- * otherwise not currently functional.
502
- *
503
- */
504
- readonly messageReceive: ServerMessageAfterEventSignal;
505
- /**
506
- * @remarks
507
- * This event fires when a piston expands or retracts.
508
- *
509
- */
510
- readonly pistonActivate: PistonActivateAfterEventSignal;
511
- /**
512
- * @remarks
513
- * This event fires when a player joins a world. See also
514
- * playerSpawn for another related event you can trap for when
515
- * a player is spawned the first time within a world.
516
- *
517
- */
518
- readonly playerJoin: PlayerJoinAfterEventSignal;
519
- /**
520
- * @remarks
521
- * This event fires when a player leaves a world.
522
- *
523
- */
524
- readonly playerLeave: PlayerLeaveAfterEventSignal;
525
- /**
526
- * @remarks
527
- * This event fires when a player spawns or respawns. Note that
528
- * an additional flag within this event will tell you whether
529
- * the player is spawning right after join vs. a respawn.
530
- *
531
- */
532
- readonly playerSpawn: PlayerSpawnAfterEventSignal;
533
- readonly pressurePlatePop: PressurePlatePopAfterEventSignal;
534
- readonly pressurePlatePush: PressurePlatePushAfterEventSignal;
535
- /**
536
- * @remarks
537
- * This event fires when a projectile hits an entity or block.
538
- *
539
- */
540
- readonly projectileHit: ProjectileHitAfterEventSignal;
541
- readonly targetBlockHit: TargetBlockHitAfterEventSignal;
542
- readonly tripWireTrip: TripWireTripAfterEventSignal;
543
- /**
544
- * @remarks
545
- * This event will be triggered when the weather changes within
546
- * Minecraft.
547
- *
548
- */
549
- readonly weatherChange: WeatherChangeAfterEventSignal;
550
- /**
551
- * @remarks
552
- * This event fires when the script environment is initialized
553
- * on a World. In addition, you can register dynamic properties
554
- * within the scope of a world Initialize event.
555
- *
556
- */
557
- readonly worldInitialize: WorldInitializeAfterEventSignal;
558
- }
559
-
560
- /**
561
- * @beta
562
- * A set of events that fire before an actual action occurs. In
563
- * most cases, you can potentially cancel or modify the
564
- * impending event. Note that in before events any APIs that
565
- * modify gameplay state will not function and will throw an
566
- * error. (e.g., dimension.spawnEntity)
567
- */
568
- export class BeforeEvents {
569
- protected constructor();
570
- /**
571
- * @remarks
572
- * This event is triggered after a chat message has been
573
- * broadcast or sent to players.
574
- *
575
- */
576
- readonly chatSend: ChatSendBeforeEventSignal;
577
- /**
578
- * @remarks
579
- * This event is fired when an entity event has been triggered
580
- * that will update the component definition state of an
581
- * entity.
582
- *
583
- */
584
- readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerBeforeEventSignal;
585
- /**
586
- * @remarks
587
- * This event is fired after an explosion occurs.
588
- *
589
- */
590
- readonly explosion: ExplosionBeforeEventSignal;
591
- /**
592
- * @remarks
593
- * For custom items, this event is triggered when the
594
- * fundamental set of defined components for the item change.
595
- * Note that this event is only fired for custom data-driven
596
- * items.
597
- *
598
- */
599
- readonly itemDefinitionEvent: ItemDefinitionBeforeEventSignal;
600
- /**
601
- * @remarks
602
- * This event fires when an item is successfully used by a
603
- * player.
604
- *
605
- */
606
- readonly itemUse: ItemUseBeforeEventSignal;
607
- /**
608
- * @remarks
609
- * This event fires when an item is used on a block by a
610
- * player.
611
- *
612
- */
613
- readonly itemUseOn: ItemUseOnBeforeEventSignal;
614
- /**
615
- * @remarks
616
- * This event fires when a piston expands or retracts.
617
- *
618
- */
619
- readonly pistonActivate: PistonActivateBeforeEventSignal;
352
+ Clear = 'Clear',
353
+ Rain = 'Rain',
354
+ Thunder = 'Thunder',
620
355
  }
621
356
 
622
357
  /**
@@ -627,7 +362,7 @@ export class BeforeEvents {
627
362
  * updated in version 1.17.10.21.
628
363
  */
629
364
  export class Block {
630
- protected constructor();
365
+ private constructor();
631
366
  /**
632
367
  * @remarks
633
368
  * Returns the dimension that the block is within.
@@ -816,6 +551,10 @@ export class Block {
816
551
  * @throws This function can throw errors.
817
552
  */
818
553
  isSolid(): boolean;
554
+ /**
555
+ * @beta
556
+ */
557
+ isValid(): boolean;
819
558
  /**
820
559
  * @remarks
821
560
  * Sets the block in the dimension to the state of the
@@ -905,8 +644,9 @@ export class BlockAreaSize {
905
644
  * Contains information regarding an event where a player
906
645
  * breaks a block.
907
646
  */
647
+ // @ts-ignore Class inheritance allowed for native defined classes
908
648
  export class BlockBreakAfterEvent extends BlockEvent {
909
- protected constructor();
649
+ private constructor();
910
650
  /**
911
651
  * @remarks
912
652
  * Returns permutation information about this block before it
@@ -927,17 +667,20 @@ export class BlockBreakAfterEvent extends BlockEvent {
927
667
  * Manages callbacks that are connected to when a block is
928
668
  * broken.
929
669
  */
670
+ // @ts-ignore Class inheritance allowed for native defined classes
930
671
  export class BlockBreakAfterEventSignal extends IBlockBreakAfterEventSignal {
931
- protected constructor();
672
+ private constructor();
932
673
  }
933
674
 
934
675
  /**
935
676
  * @beta
936
677
  * Base type for components associated with blocks.
937
678
  */
679
+ // @ts-ignore Class inheritance allowed for native defined classes
938
680
  export class BlockComponent extends Component {
939
- protected constructor();
681
+ private constructor();
940
682
  /**
683
+ * @beta
941
684
  * @remarks
942
685
  * Block instance that this component pertains to.
943
686
  *
@@ -951,7 +694,7 @@ export class BlockComponent extends Component {
951
694
  * specific block.
952
695
  */
953
696
  export class BlockEvent {
954
- protected constructor();
697
+ private constructor();
955
698
  /**
956
699
  * @remarks
957
700
  * Block impacted by this event.
@@ -972,8 +715,9 @@ export class BlockEvent {
972
715
  * Contains information regarding an explosion that has
973
716
  * occurred for a specific block.
974
717
  */
718
+ // @ts-ignore Class inheritance allowed for native defined classes
975
719
  export class BlockExplodeAfterEvent extends BlockEvent {
976
- protected constructor();
720
+ private constructor();
977
721
  /**
978
722
  * @remarks
979
723
  * Description of the block that has exploded.
@@ -993,8 +737,9 @@ export class BlockExplodeAfterEvent extends BlockEvent {
993
737
  * Manages callbacks that are connected to when an explosion
994
738
  * occurs, as it impacts individual blocks.
995
739
  */
740
+ // @ts-ignore Class inheritance allowed for native defined classes
996
741
  export class BlockExplodeAfterEventSignal extends IBlockExplodeAfterEventSignal {
997
- protected constructor();
742
+ private constructor();
998
743
  }
999
744
 
1000
745
  /**
@@ -1002,8 +747,9 @@ export class BlockExplodeAfterEventSignal extends IBlockExplodeAfterEventSignal
1002
747
  * Represents the inventory of a block in the world. Used with
1003
748
  * blocks like chests.
1004
749
  */
750
+ // @ts-ignore Class inheritance allowed for native defined classes
1005
751
  export class BlockInventoryComponent extends BlockComponent {
1006
- protected constructor();
752
+ private constructor();
1007
753
  /**
1008
754
  * @remarks
1009
755
  * The container which holds an {@link ItemStack}.
@@ -1025,8 +771,9 @@ export class BlockInventoryComponent extends BlockComponent {
1025
771
  * Represents a fluid container block that currently contains
1026
772
  * lava.
1027
773
  */
774
+ // @ts-ignore Class inheritance allowed for native defined classes
1028
775
  export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
1029
- protected constructor();
776
+ private constructor();
1030
777
  /**
1031
778
  * @remarks
1032
779
  * Identifier of this component. Should always be
@@ -1041,8 +788,9 @@ export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
1041
788
  * For blocks that can contain a liquid (e.g., a cauldron),
1042
789
  * this is a base component for liquid containers.
1043
790
  */
791
+ // @ts-ignore Class inheritance allowed for native defined classes
1044
792
  export class BlockLiquidContainerComponent extends BlockComponent {
1045
- protected constructor();
793
+ private constructor();
1046
794
  /**
1047
795
  * @remarks
1048
796
  * Relative fill level of the liquid container.
@@ -1051,6 +799,7 @@ export class BlockLiquidContainerComponent extends BlockComponent {
1051
799
  *
1052
800
  */
1053
801
  fillLevel: number;
802
+ isValidLiquid(): boolean;
1054
803
  }
1055
804
 
1056
805
  /**
@@ -1072,7 +821,7 @@ export class BlockLiquidContainerComponent extends BlockComponent {
1072
821
  * coordinate to the next XZ slice)
1073
822
  */
1074
823
  export class BlockLocationIterator implements Iterable<Vector3> {
1075
- protected constructor();
824
+ private constructor();
1076
825
  /**
1077
826
  * @remarks
1078
827
  * This function can't be called in read-only mode.
@@ -1095,7 +844,7 @@ export class BlockLocationIterator implements Iterable<Vector3> {
1095
844
  * Block}). This type was introduced as of version 1.17.10.21.
1096
845
  */
1097
846
  export class BlockPermutation {
1098
- protected constructor();
847
+ private constructor();
1099
848
  /**
1100
849
  * @beta
1101
850
  * @remarks
@@ -1216,8 +965,9 @@ export class BlockPermutation {
1216
965
  * When present, this block has piston-like behavior. Contains
1217
966
  * additional properties for discovering block piston state.
1218
967
  */
968
+ // @ts-ignore Class inheritance allowed for native defined classes
1219
969
  export class BlockPistonComponent extends BlockComponent {
1220
- protected constructor();
970
+ private constructor();
1221
971
  /**
1222
972
  * @remarks
1223
973
  * Whether the piston is fully expanded.
@@ -1275,8 +1025,9 @@ export class BlockPistonComponent extends BlockComponent {
1275
1025
  * Contains information regarding an event where a player
1276
1026
  * places a block.
1277
1027
  */
1028
+ // @ts-ignore Class inheritance allowed for native defined classes
1278
1029
  export class BlockPlaceAfterEvent extends BlockEvent {
1279
- protected constructor();
1030
+ private constructor();
1280
1031
  /**
1281
1032
  * @remarks
1282
1033
  * Player that placed the block for this event.
@@ -1290,8 +1041,9 @@ export class BlockPlaceAfterEvent extends BlockEvent {
1290
1041
  * Manages callbacks that are connected to when a block is
1291
1042
  * placed.
1292
1043
  */
1044
+ // @ts-ignore Class inheritance allowed for native defined classes
1293
1045
  export class BlockPlaceAfterEventSignal extends IBlockPlaceAfterEventSignal {
1294
- protected constructor();
1046
+ private constructor();
1295
1047
  }
1296
1048
 
1297
1049
  /**
@@ -1299,8 +1051,9 @@ export class BlockPlaceAfterEventSignal extends IBlockPlaceAfterEventSignal {
1299
1051
  * Represents a fluid container block that currently contains a
1300
1052
  * potion.
1301
1053
  */
1054
+ // @ts-ignore Class inheritance allowed for native defined classes
1302
1055
  export class BlockPotionContainerComponent extends BlockLiquidContainerComponent {
1303
- protected constructor();
1056
+ private constructor();
1304
1057
  /**
1305
1058
  * @remarks
1306
1059
  * Identifier of this component. Should always be
@@ -1323,8 +1076,9 @@ export class BlockPotionContainerComponent extends BlockLiquidContainerComponent
1323
1076
  * @beta
1324
1077
  * Represents a block that can play a record.
1325
1078
  */
1079
+ // @ts-ignore Class inheritance allowed for native defined classes
1326
1080
  export class BlockRecordPlayerComponent extends BlockComponent {
1327
- protected constructor();
1081
+ private constructor();
1328
1082
  /**
1329
1083
  * @remarks
1330
1084
  * Identifier of this component. Should always be
@@ -1365,8 +1119,9 @@ export class BlockRecordPlayerComponent extends BlockComponent {
1365
1119
  * @beta
1366
1120
  * Represents a block that can display text on it.
1367
1121
  */
1122
+ // @ts-ignore Class inheritance allowed for native defined classes
1368
1123
  export class BlockSignComponent extends BlockComponent {
1369
- protected constructor();
1124
+ private constructor();
1370
1125
  /**
1371
1126
  * @remarks
1372
1127
  * Whether or not players can edit the sign. This happens if a
@@ -1494,8 +1249,9 @@ export class BlockSignComponent extends BlockComponent {
1494
1249
  * Represents a fluid container block that currently contains
1495
1250
  * snow.
1496
1251
  */
1252
+ // @ts-ignore Class inheritance allowed for native defined classes
1497
1253
  export class BlockSnowContainerComponent extends BlockLiquidContainerComponent {
1498
- protected constructor();
1254
+ private constructor();
1499
1255
  /**
1500
1256
  * @remarks
1501
1257
  * Identifier of this component. Should always be
@@ -1510,7 +1266,7 @@ export class BlockSnowContainerComponent extends BlockLiquidContainerComponent {
1510
1266
  * Enumerates all {@link BlockStateType}s.
1511
1267
  */
1512
1268
  export class BlockStates {
1513
- protected constructor();
1269
+ private constructor();
1514
1270
  /**
1515
1271
  * @remarks
1516
1272
  * Retrieves a specific block state instance.
@@ -1532,7 +1288,7 @@ export class BlockStates {
1532
1288
  * a block state.
1533
1289
  */
1534
1290
  export class BlockStateType {
1535
- protected constructor();
1291
+ private constructor();
1536
1292
  /**
1537
1293
  * @remarks
1538
1294
  * Identifier of the block property.
@@ -1555,7 +1311,7 @@ export class BlockStateType {
1555
1311
  * 1.17.10.21.
1556
1312
  */
1557
1313
  export class BlockType {
1558
- protected constructor();
1314
+ private constructor();
1559
1315
  /**
1560
1316
  * @remarks
1561
1317
  * Represents whether this type of block can be waterlogged.
@@ -1577,7 +1333,7 @@ export class BlockType {
1577
1333
  * @minecraft-server.BlockVolume} objects
1578
1334
  */
1579
1335
  export class BlockVolumeUtils {
1580
- protected constructor();
1336
+ private constructor();
1581
1337
  /**
1582
1338
  * @remarks
1583
1339
  * Check to see if the given location is directly adjacent to
@@ -1714,8 +1470,9 @@ export class BlockVolumeUtils {
1714
1470
  * Represents a fluid container block that currently contains
1715
1471
  * water.
1716
1472
  */
1473
+ // @ts-ignore Class inheritance allowed for native defined classes
1717
1474
  export class BlockWaterContainerComponent extends BlockLiquidContainerComponent {
1718
- protected constructor();
1475
+ private constructor();
1719
1476
  /**
1720
1477
  * @remarks
1721
1478
  * Identifier of this component. Should always be
@@ -1759,7 +1516,7 @@ export class BlockWaterContainerComponent extends BlockLiquidContainerComponent
1759
1516
  * @minecraft-server.BoundingBox} objects
1760
1517
  */
1761
1518
  export class BoundingBoxUtils {
1762
- protected constructor();
1519
+ private constructor();
1763
1520
  /**
1764
1521
  * @remarks
1765
1522
  * Create a validated instance of a {@link
@@ -1886,8 +1643,9 @@ export class BoundingBoxUtils {
1886
1643
  * @beta
1887
1644
  * Contains information related to changes to a button push.
1888
1645
  */
1646
+ // @ts-ignore Class inheritance allowed for native defined classes
1889
1647
  export class ButtonPushAfterEvent extends BlockEvent {
1890
- protected constructor();
1648
+ private constructor();
1891
1649
  /**
1892
1650
  * @remarks
1893
1651
  * Optional source that triggered the button push.
@@ -1901,8 +1659,9 @@ export class ButtonPushAfterEvent extends BlockEvent {
1901
1659
  * Manages callbacks that are connected to when a button is
1902
1660
  * pushed.
1903
1661
  */
1662
+ // @ts-ignore Class inheritance allowed for native defined classes
1904
1663
  export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal {
1905
- protected constructor();
1664
+ private constructor();
1906
1665
  }
1907
1666
 
1908
1667
  /**
@@ -1910,7 +1669,7 @@ export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal {
1910
1669
  * An event that fires as players enter chat messages.
1911
1670
  */
1912
1671
  export class ChatSendAfterEvent {
1913
- protected constructor();
1672
+ private constructor();
1914
1673
  /**
1915
1674
  * @remarks
1916
1675
  * Message that is being broadcast. In a beforeChat event
@@ -1947,16 +1706,18 @@ export class ChatSendAfterEvent {
1947
1706
  * Manages callbacks that are connected to chat messages being
1948
1707
  * sent.
1949
1708
  */
1709
+ // @ts-ignore Class inheritance allowed for native defined classes
1950
1710
  export class ChatSendAfterEventSignal extends IChatSendAfterEventSignal {
1951
- protected constructor();
1711
+ private constructor();
1952
1712
  }
1953
1713
 
1954
1714
  /**
1955
1715
  * @beta
1956
1716
  * An event that fires as players enter chat messages.
1957
1717
  */
1718
+ // @ts-ignore Class inheritance allowed for native defined classes
1958
1719
  export class ChatSendBeforeEvent extends ChatSendAfterEvent {
1959
- protected constructor();
1720
+ private constructor();
1960
1721
  /**
1961
1722
  * @remarks
1962
1723
  * If set to true in a beforeChat event handler, this message
@@ -1980,15 +1741,16 @@ export class ChatSendBeforeEvent extends ChatSendAfterEvent {
1980
1741
  * Manages callbacks that are connected to an event that fires
1981
1742
  * before chat messages are sent.
1982
1743
  */
1744
+ // @ts-ignore Class inheritance allowed for native defined classes
1983
1745
  export class ChatSendBeforeEventSignal extends IChatSendBeforeEventSignal {
1984
- protected constructor();
1746
+ private constructor();
1985
1747
  }
1986
1748
 
1987
1749
  /**
1988
1750
  * Contains return data on the result of a command execution.
1989
1751
  */
1990
1752
  export class CommandResult {
1991
- protected constructor();
1753
+ private constructor();
1992
1754
  /**
1993
1755
  * @remarks
1994
1756
  * If the command operates against a number of entities,
@@ -2004,13 +1766,17 @@ export class CommandResult {
2004
1766
  * Base class for downstream Component implementations.
2005
1767
  */
2006
1768
  export class Component {
2007
- protected constructor();
1769
+ private constructor();
2008
1770
  /**
2009
1771
  * @remarks
2010
1772
  * Identifier of the component.
2011
1773
  *
2012
1774
  */
2013
1775
  readonly typeId: string;
1776
+ /**
1777
+ * @beta
1778
+ */
1779
+ isValid(): boolean;
2014
1780
  }
2015
1781
 
2016
1782
  /**
@@ -2184,7 +1950,7 @@ export class CompoundBlockVolume {
2184
1950
  * more.
2185
1951
  */
2186
1952
  export class Container {
2187
- protected constructor();
1953
+ private constructor();
2188
1954
  /**
2189
1955
  * @remarks
2190
1956
  * Count of the slots in the container that are empty.
@@ -2263,6 +2029,10 @@ export class Container {
2263
2029
  * out of bounds.
2264
2030
  */
2265
2031
  getSlot(slot: number): ContainerSlot;
2032
+ /**
2033
+ * @beta
2034
+ */
2035
+ isValid(): boolean;
2266
2036
  /**
2267
2037
  * @remarks
2268
2038
  * Moves an item from one slot to another, potentially across
@@ -2364,7 +2134,7 @@ export class Container {
2364
2134
  * inventory.)
2365
2135
  */
2366
2136
  export class ContainerSlot {
2367
- protected constructor();
2137
+ private constructor();
2368
2138
  /**
2369
2139
  * @remarks
2370
2140
  * Number of the items in the stack. Valid values range between
@@ -2387,14 +2157,6 @@ export class ContainerSlot {
2387
2157
  * Throws if the slot's container is invalid.
2388
2158
  */
2389
2159
  readonly isStackable: boolean;
2390
- /**
2391
- * @remarks
2392
- * Returns whether the ContainerSlot is valid. The container
2393
- * slot is valid if the container exists and is loaded, and the
2394
- * slot index is valid.
2395
- *
2396
- */
2397
- readonly isValid: boolean;
2398
2160
  /**
2399
2161
  * @remarks
2400
2162
  * Gets or sets whether the item is kept on death.
@@ -2519,6 +2281,14 @@ export class ContainerSlot {
2519
2281
  * Throws if the slot's container is invalid.
2520
2282
  */
2521
2283
  isStackableWith(itemStack: ItemStack): boolean;
2284
+ /**
2285
+ * @remarks
2286
+ * Returns whether the ContainerSlot is valid. The container
2287
+ * slot is valid if the container exists and is loaded, and the
2288
+ * slot index is valid.
2289
+ *
2290
+ */
2291
+ isValid(): boolean;
2522
2292
  /**
2523
2293
  * @remarks
2524
2294
  * The list of block types this item can break in Adventure
@@ -2585,7 +2355,7 @@ export class ContainerSlot {
2585
2355
  * event on a chicken.
2586
2356
  */
2587
2357
  export class DataDrivenEntityTriggerAfterEvent {
2588
- protected constructor();
2358
+ private constructor();
2589
2359
  /**
2590
2360
  * @remarks
2591
2361
  * Entity that the event triggered on.
@@ -2615,8 +2385,9 @@ export class DataDrivenEntityTriggerAfterEvent {
2615
2385
  * driven entity event - for example, the
2616
2386
  * minecraft:ageable_grow_up event on a chicken.
2617
2387
  */
2388
+ // @ts-ignore Class inheritance allowed for native defined classes
2618
2389
  export class DataDrivenEntityTriggerAfterEventSignal extends IDataDrivenEntityTriggerAfterEventSignal {
2619
- protected constructor();
2390
+ private constructor();
2620
2391
  }
2621
2392
 
2622
2393
  /**
@@ -2626,7 +2397,7 @@ export class DataDrivenEntityTriggerAfterEventSignal extends IDataDrivenEntityTr
2626
2397
  * event on a chicken.
2627
2398
  */
2628
2399
  export class DataDrivenEntityTriggerBeforeEvent {
2629
- protected constructor();
2400
+ private constructor();
2630
2401
  /**
2631
2402
  * @remarks
2632
2403
  * If set to true, this entity event is not triggered.
@@ -2669,8 +2440,9 @@ export class DataDrivenEntityTriggerBeforeEvent {
2669
2440
  * entity event - for example, the minecraft:ageable_grow_up
2670
2441
  * event on a chicken.
2671
2442
  */
2443
+ // @ts-ignore Class inheritance allowed for native defined classes
2672
2444
  export class DataDrivenEntityTriggerBeforeEventSignal extends IDataDrivenEntityTriggerBeforeEventSignal {
2673
- protected constructor();
2445
+ private constructor();
2674
2446
  }
2675
2447
 
2676
2448
  /**
@@ -2728,7 +2500,7 @@ export class DefinitionModifier {
2728
2500
  * End) within a world.
2729
2501
  */
2730
2502
  export class Dimension {
2731
- protected constructor();
2503
+ private constructor();
2732
2504
  /**
2733
2505
  * @remarks
2734
2506
  * Identifier of the dimension.
@@ -2836,9 +2608,8 @@ export class Dimension {
2836
2608
  * Vector direction to cast the ray.
2837
2609
  * @param options
2838
2610
  * Additional options for processing this raycast query.
2839
- * @throws This function can throw errors.
2840
2611
  */
2841
- getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): Block;
2612
+ getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined;
2842
2613
  /**
2843
2614
  * @beta
2844
2615
  * @remarks
@@ -2890,9 +2661,8 @@ export class Dimension {
2890
2661
  *
2891
2662
  * @param options
2892
2663
  * Additional options for processing this raycast query.
2893
- * @throws This function can throw errors.
2894
2664
  */
2895
- getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): Entity[];
2665
+ getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): EntityRaycastHit[];
2896
2666
  /**
2897
2667
  * @beta
2898
2668
  * @remarks
@@ -3087,7 +2857,7 @@ export class DynamicPropertiesDefinition {
3087
2857
  * an Entity.
3088
2858
  */
3089
2859
  export class Effect {
3090
- protected constructor();
2860
+ private constructor();
3091
2861
  /**
3092
2862
  * @remarks
3093
2863
  * Gets an amplifier that may have been applied to this effect.
@@ -3121,6 +2891,7 @@ export class Effect {
3121
2891
  * @throws This property can throw when used.
3122
2892
  */
3123
2893
  readonly typeId: string;
2894
+ isValid(): boolean;
3124
2895
  }
3125
2896
 
3126
2897
  /**
@@ -3129,7 +2900,7 @@ export class Effect {
3129
2900
  * poison - being added to an entity.
3130
2901
  */
3131
2902
  export class EffectAddAfterEvent {
3132
- protected constructor();
2903
+ private constructor();
3133
2904
  /**
3134
2905
  * @remarks
3135
2906
  * Additional properties and details of the effect.
@@ -3161,8 +2932,9 @@ export class EffectAddAfterEvent {
3161
2932
  * Manages callbacks that are connected to when an effect is
3162
2933
  * added to an entity.
3163
2934
  */
2935
+ // @ts-ignore Class inheritance allowed for native defined classes
3164
2936
  export class EffectAddAfterEventSignal extends IEffectAddAfterEventSignal {
3165
- protected constructor();
2937
+ private constructor();
3166
2938
  }
3167
2939
 
3168
2940
  /**
@@ -3171,7 +2943,7 @@ export class EffectAddAfterEventSignal extends IEffectAddAfterEventSignal {
3171
2943
  * applied to an entity.
3172
2944
  */
3173
2945
  export class EffectType {
3174
- protected constructor();
2946
+ private constructor();
3175
2947
  /**
3176
2948
  * @remarks
3177
2949
  * Identifier name of this effect type.
@@ -3188,7 +2960,7 @@ export class EffectType {
3188
2960
  * applied to an entity.
3189
2961
  */
3190
2962
  export class EffectTypes {
3191
- protected constructor();
2963
+ private constructor();
3192
2964
  /**
3193
2965
  * @remarks
3194
2966
  * Effect type for the given identifier.
@@ -3329,7 +3101,7 @@ export class EnchantmentList implements Iterable<Enchantment> {
3329
3101
  * enchantment can be applied to.
3330
3102
  */
3331
3103
  export class EnchantmentSlot {
3332
- protected constructor();
3104
+ private constructor();
3333
3105
  static readonly all = -1;
3334
3106
  static readonly armorFeet = 4;
3335
3107
  static readonly armorHead = 1;
@@ -3361,7 +3133,7 @@ export class EnchantmentSlot {
3361
3133
  * Contains information on a type of enchantment.
3362
3134
  */
3363
3135
  export class EnchantmentType {
3364
- protected constructor();
3136
+ private constructor();
3365
3137
  /**
3366
3138
  * @remarks
3367
3139
  * The name of the enchantment type.
@@ -3380,7 +3152,7 @@ export class EnchantmentType {
3380
3152
  * @beta
3381
3153
  */
3382
3154
  export class EnchantmentTypes {
3383
- protected constructor();
3155
+ private constructor();
3384
3156
  /**
3385
3157
  * @remarks
3386
3158
  * Retrieves an enchantment with the specified identifier.
@@ -3400,7 +3172,7 @@ export class EnchantmentTypes {
3400
3172
  * other moving objects like minecarts) in the world.
3401
3173
  */
3402
3174
  export class Entity {
3403
- protected constructor();
3175
+ private constructor();
3404
3176
  /**
3405
3177
  * @beta
3406
3178
  * @remarks
@@ -3705,7 +3477,7 @@ export class Entity {
3705
3477
  * this entity is looking at.
3706
3478
  * @throws This function can throw errors.
3707
3479
  */
3708
- getBlockFromViewDirection(options?: BlockRaycastOptions): Block;
3480
+ getBlockFromViewDirection(options?: BlockRaycastOptions): BlockRaycastHit | undefined;
3709
3481
  /**
3710
3482
  * @beta
3711
3483
  * @remarks
@@ -3785,7 +3557,7 @@ export class Entity {
3785
3557
  * entity is looking at.
3786
3558
  * @throws This function can throw errors.
3787
3559
  */
3788
- getEntitiesFromViewDirection(options?: EntityRaycastOptions): Entity[];
3560
+ getEntitiesFromViewDirection(options?: EntityRaycastOptions): EntityRaycastHit[];
3789
3561
  /**
3790
3562
  * @beta
3791
3563
  * @remarks
@@ -3865,6 +3637,10 @@ export class Entity {
3865
3637
  * @throws This function can throw errors.
3866
3638
  */
3867
3639
  hasTag(tag: string): boolean;
3640
+ /**
3641
+ * @beta
3642
+ */
3643
+ isValid(): boolean;
3868
3644
  /**
3869
3645
  * @beta
3870
3646
  * @remarks
@@ -4072,8 +3848,9 @@ export class Entity {
4072
3848
  * When added, this component makes the entity spawn with a
4073
3849
  * rider of the specified entityType.
4074
3850
  */
3851
+ // @ts-ignore Class inheritance allowed for native defined classes
4075
3852
  export class EntityAddRiderComponent extends EntityComponent {
4076
- protected constructor();
3853
+ private constructor();
4077
3854
  /**
4078
3855
  * @remarks
4079
3856
  * The type of entity that is added as a rider for this entity
@@ -4105,8 +3882,9 @@ export class EntityAddRiderComponent extends EntityComponent {
4105
3882
  * accelerated by giving the entity the items it likes as
4106
3883
  * defined by feedItems.
4107
3884
  */
3885
+ // @ts-ignore Class inheritance allowed for native defined classes
4108
3886
  export class EntityAgeableComponent extends EntityComponent {
4109
- protected constructor();
3887
+ private constructor();
4110
3888
  /**
4111
3889
  * @remarks
4112
3890
  * Amount of time before the entity grows up, -1 for always a
@@ -4150,8 +3928,9 @@ export class EntityAgeableComponent extends EntityComponent {
4150
3928
  /**
4151
3929
  * @beta
4152
3930
  */
3931
+ // @ts-ignore Class inheritance allowed for native defined classes
4153
3932
  export class EntityAttributeComponent extends EntityComponent {
4154
- protected constructor();
3933
+ private constructor();
4155
3934
  readonly currentValue: number;
4156
3935
  readonly defaultValue: number;
4157
3936
  readonly effectiveMax: number;
@@ -4190,8 +3969,9 @@ export class EntityAttributeComponent extends EntityComponent {
4190
3969
  * @beta
4191
3970
  * Base class for a family of entity movement events.
4192
3971
  */
3972
+ // @ts-ignore Class inheritance allowed for native defined classes
4193
3973
  export class EntityBaseMovementComponent extends EntityComponent {
4194
- protected constructor();
3974
+ private constructor();
4195
3975
  readonly maxTurn: number;
4196
3976
  }
4197
3977
 
@@ -4200,8 +3980,9 @@ export class EntityBaseMovementComponent extends EntityComponent {
4200
3980
  * Defines what blocks this entity can breathe in and gives
4201
3981
  * them the ability to suffocate.
4202
3982
  */
3983
+ // @ts-ignore Class inheritance allowed for native defined classes
4203
3984
  export class EntityBreathableComponent extends EntityComponent {
4204
- protected constructor();
3985
+ private constructor();
4205
3986
  /**
4206
3987
  * @remarks
4207
3988
  * If true, this entity can breathe in air.
@@ -4297,8 +4078,9 @@ export class EntityBreathableComponent extends EntityComponent {
4297
4078
  * When added, this component signifies that the entity can
4298
4079
  * climb up ladders.
4299
4080
  */
4081
+ // @ts-ignore Class inheritance allowed for native defined classes
4300
4082
  export class EntityCanClimbComponent extends EntityComponent {
4301
- protected constructor();
4083
+ private constructor();
4302
4084
  /**
4303
4085
  * @remarks
4304
4086
  * Identifier of this component. Should always be
@@ -4314,8 +4096,9 @@ export class EntityCanClimbComponent extends EntityComponent {
4314
4096
  * fly, and the pathfinder won't be restricted to paths where a
4315
4097
  * solid block is required underneath it.
4316
4098
  */
4099
+ // @ts-ignore Class inheritance allowed for native defined classes
4317
4100
  export class EntityCanFlyComponent extends EntityComponent {
4318
- protected constructor();
4101
+ private constructor();
4319
4102
  /**
4320
4103
  * @remarks
4321
4104
  * Identifier of this component. Should always be
@@ -4330,8 +4113,9 @@ export class EntityCanFlyComponent extends EntityComponent {
4330
4113
  * When added, this component signifies that the entity can
4331
4114
  * power jump like the horse does within Minecraft.
4332
4115
  */
4116
+ // @ts-ignore Class inheritance allowed for native defined classes
4333
4117
  export class EntityCanPowerJumpComponent extends EntityComponent {
4334
- protected constructor();
4118
+ private constructor();
4335
4119
  /**
4336
4120
  * @remarks
4337
4121
  * Identifier of this component. Should always be
@@ -4346,8 +4130,9 @@ export class EntityCanPowerJumpComponent extends EntityComponent {
4346
4130
  * Defines the entity's color. Only works on certain entities
4347
4131
  * that have predefined color values (sheep, llama, shulker).
4348
4132
  */
4133
+ // @ts-ignore Class inheritance allowed for native defined classes
4349
4134
  export class EntityColorComponent extends EntityComponent {
4350
- protected constructor();
4135
+ private constructor();
4351
4136
  /**
4352
4137
  * @remarks
4353
4138
  * This property can't be edited in read-only mode.
@@ -4367,8 +4152,9 @@ export class EntityColorComponent extends EntityComponent {
4367
4152
  * @beta
4368
4153
  * Base class for downstream entity components.
4369
4154
  */
4155
+ // @ts-ignore Class inheritance allowed for native defined classes
4370
4156
  export class EntityComponent extends Component {
4371
- protected constructor();
4157
+ private constructor();
4372
4158
  /**
4373
4159
  * @beta
4374
4160
  * @remarks
@@ -4385,7 +4171,7 @@ export class EntityComponent extends Component {
4385
4171
  * causes them to grow.
4386
4172
  */
4387
4173
  export class EntityDefinitionFeedItem {
4388
- protected constructor();
4174
+ private constructor();
4389
4175
  /**
4390
4176
  * @remarks
4391
4177
  * The amount by which an entity's age will increase when fed
@@ -4407,7 +4193,7 @@ export class EntityDefinitionFeedItem {
4407
4193
  * @beta
4408
4194
  */
4409
4195
  export class EntityDieAfterEvent {
4410
- protected constructor();
4196
+ private constructor();
4411
4197
  readonly damageSource: EntityDamageSource;
4412
4198
  readonly deadEntity: Entity;
4413
4199
  }
@@ -4415,8 +4201,9 @@ export class EntityDieAfterEvent {
4415
4201
  /**
4416
4202
  * @beta
4417
4203
  */
4204
+ // @ts-ignore Class inheritance allowed for native defined classes
4418
4205
  export class EntityDieAfterEventSignal extends IEntityDieAfterEventSignal {
4419
- protected constructor();
4206
+ private constructor();
4420
4207
  }
4421
4208
 
4422
4209
  /**
@@ -4424,8 +4211,9 @@ export class EntityDieAfterEventSignal extends IEntityDieAfterEventSignal {
4424
4211
  * Provides access to a mob's equipment slots. This component
4425
4212
  * exists for all mob entities.
4426
4213
  */
4214
+ // @ts-ignore Class inheritance allowed for native defined classes
4427
4215
  export class EntityEquipmentInventoryComponent extends EntityComponent {
4428
- protected constructor();
4216
+ private constructor();
4429
4217
  static readonly componentId = 'minecraft:equipment_inventory';
4430
4218
  /**
4431
4219
  * @remarks
@@ -4476,8 +4264,9 @@ export class EntityEquipmentInventoryComponent extends EntityComponent {
4476
4264
  * When added, this component signifies that this entity
4477
4265
  * doesn't take damage from fire.
4478
4266
  */
4267
+ // @ts-ignore Class inheritance allowed for native defined classes
4479
4268
  export class EntityFireImmuneComponent extends EntityComponent {
4480
- protected constructor();
4269
+ private constructor();
4481
4270
  /**
4482
4271
  * @remarks
4483
4272
  * Identifier of this component. Should always be
@@ -4492,8 +4281,9 @@ export class EntityFireImmuneComponent extends EntityComponent {
4492
4281
  * When added, this component signifies that this entity can
4493
4282
  * float in liquid blocks.
4494
4283
  */
4284
+ // @ts-ignore Class inheritance allowed for native defined classes
4495
4285
  export class EntityFloatsInLiquidComponent extends EntityComponent {
4496
- protected constructor();
4286
+ private constructor();
4497
4287
  /**
4498
4288
  * @remarks
4499
4289
  * Identifier of this component. Should always be
@@ -4507,8 +4297,9 @@ export class EntityFloatsInLiquidComponent extends EntityComponent {
4507
4297
  * @beta
4508
4298
  * Represents the flying speed of an entity.
4509
4299
  */
4300
+ // @ts-ignore Class inheritance allowed for native defined classes
4510
4301
  export class EntityFlyingSpeedComponent extends EntityComponent {
4511
- protected constructor();
4302
+ private constructor();
4512
4303
  /**
4513
4304
  * @remarks
4514
4305
  * This property can't be edited in read-only mode.
@@ -4528,8 +4319,9 @@ export class EntityFlyingSpeedComponent extends EntityComponent {
4528
4319
  * @beta
4529
4320
  * Defines how much friction affects this entity.
4530
4321
  */
4322
+ // @ts-ignore Class inheritance allowed for native defined classes
4531
4323
  export class EntityFrictionModifierComponent extends EntityComponent {
4532
- protected constructor();
4324
+ private constructor();
4533
4325
  /**
4534
4326
  * @remarks
4535
4327
  * This property can't be edited in read-only mode.
@@ -4550,8 +4342,9 @@ export class EntityFrictionModifierComponent extends EntityComponent {
4550
4342
  * Sets the offset from the ground that the entity is actually
4551
4343
  * at.
4552
4344
  */
4345
+ // @ts-ignore Class inheritance allowed for native defined classes
4553
4346
  export class EntityGroundOffsetComponent extends EntityComponent {
4554
- protected constructor();
4347
+ private constructor();
4555
4348
  /**
4556
4349
  * @remarks
4557
4350
  * This property can't be edited in read-only mode.
@@ -4571,8 +4364,17 @@ export class EntityGroundOffsetComponent extends EntityComponent {
4571
4364
  * @beta
4572
4365
  * Defines the interactions with this entity for healing it.
4573
4366
  */
4367
+ // @ts-ignore Class inheritance allowed for native defined classes
4574
4368
  export class EntityHealableComponent extends EntityComponent {
4575
- 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;
4576
4378
  /**
4577
4379
  * @remarks
4578
4380
  * Determines if an item can be used regardless of the entity
@@ -4606,7 +4408,7 @@ export class EntityHealableComponent extends EntityComponent {
4606
4408
  * this event, or it will cause an infinite loop!
4607
4409
  */
4608
4410
  export class EntityHealthChangedAfterEvent {
4609
- protected constructor();
4411
+ private constructor();
4610
4412
  /**
4611
4413
  * @remarks
4612
4414
  * Entity whose health changed.
@@ -4632,16 +4434,18 @@ export class EntityHealthChangedAfterEvent {
4632
4434
  * Manages callbacks that are connected to when the health of
4633
4435
  * an entity changes.
4634
4436
  */
4437
+ // @ts-ignore Class inheritance allowed for native defined classes
4635
4438
  export class EntityHealthChangedAfterEventSignal extends IEntityHealthChangedAfterEventSignal {
4636
- protected constructor();
4439
+ private constructor();
4637
4440
  }
4638
4441
 
4639
4442
  /**
4640
4443
  * @beta
4641
4444
  * Defines the health properties of an entity.
4642
4445
  */
4446
+ // @ts-ignore Class inheritance allowed for native defined classes
4643
4447
  export class EntityHealthComponent extends EntityAttributeComponent {
4644
- protected constructor();
4448
+ private constructor();
4645
4449
  /**
4646
4450
  * @remarks
4647
4451
  * Identifier of this component. Should always be
@@ -4653,67 +4457,86 @@ export class EntityHealthComponent extends EntityAttributeComponent {
4653
4457
 
4654
4458
  /**
4655
4459
  * @beta
4656
- * Contains information related to an entity hitting (melee
4657
- * attacking) another entity.
4460
+ * Contains information related to an entity hitting a block.
4658
4461
  */
4659
- export class EntityHitAfterEvent {
4660
- protected constructor();
4661
- /**
4662
- * @remarks
4663
- * Entity that made a hit/melee attack.
4664
- *
4665
- */
4666
- readonly entity: Entity;
4462
+ export class EntityHitBlockAfterEvent {
4463
+ private constructor();
4464
+ readonly blockFace: Direction;
4667
4465
  /**
4668
4466
  * @remarks
4669
- * Block that was hit by the attack, or undefined if the hit
4670
- * attack did not hit a block. If both hitEntity and hitBlock
4671
- * are undefined, then the entity basically swiped into the
4672
- * air.
4467
+ * Entity that made the attack.
4673
4468
  *
4674
4469
  */
4675
- readonly hitBlock?: Block;
4470
+ readonly damagingEntity: Entity;
4676
4471
  /**
4677
4472
  * @remarks
4678
- * Entity that was hit by the attack, or undefined if the hit
4679
- * attack did not hit an entity. If both hitEntity and hitBlock
4680
- * are undefined, then the entity basically swiped into the
4681
- * air.
4473
+ * Block that was hit by the attack.
4682
4474
  *
4683
4475
  */
4684
- readonly hitEntity?: Entity;
4476
+ readonly hitBlock: Block;
4685
4477
  }
4686
4478
 
4687
4479
  /**
4688
4480
  * @beta
4689
- * Manages callbacks that are connected to when an entity makes
4690
- * a melee attack on another entity.
4481
+ * Manages callbacks that are connected to when an entity hits
4482
+ * a block.
4691
4483
  */
4692
- export class EntityHitAfterEventSignal extends IEntityHitAfterEventSignal {
4693
- protected constructor();
4484
+ // @ts-ignore Class inheritance allowed for native defined classes
4485
+ export class EntityHitBlockAfterEventSignal extends IEntityHitBlockAfterEventSignal {
4486
+ private constructor();
4694
4487
  }
4695
4488
 
4696
4489
  /**
4697
4490
  * @beta
4698
- * Contains information related to an entity getting hurt by
4699
- * another entity.
4491
+ * Contains information related to an entity hitting (melee
4492
+ * attacking) another entity.
4700
4493
  */
4701
- export class EntityHurtAfterEvent {
4702
- protected constructor();
4494
+ export class EntityHitEntityAfterEvent {
4495
+ private constructor();
4703
4496
  /**
4704
4497
  * @remarks
4705
- * Describes the amount of damage caused.
4498
+ * Entity that made a hit/melee attack.
4706
4499
  *
4707
4500
  */
4708
- readonly damage: number;
4501
+ readonly damagingEntity: Entity;
4709
4502
  /**
4710
4503
  * @remarks
4711
- * Source information on the entity that may have applied this
4712
- * damage.
4504
+ * Entity that was hit by the attack.
4713
4505
  *
4714
4506
  */
4715
- readonly damageSource: EntityDamageSource;
4716
- /**
4507
+ readonly hitEntity: Entity;
4508
+ }
4509
+
4510
+ /**
4511
+ * @beta
4512
+ * Manages callbacks that are connected to when an entity makes
4513
+ * a melee attack on another entity.
4514
+ */
4515
+ // @ts-ignore Class inheritance allowed for native defined classes
4516
+ export class EntityHitEntityAfterEventSignal extends IEntityHitEntityAfterEventSignal {
4517
+ private constructor();
4518
+ }
4519
+
4520
+ /**
4521
+ * @beta
4522
+ * Contains information related to an entity getting hurt.
4523
+ */
4524
+ export class EntityHurtAfterEvent {
4525
+ private constructor();
4526
+ /**
4527
+ * @remarks
4528
+ * Describes the amount of damage caused.
4529
+ *
4530
+ */
4531
+ readonly damage: number;
4532
+ /**
4533
+ * @remarks
4534
+ * Source information on the entity that may have applied this
4535
+ * damage.
4536
+ *
4537
+ */
4538
+ readonly damageSource: EntityDamageSource;
4539
+ /**
4717
4540
  * @remarks
4718
4541
  * Entity that was hurt.
4719
4542
  *
@@ -4726,16 +4549,18 @@ export class EntityHurtAfterEvent {
4726
4549
  * Manages callbacks that are connected to when an entity is
4727
4550
  * hurt.
4728
4551
  */
4552
+ // @ts-ignore Class inheritance allowed for native defined classes
4729
4553
  export class EntityHurtAfterEventSignal extends IEntityHurtAfterEventSignal {
4730
- protected constructor();
4554
+ private constructor();
4731
4555
  }
4732
4556
 
4733
4557
  /**
4734
4558
  * @beta
4735
4559
  * Defines this entity's inventory properties.
4736
4560
  */
4561
+ // @ts-ignore Class inheritance allowed for native defined classes
4737
4562
  export class EntityInventoryComponent extends EntityComponent {
4738
- protected constructor();
4563
+ private constructor();
4739
4564
  /**
4740
4565
  * @remarks
4741
4566
  * Number of slots that this entity can gain per extra
@@ -4802,8 +4627,9 @@ export class EntityInventoryComponent extends EntityComponent {
4802
4627
  * When added, this component signifies that this entity is a
4803
4628
  * baby.
4804
4629
  */
4630
+ // @ts-ignore Class inheritance allowed for native defined classes
4805
4631
  export class EntityIsBabyComponent extends EntityComponent {
4806
- protected constructor();
4632
+ private constructor();
4807
4633
  /**
4808
4634
  * @remarks
4809
4635
  * Identifier of this component. Should always be
@@ -4818,8 +4644,9 @@ export class EntityIsBabyComponent extends EntityComponent {
4818
4644
  * When added, this component signifies that this entity is
4819
4645
  * charged.
4820
4646
  */
4647
+ // @ts-ignore Class inheritance allowed for native defined classes
4821
4648
  export class EntityIsChargedComponent extends EntityComponent {
4822
- protected constructor();
4649
+ private constructor();
4823
4650
  /**
4824
4651
  * @remarks
4825
4652
  * Identifier of this component. Should always be
@@ -4834,8 +4661,9 @@ export class EntityIsChargedComponent extends EntityComponent {
4834
4661
  * When added, this component signifies that this entity is
4835
4662
  * currently carrying a chest.
4836
4663
  */
4664
+ // @ts-ignore Class inheritance allowed for native defined classes
4837
4665
  export class EntityIsChestedComponent extends EntityComponent {
4838
- protected constructor();
4666
+ private constructor();
4839
4667
  /**
4840
4668
  * @remarks
4841
4669
  * Identifier of this component. Should always be
@@ -4850,8 +4678,9 @@ export class EntityIsChestedComponent extends EntityComponent {
4850
4678
  * When added, this component signifies that dyes can be used
4851
4679
  * on this entity to change its color.
4852
4680
  */
4681
+ // @ts-ignore Class inheritance allowed for native defined classes
4853
4682
  export class EntityIsDyeableComponent extends EntityComponent {
4854
- protected constructor();
4683
+ private constructor();
4855
4684
  /**
4856
4685
  * @remarks
4857
4686
  * Identifier of this component. Should always be
@@ -4866,8 +4695,9 @@ export class EntityIsDyeableComponent extends EntityComponent {
4866
4695
  * When added, this component signifies that this entity can
4867
4696
  * hide from hostile mobs while invisible.
4868
4697
  */
4698
+ // @ts-ignore Class inheritance allowed for native defined classes
4869
4699
  export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
4870
- protected constructor();
4700
+ private constructor();
4871
4701
  /**
4872
4702
  * @remarks
4873
4703
  * Identifier of this component. Should always be
@@ -4882,8 +4712,9 @@ export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
4882
4712
  * When added, this component signifies that this entity this
4883
4713
  * currently on fire.
4884
4714
  */
4715
+ // @ts-ignore Class inheritance allowed for native defined classes
4885
4716
  export class EntityIsIgnitedComponent extends EntityComponent {
4886
- protected constructor();
4717
+ private constructor();
4887
4718
  /**
4888
4719
  * @remarks
4889
4720
  * Identifier of this component. Should always be
@@ -4898,8 +4729,9 @@ export class EntityIsIgnitedComponent extends EntityComponent {
4898
4729
  * When added, this component signifies that this entity is an
4899
4730
  * illager captain.
4900
4731
  */
4732
+ // @ts-ignore Class inheritance allowed for native defined classes
4901
4733
  export class EntityIsIllagerCaptainComponent extends EntityComponent {
4902
- protected constructor();
4734
+ private constructor();
4903
4735
  /**
4904
4736
  * @remarks
4905
4737
  * Identifier of this component. Should always be
@@ -4914,8 +4746,9 @@ export class EntityIsIllagerCaptainComponent extends EntityComponent {
4914
4746
  * When added, this component signifies that this entity is
4915
4747
  * currently saddled.
4916
4748
  */
4749
+ // @ts-ignore Class inheritance allowed for native defined classes
4917
4750
  export class EntityIsSaddledComponent extends EntityComponent {
4918
- protected constructor();
4751
+ private constructor();
4919
4752
  /**
4920
4753
  * @remarks
4921
4754
  * Identifier of this component. Should always be
@@ -4930,8 +4763,9 @@ export class EntityIsSaddledComponent extends EntityComponent {
4930
4763
  * When added, this component signifies that this entity is
4931
4764
  * currently shaking.
4932
4765
  */
4766
+ // @ts-ignore Class inheritance allowed for native defined classes
4933
4767
  export class EntityIsShakingComponent extends EntityComponent {
4934
- protected constructor();
4768
+ private constructor();
4935
4769
  /**
4936
4770
  * @remarks
4937
4771
  * Identifier of this component. Should always be
@@ -4946,8 +4780,9 @@ export class EntityIsShakingComponent extends EntityComponent {
4946
4780
  * When added, this component signifies that this entity is
4947
4781
  * currently sheared.
4948
4782
  */
4783
+ // @ts-ignore Class inheritance allowed for native defined classes
4949
4784
  export class EntityIsShearedComponent extends EntityComponent {
4950
- protected constructor();
4785
+ private constructor();
4951
4786
  /**
4952
4787
  * @remarks
4953
4788
  * Identifier of this component. Should always be
@@ -4962,8 +4797,9 @@ export class EntityIsShearedComponent extends EntityComponent {
4962
4797
  * When added, this component signifies that this entity can be
4963
4798
  * stacked.
4964
4799
  */
4800
+ // @ts-ignore Class inheritance allowed for native defined classes
4965
4801
  export class EntityIsStackableComponent extends EntityComponent {
4966
- protected constructor();
4802
+ private constructor();
4967
4803
  /**
4968
4804
  * @remarks
4969
4805
  * Identifier of this component. Should always be
@@ -4978,8 +4814,9 @@ export class EntityIsStackableComponent extends EntityComponent {
4978
4814
  * When added, this component signifies that this entity is
4979
4815
  * currently stunned.
4980
4816
  */
4817
+ // @ts-ignore Class inheritance allowed for native defined classes
4981
4818
  export class EntityIsStunnedComponent extends EntityComponent {
4982
- protected constructor();
4819
+ private constructor();
4983
4820
  /**
4984
4821
  * @remarks
4985
4822
  * Identifier of this component. Should always be
@@ -4994,8 +4831,9 @@ export class EntityIsStunnedComponent extends EntityComponent {
4994
4831
  * When added, this component signifies that this entity is
4995
4832
  * currently tamed.
4996
4833
  */
4834
+ // @ts-ignore Class inheritance allowed for native defined classes
4997
4835
  export class EntityIsTamedComponent extends EntityComponent {
4998
- protected constructor();
4836
+ private constructor();
4999
4837
  /**
5000
4838
  * @remarks
5001
4839
  * Identifier of this component. Should always be
@@ -5012,8 +4850,9 @@ export class EntityIsTamedComponent extends EntityComponent {
5012
4850
  * retrieve the actual item stack contents via the itemStack
5013
4851
  * property.
5014
4852
  */
4853
+ // @ts-ignore Class inheritance allowed for native defined classes
5015
4854
  export class EntityItemComponent extends EntityComponent {
5016
- protected constructor();
4855
+ private constructor();
5017
4856
  /**
5018
4857
  * @remarks
5019
4858
  * Item stack represented by this entity in the world.
@@ -5036,7 +4875,7 @@ export class EntityItemComponent extends EntityComponent {
5036
4875
  * statements, Array.from(iterator), and more.
5037
4876
  */
5038
4877
  export class EntityIterator implements Iterable<Entity> {
5039
- protected constructor();
4878
+ private constructor();
5040
4879
  /**
5041
4880
  * @remarks
5042
4881
  * This function can't be called in read-only mode.
@@ -5059,8 +4898,9 @@ export class EntityIterator implements Iterable<Entity> {
5059
4898
  * @beta
5060
4899
  * Defines the base movement speed in lava of this entity.
5061
4900
  */
4901
+ // @ts-ignore Class inheritance allowed for native defined classes
5062
4902
  export class EntityLavaMovementComponent extends EntityAttributeComponent {
5063
- protected constructor();
4903
+ private constructor();
5064
4904
  /**
5065
4905
  * @remarks
5066
4906
  * Identifier of this component. Should always be
@@ -5075,8 +4915,9 @@ export class EntityLavaMovementComponent extends EntityAttributeComponent {
5075
4915
  * Allows this entity to be leashed and defines the conditions
5076
4916
  * and events for this entity when is leashed.
5077
4917
  */
4918
+ // @ts-ignore Class inheritance allowed for native defined classes
5078
4919
  export class EntityLeashableComponent extends EntityComponent {
5079
- protected constructor();
4920
+ private constructor();
5080
4921
  /**
5081
4922
  * @remarks
5082
4923
  * Distance in blocks at which the 'spring' effect starts
@@ -5120,8 +4961,9 @@ export class EntityLeashableComponent extends EntityComponent {
5120
4961
  * Additional variant value. Can be used to further
5121
4962
  * differentiate variants.
5122
4963
  */
4964
+ // @ts-ignore Class inheritance allowed for native defined classes
5123
4965
  export class EntityMarkVariantComponent extends EntityComponent {
5124
- protected constructor();
4966
+ private constructor();
5125
4967
  /**
5126
4968
  * @remarks
5127
4969
  * This property can't be edited in read-only mode.
@@ -5142,8 +4984,9 @@ export class EntityMarkVariantComponent extends EntityComponent {
5142
4984
  * Contains options for taming a rideable entity based on the
5143
4985
  * entity that mounts it.
5144
4986
  */
4987
+ // @ts-ignore Class inheritance allowed for native defined classes
5145
4988
  export class EntityMountTamingComponent extends EntityComponent {
5146
- protected constructor();
4989
+ private constructor();
5147
4990
  /**
5148
4991
  * @remarks
5149
4992
  * Identifier of this component. Should always be
@@ -5169,8 +5012,9 @@ export class EntityMountTamingComponent extends EntityComponent {
5169
5012
  * When added, this movement control allows the mob to swim in
5170
5013
  * water and walk on land.
5171
5014
  */
5015
+ // @ts-ignore Class inheritance allowed for native defined classes
5172
5016
  export class EntityMovementAmphibiousComponent extends EntityBaseMovementComponent {
5173
- protected constructor();
5017
+ private constructor();
5174
5018
  /**
5175
5019
  * @remarks
5176
5020
  * Identifier of this component. Should always be
@@ -5184,8 +5028,9 @@ export class EntityMovementAmphibiousComponent extends EntityBaseMovementCompone
5184
5028
  * @beta
5185
5029
  * This component accents the movement of an entity.
5186
5030
  */
5031
+ // @ts-ignore Class inheritance allowed for native defined classes
5187
5032
  export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
5188
- protected constructor();
5033
+ private constructor();
5189
5034
  /**
5190
5035
  * @remarks
5191
5036
  * Identifier of this component. Should always be
@@ -5199,8 +5044,9 @@ export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
5199
5044
  * @beta
5200
5045
  * Defines the general movement speed of this entity.
5201
5046
  */
5047
+ // @ts-ignore Class inheritance allowed for native defined classes
5202
5048
  export class EntityMovementComponent extends EntityAttributeComponent {
5203
- protected constructor();
5049
+ private constructor();
5204
5050
  /**
5205
5051
  * @remarks
5206
5052
  * Identifier of this component. Should always be
@@ -5214,8 +5060,9 @@ export class EntityMovementComponent extends EntityAttributeComponent {
5214
5060
  * @beta
5215
5061
  * When added, this move control causes the mob to fly.
5216
5062
  */
5063
+ // @ts-ignore Class inheritance allowed for native defined classes
5217
5064
  export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
5218
- protected constructor();
5065
+ private constructor();
5219
5066
  /**
5220
5067
  * @remarks
5221
5068
  * Identifier of this component. Should always be
@@ -5230,8 +5077,9 @@ export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
5230
5077
  * When added, this move control allows a mob to fly, swim,
5231
5078
  * climb, etc.
5232
5079
  */
5080
+ // @ts-ignore Class inheritance allowed for native defined classes
5233
5081
  export class EntityMovementGenericComponent extends EntityBaseMovementComponent {
5234
- protected constructor();
5082
+ private constructor();
5235
5083
  /**
5236
5084
  * @remarks
5237
5085
  * Identifier of this component. Should always be
@@ -5245,8 +5093,9 @@ export class EntityMovementGenericComponent extends EntityBaseMovementComponent
5245
5093
  * @beta
5246
5094
  * When added, this movement control allows the mob to glide.
5247
5095
  */
5096
+ // @ts-ignore Class inheritance allowed for native defined classes
5248
5097
  export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
5249
- protected constructor();
5098
+ private constructor();
5250
5099
  /**
5251
5100
  * @remarks
5252
5101
  * Speed in effect when the entity is turning.
@@ -5274,8 +5123,9 @@ export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
5274
5123
  * @beta
5275
5124
  * When added, this move control causes the mob to hover.
5276
5125
  */
5126
+ // @ts-ignore Class inheritance allowed for native defined classes
5277
5127
  export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
5278
- protected constructor();
5128
+ private constructor();
5279
5129
  /**
5280
5130
  * @remarks
5281
5131
  * Identifier of this component. Should always be
@@ -5290,8 +5140,9 @@ export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
5290
5140
  * Move control that causes the mob to jump as it moves with a
5291
5141
  * specified delay between jumps.
5292
5142
  */
5143
+ // @ts-ignore Class inheritance allowed for native defined classes
5293
5144
  export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
5294
- protected constructor();
5145
+ private constructor();
5295
5146
  /**
5296
5147
  * @remarks
5297
5148
  * Identifier of this component. Should always be
@@ -5306,8 +5157,9 @@ export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
5306
5157
  * When added, this move control causes the mob to hop as it
5307
5158
  * moves.
5308
5159
  */
5160
+ // @ts-ignore Class inheritance allowed for native defined classes
5309
5161
  export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
5310
- protected constructor();
5162
+ private constructor();
5311
5163
  /**
5312
5164
  * @remarks
5313
5165
  * Identifier of this component. Should always be
@@ -5322,8 +5174,9 @@ export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
5322
5174
  * When added, this move control causes the mob to sway side to
5323
5175
  * side giving the impression it is swimming.
5324
5176
  */
5177
+ // @ts-ignore Class inheritance allowed for native defined classes
5325
5178
  export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
5326
- protected constructor();
5179
+ private constructor();
5327
5180
  /**
5328
5181
  * @remarks
5329
5182
  * Amplitude of the sway motion.
@@ -5352,8 +5205,9 @@ export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
5352
5205
  * Allows this entity to generate paths that include vertical
5353
5206
  * walls (for example, like Minecraft spiders do.)
5354
5207
  */
5208
+ // @ts-ignore Class inheritance allowed for native defined classes
5355
5209
  export class EntityNavigationClimbComponent extends EntityNavigationComponent {
5356
- protected constructor();
5210
+ private constructor();
5357
5211
  /**
5358
5212
  * @remarks
5359
5213
  * Identifier of this component. Should always be
@@ -5368,8 +5222,9 @@ export class EntityNavigationClimbComponent extends EntityNavigationComponent {
5368
5222
  * Allows this entity to generate paths that include vertical
5369
5223
  * walls (for example, like Minecraft spiders do.)
5370
5224
  */
5225
+ // @ts-ignore Class inheritance allowed for native defined classes
5371
5226
  export class EntityNavigationComponent extends EntityComponent {
5372
- protected constructor();
5227
+ private constructor();
5373
5228
  /**
5374
5229
  * @remarks
5375
5230
  * Tells the pathfinder to avoid blocks that cause damage when
@@ -5525,8 +5380,9 @@ export class EntityNavigationComponent extends EntityComponent {
5525
5380
  * Allows this entity to generate paths by flying around the
5526
5381
  * air like the regular Ghast.
5527
5382
  */
5383
+ // @ts-ignore Class inheritance allowed for native defined classes
5528
5384
  export class EntityNavigationFloatComponent extends EntityNavigationComponent {
5529
- protected constructor();
5385
+ private constructor();
5530
5386
  /**
5531
5387
  * @remarks
5532
5388
  * Identifier of this component. Should always be
@@ -5541,8 +5397,9 @@ export class EntityNavigationFloatComponent extends EntityNavigationComponent {
5541
5397
  * Allows this entity to generate paths in the air (for
5542
5398
  * example, like Minecraft parrots do.)
5543
5399
  */
5400
+ // @ts-ignore Class inheritance allowed for native defined classes
5544
5401
  export class EntityNavigationFlyComponent extends EntityNavigationComponent {
5545
- protected constructor();
5402
+ private constructor();
5546
5403
  /**
5547
5404
  * @remarks
5548
5405
  * Identifier of this component. Should always be
@@ -5558,8 +5415,9 @@ export class EntityNavigationFlyComponent extends EntityNavigationComponent {
5558
5415
  * flying and/or climbing around and jumping up and down a
5559
5416
  * block.
5560
5417
  */
5418
+ // @ts-ignore Class inheritance allowed for native defined classes
5561
5419
  export class EntityNavigationGenericComponent extends EntityNavigationComponent {
5562
- protected constructor();
5420
+ private constructor();
5563
5421
  /**
5564
5422
  * @remarks
5565
5423
  * Identifier of this component. Should always be
@@ -5575,8 +5433,9 @@ export class EntityNavigationGenericComponent extends EntityNavigationComponent
5575
5433
  * example, like the Minecraft Bees do.) Keeps them from
5576
5434
  * falling out of the skies and doing predictive movement.
5577
5435
  */
5436
+ // @ts-ignore Class inheritance allowed for native defined classes
5578
5437
  export class EntityNavigationHoverComponent extends EntityNavigationComponent {
5579
- protected constructor();
5438
+ private constructor();
5580
5439
  /**
5581
5440
  * @remarks
5582
5441
  * Identifier of this component. Should always be
@@ -5591,8 +5450,9 @@ export class EntityNavigationHoverComponent extends EntityNavigationComponent {
5591
5450
  * Allows this entity to generate paths by walking around and
5592
5451
  * jumping up and down a block like regular mobs.
5593
5452
  */
5453
+ // @ts-ignore Class inheritance allowed for native defined classes
5594
5454
  export class EntityNavigationWalkComponent extends EntityNavigationComponent {
5595
- protected constructor();
5455
+ private constructor();
5596
5456
  /**
5597
5457
  * @remarks
5598
5458
  * Identifier of this component. Should always be
@@ -5606,8 +5466,9 @@ export class EntityNavigationWalkComponent extends EntityNavigationComponent {
5606
5466
  * @beta
5607
5467
  * When present on an entity, this entity is on fire.
5608
5468
  */
5469
+ // @ts-ignore Class inheritance allowed for native defined classes
5609
5470
  export class EntityOnFireComponent extends EntityComponent {
5610
- protected constructor();
5471
+ private constructor();
5611
5472
  /**
5612
5473
  * @remarks
5613
5474
  * The number of ticks remaining before the fire goes out.
@@ -5621,8 +5482,9 @@ export class EntityOnFireComponent extends EntityComponent {
5621
5482
  * @beta
5622
5483
  * Sets the distance through which the entity can push through.
5623
5484
  */
5485
+ // @ts-ignore Class inheritance allowed for native defined classes
5624
5486
  export class EntityPushThroughComponent extends EntityComponent {
5625
- protected constructor();
5487
+ private constructor();
5626
5488
  /**
5627
5489
  * @remarks
5628
5490
  * This property can't be edited in read-only mode.
@@ -5642,15 +5504,16 @@ export class EntityPushThroughComponent extends EntityComponent {
5642
5504
  * @beta
5643
5505
  */
5644
5506
  export class EntityRemovedAfterEvent {
5645
- protected constructor();
5507
+ private constructor();
5646
5508
  readonly removedEntity: string;
5647
5509
  }
5648
5510
 
5649
5511
  /**
5650
5512
  * @beta
5651
5513
  */
5514
+ // @ts-ignore Class inheritance allowed for native defined classes
5652
5515
  export class EntityRemovedAfterEventSignal extends IEntityRemovedAfterEventSignal {
5653
- protected constructor();
5516
+ private constructor();
5654
5517
  }
5655
5518
 
5656
5519
  /**
@@ -5658,8 +5521,9 @@ export class EntityRemovedAfterEventSignal extends IEntityRemovedAfterEventSigna
5658
5521
  * When added, this component adds the capability that an
5659
5522
  * entity can be ridden by another entity.
5660
5523
  */
5524
+ // @ts-ignore Class inheritance allowed for native defined classes
5661
5525
  export class EntityRideableComponent extends EntityComponent {
5662
- protected constructor();
5526
+ private constructor();
5663
5527
  /**
5664
5528
  * @remarks
5665
5529
  * Zero-based index of the seat that can used to control this
@@ -5779,8 +5643,9 @@ export class EntityRideableComponent extends EntityComponent {
5779
5643
  * This component is added to any entity when it is riding
5780
5644
  * another entity.
5781
5645
  */
5646
+ // @ts-ignore Class inheritance allowed for native defined classes
5782
5647
  export class EntityRidingComponent extends EntityComponent {
5783
- protected constructor();
5648
+ private constructor();
5784
5649
  /**
5785
5650
  * @remarks
5786
5651
  * The entity this entity is currently riding on.
@@ -5801,8 +5666,9 @@ export class EntityRidingComponent extends EntityComponent {
5801
5666
  * @beta
5802
5667
  * Sets the entity's visual size.
5803
5668
  */
5669
+ // @ts-ignore Class inheritance allowed for native defined classes
5804
5670
  export class EntityScaleComponent extends EntityComponent {
5805
- protected constructor();
5671
+ private constructor();
5806
5672
  /**
5807
5673
  * @remarks
5808
5674
  * This property can't be edited in read-only mode.
@@ -5823,8 +5689,9 @@ export class EntityScaleComponent extends EntityComponent {
5823
5689
  * Skin Id value. Can be used to differentiate skins, such as
5824
5690
  * base skins for villagers.
5825
5691
  */
5692
+ // @ts-ignore Class inheritance allowed for native defined classes
5826
5693
  export class EntitySkinIdComponent extends EntityComponent {
5827
- protected constructor();
5694
+ private constructor();
5828
5695
  /**
5829
5696
  * @remarks
5830
5697
  * This property can't be edited in read-only mode.
@@ -5846,7 +5713,7 @@ export class EntitySkinIdComponent extends EntityComponent {
5846
5713
  * world.
5847
5714
  */
5848
5715
  export class EntitySpawnAfterEvent {
5849
- protected constructor();
5716
+ private constructor();
5850
5717
  /**
5851
5718
  * @remarks
5852
5719
  * Entity that was spawned.
@@ -5862,16 +5729,18 @@ export class EntitySpawnAfterEvent {
5862
5729
  * Registers a script-based event handler for handling what
5863
5730
  * happens when an entity spawns.
5864
5731
  */
5732
+ // @ts-ignore Class inheritance allowed for native defined classes
5865
5733
  export class EntitySpawnAfterEventSignal extends IEntitySpawnAfterEventSignal {
5866
- protected constructor();
5734
+ private constructor();
5867
5735
  }
5868
5736
 
5869
5737
  /**
5870
5738
  * @beta
5871
5739
  * Defines the entity's strength to carry items.
5872
5740
  */
5741
+ // @ts-ignore Class inheritance allowed for native defined classes
5873
5742
  export class EntityStrengthComponent extends EntityComponent {
5874
- protected constructor();
5743
+ private constructor();
5875
5744
  /**
5876
5745
  * @remarks
5877
5746
  * Maximum strength of this entity, as defined in the entity
@@ -5894,8 +5763,9 @@ export class EntityStrengthComponent extends EntityComponent {
5894
5763
  * @beta
5895
5764
  * Defines the rules for an entity to be tamed by the player.
5896
5765
  */
5766
+ // @ts-ignore Class inheritance allowed for native defined classes
5897
5767
  export class EntityTameableComponent extends EntityComponent {
5898
- protected constructor();
5768
+ private constructor();
5899
5769
  /**
5900
5770
  * @remarks
5901
5771
  * The chance of taming the entity with each item use between
@@ -5936,7 +5806,7 @@ export class EntityTameableComponent extends EntityComponent {
5936
5806
  * Represents information about a type of entity.
5937
5807
  */
5938
5808
  export class EntityType {
5939
- protected constructor();
5809
+ private constructor();
5940
5810
  /**
5941
5811
  * @remarks
5942
5812
  * Identifier of this entity type - for example,
@@ -5951,7 +5821,7 @@ export class EntityType {
5951
5821
  * An iterator that loops through available entity types.
5952
5822
  */
5953
5823
  export class EntityTypeIterator implements Iterable<EntityType> {
5954
- protected constructor();
5824
+ private constructor();
5955
5825
  /**
5956
5826
  * @remarks
5957
5827
  * This function can't be called in read-only mode.
@@ -5972,7 +5842,7 @@ export class EntityTypeIterator implements Iterable<EntityType> {
5972
5842
  * use within the world.
5973
5843
  */
5974
5844
  export class EntityTypes {
5975
- protected constructor();
5845
+ private constructor();
5976
5846
  /**
5977
5847
  * @remarks
5978
5848
  * Retrieves an entity type using a string-based identifier.
@@ -5992,8 +5862,9 @@ export class EntityTypes {
5992
5862
  * Defines the general movement speed underwater of this
5993
5863
  * entity.
5994
5864
  */
5865
+ // @ts-ignore Class inheritance allowed for native defined classes
5995
5866
  export class EntityUnderwaterMovementComponent extends EntityAttributeComponent {
5996
- protected constructor();
5867
+ private constructor();
5997
5868
  /**
5998
5869
  * @remarks
5999
5870
  * Identifier of this component. Should always be
@@ -6008,8 +5879,9 @@ export class EntityUnderwaterMovementComponent extends EntityAttributeComponent
6008
5879
  * Used to differentiate the component group of a variant of an
6009
5880
  * entity from others. (e.g. ocelot, villager).
6010
5881
  */
5882
+ // @ts-ignore Class inheritance allowed for native defined classes
6011
5883
  export class EntityVariantComponent extends EntityComponent {
6012
- protected constructor();
5884
+ private constructor();
6013
5885
  readonly value: number;
6014
5886
  /**
6015
5887
  * @remarks
@@ -6025,8 +5897,9 @@ export class EntityVariantComponent extends EntityComponent {
6025
5897
  * When added, this component signifies that this entity wants
6026
5898
  * to become a jockey.
6027
5899
  */
5900
+ // @ts-ignore Class inheritance allowed for native defined classes
6028
5901
  export class EntityWantsJockeyComponent extends EntityComponent {
6029
- protected constructor();
5902
+ private constructor();
6030
5903
  /**
6031
5904
  * @remarks
6032
5905
  * Identifier of this component. Should always be
@@ -6042,7 +5915,7 @@ export class EntityWantsJockeyComponent extends EntityComponent {
6042
5915
  * happened.
6043
5916
  */
6044
5917
  export class ExplosionAfterEvent {
6045
- protected constructor();
5918
+ private constructor();
6046
5919
  /**
6047
5920
  * @remarks
6048
5921
  * Dimension where the explosion has occurred.
@@ -6068,8 +5941,9 @@ export class ExplosionAfterEvent {
6068
5941
  * Manages callbacks that are connected to when an explosion
6069
5942
  * occurs.
6070
5943
  */
5944
+ // @ts-ignore Class inheritance allowed for native defined classes
6071
5945
  export class ExplosionAfterEventSignal extends IExplosionAfterEventSignal {
6072
- protected constructor();
5946
+ private constructor();
6073
5947
  }
6074
5948
 
6075
5949
  /**
@@ -6077,8 +5951,9 @@ export class ExplosionAfterEventSignal extends IExplosionAfterEventSignal {
6077
5951
  * Contains information regarding an explosion that has
6078
5952
  * happened.
6079
5953
  */
5954
+ // @ts-ignore Class inheritance allowed for native defined classes
6080
5955
  export class ExplosionBeforeEvent extends ExplosionAfterEvent {
6081
- protected constructor();
5956
+ private constructor();
6082
5957
  /**
6083
5958
  * @remarks
6084
5959
  * If set to true, cancels the explosion event.
@@ -6101,8 +5976,9 @@ export class ExplosionBeforeEvent extends ExplosionAfterEvent {
6101
5976
  * Manages callbacks that are connected to before an explosion
6102
5977
  * occurs.
6103
5978
  */
5979
+ // @ts-ignore Class inheritance allowed for native defined classes
6104
5980
  export class ExplosionBeforeEventSignal extends IExplosionBeforeEventSignal {
6105
- protected constructor();
5981
+ private constructor();
6106
5982
  }
6107
5983
 
6108
5984
  /**
@@ -6111,7 +5987,7 @@ export class ExplosionBeforeEventSignal extends IExplosionBeforeEventSignal {
6111
5987
  * item that can be fed to an entity to cause health effects.
6112
5988
  */
6113
5989
  export class FeedItem {
6114
- protected constructor();
5990
+ private constructor();
6115
5991
  /**
6116
5992
  * @remarks
6117
5993
  * The amount of health this entity gains when fed this item.
@@ -6143,7 +6019,7 @@ export class FeedItem {
6143
6019
  * item being fed to an entity.
6144
6020
  */
6145
6021
  export class FeedItemEffect {
6146
- protected constructor();
6022
+ private constructor();
6147
6023
  /**
6148
6024
  * @remarks
6149
6025
  * Gets an amplifier that may have been applied to this effect.
@@ -6179,7 +6055,7 @@ export class FeedItemEffect {
6179
6055
  * Represents a set of filters for when an event should occur.
6180
6056
  */
6181
6057
  export class FilterGroup {
6182
- protected constructor();
6058
+ private constructor();
6183
6059
  }
6184
6060
 
6185
6061
  /**
@@ -6187,7 +6063,7 @@ export class FilterGroup {
6187
6063
  * Represents constants related to fluid containers.
6188
6064
  */
6189
6065
  export class FluidContainer {
6190
- protected constructor();
6066
+ private constructor();
6191
6067
  /**
6192
6068
  * @remarks
6193
6069
  * Constant that represents the maximum fill level of a fluid
@@ -6210,7 +6086,7 @@ export class FluidContainer {
6210
6086
  * an event that fires when blocks are broken.
6211
6087
  */
6212
6088
  export class IBlockBreakAfterEventSignal {
6213
- protected constructor();
6089
+ private constructor();
6214
6090
  /**
6215
6091
  * @remarks
6216
6092
  * This function can't be called in read-only mode.
@@ -6232,7 +6108,7 @@ export class IBlockBreakAfterEventSignal {
6232
6108
  * an event that fires when an explosion occurs.
6233
6109
  */
6234
6110
  export class IBlockExplodeAfterEventSignal {
6235
- protected constructor();
6111
+ private constructor();
6236
6112
  /**
6237
6113
  * @remarks
6238
6114
  * This function can't be called in read-only mode.
@@ -6254,7 +6130,7 @@ export class IBlockExplodeAfterEventSignal {
6254
6130
  * an event that fires after a block is placed.
6255
6131
  */
6256
6132
  export class IBlockPlaceAfterEventSignal {
6257
- protected constructor();
6133
+ private constructor();
6258
6134
  /**
6259
6135
  * @remarks
6260
6136
  * This function can't be called in read-only mode.
@@ -6276,7 +6152,7 @@ export class IBlockPlaceAfterEventSignal {
6276
6152
  * an event that fires when a button is pushed.
6277
6153
  */
6278
6154
  export class IButtonPushAfterEventSignal {
6279
- protected constructor();
6155
+ private constructor();
6280
6156
  /**
6281
6157
  * @remarks
6282
6158
  * This function can't be called in read-only mode.
@@ -6298,7 +6174,7 @@ export class IButtonPushAfterEventSignal {
6298
6174
  * an event that fires when a chat message is sent.
6299
6175
  */
6300
6176
  export class IChatSendAfterEventSignal {
6301
- protected constructor();
6177
+ private constructor();
6302
6178
  /**
6303
6179
  * @remarks
6304
6180
  * This function can't be called in read-only mode.
@@ -6320,7 +6196,7 @@ export class IChatSendAfterEventSignal {
6320
6196
  * an event that fires before a chat message is sent.
6321
6197
  */
6322
6198
  export class IChatSendBeforeEventSignal {
6323
- protected constructor();
6199
+ private constructor();
6324
6200
  /**
6325
6201
  * @remarks
6326
6202
  * This function can't be called in read-only mode.
@@ -6343,7 +6219,7 @@ export class IChatSendBeforeEventSignal {
6343
6219
  * triggered to change.
6344
6220
  */
6345
6221
  export class IDataDrivenEntityTriggerAfterEventSignal {
6346
- protected constructor();
6222
+ private constructor();
6347
6223
  /**
6348
6224
  * @remarks
6349
6225
  * This function can't be called in read-only mode.
@@ -6369,7 +6245,7 @@ export class IDataDrivenEntityTriggerAfterEventSignal {
6369
6245
  * scheduled to change via a triggered event.
6370
6246
  */
6371
6247
  export class IDataDrivenEntityTriggerBeforeEventSignal {
6372
- protected constructor();
6248
+ private constructor();
6373
6249
  /**
6374
6250
  * @remarks
6375
6251
  * This function can't be called in read-only mode.
@@ -6394,7 +6270,7 @@ export class IDataDrivenEntityTriggerBeforeEventSignal {
6394
6270
  * an event that fires when an effect is added to an entity.
6395
6271
  */
6396
6272
  export class IEffectAddAfterEventSignal {
6397
- protected constructor();
6273
+ private constructor();
6398
6274
  /**
6399
6275
  * @remarks
6400
6276
  * This function can't be called in read-only mode.
@@ -6419,7 +6295,7 @@ export class IEffectAddAfterEventSignal {
6419
6295
  * an event that fires when an entity dies.
6420
6296
  */
6421
6297
  export class IEntityDieAfterEventSignal {
6422
- protected constructor();
6298
+ private constructor();
6423
6299
  /**
6424
6300
  * @remarks
6425
6301
  * This function can't be called in read-only mode.
@@ -6442,7 +6318,7 @@ export class IEntityDieAfterEventSignal {
6442
6318
  * @beta
6443
6319
  */
6444
6320
  export class IEntityHealthChangedAfterEventSignal {
6445
- protected constructor();
6321
+ private constructor();
6446
6322
  /**
6447
6323
  * @remarks
6448
6324
  * This function can't be called in read-only mode.
@@ -6463,28 +6339,48 @@ export class IEntityHealthChangedAfterEventSignal {
6463
6339
 
6464
6340
  /**
6465
6341
  * @beta
6466
- * Provides an adaptable interface for callers to subscribe to
6467
- * an event that fires when an entity hits (melee attacks)
6468
- * another entity.
6469
6342
  */
6470
- export class IEntityHitAfterEventSignal {
6471
- protected constructor();
6343
+ export class IEntityHitBlockAfterEventSignal {
6344
+ private constructor();
6472
6345
  /**
6473
6346
  * @remarks
6474
6347
  * This function can't be called in read-only mode.
6475
6348
  *
6476
6349
  */
6477
6350
  subscribe(
6478
- callback: (arg: EntityHitAfterEvent) => void,
6351
+ callback: (arg: EntityHitBlockAfterEvent) => void,
6479
6352
  options?: EntityEventOptions,
6480
- ): (arg: EntityHitAfterEvent) => void;
6353
+ ): (arg: EntityHitBlockAfterEvent) => void;
6481
6354
  /**
6482
6355
  * @remarks
6483
6356
  * This function can't be called in read-only mode.
6484
6357
  *
6485
6358
  * @throws This function can throw errors.
6486
6359
  */
6487
- unsubscribe(callback: (arg: EntityHitAfterEvent) => void): void;
6360
+ unsubscribe(callback: (arg: EntityHitBlockAfterEvent) => void): void;
6361
+ }
6362
+
6363
+ /**
6364
+ * @beta
6365
+ */
6366
+ export class IEntityHitEntityAfterEventSignal {
6367
+ private constructor();
6368
+ /**
6369
+ * @remarks
6370
+ * This function can't be called in read-only mode.
6371
+ *
6372
+ */
6373
+ subscribe(
6374
+ callback: (arg: EntityHitEntityAfterEvent) => void,
6375
+ options?: EntityEventOptions,
6376
+ ): (arg: EntityHitEntityAfterEvent) => void;
6377
+ /**
6378
+ * @remarks
6379
+ * This function can't be called in read-only mode.
6380
+ *
6381
+ * @throws This function can throw errors.
6382
+ */
6383
+ unsubscribe(callback: (arg: EntityHitEntityAfterEvent) => void): void;
6488
6384
  }
6489
6385
 
6490
6386
  /**
@@ -6493,7 +6389,7 @@ export class IEntityHitAfterEventSignal {
6493
6389
  * an event that fires when an entity is hurt.
6494
6390
  */
6495
6391
  export class IEntityHurtAfterEventSignal {
6496
- protected constructor();
6392
+ private constructor();
6497
6393
  /**
6498
6394
  * @remarks
6499
6395
  * This function can't be called in read-only mode.
@@ -6516,7 +6412,7 @@ export class IEntityHurtAfterEventSignal {
6516
6412
  * @beta
6517
6413
  */
6518
6414
  export class IEntityRemovedAfterEventSignal {
6519
- protected constructor();
6415
+ private constructor();
6520
6416
  /**
6521
6417
  * @remarks
6522
6418
  * This function can't be called in read-only mode.
@@ -6541,7 +6437,7 @@ export class IEntityRemovedAfterEventSignal {
6541
6437
  * an event that fires after an entity is spawned.
6542
6438
  */
6543
6439
  export class IEntitySpawnAfterEventSignal {
6544
- protected constructor();
6440
+ private constructor();
6545
6441
  /**
6546
6442
  * @remarks
6547
6443
  * This function can't be called in read-only mode.
@@ -6563,7 +6459,7 @@ export class IEntitySpawnAfterEventSignal {
6563
6459
  * an event that fires after an explosion occurs.
6564
6460
  */
6565
6461
  export class IExplosionAfterEventSignal {
6566
- protected constructor();
6462
+ private constructor();
6567
6463
  /**
6568
6464
  * @remarks
6569
6465
  * This function can't be called in read-only mode.
@@ -6585,7 +6481,7 @@ export class IExplosionAfterEventSignal {
6585
6481
  * an event that fires before an explosion begins.
6586
6482
  */
6587
6483
  export class IExplosionBeforeEventSignal {
6588
- protected constructor();
6484
+ private constructor();
6589
6485
  /**
6590
6486
  * @remarks
6591
6487
  * This function can't be called in read-only mode.
@@ -6605,7 +6501,7 @@ export class IExplosionBeforeEventSignal {
6605
6501
  * @beta
6606
6502
  */
6607
6503
  export class IItemCompleteUseAfterEventSignal {
6608
- protected constructor();
6504
+ private constructor();
6609
6505
  /**
6610
6506
  * @remarks
6611
6507
  * This function can't be called in read-only mode.
@@ -6627,7 +6523,7 @@ export class IItemCompleteUseAfterEventSignal {
6627
6523
  * an event that fires after an items' definition has changed.
6628
6524
  */
6629
6525
  export class IItemDefinitionAfterEventSignal {
6630
- protected constructor();
6526
+ private constructor();
6631
6527
  /**
6632
6528
  * @remarks
6633
6529
  * This function can't be called in read-only mode.
@@ -6651,7 +6547,7 @@ export class IItemDefinitionAfterEventSignal {
6651
6547
  * an event that fires before an items' definition changes.
6652
6548
  */
6653
6549
  export class IItemDefinitionBeforeEventSignal {
6654
- protected constructor();
6550
+ private constructor();
6655
6551
  /**
6656
6552
  * @remarks
6657
6553
  * This function can't be called in read-only mode.
@@ -6673,7 +6569,7 @@ export class IItemDefinitionBeforeEventSignal {
6673
6569
  * @beta
6674
6570
  */
6675
6571
  export class IItemReleaseUseAfterEventSignal {
6676
- protected constructor();
6572
+ private constructor();
6677
6573
  /**
6678
6574
  * @remarks
6679
6575
  * This function can't be called in read-only mode.
@@ -6693,7 +6589,7 @@ export class IItemReleaseUseAfterEventSignal {
6693
6589
  * @beta
6694
6590
  */
6695
6591
  export class IItemStartUseAfterEventSignal {
6696
- protected constructor();
6592
+ private constructor();
6697
6593
  /**
6698
6594
  * @remarks
6699
6595
  * This function can't be called in read-only mode.
@@ -6716,7 +6612,7 @@ export class IItemStartUseAfterEventSignal {
6716
6612
  * on a block.
6717
6613
  */
6718
6614
  export class IItemStartUseOnAfterEventSignal {
6719
- protected constructor();
6615
+ private constructor();
6720
6616
  /**
6721
6617
  * @remarks
6722
6618
  * This function can't be called in read-only mode.
@@ -6736,7 +6632,7 @@ export class IItemStartUseOnAfterEventSignal {
6736
6632
  * @beta
6737
6633
  */
6738
6634
  export class IItemStopUseAfterEventSignal {
6739
- protected constructor();
6635
+ private constructor();
6740
6636
  /**
6741
6637
  * @remarks
6742
6638
  * This function can't be called in read-only mode.
@@ -6759,7 +6655,7 @@ export class IItemStopUseAfterEventSignal {
6759
6655
  * block.
6760
6656
  */
6761
6657
  export class IItemStopUseOnAfterEventSignal {
6762
- protected constructor();
6658
+ private constructor();
6763
6659
  /**
6764
6660
  * @remarks
6765
6661
  * This function can't be called in read-only mode.
@@ -6781,7 +6677,7 @@ export class IItemStopUseOnAfterEventSignal {
6781
6677
  * an event that fires after an item is used.
6782
6678
  */
6783
6679
  export class IItemUseAfterEventSignal {
6784
- protected constructor();
6680
+ private constructor();
6785
6681
  /**
6786
6682
  * @remarks
6787
6683
  * This function can't be called in read-only mode.
@@ -6803,7 +6699,7 @@ export class IItemUseAfterEventSignal {
6803
6699
  * an event that fires before an item is used.
6804
6700
  */
6805
6701
  export class IItemUseBeforeEventSignal {
6806
- protected constructor();
6702
+ private constructor();
6807
6703
  /**
6808
6704
  * @remarks
6809
6705
  * This function can't be called in read-only mode.
@@ -6825,7 +6721,7 @@ export class IItemUseBeforeEventSignal {
6825
6721
  * an event that fires after an item is used on a block.
6826
6722
  */
6827
6723
  export class IItemUseOnAfterEventSignal {
6828
- protected constructor();
6724
+ private constructor();
6829
6725
  /**
6830
6726
  * @remarks
6831
6727
  * This function can't be called in read-only mode.
@@ -6847,7 +6743,7 @@ export class IItemUseOnAfterEventSignal {
6847
6743
  * an event that fires before an item is being used on a block.
6848
6744
  */
6849
6745
  export class IItemUseOnBeforeEventSignal {
6850
- protected constructor();
6746
+ private constructor();
6851
6747
  /**
6852
6748
  * @remarks
6853
6749
  * This function can't be called in read-only mode.
@@ -6869,7 +6765,7 @@ export class IItemUseOnBeforeEventSignal {
6869
6765
  * an event that fires after a lever is used.
6870
6766
  */
6871
6767
  export class ILeverActionAfterEventSignal {
6872
- protected constructor();
6768
+ private constructor();
6873
6769
  /**
6874
6770
  * @remarks
6875
6771
  * This function can't be called in read-only mode.
@@ -6891,7 +6787,7 @@ export class ILeverActionAfterEventSignal {
6891
6787
  * an event that fires after a piston is activated.
6892
6788
  */
6893
6789
  export class IPistonActivateAfterEventSignal {
6894
- protected constructor();
6790
+ private constructor();
6895
6791
  /**
6896
6792
  * @remarks
6897
6793
  * This function can't be called in read-only mode.
@@ -6913,7 +6809,7 @@ export class IPistonActivateAfterEventSignal {
6913
6809
  * an event that fires before a piston is activated.
6914
6810
  */
6915
6811
  export class IPistonActivateBeforeEventSignal {
6916
- protected constructor();
6812
+ private constructor();
6917
6813
  /**
6918
6814
  * @remarks
6919
6815
  * This function can't be called in read-only mode.
@@ -6935,7 +6831,7 @@ export class IPistonActivateBeforeEventSignal {
6935
6831
  * an event that fires after a player joins a world.
6936
6832
  */
6937
6833
  export class IPlayerJoinAfterEventSignal {
6938
- protected constructor();
6834
+ private constructor();
6939
6835
  /**
6940
6836
  * @remarks
6941
6837
  * This function can't be called in read-only mode.
@@ -6957,7 +6853,7 @@ export class IPlayerJoinAfterEventSignal {
6957
6853
  * an event that fires after a player leaves a world.
6958
6854
  */
6959
6855
  export class IPlayerLeaveAfterEventSignal {
6960
- protected constructor();
6856
+ private constructor();
6961
6857
  /**
6962
6858
  * @remarks
6963
6859
  * This function can't be called in read-only mode.
@@ -6979,7 +6875,7 @@ export class IPlayerLeaveAfterEventSignal {
6979
6875
  * an event that fires after a player spawns.
6980
6876
  */
6981
6877
  export class IPlayerSpawnAfterEventSignal {
6982
- protected constructor();
6878
+ private constructor();
6983
6879
  /**
6984
6880
  * @remarks
6985
6881
  * This function can't be called in read-only mode.
@@ -6999,7 +6895,7 @@ export class IPlayerSpawnAfterEventSignal {
6999
6895
  * @beta
7000
6896
  */
7001
6897
  export class IPressurePlatePopAfterEventSignal {
7002
- protected constructor();
6898
+ private constructor();
7003
6899
  /**
7004
6900
  * @remarks
7005
6901
  * This function can't be called in read-only mode.
@@ -7019,7 +6915,7 @@ export class IPressurePlatePopAfterEventSignal {
7019
6915
  * @beta
7020
6916
  */
7021
6917
  export class IPressurePlatePushAfterEventSignal {
7022
- protected constructor();
6918
+ private constructor();
7023
6919
  /**
7024
6920
  * @remarks
7025
6921
  * This function can't be called in read-only mode.
@@ -7041,7 +6937,7 @@ export class IPressurePlatePushAfterEventSignal {
7041
6937
  * an event that fires after a projectile hits a target.
7042
6938
  */
7043
6939
  export class IProjectileHitAfterEventSignal {
7044
- protected constructor();
6940
+ private constructor();
7045
6941
  /**
7046
6942
  * @remarks
7047
6943
  * This function can't be called in read-only mode.
@@ -7063,7 +6959,7 @@ export class IProjectileHitAfterEventSignal {
7063
6959
  * an event that fires when /script event command is called.
7064
6960
  */
7065
6961
  export class IScriptEventCommandMessageAfterEventSignal {
7066
- protected constructor();
6962
+ private constructor();
7067
6963
  /**
7068
6964
  * @remarks
7069
6965
  * This function can't be called in read-only mode.
@@ -7089,7 +6985,7 @@ export class IScriptEventCommandMessageAfterEventSignal {
7089
6985
  * that this event is for internal use only.
7090
6986
  */
7091
6987
  export class IServerMessageAfterEventSignal {
7092
- protected constructor();
6988
+ private constructor();
7093
6989
  /**
7094
6990
  * @remarks
7095
6991
  * This function can't be called in read-only mode.
@@ -7109,7 +7005,7 @@ export class IServerMessageAfterEventSignal {
7109
7005
  * @beta
7110
7006
  */
7111
7007
  export class ITargetBlockHitAfterEventSignal {
7112
- protected constructor();
7008
+ private constructor();
7113
7009
  /**
7114
7010
  * @remarks
7115
7011
  * This function can't be called in read-only mode.
@@ -7131,7 +7027,7 @@ export class ITargetBlockHitAfterEventSignal {
7131
7027
  * being charged.
7132
7028
  */
7133
7029
  export class ItemCompleteUseAfterEvent {
7134
- protected constructor();
7030
+ private constructor();
7135
7031
  /**
7136
7032
  * @remarks
7137
7033
  * Returns the item stack that has completed charging.
@@ -7158,16 +7054,18 @@ export class ItemCompleteUseAfterEvent {
7158
7054
  * Manages callbacks that are connected to the completion of
7159
7055
  * charging for a chargeable item.
7160
7056
  */
7057
+ // @ts-ignore Class inheritance allowed for native defined classes
7161
7058
  export class ItemCompleteUseAfterEventSignal extends IItemCompleteUseAfterEventSignal {
7162
- protected constructor();
7059
+ private constructor();
7163
7060
  }
7164
7061
 
7165
7062
  /**
7166
7063
  * @beta
7167
7064
  * Base class for item components.
7168
7065
  */
7066
+ // @ts-ignore Class inheritance allowed for native defined classes
7169
7067
  export class ItemComponent extends Component {
7170
- protected constructor();
7068
+ private constructor();
7171
7069
  }
7172
7070
 
7173
7071
  /**
@@ -7175,8 +7073,9 @@ export class ItemComponent extends Component {
7175
7073
  * When present on an item, this item has a cooldown effect
7176
7074
  * when used by entities.
7177
7075
  */
7076
+ // @ts-ignore Class inheritance allowed for native defined classes
7178
7077
  export class ItemCooldownComponent extends ItemComponent {
7179
- protected constructor();
7078
+ private constructor();
7180
7079
  /**
7181
7080
  * @remarks
7182
7081
  * Represents the cooldown category that this item is
@@ -7216,8 +7115,9 @@ export class ItemCooldownComponent extends ItemComponent {
7216
7115
  * Manages callbacks that are connected to an item's definition
7217
7116
  * and components changing.
7218
7117
  */
7118
+ // @ts-ignore Class inheritance allowed for native defined classes
7219
7119
  export class ItemDefinitionAfterEventSignal extends IItemDefinitionAfterEventSignal {
7220
- protected constructor();
7120
+ private constructor();
7221
7121
  }
7222
7122
 
7223
7123
  /**
@@ -7225,8 +7125,9 @@ export class ItemDefinitionAfterEventSignal extends IItemDefinitionAfterEventSig
7225
7125
  * Manages callbacks that are connected to an item's definition
7226
7126
  * and components changing.
7227
7127
  */
7128
+ // @ts-ignore Class inheritance allowed for native defined classes
7228
7129
  export class ItemDefinitionBeforeEventSignal extends IItemDefinitionBeforeEventSignal {
7229
- protected constructor();
7130
+ private constructor();
7230
7131
  }
7231
7132
 
7232
7133
  /**
@@ -7235,7 +7136,7 @@ export class ItemDefinitionBeforeEventSignal extends IItemDefinitionBeforeEventS
7235
7136
  * definition change being triggered.
7236
7137
  */
7237
7138
  export class ItemDefinitionTriggeredAfterEvent {
7238
- protected constructor();
7139
+ private constructor();
7239
7140
  /**
7240
7141
  * @remarks
7241
7142
  * Name of the data-driven item event that is triggering this
@@ -7257,8 +7158,9 @@ export class ItemDefinitionTriggeredAfterEvent {
7257
7158
  * Contains information related to a triggering of a custom
7258
7159
  * item definition change.
7259
7160
  */
7161
+ // @ts-ignore Class inheritance allowed for native defined classes
7260
7162
  export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredAfterEvent {
7261
- protected constructor();
7163
+ private constructor();
7262
7164
  /**
7263
7165
  * @remarks
7264
7166
  * If set to true, will cancel the application of this item
@@ -7274,8 +7176,9 @@ export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredA
7274
7176
  * process of being used. Note that this component only applies
7275
7177
  * to data-driven items.
7276
7178
  */
7179
+ // @ts-ignore Class inheritance allowed for native defined classes
7277
7180
  export class ItemDurabilityComponent extends ItemComponent {
7278
- protected constructor();
7181
+ private constructor();
7279
7182
  /**
7280
7183
  * @remarks
7281
7184
  * Returns the current damage level of this particular item.
@@ -7331,8 +7234,9 @@ export class ItemDurabilityComponent extends ItemComponent {
7331
7234
  * effects. Note that this component only applies to
7332
7235
  * data-driven items.
7333
7236
  */
7237
+ // @ts-ignore Class inheritance allowed for native defined classes
7334
7238
  export class ItemEnchantsComponent extends ItemComponent {
7335
- protected constructor();
7239
+ private constructor();
7336
7240
  /**
7337
7241
  * @remarks
7338
7242
  * Returns a collection of the enchantments applied to this
@@ -7365,8 +7269,9 @@ export class ItemEnchantsComponent extends ItemComponent {
7365
7269
  * entities. Note that this component only applies to
7366
7270
  * data-driven items.
7367
7271
  */
7272
+ // @ts-ignore Class inheritance allowed for native defined classes
7368
7273
  export class ItemFoodComponent extends ItemComponent {
7369
- protected constructor();
7274
+ private constructor();
7370
7275
  /**
7371
7276
  * @remarks
7372
7277
  * If true, the player can always eat this item (even when not
@@ -7416,7 +7321,7 @@ export class ItemFoodComponent extends ItemComponent {
7416
7321
  * action.
7417
7322
  */
7418
7323
  export class ItemReleaseUseAfterEvent {
7419
- protected constructor();
7324
+ private constructor();
7420
7325
  /**
7421
7326
  * @remarks
7422
7327
  * Returns the item stack that triggered this item event.
@@ -7443,8 +7348,9 @@ export class ItemReleaseUseAfterEvent {
7443
7348
  * Manages callbacks that are connected to the releasing of
7444
7349
  * charging for a chargeable item.
7445
7350
  */
7351
+ // @ts-ignore Class inheritance allowed for native defined classes
7446
7352
  export class ItemReleaseUseAfterEventSignal extends IItemReleaseUseAfterEventSignal {
7447
- protected constructor();
7353
+ private constructor();
7448
7354
  }
7449
7355
 
7450
7356
  /**
@@ -7707,7 +7613,7 @@ export class ItemStack {
7707
7613
  * to be charged.
7708
7614
  */
7709
7615
  export class ItemStartUseAfterEvent {
7710
- protected constructor();
7616
+ private constructor();
7711
7617
  /**
7712
7618
  * @remarks
7713
7619
  * The impacted item stack that is starting to be charged.
@@ -7734,8 +7640,9 @@ export class ItemStartUseAfterEvent {
7734
7640
  * Manages callbacks that are connected to the start of
7735
7641
  * charging for a chargeable item.
7736
7642
  */
7643
+ // @ts-ignore Class inheritance allowed for native defined classes
7737
7644
  export class ItemStartUseAfterEventSignal extends IItemStartUseAfterEventSignal {
7738
- protected constructor();
7645
+ private constructor();
7739
7646
  }
7740
7647
 
7741
7648
  /**
@@ -7747,7 +7654,7 @@ export class ItemStartUseAfterEventSignal extends IItemStartUseAfterEventSignal
7747
7654
  * Axe items.
7748
7655
  */
7749
7656
  export class ItemStartUseOnAfterEvent {
7750
- protected constructor();
7657
+ private constructor();
7751
7658
  /**
7752
7659
  * @remarks
7753
7660
  * The block that the item is used on.
@@ -7779,8 +7686,9 @@ export class ItemStartUseOnAfterEvent {
7779
7686
  * Manages callbacks that are connected to an item starting
7780
7687
  * being used on a block event.
7781
7688
  */
7689
+ // @ts-ignore Class inheritance allowed for native defined classes
7782
7690
  export class ItemStartUseOnAfterEventSignal extends IItemStartUseOnAfterEventSignal {
7783
- protected constructor();
7691
+ private constructor();
7784
7692
  }
7785
7693
 
7786
7694
  /**
@@ -7790,7 +7698,7 @@ export class ItemStartUseOnAfterEventSignal extends IItemStartUseOnAfterEventSig
7790
7698
  * the use action with the item.
7791
7699
  */
7792
7700
  export class ItemStopUseAfterEvent {
7793
- protected constructor();
7701
+ private constructor();
7794
7702
  /**
7795
7703
  * @remarks
7796
7704
  * The impacted item stack that is stopping being charged.
@@ -7818,8 +7726,9 @@ export class ItemStopUseAfterEvent {
7818
7726
  * charging for an item that has a registered
7819
7727
  * minecraft:chargeable component.
7820
7728
  */
7729
+ // @ts-ignore Class inheritance allowed for native defined classes
7821
7730
  export class ItemStopUseAfterEventSignal extends IItemStopUseAfterEventSignal {
7822
- protected constructor();
7731
+ private constructor();
7823
7732
  }
7824
7733
 
7825
7734
  /**
@@ -7833,7 +7742,7 @@ export class ItemStopUseAfterEventSignal extends IItemStopUseAfterEventSignal {
7833
7742
  * Hoe or Axe items.
7834
7743
  */
7835
7744
  export class ItemStopUseOnAfterEvent {
7836
- protected constructor();
7745
+ private constructor();
7837
7746
  /**
7838
7747
  * @remarks
7839
7748
  * The block that the item is used on.
@@ -7859,8 +7768,9 @@ export class ItemStopUseOnAfterEvent {
7859
7768
  * Manages callbacks that are connected to an item stops used
7860
7769
  * on a block event.
7861
7770
  */
7771
+ // @ts-ignore Class inheritance allowed for native defined classes
7862
7772
  export class ItemStopUseOnAfterEventSignal extends IItemStopUseOnAfterEventSignal {
7863
- protected constructor();
7773
+ private constructor();
7864
7774
  }
7865
7775
 
7866
7776
  /**
@@ -7868,7 +7778,7 @@ export class ItemStopUseOnAfterEventSignal extends IItemStopUseOnAfterEventSigna
7868
7778
  * Represents the type of an item - for example, Wool.
7869
7779
  */
7870
7780
  export class ItemType {
7871
- protected constructor();
7781
+ private constructor();
7872
7782
  /**
7873
7783
  * @remarks
7874
7784
  * Returns the identifier of the item type - for example,
@@ -7883,7 +7793,7 @@ export class ItemType {
7883
7793
  * An iterator over a set of available item types.
7884
7794
  */
7885
7795
  export class ItemTypeIterator implements Iterable<ItemType> {
7886
- protected constructor();
7796
+ private constructor();
7887
7797
  /**
7888
7798
  * @remarks
7889
7799
  * This function can't be called in read-only mode.
@@ -7903,7 +7813,7 @@ export class ItemTypeIterator implements Iterable<ItemType> {
7903
7813
  * Returns the set of item types registered within Minecraft.
7904
7814
  */
7905
7815
  export class ItemTypes {
7906
- protected constructor();
7816
+ private constructor();
7907
7817
  /**
7908
7818
  * @remarks
7909
7819
  * Returns a specific item type, if available within Minecraft.
@@ -7925,7 +7835,7 @@ export class ItemTypes {
7925
7835
  * event fires when an item is successfully used by a player.
7926
7836
  */
7927
7837
  export class ItemUseAfterEvent {
7928
- protected constructor();
7838
+ private constructor();
7929
7839
  /**
7930
7840
  * @remarks
7931
7841
  * The impacted item stack that is being used.
@@ -7944,16 +7854,18 @@ export class ItemUseAfterEvent {
7944
7854
  * @beta
7945
7855
  * Manages callbacks that are connected to an item use event.
7946
7856
  */
7857
+ // @ts-ignore Class inheritance allowed for native defined classes
7947
7858
  export class ItemUseAfterEventSignal extends IItemUseAfterEventSignal {
7948
- protected constructor();
7859
+ private constructor();
7949
7860
  }
7950
7861
 
7951
7862
  /**
7952
7863
  * @beta
7953
7864
  * Contains information related to an item being used.
7954
7865
  */
7866
+ // @ts-ignore Class inheritance allowed for native defined classes
7955
7867
  export class ItemUseBeforeEvent extends ItemUseAfterEvent {
7956
- protected constructor();
7868
+ private constructor();
7957
7869
  /**
7958
7870
  * @remarks
7959
7871
  * If set to true, this will cancel the item use behavior.
@@ -7966,8 +7878,9 @@ export class ItemUseBeforeEvent extends ItemUseAfterEvent {
7966
7878
  * @beta
7967
7879
  * Manages callbacks that fire before an item is used.
7968
7880
  */
7881
+ // @ts-ignore Class inheritance allowed for native defined classes
7969
7882
  export class ItemUseBeforeEventSignal extends IItemUseBeforeEventSignal {
7970
- protected constructor();
7883
+ private constructor();
7971
7884
  }
7972
7885
 
7973
7886
  /**
@@ -7977,7 +7890,7 @@ export class ItemUseBeforeEventSignal extends IItemUseBeforeEventSignal {
7977
7890
  * player.
7978
7891
  */
7979
7892
  export class ItemUseOnAfterEvent {
7980
- protected constructor();
7893
+ private constructor();
7981
7894
  /**
7982
7895
  * @remarks
7983
7896
  * The block that the item is used on.
@@ -8016,8 +7929,9 @@ export class ItemUseOnAfterEvent {
8016
7929
  * Manages callbacks that are connected to an item being used
8017
7930
  * on a block event.
8018
7931
  */
7932
+ // @ts-ignore Class inheritance allowed for native defined classes
8019
7933
  export class ItemUseOnAfterEventSignal extends IItemUseOnAfterEventSignal {
8020
- protected constructor();
7934
+ private constructor();
8021
7935
  }
8022
7936
 
8023
7937
  /**
@@ -8025,8 +7939,9 @@ export class ItemUseOnAfterEventSignal extends IItemUseOnAfterEventSignal {
8025
7939
  * Contains information related to an item being used on a
8026
7940
  * block.
8027
7941
  */
7942
+ // @ts-ignore Class inheritance allowed for native defined classes
8028
7943
  export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
8029
- protected constructor();
7944
+ private constructor();
8030
7945
  /**
8031
7946
  * @remarks
8032
7947
  * If set to true, this will cancel the item use behavior.
@@ -8040,15 +7955,16 @@ export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
8040
7955
  * Manages callbacks that fire before an item being used on a
8041
7956
  * block event.
8042
7957
  */
7958
+ // @ts-ignore Class inheritance allowed for native defined classes
8043
7959
  export class ItemUseOnBeforeEventSignal extends IItemUseOnBeforeEventSignal {
8044
- protected constructor();
7960
+ private constructor();
8045
7961
  }
8046
7962
 
8047
7963
  /**
8048
7964
  * @beta
8049
7965
  */
8050
7966
  export class ITripWireTripAfterEventSignal {
8051
- protected constructor();
7967
+ private constructor();
8052
7968
  /**
8053
7969
  * @remarks
8054
7970
  * This function can't be called in read-only mode.
@@ -8071,7 +7987,7 @@ export class ITripWireTripAfterEventSignal {
8071
7987
  * scripting have exceeded a threshold.
8072
7988
  */
8073
7989
  export class IWatchdogTerminateBeforeEventSignal {
8074
- protected constructor();
7990
+ private constructor();
8075
7991
  /**
8076
7992
  * @remarks
8077
7993
  * This function can't be called in read-only mode.
@@ -8092,7 +8008,7 @@ export class IWatchdogTerminateBeforeEventSignal {
8092
8008
  * An event that fires after the weather has changed.
8093
8009
  */
8094
8010
  export class IWeatherChangeAfterEventSignal {
8095
- protected constructor();
8011
+ private constructor();
8096
8012
  /**
8097
8013
  * @remarks
8098
8014
  * This function can't be called in read-only mode.
@@ -8114,7 +8030,7 @@ export class IWeatherChangeAfterEventSignal {
8114
8030
  * loaded.
8115
8031
  */
8116
8032
  export class IWorldInitializeAfterEventSignal {
8117
- protected constructor();
8033
+ private constructor();
8118
8034
  /**
8119
8035
  * @remarks
8120
8036
  * This function can't be called in read-only mode.
@@ -8135,8 +8051,9 @@ export class IWorldInitializeAfterEventSignal {
8135
8051
  * Contains information related to changes to a lever
8136
8052
  * activating or deactivating.
8137
8053
  */
8054
+ // @ts-ignore Class inheritance allowed for native defined classes
8138
8055
  export class LeverActionAfterEvent extends BlockEvent {
8139
- protected constructor();
8056
+ private constructor();
8140
8057
  /**
8141
8058
  * @remarks
8142
8059
  * True if the lever is activated (that is, transmitting
@@ -8157,8 +8074,9 @@ export class LeverActionAfterEvent extends BlockEvent {
8157
8074
  * Manages callbacks that are connected to lever moves
8158
8075
  * (activates or deactivates).
8159
8076
  */
8077
+ // @ts-ignore Class inheritance allowed for native defined classes
8160
8078
  export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
8161
- protected constructor();
8079
+ private constructor();
8162
8080
  }
8163
8081
 
8164
8082
  /**
@@ -8167,11 +8085,10 @@ export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
8167
8085
  * messages from client to server.
8168
8086
  */
8169
8087
  export class MessageReceiveAfterEvent {
8170
- protected constructor();
8088
+ private constructor();
8171
8089
  readonly id: string;
8172
8090
  readonly message: string;
8173
8091
  readonly player: Player;
8174
- readonly sourceType: MessageSourceType;
8175
8092
  }
8176
8093
 
8177
8094
  /**
@@ -8180,7 +8097,7 @@ export class MessageReceiveAfterEvent {
8180
8097
  * Education Edition block types.
8181
8098
  */
8182
8099
  export class MinecraftBlockTypes {
8183
- protected constructor();
8100
+ private constructor();
8184
8101
  /**
8185
8102
  * @remarks
8186
8103
  * Represents an acacia button within Minecraft.
@@ -12711,7 +12628,7 @@ export class MinecraftBlockTypes {
12711
12628
  * A collection of default Minecraft dimension types.
12712
12629
  */
12713
12630
  export class MinecraftDimensionTypes {
12714
- protected constructor();
12631
+ private constructor();
12715
12632
  /**
12716
12633
  * @remarks
12717
12634
  * The Nether is a collection of biomes separate from the
@@ -12747,49 +12664,11 @@ export class MinecraftDimensionTypes {
12747
12664
  static readonly theEnd = 'minecraft:the_end';
12748
12665
  }
12749
12666
 
12750
- /**
12751
- * @beta
12752
- */
12753
- export class MinecraftEffectTypes {
12754
- protected constructor();
12755
- static readonly absorption: EffectType;
12756
- static readonly badOmen: EffectType;
12757
- static readonly blindness: EffectType;
12758
- static readonly conduitPower: EffectType;
12759
- static readonly darkness: EffectType;
12760
- static readonly empty: EffectType;
12761
- static readonly fatalPoison: EffectType;
12762
- static readonly fireResistance: EffectType;
12763
- static readonly haste: EffectType;
12764
- static readonly healthBoost: EffectType;
12765
- static readonly hunger: EffectType;
12766
- static readonly instantDamage: EffectType;
12767
- static readonly instantHealth: EffectType;
12768
- static readonly invisibility: EffectType;
12769
- static readonly jumpBoost: EffectType;
12770
- static readonly levitation: EffectType;
12771
- static readonly miningFatigue: EffectType;
12772
- static readonly nausea: EffectType;
12773
- static readonly nightVision: EffectType;
12774
- static readonly poison: EffectType;
12775
- static readonly regeneration: EffectType;
12776
- static readonly resistance: EffectType;
12777
- static readonly saturation: EffectType;
12778
- static readonly slowFalling: EffectType;
12779
- static readonly slowness: EffectType;
12780
- static readonly speed: EffectType;
12781
- static readonly strength: EffectType;
12782
- static readonly villageHero: EffectType;
12783
- static readonly waterBreathing: EffectType;
12784
- static readonly weakness: EffectType;
12785
- static readonly wither: EffectType;
12786
- }
12787
-
12788
12667
  /**
12789
12668
  * @beta
12790
12669
  */
12791
12670
  export class MinecraftEntityTypes {
12792
- protected constructor();
12671
+ private constructor();
12793
12672
  static readonly agent: EntityType;
12794
12673
  static readonly allay: EntityType;
12795
12674
  static readonly areaEffectCloud: EntityType;
@@ -12912,7 +12791,7 @@ export class MinecraftEntityTypes {
12912
12791
  * Education Edition block types.
12913
12792
  */
12914
12793
  export class MinecraftItemTypes {
12915
- protected constructor();
12794
+ private constructor();
12916
12795
  static readonly acaciaBoat: ItemType;
12917
12796
  /**
12918
12797
  * @remarks
@@ -16711,7 +16590,7 @@ export class MolangVariableMap {
16711
16590
  * navigation.
16712
16591
  */
16713
16592
  export class NavigationResult {
16714
- protected constructor();
16593
+ private constructor();
16715
16594
  /**
16716
16595
  * @remarks
16717
16596
  * Whether the navigation result contains a full path,
@@ -16732,8 +16611,9 @@ export class NavigationResult {
16732
16611
  * Contains information related to changes to a piston
16733
16612
  * expanding or retracting.
16734
16613
  */
16614
+ // @ts-ignore Class inheritance allowed for native defined classes
16735
16615
  export class PistonActivateAfterEvent extends BlockEvent {
16736
- protected constructor();
16616
+ private constructor();
16737
16617
  /**
16738
16618
  * @remarks
16739
16619
  * True if the piston is the process of expanding.
@@ -16752,8 +16632,9 @@ export class PistonActivateAfterEvent extends BlockEvent {
16752
16632
  * @beta
16753
16633
  * Manages callbacks that are connected to piston activations.
16754
16634
  */
16635
+ // @ts-ignore Class inheritance allowed for native defined classes
16755
16636
  export class PistonActivateAfterEventSignal extends IPistonActivateAfterEventSignal {
16756
- protected constructor();
16637
+ private constructor();
16757
16638
  }
16758
16639
 
16759
16640
  /**
@@ -16761,8 +16642,9 @@ export class PistonActivateAfterEventSignal extends IPistonActivateAfterEventSig
16761
16642
  * Contains information related to changes before a piston
16762
16643
  * expands or retracts.
16763
16644
  */
16645
+ // @ts-ignore Class inheritance allowed for native defined classes
16764
16646
  export class PistonActivateBeforeEvent extends BlockEvent {
16765
- protected constructor();
16647
+ private constructor();
16766
16648
  /**
16767
16649
  * @remarks
16768
16650
  * If this is set to true within an event handler, the piston
@@ -16789,15 +16671,17 @@ export class PistonActivateBeforeEvent extends BlockEvent {
16789
16671
  * Manages callbacks that are connected to an event that fires
16790
16672
  * before a piston is activated.
16791
16673
  */
16674
+ // @ts-ignore Class inheritance allowed for native defined classes
16792
16675
  export class PistonActivateBeforeEventSignal extends IPistonActivateBeforeEventSignal {
16793
- protected constructor();
16676
+ private constructor();
16794
16677
  }
16795
16678
 
16796
16679
  /**
16797
16680
  * Represents a player within the world.
16798
16681
  */
16682
+ // @ts-ignore Class inheritance allowed for native defined classes
16799
16683
  export class Player extends Entity {
16800
- protected constructor();
16684
+ private constructor();
16801
16685
  /**
16802
16686
  * @beta
16803
16687
  * @remarks
@@ -16846,6 +16730,7 @@ export class Player extends Entity {
16846
16730
  * Contains methods for manipulating the on-screen display of a
16847
16731
  * Player.
16848
16732
  *
16733
+ * @throws This property can throw when used.
16849
16734
  */
16850
16735
  readonly onScreenDisplay: ScreenDisplay;
16851
16736
  /**
@@ -16857,15 +16742,6 @@ export class Player extends Entity {
16857
16742
  *
16858
16743
  */
16859
16744
  selectedSlot: number;
16860
- /**
16861
- * @beta
16862
- * @remarks
16863
- * If this player has an individual spawn point set, returns
16864
- * the dimension that their spawn point is within.
16865
- *
16866
- * @throws This property can throw when used.
16867
- */
16868
- readonly spawnDimension?: Dimension;
16869
16745
  /**
16870
16746
  * @beta
16871
16747
  * @remarks
@@ -16913,17 +16789,6 @@ export class Player extends Entity {
16913
16789
  * @throws This function can throw errors.
16914
16790
  */
16915
16791
  addLevels(amount: number): number;
16916
- /**
16917
- * @beta
16918
- * @remarks
16919
- * Clears the spawn point that has been individually set for a
16920
- * player.
16921
- *
16922
- * This function can't be called in read-only mode.
16923
- *
16924
- * @throws This function can throw errors.
16925
- */
16926
- clearSpawn(): void;
16927
16792
  /**
16928
16793
  * @beta
16929
16794
  * @remarks
@@ -16938,16 +16803,9 @@ export class Player extends Entity {
16938
16803
  getItemCooldown(itemCategory: string): number;
16939
16804
  /**
16940
16805
  * @beta
16941
- * @remarks
16942
- * Returns an individualized spawn position, if set, for a
16943
- * player.
16944
- *
16945
- * @returns
16946
- * The individual spawn position, or undefined if there is no
16947
- * specific spawn position set for a player.
16948
16806
  * @throws This function can throw errors.
16949
16807
  */
16950
- getSpawnPosition(): Vector3 | undefined;
16808
+ getSpawnPoint(): DimensionLocation | undefined;
16951
16809
  /**
16952
16810
  * @beta
16953
16811
  * @remarks
@@ -17052,20 +16910,11 @@ export class Player extends Entity {
17052
16910
  /**
17053
16911
  * @beta
17054
16912
  * @remarks
17055
- * Sets the individual spawn point of this player.
17056
- *
17057
16913
  * This function can't be called in read-only mode.
17058
16914
  *
17059
- * @param spawnPosition
17060
- * Location of the spawn point.
17061
- * @param spawnDimension
17062
- * Dimension to place the players' individualized spawn point
17063
- * within.
17064
- * @returns
17065
- * Returns undefined/void.
17066
16915
  * @throws This function can throw errors.
17067
16916
  */
17068
- setSpawn(spawnPosition: Vector3, spawnDimension: Dimension): void;
16917
+ setSpawnPoint(spawnPoint?: DimensionLocation): void;
17069
16918
  /**
17070
16919
  * @beta
17071
16920
  * @remarks
@@ -17091,7 +16940,7 @@ export class Player extends Entity {
17091
16940
  * statements, Array.from(iterator), and more.
17092
16941
  */
17093
16942
  export class PlayerIterator implements Iterable<Player> {
17094
- protected constructor();
16943
+ private constructor();
17095
16944
  /**
17096
16945
  * @remarks
17097
16946
  * This function can't be called in read-only mode.
@@ -17118,7 +16967,7 @@ export class PlayerIterator implements Iterable<Player> {
17118
16967
  * within the game.
17119
16968
  */
17120
16969
  export class PlayerJoinAfterEvent {
17121
- protected constructor();
16970
+ private constructor();
17122
16971
  /**
17123
16972
  * @remarks
17124
16973
  * Opaque string identifier of the player that joined the game.
@@ -17138,8 +16987,9 @@ export class PlayerJoinAfterEvent {
17138
16987
  * Manages callbacks that are connected to a player joining the
17139
16988
  * world.
17140
16989
  */
16990
+ // @ts-ignore Class inheritance allowed for native defined classes
17141
16991
  export class PlayerJoinAfterEventSignal extends IPlayerJoinAfterEventSignal {
17142
- protected constructor();
16992
+ private constructor();
17143
16993
  }
17144
16994
 
17145
16995
  /**
@@ -17148,7 +16998,7 @@ export class PlayerJoinAfterEventSignal extends IPlayerJoinAfterEventSignal {
17148
16998
  * world.
17149
16999
  */
17150
17000
  export class PlayerLeaveAfterEvent {
17151
- protected constructor();
17001
+ private constructor();
17152
17002
  /**
17153
17003
  * @remarks
17154
17004
  * Opaque string identifier of the player that has left the
@@ -17169,8 +17019,9 @@ export class PlayerLeaveAfterEvent {
17169
17019
  * Manages callbacks that are connected to a player leaving the
17170
17020
  * world.
17171
17021
  */
17022
+ // @ts-ignore Class inheritance allowed for native defined classes
17172
17023
  export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
17173
- protected constructor();
17024
+ private constructor();
17174
17025
  }
17175
17026
 
17176
17027
  /**
@@ -17179,7 +17030,7 @@ export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
17179
17030
  * spawning.
17180
17031
  */
17181
17032
  export class PlayerSpawnAfterEvent {
17182
- protected constructor();
17033
+ private constructor();
17183
17034
  /**
17184
17035
  * @remarks
17185
17036
  * If true, this is the initial spawn of a player after joining
@@ -17204,8 +17055,9 @@ export class PlayerSpawnAfterEvent {
17204
17055
  * Registers an event when a player is spawned (or re-spawned
17205
17056
  * after death) and fully ready within the world.
17206
17057
  */
17058
+ // @ts-ignore Class inheritance allowed for native defined classes
17207
17059
  export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal {
17208
- protected constructor();
17060
+ private constructor();
17209
17061
  }
17210
17062
 
17211
17063
  /**
@@ -17213,8 +17065,9 @@ export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal {
17213
17065
  * Contains information related to changes to a pressure plate
17214
17066
  * pop.
17215
17067
  */
17068
+ // @ts-ignore Class inheritance allowed for native defined classes
17216
17069
  export class PressurePlatePopAfterEvent extends BlockEvent {
17217
- protected constructor();
17070
+ private constructor();
17218
17071
  /**
17219
17072
  * @remarks
17220
17073
  * The redstone power of the pressure plate before it was
@@ -17236,8 +17089,9 @@ export class PressurePlatePopAfterEvent extends BlockEvent {
17236
17089
  * Manages callbacks that are connected to when a pressure
17237
17090
  * plate is popped.
17238
17091
  */
17092
+ // @ts-ignore Class inheritance allowed for native defined classes
17239
17093
  export class PressurePlatePopAfterEventSignal extends IPressurePlatePopAfterEventSignal {
17240
- protected constructor();
17094
+ private constructor();
17241
17095
  }
17242
17096
 
17243
17097
  /**
@@ -17245,8 +17099,9 @@ export class PressurePlatePopAfterEventSignal extends IPressurePlatePopAfterEven
17245
17099
  * Contains information related to changes to a pressure plate
17246
17100
  * push.
17247
17101
  */
17102
+ // @ts-ignore Class inheritance allowed for native defined classes
17248
17103
  export class PressurePlatePushAfterEvent extends BlockEvent {
17249
- protected constructor();
17104
+ private constructor();
17250
17105
  /**
17251
17106
  * @remarks
17252
17107
  * The redstone power of the pressure plate before it was
@@ -17274,8 +17129,9 @@ export class PressurePlatePushAfterEvent extends BlockEvent {
17274
17129
  * Manages callbacks that are connected to when a pressure
17275
17130
  * plate is pushed.
17276
17131
  */
17132
+ // @ts-ignore Class inheritance allowed for native defined classes
17277
17133
  export class PressurePlatePushAfterEventSignal extends IPressurePlatePushAfterEventSignal {
17278
- protected constructor();
17134
+ private constructor();
17279
17135
  }
17280
17136
 
17281
17137
  /**
@@ -17284,7 +17140,7 @@ export class PressurePlatePushAfterEventSignal extends IPressurePlatePushAfterEv
17284
17140
  * entity or block.
17285
17141
  */
17286
17142
  export class ProjectileHitAfterEvent {
17287
- protected constructor();
17143
+ private constructor();
17288
17144
  /**
17289
17145
  * @remarks
17290
17146
  * Dimension where this projectile hit took place.
@@ -17340,8 +17196,9 @@ export class ProjectileHitAfterEvent {
17340
17196
  * Manages callbacks that are connected to when a projectile
17341
17197
  * hits an entity or block.
17342
17198
  */
17199
+ // @ts-ignore Class inheritance allowed for native defined classes
17343
17200
  export class ProjectileHitAfterEventSignal extends IProjectileHitAfterEventSignal {
17344
- protected constructor();
17201
+ private constructor();
17345
17202
  }
17346
17203
 
17347
17204
  /**
@@ -17351,7 +17208,7 @@ export class ProjectileHitAfterEventSignal extends IProjectileHitAfterEventSigna
17351
17208
  * used and stored within Minecraft.
17352
17209
  */
17353
17210
  export class PropertyRegistry {
17354
- protected constructor();
17211
+ private constructor();
17355
17212
  /**
17356
17213
  * @remarks
17357
17214
  * Registers a dynamic property for a particular entity type
@@ -17381,7 +17238,7 @@ export class PropertyRegistry {
17381
17238
  * Contains objectives and participants for the scoreboard.
17382
17239
  */
17383
17240
  export class Scoreboard {
17384
- protected constructor();
17241
+ private constructor();
17385
17242
  /**
17386
17243
  * @remarks
17387
17244
  * Adds a new objective to the scoreboard.
@@ -17399,7 +17256,7 @@ export class Scoreboard {
17399
17256
  *
17400
17257
  * @throws This function can throw errors.
17401
17258
  */
17402
- clearObjectiveAtDisplaySlot(displaySlotId: string): ScoreboardObjective;
17259
+ clearObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjective;
17403
17260
  /**
17404
17261
  * @remarks
17405
17262
  * Returns a specific objective (by id).
@@ -17416,7 +17273,7 @@ export class Scoreboard {
17416
17273
  *
17417
17274
  * @throws This function can throw errors.
17418
17275
  */
17419
- getObjectiveAtDisplaySlot(displaySlotId: string): ScoreboardObjectiveDisplayOptions;
17276
+ getObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjectiveDisplayOptions;
17420
17277
  /**
17421
17278
  * @remarks
17422
17279
  * Returns all defined objectives.
@@ -17431,19 +17288,6 @@ export class Scoreboard {
17431
17288
  * @throws This function can throw errors.
17432
17289
  */
17433
17290
  getParticipants(): ScoreboardIdentity[];
17434
- /**
17435
- * @remarks
17436
- * Returns a score given an objective and participant.
17437
- *
17438
- * @param objective
17439
- * Objective to retrieve the score for.
17440
- * @param participant
17441
- * Participant to retrieve the score for.
17442
- * @returns
17443
- * Score value.
17444
- * @throws This function can throw errors.
17445
- */
17446
- getScore(objective: ScoreboardObjective, participant: ScoreboardIdentity): number;
17447
17291
  /**
17448
17292
  * @remarks
17449
17293
  * Removes an objective from the scoreboard.
@@ -17463,22 +17307,9 @@ export class Scoreboard {
17463
17307
  * @throws This function can throw errors.
17464
17308
  */
17465
17309
  setObjectiveAtDisplaySlot(
17466
- displaySlotId: string,
17310
+ displaySlotId: DisplaySlotId,
17467
17311
  objectiveDisplaySetting: ScoreboardObjectiveDisplayOptions,
17468
17312
  ): ScoreboardObjective;
17469
- /**
17470
- * @remarks
17471
- * Sets the score given a participant and objective.
17472
- *
17473
- * This function can't be called in read-only mode.
17474
- *
17475
- * @param objective
17476
- * Objective to use for the scoreboard.
17477
- * @param participant
17478
- * Participant to apply the scoreboard value to.
17479
- * @throws This function can throw errors.
17480
- */
17481
- setScore(objective: ScoreboardObjective, participant: ScoreboardIdentity, score: number): boolean;
17482
17313
  }
17483
17314
 
17484
17315
  /**
@@ -17486,7 +17317,7 @@ export class Scoreboard {
17486
17317
  * Contains an identity of the scoreboard item.
17487
17318
  */
17488
17319
  export class ScoreboardIdentity {
17489
- protected constructor();
17320
+ private constructor();
17490
17321
  /**
17491
17322
  * @remarks
17492
17323
  * Returns the player-visible name of this identity.
@@ -17513,43 +17344,7 @@ export class ScoreboardIdentity {
17513
17344
  * @throws This function can throw errors.
17514
17345
  */
17515
17346
  getEntity(): Entity;
17516
- /**
17517
- * @remarks
17518
- * Gets the current score for this participant based on an
17519
- * objective.
17520
- *
17521
- * @param objective
17522
- * The objective to retrieve the score for.
17523
- * @returns
17524
- * Score value.
17525
- * @throws This function can throw errors.
17526
- */
17527
- getScore(objective: ScoreboardObjective): number;
17528
- /**
17529
- * @remarks
17530
- * Removes this participant from an objective.
17531
- *
17532
- * This function can't be called in read-only mode.
17533
- *
17534
- * @param objective
17535
- * The objective to remove this participant from.
17536
- * @throws This function can throw errors.
17537
- */
17538
- removeFromObjective(objective: ScoreboardObjective): boolean;
17539
- /**
17540
- * @remarks
17541
- * Sets a score for this participant for a particular
17542
- * objective.
17543
- *
17544
- * This function can't be called in read-only mode.
17545
- *
17546
- * @param objective
17547
- * Objective to apply the score to.
17548
- * @param score
17549
- * Score value.
17550
- * @throws This function can throw errors.
17551
- */
17552
- setScore(objective: ScoreboardObjective, score: number): boolean;
17347
+ isValid(): boolean;
17553
17348
  }
17554
17349
 
17555
17350
  /**
@@ -17557,7 +17352,7 @@ export class ScoreboardIdentity {
17557
17352
  * Contains objectives and participants for the scoreboard.
17558
17353
  */
17559
17354
  export class ScoreboardObjective {
17560
- protected constructor();
17355
+ private constructor();
17561
17356
  /**
17562
17357
  * @remarks
17563
17358
  * Returns the player-visible name of this scoreboard
@@ -17588,7 +17383,7 @@ export class ScoreboardObjective {
17588
17383
  * Identifier of the participant to retrieve a score for.
17589
17384
  * @throws This function can throw errors.
17590
17385
  */
17591
- getScore(participant: ScoreboardIdentity): number;
17386
+ getScore(participant: Entity | ScoreboardIdentity | string): number | undefined;
17592
17387
  /**
17593
17388
  * @remarks
17594
17389
  * Returns specific scores for this objective for all
@@ -17597,6 +17392,15 @@ export class ScoreboardObjective {
17597
17392
  * @throws This function can throw errors.
17598
17393
  */
17599
17394
  getScores(): ScoreboardScoreInfo[];
17395
+ /**
17396
+ * @remarks
17397
+ * Returns if the specified identity is a participant of the
17398
+ * scoreboard objective.
17399
+ *
17400
+ * @throws This function can throw errors.
17401
+ */
17402
+ hasParticipant(participant: Entity | ScoreboardIdentity | string): boolean;
17403
+ isValid(): boolean;
17600
17404
  /**
17601
17405
  * @remarks
17602
17406
  * Removes a participant from this scoreboard objective.
@@ -17608,7 +17412,7 @@ export class ScoreboardObjective {
17608
17412
  * objective.
17609
17413
  * @throws This function can throw errors.
17610
17414
  */
17611
- removeParticipant(participant: ScoreboardIdentity): boolean;
17415
+ removeParticipant(participant: Entity | ScoreboardIdentity | string): boolean;
17612
17416
  /**
17613
17417
  * @remarks
17614
17418
  * Sets a score for a participant.
@@ -17621,7 +17425,7 @@ export class ScoreboardObjective {
17621
17425
  * New value of the score.
17622
17426
  * @throws This function can throw errors.
17623
17427
  */
17624
- setScore(participant: ScoreboardIdentity, score: number): boolean;
17428
+ setScore(participant: Entity | ScoreboardIdentity | string, score: number): void;
17625
17429
  }
17626
17430
 
17627
17431
  /**
@@ -17630,7 +17434,7 @@ export class ScoreboardObjective {
17630
17434
  * respective score.
17631
17435
  */
17632
17436
  export class ScoreboardScoreInfo {
17633
- protected constructor();
17437
+ private constructor();
17634
17438
  /**
17635
17439
  * @remarks
17636
17440
  * This scoreboard participant for this score.
@@ -17651,7 +17455,8 @@ export class ScoreboardScoreInfo {
17651
17455
  * showing up on the screen.
17652
17456
  */
17653
17457
  export class ScreenDisplay {
17654
- protected constructor();
17458
+ private constructor();
17459
+ isValid(): boolean;
17655
17460
  /**
17656
17461
  * @remarks
17657
17462
  * Set the action bar text - a piece of text that displays
@@ -17692,7 +17497,7 @@ export class ScreenDisplay {
17692
17497
  * invocation.
17693
17498
  */
17694
17499
  export class ScriptEventCommandMessageAfterEvent {
17695
- protected constructor();
17500
+ private constructor();
17696
17501
  /**
17697
17502
  * @remarks
17698
17503
  * Identifier of this ScriptEvent command message.
@@ -17732,7 +17537,7 @@ export class ScriptEventCommandMessageAfterEvent {
17732
17537
  * Returns the type of source that fired this command.
17733
17538
  *
17734
17539
  */
17735
- readonly sourceType: MessageSourceType;
17540
+ readonly sourceType: ScriptEventSource;
17736
17541
  }
17737
17542
 
17738
17543
  /**
@@ -17740,8 +17545,9 @@ export class ScriptEventCommandMessageAfterEvent {
17740
17545
  * Allows for registering an event handler that responds to
17741
17546
  * inbound /scriptevent commands.
17742
17547
  */
17548
+ // @ts-ignore Class inheritance allowed for native defined classes
17743
17549
  export class ScriptEventCommandMessageAfterEventSignal extends IScriptEventCommandMessageAfterEventSignal {
17744
- protected constructor();
17550
+ private constructor();
17745
17551
  }
17746
17552
 
17747
17553
  /**
@@ -17750,7 +17556,7 @@ export class ScriptEventCommandMessageAfterEventSignal extends IScriptEventComma
17750
17556
  * entity.
17751
17557
  */
17752
17558
  export class Seat {
17753
- protected constructor();
17559
+ private constructor();
17754
17560
  /**
17755
17561
  * @remarks
17756
17562
  * If specified, contains a forced rotation that the riders in
@@ -17786,30 +17592,31 @@ export class Seat {
17786
17592
  * event is not currently fully implemented, and should not be
17787
17593
  * used.
17788
17594
  */
17595
+ // @ts-ignore Class inheritance allowed for native defined classes
17789
17596
  export class ServerMessageAfterEventSignal extends IServerMessageAfterEventSignal {
17790
- protected constructor();
17597
+ private constructor();
17791
17598
  }
17792
17599
 
17793
17600
  /**
17794
17601
  * A class that provides system-level events and functions.
17795
17602
  */
17796
17603
  export class System {
17797
- protected constructor();
17604
+ private constructor();
17798
17605
  /**
17799
17606
  * @beta
17800
- * @remarks
17801
- * Represents the current world tick of the server.
17802
- *
17803
17607
  */
17804
- readonly currentTick: number;
17608
+ readonly afterEvents: SystemAfterEvents;
17609
+ /**
17610
+ * @beta
17611
+ */
17612
+ readonly beforeEvents: SystemBeforeEvents;
17805
17613
  /**
17806
17614
  * @beta
17807
17615
  * @remarks
17808
- * Contains a set of events that are applicable for the
17809
- * lifecycle of items in the Minecraft system.
17616
+ * Represents the current world tick of the server.
17810
17617
  *
17811
17618
  */
17812
- readonly events: SystemEvents;
17619
+ readonly currentTick: number;
17813
17620
  /**
17814
17621
  * @beta
17815
17622
  * @remarks
@@ -17866,38 +17673,28 @@ export class System {
17866
17673
 
17867
17674
  /**
17868
17675
  * @beta
17869
- * Contains a set of events that are available across the scope
17870
- * of the Minecraft add-on system.
17871
17676
  */
17872
- export class SystemEvents {
17873
- protected constructor();
17874
- /**
17875
- * @remarks
17876
- * This event fires before a the performance watchdog
17877
- * terminates scripting execution due to exceeding a
17878
- * performance boundary. Depending on the configuration of the
17879
- * runtime environment, this event can be canceled. For
17880
- * example, on certain dedicated server environments the
17881
- * ability to override termination events may be disabled.
17882
- *
17883
- */
17884
- readonly beforeWatchdogTerminate: WatchdogTerminateBeforeEventSignal;
17885
- /**
17886
- * @remarks
17887
- * This event fires if a /scriptevent command is invoked by a
17888
- * player, NPC, or block.
17889
- *
17890
- */
17677
+ export class SystemAfterEvents {
17678
+ private constructor();
17891
17679
  readonly scriptEventReceive: ScriptEventCommandMessageAfterEventSignal;
17892
17680
  }
17893
17681
 
17682
+ /**
17683
+ * @beta
17684
+ */
17685
+ export class SystemBeforeEvents {
17686
+ private constructor();
17687
+ readonly watchdogTerminate: WatchdogTerminateBeforeEventSignal;
17688
+ }
17689
+
17894
17690
  /**
17895
17691
  * @beta
17896
17692
  * Contains information related to changes to a target block
17897
17693
  * hit.
17898
17694
  */
17695
+ // @ts-ignore Class inheritance allowed for native defined classes
17899
17696
  export class TargetBlockHitAfterEvent extends BlockEvent {
17900
- protected constructor();
17697
+ private constructor();
17901
17698
  /**
17902
17699
  * @remarks
17903
17700
  * The position where the source hit the block.
@@ -17929,8 +17726,9 @@ export class TargetBlockHitAfterEvent extends BlockEvent {
17929
17726
  * Manages callbacks that are connected to when a target block
17930
17727
  * is hit.
17931
17728
  */
17729
+ // @ts-ignore Class inheritance allowed for native defined classes
17932
17730
  export class TargetBlockHitAfterEventSignal extends ITargetBlockHitAfterEventSignal {
17933
- protected constructor();
17731
+ private constructor();
17934
17732
  }
17935
17733
 
17936
17734
  /**
@@ -17956,8 +17754,9 @@ export class Trigger {
17956
17754
  * @beta
17957
17755
  * Contains information related to changes to a trip wire trip.
17958
17756
  */
17757
+ // @ts-ignore Class inheritance allowed for native defined classes
17959
17758
  export class TripWireTripAfterEvent extends BlockEvent {
17960
- protected constructor();
17759
+ private constructor();
17961
17760
  /**
17962
17761
  * @remarks
17963
17762
  * Whether or not the block has redstone power.
@@ -17977,8 +17776,9 @@ export class TripWireTripAfterEvent extends BlockEvent {
17977
17776
  * Manages callbacks that are connected to when a trip wire is
17978
17777
  * tripped.
17979
17778
  */
17779
+ // @ts-ignore Class inheritance allowed for native defined classes
17980
17780
  export class TripWireTripAfterEventSignal extends ITripWireTripAfterEventSignal {
17981
- protected constructor();
17781
+ private constructor();
17982
17782
  }
17983
17783
 
17984
17784
  /**
@@ -18165,7 +17965,7 @@ export class Vector {
18165
17965
  * termination.
18166
17966
  */
18167
17967
  export class WatchdogTerminateBeforeEvent {
18168
- protected constructor();
17968
+ private constructor();
18169
17969
  /**
18170
17970
  * @remarks
18171
17971
  * If set to true, cancels the termination of the script
@@ -18190,8 +17990,9 @@ export class WatchdogTerminateBeforeEvent {
18190
17990
  * be called when a script runtime is being terminated due to a
18191
17991
  * violation of the performance watchdog system.
18192
17992
  */
17993
+ // @ts-ignore Class inheritance allowed for native defined classes
18193
17994
  export class WatchdogTerminateBeforeEventSignal extends IWatchdogTerminateBeforeEventSignal {
18194
- protected constructor();
17995
+ private constructor();
18195
17996
  }
18196
17997
 
18197
17998
  /**
@@ -18200,7 +18001,7 @@ export class WatchdogTerminateBeforeEventSignal extends IWatchdogTerminateBefore
18200
18001
  * environment.
18201
18002
  */
18202
18003
  export class WeatherChangeAfterEvent {
18203
- protected constructor();
18004
+ private constructor();
18204
18005
  /**
18205
18006
  * @remarks
18206
18007
  * Dimension in which the weather has changed.
@@ -18225,8 +18026,9 @@ export class WeatherChangeAfterEvent {
18225
18026
  * @beta
18226
18027
  * Manages callbacks that are connected to weather changing.
18227
18028
  */
18029
+ // @ts-ignore Class inheritance allowed for native defined classes
18228
18030
  export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSignal {
18229
- protected constructor();
18031
+ private constructor();
18230
18032
  }
18231
18033
 
18232
18034
  /**
@@ -18234,7 +18036,7 @@ export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSigna
18234
18036
  * dimensions and the environment of Minecraft.
18235
18037
  */
18236
18038
  export class World {
18237
- protected constructor();
18039
+ private constructor();
18238
18040
  /**
18239
18041
  * @beta
18240
18042
  * @remarks
@@ -18244,7 +18046,7 @@ export class World {
18244
18046
  * Event callbacks are executed in read-write mode.
18245
18047
  *
18246
18048
  */
18247
- readonly afterEvents: AfterEvents;
18049
+ readonly afterEvents: WorldAfterEvents;
18248
18050
  /**
18249
18051
  * @beta
18250
18052
  * @remarks
@@ -18254,7 +18056,7 @@ export class World {
18254
18056
  * Event callbacks are executed in read-only mode.
18255
18057
  *
18256
18058
  */
18257
- readonly beforeEvents: BeforeEvents;
18059
+ readonly beforeEvents: WorldBeforeEvents;
18258
18060
  /**
18259
18061
  * @beta
18260
18062
  * @remarks
@@ -18289,15 +18091,12 @@ export class World {
18289
18091
  getAllPlayers(): Player[];
18290
18092
  /**
18291
18093
  * @beta
18292
- * @remarks
18293
- * Returns the default spawn position within the world where
18294
- * players are spawned if they don't have a specific spawn
18295
- * position set.
18296
- *
18297
- * @returns
18298
- * Returns the default spawn position.
18299
18094
  */
18300
- getDefaultSpawnPosition(): Vector3;
18095
+ getDay(): number;
18096
+ /**
18097
+ * @beta
18098
+ */
18099
+ getDefaultSpawnLocation(): Vector3;
18301
18100
  /**
18302
18101
  * @remarks
18303
18102
  * Returns a dimension object.
@@ -18348,11 +18147,8 @@ export class World {
18348
18147
  getPlayers(options?: EntityQueryOptions): Player[];
18349
18148
  /**
18350
18149
  * @beta
18351
- * @remarks
18352
- * Sets the current game time of the day.
18353
- *
18354
18150
  */
18355
- getTime(): number;
18151
+ getTimeOfDay(): number;
18356
18152
  /**
18357
18153
  * @beta
18358
18154
  * @remarks
@@ -18436,18 +18232,18 @@ export class World {
18436
18232
  /**
18437
18233
  * @beta
18438
18234
  * @remarks
18439
- * Sets the default spawn location for players within the
18440
- * world. Note that players can override this with their own
18441
- * spawn position. Note also that the default spawn position
18442
- * must be in the overworld dimension.
18235
+ * This function can't be called in read-only mode.
18443
18236
  *
18237
+ */
18238
+ setAbsoluteTime(absoluteTime: number): void;
18239
+ /**
18240
+ * @beta
18241
+ * @remarks
18444
18242
  * This function can't be called in read-only mode.
18445
18243
  *
18446
- * @param spawnPosition
18447
- * Location within the overworld where a player will spawn.
18448
18244
  * @throws This function can throw errors.
18449
18245
  */
18450
- setDefaultSpawn(spawnPosition: Vector3): void;
18246
+ setDefaultSpawnLocation(spawnLocation: Vector3): void;
18451
18247
  /**
18452
18248
  * @beta
18453
18249
  * @remarks
@@ -18463,12 +18259,11 @@ export class World {
18463
18259
  /**
18464
18260
  * @beta
18465
18261
  * @remarks
18466
- * Returns the current game time of the day.
18467
- *
18468
18262
  * This function can't be called in read-only mode.
18469
18263
  *
18264
+ * @throws This function can throw errors.
18470
18265
  */
18471
- setTime(timeOfDay: number): void;
18266
+ setTimeOfDay(timeOfDay: number | TimeOfDay): void;
18472
18267
  /**
18473
18268
  * @beta
18474
18269
  * @remarks
@@ -18480,6 +18275,160 @@ export class World {
18480
18275
  stopMusic(): void;
18481
18276
  }
18482
18277
 
18278
+ /**
18279
+ * @beta
18280
+ */
18281
+ export class WorldAfterEvents {
18282
+ private constructor();
18283
+ /**
18284
+ * @beta
18285
+ */
18286
+ readonly blockBreak: BlockBreakAfterEventSignal;
18287
+ /**
18288
+ * @beta
18289
+ */
18290
+ readonly blockExplode: BlockExplodeAfterEventSignal;
18291
+ /**
18292
+ * @beta
18293
+ */
18294
+ readonly blockPlace: BlockPlaceAfterEventSignal;
18295
+ readonly buttonPush: ButtonPushAfterEventSignal;
18296
+ /**
18297
+ * @beta
18298
+ */
18299
+ readonly chatSend: ChatSendAfterEventSignal;
18300
+ /**
18301
+ * @beta
18302
+ */
18303
+ readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerAfterEventSignal;
18304
+ /**
18305
+ * @beta
18306
+ */
18307
+ readonly effectAdd: EffectAddAfterEventSignal;
18308
+ /**
18309
+ * @beta
18310
+ */
18311
+ readonly entityDie: EntityDieAfterEventSignal;
18312
+ /**
18313
+ * @beta
18314
+ */
18315
+ readonly entityHealthChanged: EntityHealthChangedAfterEventSignal;
18316
+ /**
18317
+ * @beta
18318
+ */
18319
+ readonly entityHitBlock: EntityHitBlockAfterEventSignal;
18320
+ /**
18321
+ * @beta
18322
+ */
18323
+ readonly entityHitEntity: EntityHitEntityAfterEventSignal;
18324
+ /**
18325
+ * @beta
18326
+ */
18327
+ readonly entityHurt: EntityHurtAfterEventSignal;
18328
+ /**
18329
+ * @beta
18330
+ */
18331
+ readonly entityRemoved: EntityRemovedAfterEventSignal;
18332
+ /**
18333
+ * @beta
18334
+ */
18335
+ readonly entitySpawn: EntitySpawnAfterEventSignal;
18336
+ /**
18337
+ * @beta
18338
+ */
18339
+ readonly explosion: ExplosionAfterEventSignal;
18340
+ /**
18341
+ * @beta
18342
+ */
18343
+ readonly itemCompleteUse: ItemCompleteUseAfterEventSignal;
18344
+ /**
18345
+ * @beta
18346
+ */
18347
+ readonly itemDefinitionEvent: ItemDefinitionAfterEventSignal;
18348
+ /**
18349
+ * @beta
18350
+ */
18351
+ readonly itemReleaseUse: ItemReleaseUseAfterEventSignal;
18352
+ /**
18353
+ * @beta
18354
+ */
18355
+ readonly itemStartUse: ItemStartUseAfterEventSignal;
18356
+ /**
18357
+ * @beta
18358
+ */
18359
+ readonly itemStartUseOn: ItemStartUseOnAfterEventSignal;
18360
+ /**
18361
+ * @beta
18362
+ */
18363
+ readonly itemStopUse: ItemStopUseAfterEventSignal;
18364
+ /**
18365
+ * @beta
18366
+ */
18367
+ readonly itemStopUseOn: ItemStopUseOnAfterEventSignal;
18368
+ /**
18369
+ * @beta
18370
+ */
18371
+ readonly itemUse: ItemUseAfterEventSignal;
18372
+ /**
18373
+ * @beta
18374
+ */
18375
+ readonly itemUseOn: ItemUseOnAfterEventSignal;
18376
+ readonly leverAction: LeverActionAfterEventSignal;
18377
+ /**
18378
+ * @beta
18379
+ */
18380
+ readonly messageReceive: ServerMessageAfterEventSignal;
18381
+ /**
18382
+ * @beta
18383
+ */
18384
+ readonly pistonActivate: PistonActivateAfterEventSignal;
18385
+ readonly playerJoin: PlayerJoinAfterEventSignal;
18386
+ readonly playerLeave: PlayerLeaveAfterEventSignal;
18387
+ readonly playerSpawn: PlayerSpawnAfterEventSignal;
18388
+ /**
18389
+ * @beta
18390
+ */
18391
+ readonly pressurePlatePop: PressurePlatePopAfterEventSignal;
18392
+ /**
18393
+ * @beta
18394
+ */
18395
+ readonly pressurePlatePush: PressurePlatePushAfterEventSignal;
18396
+ /**
18397
+ * @beta
18398
+ */
18399
+ readonly projectileHit: ProjectileHitAfterEventSignal;
18400
+ /**
18401
+ * @beta
18402
+ */
18403
+ readonly targetBlockHit: TargetBlockHitAfterEventSignal;
18404
+ /**
18405
+ * @beta
18406
+ */
18407
+ readonly tripWireTrip: TripWireTripAfterEventSignal;
18408
+ /**
18409
+ * @beta
18410
+ */
18411
+ readonly weatherChange: WeatherChangeAfterEventSignal;
18412
+ /**
18413
+ * @beta
18414
+ */
18415
+ readonly worldInitialize: WorldInitializeAfterEventSignal;
18416
+ }
18417
+
18418
+ /**
18419
+ * @beta
18420
+ */
18421
+ export class WorldBeforeEvents {
18422
+ private constructor();
18423
+ readonly chatSend: ChatSendBeforeEventSignal;
18424
+ readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerBeforeEventSignal;
18425
+ readonly explosion: ExplosionBeforeEventSignal;
18426
+ readonly itemDefinitionEvent: ItemDefinitionBeforeEventSignal;
18427
+ readonly itemUse: ItemUseBeforeEventSignal;
18428
+ readonly itemUseOn: ItemUseOnBeforeEventSignal;
18429
+ readonly pistonActivate: PistonActivateBeforeEventSignal;
18430
+ }
18431
+
18483
18432
  /**
18484
18433
  * @beta
18485
18434
  * Contains information and methods that can be used at the
@@ -18489,7 +18438,7 @@ export class World {
18489
18438
  * Initialize execution.
18490
18439
  */
18491
18440
  export class WorldInitializeAfterEvent {
18492
- protected constructor();
18441
+ private constructor();
18493
18442
  /**
18494
18443
  * @remarks
18495
18444
  * Contains methods for scripts to initialize and register
@@ -18520,8 +18469,9 @@ export class WorldInitializeAfterEvent {
18520
18469
  * may run multiple times within a session in the case that the
18521
18470
  * /reload command is used.
18522
18471
  */
18472
+ // @ts-ignore Class inheritance allowed for native defined classes
18523
18473
  export class WorldInitializeAfterEventSignal extends IWorldInitializeAfterEventSignal {
18524
- protected constructor();
18474
+ private constructor();
18525
18475
  }
18526
18476
 
18527
18477
  /**
@@ -18564,6 +18514,32 @@ export interface BlockHitInformation {
18564
18514
  faceLocation: Vector3;
18565
18515
  }
18566
18516
 
18517
+ /**
18518
+ * @beta
18519
+ * Contains information for block raycast hit results.
18520
+ */
18521
+ export interface BlockRaycastHit {
18522
+ /**
18523
+ * @remarks
18524
+ * Block that was hit.
18525
+ *
18526
+ */
18527
+ block: Block;
18528
+ /**
18529
+ * @remarks
18530
+ * Face of the block that was hit.
18531
+ *
18532
+ */
18533
+ face: Direction;
18534
+ /**
18535
+ * @remarks
18536
+ * Hit location relative to the bottom north-west corner of the
18537
+ * block.
18538
+ *
18539
+ */
18540
+ faceLocation: Vector3;
18541
+ }
18542
+
18567
18543
  /**
18568
18544
  * @beta
18569
18545
  * Contains additional options for configuring a block raycast
@@ -18735,6 +18711,16 @@ export interface CompoundBlockVolumeItem {
18735
18711
  volume: BlockVolume;
18736
18712
  }
18737
18713
 
18714
+ /**
18715
+ * @beta
18716
+ */
18717
+ export interface DimensionLocation {
18718
+ dimension: Dimension;
18719
+ x: number;
18720
+ y: number;
18721
+ z: number;
18722
+ }
18723
+
18738
18724
  /**
18739
18725
  * @beta
18740
18726
  * Additional options for when damage has been applied via a
@@ -19091,6 +19077,25 @@ export interface EntityQueryScoreOptions {
19091
19077
  objective?: string;
19092
19078
  }
19093
19079
 
19080
+ /**
19081
+ * @beta
19082
+ * Contains information for entity raycast hit results.
19083
+ */
19084
+ export interface EntityRaycastHit {
19085
+ /**
19086
+ * @remarks
19087
+ * Distance from ray origin to entity bounds.
19088
+ *
19089
+ */
19090
+ distance: number;
19091
+ /**
19092
+ * @remarks
19093
+ * Entity that was hit.
19094
+ *
19095
+ */
19096
+ entity: Entity;
19097
+ }
19098
+
19094
19099
  /**
19095
19100
  * @beta
19096
19101
  * Contains additional options for an entity raycast operation.
@@ -19467,22 +19472,25 @@ export interface WorldSoundOptions {
19467
19472
  /**
19468
19473
  * @beta
19469
19474
  */
19475
+ // @ts-ignore Class inheritance allowed for native defined classes
19470
19476
  export class CommandError extends Error {
19471
- protected constructor();
19477
+ private constructor();
19472
19478
  }
19473
19479
 
19474
19480
  /**
19475
19481
  * @beta
19476
19482
  */
19483
+ // @ts-ignore Class inheritance allowed for native defined classes
19477
19484
  export class PositionInUnloadedChunkError extends Error {
19478
- protected constructor();
19485
+ private constructor();
19479
19486
  }
19480
19487
 
19481
19488
  /**
19482
19489
  * @beta
19483
19490
  */
19491
+ // @ts-ignore Class inheritance allowed for native defined classes
19484
19492
  export class PositionOutOfWorldBoundariesError extends Error {
19485
- protected constructor();
19493
+ private constructor();
19486
19494
  }
19487
19495
 
19488
19496
  /**