@minecraft/server 1.1.0-beta.preview.1.19.50.21 → 1.1.0-beta.preview.1.19.50.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +389 -260
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  * ```json
16
16
  * {
17
17
  * "module_name": "@minecraft/server",
18
- * "version": "1.1.0-internal.preview.1.19.50.21"
18
+ * "version": "1.1.0-internal.preview.1.19.50.22"
19
19
  * }
20
20
  * ```
21
21
  *
@@ -230,6 +230,7 @@ export enum WatchdogTerminateReason {
230
230
  * An event that fires as players enter chat messages.
231
231
  */
232
232
  export class BeforeChatEvent {
233
+ protected constructor();
233
234
  /**
234
235
  * If set to true in a beforeChat event handler, this message
235
236
  * is not broadcast out.
@@ -254,13 +255,13 @@ export class BeforeChatEvent {
254
255
  * List of players that will receive this message.
255
256
  */
256
257
  targets: Player[];
257
- protected constructor();
258
258
  }
259
259
  /**
260
260
  * Manages callbacks that are connected to an event that fires
261
261
  * before chat messages are sent.
262
262
  */
263
263
  export class BeforeChatEventSignal {
264
+ protected constructor();
264
265
  /**
265
266
  * @remarks
266
267
  * Adds a callback that will be called before new chat messages
@@ -276,7 +277,6 @@ export class BeforeChatEventSignal {
276
277
  * @throws This function can throw errors.
277
278
  */
278
279
  unsubscribe(callback: (arg: BeforeChatEvent) => void): void;
279
- protected constructor();
280
280
  }
281
281
  /**
282
282
  * Contains information related to firing of a data driven
@@ -284,6 +284,7 @@ export class BeforeChatEventSignal {
284
284
  * event on a chicken.
285
285
  */
286
286
  export class BeforeDataDrivenEntityTriggerEvent {
287
+ protected constructor();
287
288
  /**
288
289
  * If set to true, this entity event is not triggered.
289
290
  */
@@ -301,7 +302,6 @@ export class BeforeDataDrivenEntityTriggerEvent {
301
302
  * are the effect of this triggered event.
302
303
  */
303
304
  modifiers: DefinitionModifier[];
304
- protected constructor();
305
305
  }
306
306
  /**
307
307
  * Contains information related to firing of a data driven
@@ -309,6 +309,7 @@ export class BeforeDataDrivenEntityTriggerEvent {
309
309
  * event on a chicken.
310
310
  */
311
311
  export class BeforeDataDrivenEntityTriggerEventSignal {
312
+ protected constructor();
312
313
  /**
313
314
  * @remarks
314
315
  * Adds a callback that will be called before a data driven
@@ -328,13 +329,13 @@ export class BeforeDataDrivenEntityTriggerEventSignal {
328
329
  * @throws This function can throw errors.
329
330
  */
330
331
  unsubscribe(callback: (arg: BeforeDataDrivenEntityTriggerEvent) => void): void;
331
- protected constructor();
332
332
  }
333
333
  /**
334
334
  * Contains information regarding an explosion that has
335
335
  * happened.
336
336
  */
337
337
  export class BeforeExplosionEvent {
338
+ protected constructor();
338
339
  /**
339
340
  * If set to true, cancels the explosion event.
340
341
  */
@@ -353,13 +354,13 @@ export class BeforeExplosionEvent {
353
354
  * Optional source of the explosion.
354
355
  */
355
356
  readonly source: Entity;
356
- protected constructor();
357
357
  }
358
358
  /**
359
359
  * Manages callbacks that are connected to before an explosion
360
360
  * occurs.
361
361
  */
362
362
  export class BeforeExplosionEventSignal {
363
+ protected constructor();
363
364
  /**
364
365
  * @remarks
365
366
  * Adds a callback that will be called when before an explosion
@@ -376,13 +377,13 @@ export class BeforeExplosionEventSignal {
376
377
  * @throws This function can throw errors.
377
378
  */
378
379
  unsubscribe(callback: (arg: BeforeExplosionEvent) => void): void;
379
- protected constructor();
380
380
  }
381
381
  /**
382
382
  * Manages callbacks that are connected to an item's definition
383
383
  * and components changing.
384
384
  */
385
385
  export class BeforeItemDefinitionEventSignal {
386
+ protected constructor();
386
387
  /**
387
388
  * @remarks
388
389
  * Adds a callback that will be called when an item's
@@ -400,13 +401,13 @@ export class BeforeItemDefinitionEventSignal {
400
401
  * @throws This function can throw errors.
401
402
  */
402
403
  unsubscribe(callback: (arg: BeforeItemDefinitionTriggeredEvent) => void): void;
403
- protected constructor();
404
404
  }
405
405
  /**
406
406
  * Contains information related to a triggering of a custom
407
407
  * item definition change.
408
408
  */
409
409
  export class BeforeItemDefinitionTriggeredEvent {
410
+ protected constructor();
410
411
  /**
411
412
  * If set to true, will cancel the application of this item
412
413
  * definition change.
@@ -425,12 +426,12 @@ export class BeforeItemDefinitionTriggeredEvent {
425
426
  * Returns the source entity that triggered this item event.
426
427
  */
427
428
  readonly source: Entity;
428
- protected constructor();
429
429
  }
430
430
  /**
431
431
  * Contains information related to an item being used.
432
432
  */
433
433
  export class BeforeItemUseEvent {
434
+ protected constructor();
434
435
  /**
435
436
  * If set to true, this will cancel the item use behavior.
436
437
  */
@@ -443,12 +444,12 @@ export class BeforeItemUseEvent {
443
444
  * Returns the source entity that triggered this item event.
444
445
  */
445
446
  readonly source: Entity;
446
- protected constructor();
447
447
  }
448
448
  /**
449
449
  * Manages callbacks that fire before an item is used.
450
450
  */
451
451
  export class BeforeItemUseEventSignal {
452
+ protected constructor();
452
453
  /**
453
454
  * @remarks
454
455
  * Adds a callback that will be called before an item is used.
@@ -462,13 +463,13 @@ export class BeforeItemUseEventSignal {
462
463
  * @throws This function can throw errors.
463
464
  */
464
465
  unsubscribe(callback: (arg: BeforeItemUseEvent) => void): void;
465
- protected constructor();
466
466
  }
467
467
  /**
468
468
  * Contains information related to an item being used on a
469
469
  * block.
470
470
  */
471
471
  export class BeforeItemUseOnEvent {
472
+ protected constructor();
472
473
  /**
473
474
  * The face of the block that an item is being used on.
474
475
  */
@@ -499,13 +500,13 @@ export class BeforeItemUseOnEvent {
499
500
  * Returns the source entity that triggered this item event.
500
501
  */
501
502
  readonly source: Entity;
502
- protected constructor();
503
503
  }
504
504
  /**
505
505
  * Manages callbacks that fire before an item being used on a
506
506
  * block event.
507
507
  */
508
508
  export class BeforeItemUseOnEventSignal {
509
+ protected constructor();
509
510
  /**
510
511
  * @remarks
511
512
  * Adds a callback that will be called before an item is used
@@ -521,13 +522,13 @@ export class BeforeItemUseOnEventSignal {
521
522
  * @throws This function can throw errors.
522
523
  */
523
524
  unsubscribe(callback: (arg: BeforeItemUseOnEvent) => void): void;
524
- protected constructor();
525
525
  }
526
526
  /**
527
527
  * Contains information related to changes before a piston
528
528
  * expands or retracts.
529
529
  */
530
530
  export class BeforePistonActivateEvent extends BlockEvent {
531
+ protected constructor();
531
532
  /**
532
533
  * Block impacted by this event.
533
534
  */
@@ -550,13 +551,13 @@ export class BeforePistonActivateEvent extends BlockEvent {
550
551
  * Contains additional properties and details of the piston.
551
552
  */
552
553
  readonly piston: BlockPistonComponent;
553
- protected constructor();
554
554
  }
555
555
  /**
556
556
  * Manages callbacks that are connected to an event that fires
557
557
  * before a piston is activated.
558
558
  */
559
559
  export class BeforePistonActivateEventSignal {
560
+ protected constructor();
560
561
  /**
561
562
  * @remarks
562
563
  * Adds a callback that will be called before a piston expands
@@ -572,13 +573,13 @@ export class BeforePistonActivateEventSignal {
572
573
  * @throws This function can throw errors.
573
574
  */
574
575
  unsubscribe(callback: (arg: BeforePistonActivateEvent) => void): void;
575
- protected constructor();
576
576
  }
577
577
  /**
578
578
  * Contains information related to a script watchdog
579
579
  * termination.
580
580
  */
581
581
  export class BeforeWatchdogTerminateEvent {
582
+ protected constructor();
582
583
  /**
583
584
  * If set to true, cancels the termination of the script
584
585
  * runtime. Note that depending on server configuration
@@ -591,7 +592,6 @@ export class BeforeWatchdogTerminateEvent {
591
592
  * terminated.
592
593
  */
593
594
  readonly terminateReason: WatchdogTerminateReason;
594
- protected constructor();
595
595
  }
596
596
  /**
597
597
  * Manages callbacks that are connected to a callback that will
@@ -599,6 +599,7 @@ export class BeforeWatchdogTerminateEvent {
599
599
  * violation of the performance watchdog system.
600
600
  */
601
601
  export class BeforeWatchdogTerminateEventSignal {
602
+ protected constructor();
602
603
  /**
603
604
  * @remarks
604
605
  * Adds a callback that will be called when a script runtime is
@@ -616,7 +617,6 @@ export class BeforeWatchdogTerminateEventSignal {
616
617
  * @throws This function can throw errors.
617
618
  */
618
619
  unsubscribe(callback: (arg: BeforeWatchdogTerminateEvent) => void): void;
619
- protected constructor();
620
620
  }
621
621
  /**
622
622
  * Represents a block in a dimension. A block represents a
@@ -625,6 +625,7 @@ export class BeforeWatchdogTerminateEventSignal {
625
625
  * updated in version 1.17.10.21.
626
626
  */
627
627
  export class Block {
628
+ protected constructor();
628
629
  /**
629
630
  * Returns the dimension that the block is within.
630
631
  */
@@ -648,6 +649,10 @@ export class Block {
648
649
  * @throws This property can throw when used.
649
650
  */
650
651
  readonly 'type': BlockType;
652
+ /**
653
+ * Identifier of the type of block for this block.
654
+ * @throws This property can throw when used.
655
+ */
651
656
  readonly typeId: string;
652
657
  /**
653
658
  * X coordinate of the block.
@@ -724,7 +729,6 @@ export class Block {
724
729
  * @throws This function can throw errors.
725
730
  */
726
731
  setType(blockType: BlockType): void;
727
- protected constructor();
728
732
  }
729
733
  /**
730
734
  * Holds information for expressing the net size of a volume of
@@ -764,6 +768,7 @@ export class BlockAreaSize {
764
768
  * breaks a block.
765
769
  */
766
770
  export class BlockBreakEvent extends BlockEvent {
771
+ protected constructor();
767
772
  /**
768
773
  * Block broken in this event. Note that because this event
769
774
  * fires right after a block is broken, the block you will
@@ -786,13 +791,13 @@ export class BlockBreakEvent extends BlockEvent {
786
791
  * Player that broke the block for this event.
787
792
  */
788
793
  readonly player: Player;
789
- protected constructor();
790
794
  }
791
795
  /**
792
796
  * Manages callbacks that are connected to when a block is
793
797
  * broken.
794
798
  */
795
799
  export class BlockBreakEventSignal {
800
+ protected constructor();
796
801
  /**
797
802
  * @remarks
798
803
  * Adds a callback that will be called when a block is broken
@@ -808,7 +813,6 @@ export class BlockBreakEventSignal {
808
813
  * @throws This function can throw errors.
809
814
  */
810
815
  unsubscribe(callback: (arg: BlockBreakEvent) => void): void;
811
- protected constructor();
812
816
  }
813
817
  /**
814
818
  * Base type for components associated with blocks.
@@ -822,6 +826,7 @@ export class BlockComponent {
822
826
  * specific block.
823
827
  */
824
828
  export class BlockEvent {
829
+ protected constructor();
825
830
  /**
826
831
  * Block impacted by this event.
827
832
  */
@@ -831,13 +836,13 @@ export class BlockEvent {
831
836
  * this event.
832
837
  */
833
838
  readonly dimension: Dimension;
834
- protected constructor();
835
839
  }
836
840
  /**
837
841
  * Contains information regarding an explosion that has
838
842
  * occurred for a specific block.
839
843
  */
840
844
  export class BlockExplodeEvent extends BlockEvent {
845
+ protected constructor();
841
846
  /**
842
847
  * Block impacted by this explosion event.
843
848
  */
@@ -851,13 +856,13 @@ export class BlockExplodeEvent extends BlockEvent {
851
856
  * Optional source of the explosion.
852
857
  */
853
858
  readonly source: Entity;
854
- protected constructor();
855
859
  }
856
860
  /**
857
861
  * Manages callbacks that are connected to when an explosion
858
862
  * occurs, as it impacts individual blocks.
859
863
  */
860
864
  export class BlockExplodeEventSignal {
865
+ protected constructor();
861
866
  /**
862
867
  * @remarks
863
868
  * Adds a callback that will be called when an explosion
@@ -873,12 +878,12 @@ export class BlockExplodeEventSignal {
873
878
  * @throws This function can throw errors.
874
879
  */
875
880
  unsubscribe(callback: (arg: BlockExplodeEvent) => void): void;
876
- protected constructor();
877
881
  }
878
882
  /**
879
883
  * Contains more information for events where a block is hit.
880
884
  */
881
885
  export class BlockHitInformation {
886
+ protected constructor();
882
887
  /**
883
888
  * Block that was hit.
884
889
  */
@@ -895,13 +900,13 @@ export class BlockHitInformation {
895
900
  * Y coordinate on the face that was hit.
896
901
  */
897
902
  readonly faceLocationY: number;
898
- protected constructor();
899
903
  }
900
904
  /**
901
905
  * Represents the inventory of a block in the world. Used with
902
906
  * blocks like chests.
903
907
  */
904
908
  export class BlockInventoryComponent extends BlockComponent {
909
+ protected constructor();
905
910
  /**
906
911
  * The container which holds an {@link ItemStack}.
907
912
  * @throws This property can throw when used.
@@ -921,13 +926,13 @@ export class BlockInventoryComponent extends BlockComponent {
921
926
  * minecraft:inventory.
922
927
  */
923
928
  static readonly componentId = 'minecraft:inventory';
924
- protected constructor();
925
929
  }
926
930
  /**
927
931
  * Represents the inventory of a {@link Block} in the world.
928
932
  * Used with blocks like chests.
929
933
  */
930
934
  export class BlockInventoryComponentContainer extends Container {
935
+ protected constructor();
931
936
  /**
932
937
  * Contains a count of the slots in the container that are
933
938
  * empty.
@@ -1012,13 +1017,13 @@ export class BlockInventoryComponentContainer extends Container {
1012
1017
  * ```
1013
1018
  */
1014
1019
  transferItem(fromSlot: number, toSlot: number, toContainer: Container): boolean;
1015
- protected constructor();
1016
1020
  }
1017
1021
  /**
1018
1022
  * Represents a fluid container block that currently contains
1019
1023
  * lava.
1020
1024
  */
1021
1025
  export class BlockLavaContainerComponent extends BlockComponent {
1026
+ protected constructor();
1022
1027
  /**
1023
1028
  * Relative level of lava within this block. Valid values are
1024
1029
  * between FluidContainer.minFillLevel (0) and
@@ -1039,7 +1044,6 @@ export class BlockLavaContainerComponent extends BlockComponent {
1039
1044
  * minecraft:lavaContainer.
1040
1045
  */
1041
1046
  static readonly componentId = 'minecraft:lavaContainer';
1042
- protected constructor();
1043
1047
  }
1044
1048
  /**
1045
1049
  * Contains the integer X, Y, Z coordinates for a block. For
@@ -1059,6 +1063,20 @@ export class BlockLocation {
1059
1063
  * The integer-based Z position.
1060
1064
  */
1061
1065
  z: number;
1066
+ /**
1067
+ * @remarks
1068
+ * Creates a new instance of an abstract block location.
1069
+ * @param x
1070
+ * X position of the block location. This number should be an
1071
+ * integer.
1072
+ * @param y
1073
+ * Y position of the block location. This number should be an
1074
+ * integer.
1075
+ * @param z
1076
+ * Z position of the block location. This number should be an
1077
+ * integer.
1078
+ */
1079
+ constructor(x: number, y: number, z: number);
1062
1080
  /**
1063
1081
  * @remarks
1064
1082
  * Returns a BlockLocation for a block above this BlockLocation
@@ -1079,20 +1097,6 @@ export class BlockLocation {
1079
1097
  * points.
1080
1098
  */
1081
1099
  blocksBetween(other: BlockLocation): BlockLocation[];
1082
- /**
1083
- * @remarks
1084
- * Creates a new instance of an abstract block location.
1085
- * @param x
1086
- * X position of the block location. This number should be an
1087
- * integer.
1088
- * @param y
1089
- * Y position of the block location. This number should be an
1090
- * integer.
1091
- * @param z
1092
- * Z position of the block location. This number should be an
1093
- * integer.
1094
- */
1095
- constructor(x: number, y: number, z: number);
1096
1100
  /**
1097
1101
  * @remarks
1098
1102
  * Compares this BlockLocation and another BlockLocation to one
@@ -1126,6 +1130,7 @@ export class BlockLocation {
1126
1130
  * Block}). This type was introduced as of version 1.17.10.21.
1127
1131
  */
1128
1132
  export class BlockPermutation {
1133
+ protected constructor();
1129
1134
  /**
1130
1135
  * The {@link BlockType} that the permutation has.
1131
1136
  */
@@ -1178,13 +1183,13 @@ export class BlockPermutation {
1178
1183
  * ```
1179
1184
  */
1180
1185
  hasTag(tag: string): boolean;
1181
- protected constructor();
1182
1186
  }
1183
1187
  /**
1184
1188
  * When present, this block has piston-like behavior. Contains
1185
1189
  * additional properties for discovering block piston state.
1186
1190
  */
1187
1191
  export class BlockPistonComponent extends BlockComponent {
1192
+ protected constructor();
1188
1193
  /**
1189
1194
  * A set of locations for blocks that are impacted by the
1190
1195
  * activation of this piston.
@@ -1229,13 +1234,13 @@ export class BlockPistonComponent extends BlockComponent {
1229
1234
  * Identifier of this component.
1230
1235
  */
1231
1236
  static readonly componentId = 'minecraft:piston';
1232
- protected constructor();
1233
1237
  }
1234
1238
  /**
1235
1239
  * Contains information regarding an event where a player
1236
1240
  * places a block.
1237
1241
  */
1238
1242
  export class BlockPlaceEvent extends BlockEvent {
1243
+ protected constructor();
1239
1244
  /**
1240
1245
  * Block placed in this event.
1241
1246
  */
@@ -1249,13 +1254,13 @@ export class BlockPlaceEvent extends BlockEvent {
1249
1254
  * Player that placed the block for this event.
1250
1255
  */
1251
1256
  readonly player: Player;
1252
- protected constructor();
1253
1257
  }
1254
1258
  /**
1255
1259
  * Manages callbacks that are connected to when a block is
1256
1260
  * placed.
1257
1261
  */
1258
1262
  export class BlockPlaceEventSignal {
1263
+ protected constructor();
1259
1264
  /**
1260
1265
  * @remarks
1261
1266
  * Adds a callback that will be called when a block is placed
@@ -1271,13 +1276,13 @@ export class BlockPlaceEventSignal {
1271
1276
  * @throws This function can throw errors.
1272
1277
  */
1273
1278
  unsubscribe(callback: (arg: BlockPlaceEvent) => void): void;
1274
- protected constructor();
1275
1279
  }
1276
1280
  /**
1277
1281
  * Represents a fluid container block that currently contains a
1278
1282
  * potion.
1279
1283
  */
1280
1284
  export class BlockPotionContainerComponent extends BlockComponent {
1285
+ protected constructor();
1281
1286
  /**
1282
1287
  * Relative level of potion liquid within this block. Valid
1283
1288
  * values are between FluidContainer.minFillLevel (0) and
@@ -1307,10 +1312,10 @@ export class BlockPotionContainerComponent extends BlockComponent {
1307
1312
  * @throws This function can throw errors.
1308
1313
  */
1309
1314
  setPotionType(item: ItemStack): void;
1310
- protected constructor();
1311
1315
  }
1312
1316
  // tslint:disable-next-line:no-unnecessary-class
1313
1317
  export class BlockProperties {
1318
+ protected constructor();
1314
1319
  static readonly active = 'active';
1315
1320
  /**
1316
1321
  * Integer property that represents the age of the block. Valid
@@ -1909,12 +1914,12 @@ export class BlockProperties {
1909
1914
  * 'acacia', and 'dark_oak'.
1910
1915
  */
1911
1916
  static readonly woodType = 'wood_type';
1912
- protected constructor();
1913
1917
  }
1914
1918
  /**
1915
1919
  * Represents a block that can play a record.
1916
1920
  */
1917
1921
  export class BlockRecordPlayerComponent extends BlockComponent {
1922
+ protected constructor();
1918
1923
  readonly location: BlockLocation;
1919
1924
  /**
1920
1925
  * Identifier of this component. Should always be
@@ -1947,20 +1952,38 @@ export class BlockRecordPlayerComponent extends BlockComponent {
1947
1952
  * @throws This function can throw errors.
1948
1953
  */
1949
1954
  setRecord(recordItemType: ItemType): void;
1950
- protected constructor();
1951
1955
  }
1956
+ /**
1957
+ * Represents a block that can display text on it.
1958
+ */
1952
1959
  export class BlockSignComponent extends BlockComponent {
1960
+ protected constructor();
1961
+ /**
1962
+ * Location of the sign.
1963
+ */
1953
1964
  readonly location: BlockLocation;
1965
+ /**
1966
+ * Text of the sign
1967
+ * @throws This property can throw when used.
1968
+ */
1954
1969
  readonly text: string;
1970
+ /**
1971
+ * Identifier of this component. Should always be
1972
+ * minecraft:sign.
1973
+ */
1955
1974
  readonly typeId: string;
1975
+ /**
1976
+ * Identifier of this component. Should always be
1977
+ * minecraft:sign.
1978
+ */
1956
1979
  static readonly componentId = 'minecraft:sign';
1957
- protected constructor();
1958
1980
  }
1959
1981
  /**
1960
1982
  * Represents a fluid container block that currently contains
1961
1983
  * snow.
1962
1984
  */
1963
1985
  export class BlockSnowContainerComponent extends BlockComponent {
1986
+ protected constructor();
1964
1987
  /**
1965
1988
  * Relative level of snow within this block. Valid values are
1966
1989
  * between FluidContainer.minFillLevel (0) and
@@ -1981,7 +2004,6 @@ export class BlockSnowContainerComponent extends BlockComponent {
1981
2004
  * minecraft:snowContainer.
1982
2005
  */
1983
2006
  static readonly componentId = 'minecraft:snowContainer';
1984
- protected constructor();
1985
2007
  }
1986
2008
  /**
1987
2009
  * The type (or template) of a block. Does not contain
@@ -1990,6 +2012,7 @@ export class BlockSnowContainerComponent extends BlockComponent {
1990
2012
  * 1.17.10.21.
1991
2013
  */
1992
2014
  export class BlockType {
2015
+ protected constructor();
1993
2016
  /**
1994
2017
  * Represents whether this type of block can be waterlogged.
1995
2018
  */
@@ -2007,13 +2030,13 @@ export class BlockType {
2007
2030
  * @throws This function can throw errors.
2008
2031
  */
2009
2032
  createDefaultBlockPermutation(): BlockPermutation;
2010
- protected constructor();
2011
2033
  }
2012
2034
  /**
2013
2035
  * Represents a fluid container block that currently contains
2014
2036
  * water.
2015
2037
  */
2016
2038
  export class BlockWaterContainerComponent extends BlockComponent {
2039
+ protected constructor();
2017
2040
  /**
2018
2041
  * Represents a color facet of the water.
2019
2042
  */
@@ -2045,13 +2068,13 @@ export class BlockWaterContainerComponent extends BlockComponent {
2045
2068
  * @throws This function can throw errors.
2046
2069
  */
2047
2070
  addDye(itemType: ItemType): void;
2048
- protected constructor();
2049
2071
  }
2050
2072
  /**
2051
2073
  * Contains the state of a boolean-based property for a {@link
2052
2074
  * BlockPermutation}.
2053
2075
  */
2054
2076
  export class BoolBlockProperty extends IBlockProperty {
2077
+ protected constructor();
2055
2078
  /**
2056
2079
  * The name of this property.
2057
2080
  */
@@ -2068,12 +2091,12 @@ export class BoolBlockProperty extends IBlockProperty {
2068
2091
  * BoolBlockProperty.validValues} to check allowed values.
2069
2092
  */
2070
2093
  value: boolean;
2071
- protected constructor();
2072
2094
  }
2073
2095
  /**
2074
2096
  * Contains information related to changes to a button push.
2075
2097
  */
2076
2098
  export class ButtonPushEvent extends BlockEvent {
2099
+ protected constructor();
2077
2100
  /**
2078
2101
  * Block impacted by this event.
2079
2102
  */
@@ -2087,13 +2110,13 @@ export class ButtonPushEvent extends BlockEvent {
2087
2110
  * Optional source that triggered the button push.
2088
2111
  */
2089
2112
  readonly source: Entity;
2090
- protected constructor();
2091
2113
  }
2092
2114
  /**
2093
2115
  * Manages callbacks that are connected to when a button is
2094
2116
  * pushed.
2095
2117
  */
2096
2118
  export class ButtonPushEventSignal {
2119
+ protected constructor();
2097
2120
  /**
2098
2121
  * @remarks
2099
2122
  * Adds a callback that will be called when a button is pushed.
@@ -2108,12 +2131,12 @@ export class ButtonPushEventSignal {
2108
2131
  * @throws This function can throw errors.
2109
2132
  */
2110
2133
  unsubscribe(callback: (arg: ButtonPushEvent) => void): void;
2111
- protected constructor();
2112
2134
  }
2113
2135
  /**
2114
2136
  * An event that fires as players enter chat messages.
2115
2137
  */
2116
2138
  export class ChatEvent {
2139
+ protected constructor();
2117
2140
  /**
2118
2141
  * Message that is being broadcast. In a beforeChat event
2119
2142
  * handler, _message_ can be updated with edits before the
@@ -2133,13 +2156,13 @@ export class ChatEvent {
2133
2156
  * List of players that will receive this message.
2134
2157
  */
2135
2158
  targets: Player[];
2136
- protected constructor();
2137
2159
  }
2138
2160
  /**
2139
2161
  * Manages callbacks that are connected to chat messages being
2140
2162
  * sent.
2141
2163
  */
2142
2164
  export class ChatEventSignal {
2165
+ protected constructor();
2143
2166
  /**
2144
2167
  * @remarks
2145
2168
  * Adds a callback that will be called when new chat messages
@@ -2168,7 +2191,6 @@ export class ChatEventSignal {
2168
2191
  * @throws This function can throw errors.
2169
2192
  */
2170
2193
  unsubscribe(callback: (arg: ChatEvent) => void): void;
2171
- protected constructor();
2172
2194
  }
2173
2195
  /**
2174
2196
  * Represents a fully customizable color within Minecraft.
@@ -2208,13 +2230,13 @@ export class Color {
2208
2230
  * Contains return data on the result of a command execution.
2209
2231
  */
2210
2232
  export class CommandResult {
2233
+ protected constructor();
2211
2234
  /**
2212
2235
  * If the command operates against a number of entities,
2213
2236
  * blocks, or items, this returns the number of successful
2214
2237
  * applications of this command.
2215
2238
  */
2216
2239
  readonly successCount: number;
2217
- protected constructor();
2218
2240
  }
2219
2241
  /**
2220
2242
  * Represents a container that can hold sets of items. Used
@@ -2222,6 +2244,7 @@ export class CommandResult {
2222
2244
  * more.
2223
2245
  */
2224
2246
  export class Container {
2247
+ protected constructor();
2225
2248
  /**
2226
2249
  * Contains a count of the slots in the container that are
2227
2250
  * empty.
@@ -2311,7 +2334,6 @@ export class Container {
2311
2334
  * ```
2312
2335
  */
2313
2336
  transferItem(fromSlot: number, toSlot: number, toContainer: Container): boolean;
2314
- protected constructor();
2315
2337
  }
2316
2338
  /**
2317
2339
  * Contains information related to firing of a data driven
@@ -2319,6 +2341,7 @@ export class Container {
2319
2341
  * event on a chicken.
2320
2342
  */
2321
2343
  export class DataDrivenEntityTriggerEvent {
2344
+ protected constructor();
2322
2345
  /**
2323
2346
  * Entity that the event triggered on.
2324
2347
  */
@@ -2332,7 +2355,6 @@ export class DataDrivenEntityTriggerEvent {
2332
2355
  * effect of this triggered event.
2333
2356
  */
2334
2357
  readonly modifiers: DefinitionModifier[];
2335
- protected constructor();
2336
2358
  }
2337
2359
  /**
2338
2360
  * Contains event registration related to firing of a data
@@ -2340,6 +2362,7 @@ export class DataDrivenEntityTriggerEvent {
2340
2362
  * minecraft:ageable_grow_up event on a chicken.
2341
2363
  */
2342
2364
  export class DataDrivenEntityTriggerEventSignal {
2365
+ protected constructor();
2343
2366
  /**
2344
2367
  * @remarks
2345
2368
  * Adds a callback that will be called after a data driven
@@ -2359,7 +2382,6 @@ export class DataDrivenEntityTriggerEventSignal {
2359
2382
  * @throws This function can throw errors.
2360
2383
  */
2361
2384
  unsubscribe(callback: (arg: DataDrivenEntityTriggerEvent) => void): void;
2362
- protected constructor();
2363
2385
  }
2364
2386
  /**
2365
2387
  * Contains a set of updates to the component definition state
@@ -2387,6 +2409,7 @@ export class DefinitionModifier {
2387
2409
  * End) within a world.
2388
2410
  */
2389
2411
  export class Dimension {
2412
+ protected constructor();
2390
2413
  /**
2391
2414
  * Identifier of the dimension.
2392
2415
  * @throws This property can throw when used.
@@ -2528,9 +2551,9 @@ export class Dimension {
2528
2551
  /**
2529
2552
  * @remarks
2530
2553
  * Runs a particular command asynchronously from the context of
2531
- * the broader dimension. Where possible - and especially for
2532
- * long-running operations - you should use runCommandAsync
2533
- * over runCommand.
2554
+ * the broader dimension. Note that there is a maximum queue
2555
+ * of 128 asynchronous commands that can be run in a given
2556
+ * tick.
2534
2557
  * @param commandString
2535
2558
  * Command to run. Note that command strings should not start
2536
2559
  * with slash.
@@ -2637,13 +2660,12 @@ export class Dimension {
2637
2660
  * Newly created entity at the specified location.
2638
2661
  */
2639
2662
  spawnParticle(effectName: string, location: Location, molangVariables: MolangVariableMap): void;
2640
- protected constructor();
2641
2663
  }
2642
2664
  export class DirectionBlockProperty extends IBlockProperty {
2665
+ protected constructor();
2643
2666
  readonly name: string;
2644
2667
  readonly validValues: Direction[];
2645
2668
  value: Direction;
2646
- protected constructor();
2647
2669
  }
2648
2670
  /**
2649
2671
  * Class used in conjunction with {@link PropertyRegistry} to
@@ -2679,6 +2701,7 @@ export class DynamicPropertiesDefinition {
2679
2701
  * an Entity.
2680
2702
  */
2681
2703
  export class Effect {
2704
+ protected constructor();
2682
2705
  /**
2683
2706
  * Gets an amplifier that may have been applied to this effect.
2684
2707
  * Sample values range typically from 0 to 4. Example: The
@@ -2694,13 +2717,13 @@ export class Effect {
2694
2717
  * effect.
2695
2718
  */
2696
2719
  readonly duration: number;
2697
- protected constructor();
2698
2720
  }
2699
2721
  /**
2700
2722
  * Contains information related to changes to an effect - like
2701
2723
  * poison - being added to an entity.
2702
2724
  */
2703
2725
  export class EffectAddEvent {
2726
+ protected constructor();
2704
2727
  /**
2705
2728
  * Additional properties and details of the effect.
2706
2729
  */
@@ -2713,13 +2736,13 @@ export class EffectAddEvent {
2713
2736
  * Entity that the effect is being added to.
2714
2737
  */
2715
2738
  entity: Entity;
2716
- protected constructor();
2717
2739
  }
2718
2740
  /**
2719
2741
  * Manages callbacks that are connected to when an effect is
2720
2742
  * added to an entity.
2721
2743
  */
2722
2744
  export class EffectAddEventSignal {
2745
+ protected constructor();
2723
2746
  /**
2724
2747
  * @remarks
2725
2748
  * Adds a callback that will be called when an effect is added
@@ -2736,13 +2759,13 @@ export class EffectAddEventSignal {
2736
2759
  * @throws This function can throw errors.
2737
2760
  */
2738
2761
  unsubscribe(callback: (arg: EffectAddEvent) => void): void;
2739
- protected constructor();
2740
2762
  }
2741
2763
  /**
2742
2764
  * Represents a type of effect - like poison - that can be
2743
2765
  * applied to an entity.
2744
2766
  */
2745
2767
  export class EffectType {
2768
+ protected constructor();
2746
2769
  /**
2747
2770
  * @remarks
2748
2771
  * Identifier name of this effect type.
@@ -2750,7 +2773,6 @@ export class EffectType {
2750
2773
  * Identifier of the effect type.
2751
2774
  */
2752
2775
  getName(): string;
2753
- protected constructor();
2754
2776
  }
2755
2777
  /**
2756
2778
  * This class represents a specific leveled enchantment that is
@@ -2776,6 +2798,7 @@ export class EnchantmentList implements Iterable<Enchantment> {
2776
2798
  * The item slot/type that this collection is applied to.
2777
2799
  */
2778
2800
  readonly slot: number;
2801
+ constructor(enchantmentSlot: number);
2779
2802
  [Symbol.iterator](): Iterator<Enchantment>;
2780
2803
  /**
2781
2804
  * @remarks
@@ -2791,7 +2814,6 @@ export class EnchantmentList implements Iterable<Enchantment> {
2791
2814
  * @param enchantment
2792
2815
  */
2793
2816
  canAddEnchantment(enchantment: Enchantment): boolean;
2794
- constructor(enchantmentSlot: number);
2795
2817
  /**
2796
2818
  * @remarks
2797
2819
  * Returns an enchantment associated with a type.
@@ -2821,6 +2843,7 @@ export class EnchantmentList implements Iterable<Enchantment> {
2821
2843
  */
2822
2844
  // tslint:disable-next-line:no-unnecessary-class
2823
2845
  export class EnchantmentSlot {
2846
+ protected constructor();
2824
2847
  static readonly all = -1;
2825
2848
  static readonly armorFeet = 4;
2826
2849
  static readonly armorHead = 1;
@@ -2845,12 +2868,12 @@ export class EnchantmentSlot {
2845
2868
  static readonly shovel = 2048;
2846
2869
  static readonly spear = 32768;
2847
2870
  static readonly sword = 16;
2848
- protected constructor();
2849
2871
  }
2850
2872
  /**
2851
2873
  * Contains information on a type of enchantment.
2852
2874
  */
2853
2875
  export class EnchantmentType {
2876
+ protected constructor();
2854
2877
  /**
2855
2878
  * The name of the enchantment type.
2856
2879
  */
@@ -2859,13 +2882,13 @@ export class EnchantmentType {
2859
2882
  * The maximum level this type of enchantment can have.
2860
2883
  */
2861
2884
  readonly maxLevel: number;
2862
- protected constructor();
2863
2885
  }
2864
2886
  /**
2865
2887
  * Represents the state of an entity (a mob, the player, or
2866
2888
  * other moving objects like minecarts) in the world.
2867
2889
  */
2868
2890
  export class Entity {
2891
+ protected constructor();
2869
2892
  /**
2870
2893
  * Dimension that the entity is currently within.
2871
2894
  * @throws This property can throw when used.
@@ -3082,9 +3105,8 @@ export class Entity {
3082
3105
  /**
3083
3106
  * @remarks
3084
3107
  * Runs a particular command asynchronously from the context of
3085
- * this entity. Where possible, running a command
3086
- * asynchronously is recommended, especially for long running
3087
- * operations.
3108
+ * this entity. Note that there is a maximum queue of 128
3109
+ * asynchronous commands that can be run in a given tick.
3088
3110
  * @param commandString
3089
3111
  * Command to run. Note that command strings should not start
3090
3112
  * with slash.
@@ -3166,13 +3188,13 @@ export class Entity {
3166
3188
  * @throws This function can throw errors.
3167
3189
  */
3168
3190
  triggerEvent(eventName: string): void;
3169
- protected constructor();
3170
3191
  }
3171
3192
  /**
3172
3193
  * When added, this component makes the entity spawn with a
3173
3194
  * rider of the specified entityType.
3174
3195
  */
3175
3196
  export class EntityAddRiderComponent extends IEntityComponent {
3197
+ protected constructor();
3176
3198
  /**
3177
3199
  * The type of entity that is added as a rider for this entity
3178
3200
  * when spawned under certain conditions.
@@ -3195,7 +3217,6 @@ export class EntityAddRiderComponent extends IEntityComponent {
3195
3217
  * minecraft:addrider.
3196
3218
  */
3197
3219
  static readonly componentId = 'minecraft:addrider';
3198
- protected constructor();
3199
3220
  }
3200
3221
  /**
3201
3222
  * Adds a timer for the entity to grow up. It can be
@@ -3203,6 +3224,7 @@ export class EntityAddRiderComponent extends IEntityComponent {
3203
3224
  * defined by feedItems.
3204
3225
  */
3205
3226
  export class EntityAgeableComponent extends IEntityComponent {
3227
+ protected constructor();
3206
3228
  /**
3207
3229
  * List of items that the entity drops when it grows up.
3208
3230
  * @throws This property can throw when used.
@@ -3236,13 +3258,13 @@ export class EntityAgeableComponent extends IEntityComponent {
3236
3258
  * minecraft:ageable.
3237
3259
  */
3238
3260
  static readonly componentId = 'minecraft:ageable';
3239
- protected constructor();
3240
3261
  }
3241
3262
  /**
3242
3263
  * Defines what blocks this entity can breathe in and gives
3243
3264
  * them the ability to suffocate.
3244
3265
  */
3245
3266
  export class EntityBreathableComponent extends IEntityComponent {
3267
+ protected constructor();
3246
3268
  /**
3247
3269
  * List of blocks this entity can breathe in, in addition to
3248
3270
  * the separate properties for classes of blocks.
@@ -3313,13 +3335,13 @@ export class EntityBreathableComponent extends IEntityComponent {
3313
3335
  * @throws This function can throw errors.
3314
3336
  */
3315
3337
  setAirSupply(value: number): void;
3316
- protected constructor();
3317
3338
  }
3318
3339
  /**
3319
3340
  * When added, this component signifies that the entity can
3320
3341
  * climb up ladders.
3321
3342
  */
3322
3343
  export class EntityCanClimbComponent extends IEntityComponent {
3344
+ protected constructor();
3323
3345
  /**
3324
3346
  * Identifier of this component. Should always be
3325
3347
  * minecraft:can_climb.
@@ -3330,7 +3352,6 @@ export class EntityCanClimbComponent extends IEntityComponent {
3330
3352
  * minecraft:can_climb.
3331
3353
  */
3332
3354
  static readonly componentId = 'minecraft:can_climb';
3333
- protected constructor();
3334
3355
  }
3335
3356
  /**
3336
3357
  * When added, this component signifies that the entity can
@@ -3338,6 +3359,7 @@ export class EntityCanClimbComponent extends IEntityComponent {
3338
3359
  * solid block is required underneath it.
3339
3360
  */
3340
3361
  export class EntityCanFlyComponent extends IEntityComponent {
3362
+ protected constructor();
3341
3363
  /**
3342
3364
  * Identifier of this component. Should always be
3343
3365
  * minecraft:can_fly.
@@ -3348,13 +3370,13 @@ export class EntityCanFlyComponent extends IEntityComponent {
3348
3370
  * minecraft:can_fly.
3349
3371
  */
3350
3372
  static readonly componentId = 'minecraft:can_fly';
3351
- protected constructor();
3352
3373
  }
3353
3374
  /**
3354
3375
  * When added, this component signifies that the entity can
3355
3376
  * power jump like the horse does within Minecraft.
3356
3377
  */
3357
3378
  export class EntityCanPowerJumpComponent extends IEntityComponent {
3379
+ protected constructor();
3358
3380
  /**
3359
3381
  * Identifier of this component. Should always be
3360
3382
  * minecraft:can_power_jump.
@@ -3365,13 +3387,13 @@ export class EntityCanPowerJumpComponent extends IEntityComponent {
3365
3387
  * minecraft:can_power_jump.
3366
3388
  */
3367
3389
  static readonly componentId = 'minecraft:can_power_jump';
3368
- protected constructor();
3369
3390
  }
3370
3391
  /**
3371
3392
  * Defines the entity's color. Only works on certain entities
3372
3393
  * that have predefined color values (sheep, llama, shulker).
3373
3394
  */
3374
3395
  export class EntityColorComponent extends IEntityComponent {
3396
+ protected constructor();
3375
3397
  /**
3376
3398
  * Identifier of this component. Should always be
3377
3399
  * minecraft:color.
@@ -3386,24 +3408,24 @@ export class EntityColorComponent extends IEntityComponent {
3386
3408
  * minecraft:color.
3387
3409
  */
3388
3410
  static readonly componentId = 'minecraft:color';
3389
- protected constructor();
3390
3411
  }
3391
3412
  /**
3392
3413
  * Contains information related to the creation of a new
3393
3414
  * entity.
3394
3415
  */
3395
3416
  export class EntityCreateEvent {
3417
+ protected constructor();
3396
3418
  /**
3397
3419
  * New entity that was created.
3398
3420
  */
3399
3421
  entity: Entity;
3400
- protected constructor();
3401
3422
  }
3402
3423
  /**
3403
3424
  * Manages callbacks that are connected to when a new entity is
3404
3425
  * created.
3405
3426
  */
3406
3427
  export class EntityCreateEventSignal {
3428
+ protected constructor();
3407
3429
  /**
3408
3430
  * @remarks
3409
3431
  * Adds a callback that will be called when a new entity is
@@ -3440,7 +3462,6 @@ export class EntityCreateEventSignal {
3440
3462
  * ```
3441
3463
  */
3442
3464
  unsubscribe(callback: (arg: EntityCreateEvent) => void): void;
3443
- protected constructor();
3444
3465
  }
3445
3466
  /**
3446
3467
  * As part of the Ageable component, represents a set of items
@@ -3448,6 +3469,7 @@ export class EntityCreateEventSignal {
3448
3469
  * causes them to grow.
3449
3470
  */
3450
3471
  export class EntityDefinitionFeedItem {
3472
+ protected constructor();
3451
3473
  /**
3452
3474
  * The amount by which an entity's age will increase when fed
3453
3475
  * this item. Values usually range between 0 and 1.
@@ -3459,13 +3481,13 @@ export class EntityDefinitionFeedItem {
3459
3481
  * include 'wheat' or 'golden_apple'.
3460
3482
  */
3461
3483
  readonly item: string;
3462
- protected constructor();
3463
3484
  }
3464
3485
  /**
3465
3486
  * When added, this component signifies that this entity
3466
3487
  * doesn't take damage from fire.
3467
3488
  */
3468
3489
  export class EntityFireImmuneComponent extends IEntityComponent {
3490
+ protected constructor();
3469
3491
  /**
3470
3492
  * Identifier of this component. Should always be
3471
3493
  * minecraft:fire_immune.
@@ -3476,13 +3498,13 @@ export class EntityFireImmuneComponent extends IEntityComponent {
3476
3498
  * minecraft:fire_immune.
3477
3499
  */
3478
3500
  static readonly componentId = 'minecraft:fire_immune';
3479
- protected constructor();
3480
3501
  }
3481
3502
  /**
3482
3503
  * When added, this component signifies that this entity can
3483
3504
  * float in liquid blocks.
3484
3505
  */
3485
3506
  export class EntityFloatsInLiquidComponent extends IEntityComponent {
3507
+ protected constructor();
3486
3508
  /**
3487
3509
  * Identifier of this component. Should always be
3488
3510
  * minecraft:floats_in_liquid.
@@ -3493,12 +3515,12 @@ export class EntityFloatsInLiquidComponent extends IEntityComponent {
3493
3515
  * minecraft:floats_in_liquid.
3494
3516
  */
3495
3517
  static readonly componentId = 'minecraft:floats_in_liquid';
3496
- protected constructor();
3497
3518
  }
3498
3519
  /**
3499
3520
  * Represents the flying speed of an entity.
3500
3521
  */
3501
3522
  export class EntityFlyingSpeedComponent extends IEntityComponent {
3523
+ protected constructor();
3502
3524
  /**
3503
3525
  * Identifier of this component. Should always be
3504
3526
  * minecraft:flying_speed.
@@ -3513,12 +3535,12 @@ export class EntityFlyingSpeedComponent extends IEntityComponent {
3513
3535
  * minecraft:flying_speed.
3514
3536
  */
3515
3537
  static readonly componentId = 'minecraft:flying_speed';
3516
- protected constructor();
3517
3538
  }
3518
3539
  /**
3519
3540
  * Defines how much friction affects this entity.
3520
3541
  */
3521
3542
  export class EntityFrictionModifierComponent extends IEntityComponent {
3543
+ protected constructor();
3522
3544
  /**
3523
3545
  * Identifier of this component. Should always be
3524
3546
  * minecraft:friction_modifier.
@@ -3535,13 +3557,13 @@ export class EntityFrictionModifierComponent extends IEntityComponent {
3535
3557
  * minecraft:friction_modifier.
3536
3558
  */
3537
3559
  static readonly componentId = 'minecraft:friction_modifier';
3538
- protected constructor();
3539
3560
  }
3540
3561
  /**
3541
3562
  * Sets the offset from the ground that the entity is actually
3542
3563
  * at.
3543
3564
  */
3544
3565
  export class EntityGroundOffsetComponent extends IEntityComponent {
3566
+ protected constructor();
3545
3567
  /**
3546
3568
  * Identifier of this component. Should always be
3547
3569
  * minecraft:ground_offset.
@@ -3557,12 +3579,12 @@ export class EntityGroundOffsetComponent extends IEntityComponent {
3557
3579
  * minecraft:ground_offset.
3558
3580
  */
3559
3581
  static readonly componentId = 'minecraft:ground_offset';
3560
- protected constructor();
3561
3582
  }
3562
3583
  /**
3563
3584
  * Defines the interactions with this entity for healing it.
3564
3585
  */
3565
3586
  export class EntityHealableComponent extends IEntityComponent {
3587
+ protected constructor();
3566
3588
  /**
3567
3589
  * A set of filters for when these Healable items would apply.
3568
3590
  * @throws This property can throw when used.
@@ -3589,12 +3611,12 @@ export class EntityHealableComponent extends IEntityComponent {
3589
3611
  * minecraft:healable.
3590
3612
  */
3591
3613
  static readonly componentId = 'minecraft:healable';
3592
- protected constructor();
3593
3614
  }
3594
3615
  /**
3595
3616
  * Defines the health properties of an entity.
3596
3617
  */
3597
3618
  export class EntityHealthComponent extends IEntityComponent {
3619
+ protected constructor();
3598
3620
  /**
3599
3621
  * Read-only. Returns the current value of health for the
3600
3622
  * entity.
@@ -3643,13 +3665,13 @@ export class EntityHealthComponent extends IEntityComponent {
3643
3665
  * @throws This function can throw errors.
3644
3666
  */
3645
3667
  setCurrent(value: number): void;
3646
- protected constructor();
3647
3668
  }
3648
3669
  /**
3649
3670
  * Contains information related to an entity hitting (melee
3650
3671
  * attacking) another entity.
3651
3672
  */
3652
3673
  export class EntityHitEvent {
3674
+ protected constructor();
3653
3675
  /**
3654
3676
  * Entity that made a hit/melee attack.
3655
3677
  */
@@ -3668,13 +3690,13 @@ export class EntityHitEvent {
3668
3690
  * air.
3669
3691
  */
3670
3692
  readonly hitEntity?: Entity;
3671
- protected constructor();
3672
3693
  }
3673
3694
  /**
3674
3695
  * Manages callbacks that are connected to when an entity makes
3675
3696
  * a melee attack on another entity.
3676
3697
  */
3677
3698
  export class EntityHitEventSignal {
3699
+ protected constructor();
3678
3700
  /**
3679
3701
  * @remarks
3680
3702
  * Adds a callback that will be called when an entity hits
@@ -3691,24 +3713,24 @@ export class EntityHitEventSignal {
3691
3713
  * @throws This function can throw errors.
3692
3714
  */
3693
3715
  unsubscribe(callback: (arg: EntityHitEvent) => void): void;
3694
- protected constructor();
3695
3716
  }
3696
3717
  /**
3697
3718
  * Contains additional information about an entity that was
3698
3719
  * hit.
3699
3720
  */
3700
3721
  export class EntityHitInformation {
3722
+ protected constructor();
3701
3723
  /**
3702
3724
  * Entity that was hit.
3703
3725
  */
3704
3726
  readonly entity: Entity;
3705
- protected constructor();
3706
3727
  }
3707
3728
  /**
3708
3729
  * Contains information related to an entity getting hurt by
3709
3730
  * another entity.
3710
3731
  */
3711
3732
  export class EntityHurtEvent {
3733
+ protected constructor();
3712
3734
  /**
3713
3735
  * A summary of the reason that damage was caused.
3714
3736
  */
@@ -3732,13 +3754,13 @@ export class EntityHurtEvent {
3732
3754
  * entity.
3733
3755
  */
3734
3756
  readonly projectile: Entity;
3735
- protected constructor();
3736
3757
  }
3737
3758
  /**
3738
3759
  * Manages callbacks that are connected to when an entity is
3739
3760
  * hurt.
3740
3761
  */
3741
3762
  export class EntityHurtEventSignal {
3763
+ protected constructor();
3742
3764
  /**
3743
3765
  * @remarks
3744
3766
  * Adds a callback that will be called when an entity is hurt.
@@ -3753,12 +3775,12 @@ export class EntityHurtEventSignal {
3753
3775
  * @throws This function can throw errors.
3754
3776
  */
3755
3777
  unsubscribe(callback: (arg: EntityHurtEvent) => void): void;
3756
- protected constructor();
3757
3778
  }
3758
3779
  /**
3759
3780
  * Defines this entity's inventory properties.
3760
3781
  */
3761
3782
  export class EntityInventoryComponent extends IEntityComponent {
3783
+ protected constructor();
3762
3784
  /**
3763
3785
  * Number of slots that this entity can gain per extra
3764
3786
  * strength.
@@ -3807,13 +3829,13 @@ export class EntityInventoryComponent extends IEntityComponent {
3807
3829
  * minecraft:inventory.
3808
3830
  */
3809
3831
  static readonly componentId = 'minecraft:inventory';
3810
- protected constructor();
3811
3832
  }
3812
3833
  /**
3813
3834
  * When added, this component signifies that this entity is a
3814
3835
  * baby.
3815
3836
  */
3816
3837
  export class EntityIsBabyComponent extends IEntityComponent {
3838
+ protected constructor();
3817
3839
  /**
3818
3840
  * Identifier of this component. Should always be
3819
3841
  * minecraft:is_baby.
@@ -3824,13 +3846,13 @@ export class EntityIsBabyComponent extends IEntityComponent {
3824
3846
  * minecraft:is_baby.
3825
3847
  */
3826
3848
  static readonly componentId = 'minecraft:is_baby';
3827
- protected constructor();
3828
3849
  }
3829
3850
  /**
3830
3851
  * When added, this component signifies that this entity is
3831
3852
  * charged.
3832
3853
  */
3833
3854
  export class EntityIsChargedComponent extends IEntityComponent {
3855
+ protected constructor();
3834
3856
  /**
3835
3857
  * Identifier of this component. Should always be
3836
3858
  * minecraft:is_charged.
@@ -3841,13 +3863,13 @@ export class EntityIsChargedComponent extends IEntityComponent {
3841
3863
  * minecraft:is_charged.
3842
3864
  */
3843
3865
  static readonly componentId = 'minecraft:is_charged';
3844
- protected constructor();
3845
3866
  }
3846
3867
  /**
3847
3868
  * When added, this component signifies that this entity is
3848
3869
  * currently carrying a chest.
3849
3870
  */
3850
3871
  export class EntityIsChestedComponent extends IEntityComponent {
3872
+ protected constructor();
3851
3873
  /**
3852
3874
  * Identifier of this component. Should always be
3853
3875
  * minecraft:is_chested.
@@ -3858,13 +3880,13 @@ export class EntityIsChestedComponent extends IEntityComponent {
3858
3880
  * minecraft:is_chested.
3859
3881
  */
3860
3882
  static readonly componentId = 'minecraft:is_chested';
3861
- protected constructor();
3862
3883
  }
3863
3884
  /**
3864
3885
  * When added, this component signifies that dyes can be used
3865
3886
  * on this entity to change its color.
3866
3887
  */
3867
3888
  export class EntityIsDyableComponent extends IEntityComponent {
3889
+ protected constructor();
3868
3890
  /**
3869
3891
  * Identifier of this component. Should always be
3870
3892
  * minecraft:is_dyeable.
@@ -3875,13 +3897,13 @@ export class EntityIsDyableComponent extends IEntityComponent {
3875
3897
  * minecraft:is_dyeable.
3876
3898
  */
3877
3899
  static readonly componentId = 'minecraft:is_dyeable';
3878
- protected constructor();
3879
3900
  }
3880
3901
  /**
3881
3902
  * When added, this component signifies that this entity can
3882
3903
  * hide from hostile mobs while invisible.
3883
3904
  */
3884
3905
  export class EntityIsHiddenWhenInvisibleComponent extends IEntityComponent {
3906
+ protected constructor();
3885
3907
  /**
3886
3908
  * Identifier of this component. Should always be
3887
3909
  * minecraft:is_hidden_when_invisible.
@@ -3892,13 +3914,13 @@ export class EntityIsHiddenWhenInvisibleComponent extends IEntityComponent {
3892
3914
  * minecraft:is_hidden_when_invisible.
3893
3915
  */
3894
3916
  static readonly componentId = 'minecraft:is_hidden_when_invisible';
3895
- protected constructor();
3896
3917
  }
3897
3918
  /**
3898
3919
  * When added, this component signifies that this entity this
3899
3920
  * currently on fire.
3900
3921
  */
3901
3922
  export class EntityIsIgnitedComponent extends IEntityComponent {
3923
+ protected constructor();
3902
3924
  /**
3903
3925
  * Identifier of this component. Should always be
3904
3926
  * minecraft:is_ignited.
@@ -3909,13 +3931,13 @@ export class EntityIsIgnitedComponent extends IEntityComponent {
3909
3931
  * minecraft:is_ignited.
3910
3932
  */
3911
3933
  static readonly componentId = 'minecraft:is_ignited';
3912
- protected constructor();
3913
3934
  }
3914
3935
  /**
3915
3936
  * When added, this component signifies that this entity is an
3916
3937
  * illager captain.
3917
3938
  */
3918
3939
  export class EntityIsIllagerCaptainComponent extends IEntityComponent {
3940
+ protected constructor();
3919
3941
  /**
3920
3942
  * Identifier of this component. Should always be
3921
3943
  * minecraft:is_illager_captain.
@@ -3926,13 +3948,13 @@ export class EntityIsIllagerCaptainComponent extends IEntityComponent {
3926
3948
  * minecraft:is_illager_captain.
3927
3949
  */
3928
3950
  static readonly componentId = 'minecraft:is_illager_captain';
3929
- protected constructor();
3930
3951
  }
3931
3952
  /**
3932
3953
  * When added, this component signifies that this entity is
3933
3954
  * currently saddled.
3934
3955
  */
3935
3956
  export class EntityIsSaddledComponent extends IEntityComponent {
3957
+ protected constructor();
3936
3958
  /**
3937
3959
  * Identifier of this component. Should always be
3938
3960
  * minecraft:is_saddled.
@@ -3943,13 +3965,13 @@ export class EntityIsSaddledComponent extends IEntityComponent {
3943
3965
  * minecraft:is_saddled.
3944
3966
  */
3945
3967
  static readonly componentId = 'minecraft:is_saddled';
3946
- protected constructor();
3947
3968
  }
3948
3969
  /**
3949
3970
  * When added, this component signifies that this entity is
3950
3971
  * currently shaking.
3951
3972
  */
3952
3973
  export class EntityIsShakingComponent extends IEntityComponent {
3974
+ protected constructor();
3953
3975
  /**
3954
3976
  * Identifier of this component. Should always be
3955
3977
  * minecraft:is_shaking.
@@ -3960,13 +3982,13 @@ export class EntityIsShakingComponent extends IEntityComponent {
3960
3982
  * minecraft:is_shaking.
3961
3983
  */
3962
3984
  static readonly componentId = 'minecraft:is_shaking';
3963
- protected constructor();
3964
3985
  }
3965
3986
  /**
3966
3987
  * When added, this component signifies that this entity is
3967
3988
  * currently sheared.
3968
3989
  */
3969
3990
  export class EntityIsShearedComponent extends IEntityComponent {
3991
+ protected constructor();
3970
3992
  /**
3971
3993
  * Identifier of this component. Should always be
3972
3994
  * minecraft:is_sheared.
@@ -3977,13 +3999,13 @@ export class EntityIsShearedComponent extends IEntityComponent {
3977
3999
  * minecraft:is_sheared.
3978
4000
  */
3979
4001
  static readonly componentId = 'minecraft:is_sheared';
3980
- protected constructor();
3981
4002
  }
3982
4003
  /**
3983
4004
  * When added, this component signifies that this entity can be
3984
4005
  * stacked.
3985
4006
  */
3986
4007
  export class EntityIsStackableComponent extends IEntityComponent {
4008
+ protected constructor();
3987
4009
  /**
3988
4010
  * Identifier of this component. Should always be
3989
4011
  * minecraft:is_stackable.
@@ -3994,13 +4016,13 @@ export class EntityIsStackableComponent extends IEntityComponent {
3994
4016
  * minecraft:is_stackable.
3995
4017
  */
3996
4018
  static readonly componentId = 'minecraft:is_stackable';
3997
- protected constructor();
3998
4019
  }
3999
4020
  /**
4000
4021
  * When added, this component signifies that this entity is
4001
4022
  * currently stunned.
4002
4023
  */
4003
4024
  export class EntityIsStunnedComponent extends IEntityComponent {
4025
+ protected constructor();
4004
4026
  /**
4005
4027
  * Identifier of this component. Should always be
4006
4028
  * minecraft:is_stunned.
@@ -4011,13 +4033,13 @@ export class EntityIsStunnedComponent extends IEntityComponent {
4011
4033
  * minecraft:is_stunned.
4012
4034
  */
4013
4035
  static readonly componentId = 'minecraft:is_stunned';
4014
- protected constructor();
4015
4036
  }
4016
4037
  /**
4017
4038
  * When added, this component signifies that this entity is
4018
4039
  * currently tamed.
4019
4040
  */
4020
4041
  export class EntityIsTamedComponent extends IEntityComponent {
4042
+ protected constructor();
4021
4043
  /**
4022
4044
  * Identifier of this component. Should always be
4023
4045
  * minecraft:is_tamed.
@@ -4028,7 +4050,6 @@ export class EntityIsTamedComponent extends IEntityComponent {
4028
4050
  * minecraft:is_tamed.
4029
4051
  */
4030
4052
  static readonly componentId = 'minecraft:is_tamed';
4031
- protected constructor();
4032
4053
  }
4033
4054
  /**
4034
4055
  * If added onto the entity, this indicates that the entity
@@ -4037,6 +4058,7 @@ export class EntityIsTamedComponent extends IEntityComponent {
4037
4058
  * property.
4038
4059
  */
4039
4060
  export class EntityItemComponent extends IEntityComponent {
4061
+ protected constructor();
4040
4062
  /**
4041
4063
  * Item stack represented by this entity in the world.
4042
4064
  * @throws This property can throw when used.
@@ -4050,7 +4072,6 @@ export class EntityItemComponent extends IEntityComponent {
4050
4072
  * Identifier of this component.
4051
4073
  */
4052
4074
  static readonly componentId = 'minecraft:item';
4053
- protected constructor();
4054
4075
  }
4055
4076
  /**
4056
4077
  * This type is usable for iterating over a set of entities.
@@ -4058,6 +4079,7 @@ export class EntityItemComponent extends IEntityComponent {
4058
4079
  * statements, Array.from(iterator), and more.
4059
4080
  */
4060
4081
  export class EntityIterator implements Iterable<Entity> {
4082
+ protected constructor();
4061
4083
  [Symbol.iterator](): Iterator<Entity>;
4062
4084
  /**
4063
4085
  * @remarks
@@ -4066,12 +4088,12 @@ export class EntityIterator implements Iterable<Entity> {
4066
4088
  * can be used to see the next Entity in the iteration.
4067
4089
  */
4068
4090
  next(): IteratorResult<Entity>;
4069
- protected constructor();
4070
4091
  }
4071
4092
  /**
4072
4093
  * Defines the base movement speed in lava of this entity.
4073
4094
  */
4074
4095
  export class EntityLavaMovementComponent extends IEntityComponent {
4096
+ protected constructor();
4075
4097
  /**
4076
4098
  * Read-only. Returns the current value of movement speed on
4077
4099
  * lava for the entity.
@@ -4123,13 +4145,13 @@ export class EntityLavaMovementComponent extends IEntityComponent {
4123
4145
  * @throws This function can throw errors.
4124
4146
  */
4125
4147
  setCurrent(value: number): void;
4126
- protected constructor();
4127
4148
  }
4128
4149
  /**
4129
4150
  * Allows this entity to be leashed and defines the conditions
4130
4151
  * and events for this entity when is leashed.
4131
4152
  */
4132
4153
  export class EntityLeashableComponent extends IEntityComponent {
4154
+ protected constructor();
4133
4155
  /**
4134
4156
  * Distance in blocks at which the 'spring' effect starts
4135
4157
  * acting to keep this entity close to the entity that leashed
@@ -4161,13 +4183,13 @@ export class EntityLeashableComponent extends IEntityComponent {
4161
4183
  * @throws This function can throw errors.
4162
4184
  */
4163
4185
  unleash(): void;
4164
- protected constructor();
4165
4186
  }
4166
4187
  /**
4167
4188
  * Additional variant value. Can be used to further
4168
4189
  * differentiate variants.
4169
4190
  */
4170
4191
  export class EntityMarkVariantComponent extends IEntityComponent {
4192
+ protected constructor();
4171
4193
  /**
4172
4194
  * Identifier of this component. Should always be
4173
4195
  * minecraft:mark_variant.
@@ -4183,13 +4205,13 @@ export class EntityMarkVariantComponent extends IEntityComponent {
4183
4205
  * minecraft:mark_variant.
4184
4206
  */
4185
4207
  static readonly componentId = 'minecraft:mark_variant';
4186
- protected constructor();
4187
4208
  }
4188
4209
  /**
4189
4210
  * Contains options for taming a rideable entity based on the
4190
4211
  * entity that mounts it.
4191
4212
  */
4192
4213
  export class EntityMountTamingComponent extends IEntityComponent {
4214
+ protected constructor();
4193
4215
  /**
4194
4216
  * Identifier of this component. Should always be
4195
4217
  * minecraft:mount_taming.
@@ -4208,13 +4230,13 @@ export class EntityMountTamingComponent extends IEntityComponent {
4208
4230
  * @throws This function can throw errors.
4209
4231
  */
4210
4232
  setTamed(showParticles: boolean): void;
4211
- protected constructor();
4212
4233
  }
4213
4234
  /**
4214
4235
  * When added, this movement control allows the mob to swim in
4215
4236
  * water and walk on land.
4216
4237
  */
4217
4238
  export class EntityMovementAmphibiousComponent extends IEntityComponent {
4239
+ protected constructor();
4218
4240
  /**
4219
4241
  * The maximum number in degrees the mob can turn per tick.
4220
4242
  * @throws This property can throw when used.
@@ -4230,12 +4252,12 @@ export class EntityMovementAmphibiousComponent extends IEntityComponent {
4230
4252
  * minecraft:movement.amphibious.
4231
4253
  */
4232
4254
  static readonly componentId = 'minecraft:movement.amphibious';
4233
- protected constructor();
4234
4255
  }
4235
4256
  /**
4236
4257
  * This component accents the movement of an entity.
4237
4258
  */
4238
4259
  export class EntityMovementBasicComponent extends IEntityComponent {
4260
+ protected constructor();
4239
4261
  /**
4240
4262
  * The maximum number in degrees the mob can turn per tick.
4241
4263
  * @throws This property can throw when used.
@@ -4251,12 +4273,12 @@ export class EntityMovementBasicComponent extends IEntityComponent {
4251
4273
  * minecraft:movement.basic.
4252
4274
  */
4253
4275
  static readonly componentId = 'minecraft:movement.basic';
4254
- protected constructor();
4255
4276
  }
4256
4277
  /**
4257
4278
  * Defines the general movement speed of this entity.
4258
4279
  */
4259
4280
  export class EntityMovementComponent extends IEntityComponent {
4281
+ protected constructor();
4260
4282
  /**
4261
4283
  * Read-only. Returns the current value of default movement
4262
4284
  * speed for the entity.
@@ -4307,12 +4329,12 @@ export class EntityMovementComponent extends IEntityComponent {
4307
4329
  * @throws This function can throw errors.
4308
4330
  */
4309
4331
  setCurrent(value: number): void;
4310
- protected constructor();
4311
4332
  }
4312
4333
  /**
4313
4334
  * When added, this move control causes the mob to fly.
4314
4335
  */
4315
4336
  export class EntityMovementFlyComponent extends IEntityComponent {
4337
+ protected constructor();
4316
4338
  /**
4317
4339
  * The maximum number in degrees the mob can turn per tick.
4318
4340
  * @throws This property can throw when used.
@@ -4328,13 +4350,13 @@ export class EntityMovementFlyComponent extends IEntityComponent {
4328
4350
  * minecraft:movement.fly.
4329
4351
  */
4330
4352
  static readonly componentId = 'minecraft:movement.fly';
4331
- protected constructor();
4332
4353
  }
4333
4354
  /**
4334
4355
  * When added, this move control allows a mob to fly, swim,
4335
4356
  * climb, etc.
4336
4357
  */
4337
4358
  export class EntityMovementGenericComponent extends IEntityComponent {
4359
+ protected constructor();
4338
4360
  /**
4339
4361
  * The maximum number in degrees the mob can turn per tick.
4340
4362
  * @throws This property can throw when used.
@@ -4350,12 +4372,12 @@ export class EntityMovementGenericComponent extends IEntityComponent {
4350
4372
  * minecraft:movement.generic.
4351
4373
  */
4352
4374
  static readonly componentId = 'minecraft:movement.generic';
4353
- protected constructor();
4354
4375
  }
4355
4376
  /**
4356
4377
  * When added, this movement control allows the mob to glide.
4357
4378
  */
4358
4379
  export class EntityMovementGlideComponent extends IEntityComponent {
4380
+ protected constructor();
4359
4381
  /**
4360
4382
  * The maximum number in degrees the mob can turn per tick.
4361
4383
  * @throws This property can throw when used.
@@ -4381,12 +4403,12 @@ export class EntityMovementGlideComponent extends IEntityComponent {
4381
4403
  * minecraft:movement.glide.
4382
4404
  */
4383
4405
  static readonly componentId = 'minecraft:movement.glide';
4384
- protected constructor();
4385
4406
  }
4386
4407
  /**
4387
4408
  * When added, this move control causes the mob to hover.
4388
4409
  */
4389
4410
  export class EntityMovementHoverComponent extends IEntityComponent {
4411
+ protected constructor();
4390
4412
  /**
4391
4413
  * The maximum number in degrees the mob can turn per tick.
4392
4414
  * @throws This property can throw when used.
@@ -4402,13 +4424,13 @@ export class EntityMovementHoverComponent extends IEntityComponent {
4402
4424
  * minecraft:movement.hover.
4403
4425
  */
4404
4426
  static readonly componentId = 'minecraft:movement.hover';
4405
- protected constructor();
4406
4427
  }
4407
4428
  /**
4408
4429
  * Move control that causes the mob to jump as it moves with a
4409
4430
  * specified delay between jumps.
4410
4431
  */
4411
4432
  export class EntityMovementJumpComponent extends IEntityComponent {
4433
+ protected constructor();
4412
4434
  /**
4413
4435
  * The maximum number in degrees the mob can turn per tick.
4414
4436
  * @throws This property can throw when used.
@@ -4424,13 +4446,13 @@ export class EntityMovementJumpComponent extends IEntityComponent {
4424
4446
  * minecraft:movement.jump.
4425
4447
  */
4426
4448
  static readonly componentId = 'minecraft:movement.jump';
4427
- protected constructor();
4428
4449
  }
4429
4450
  /**
4430
4451
  * When added, this move control causes the mob to hop as it
4431
4452
  * moves.
4432
4453
  */
4433
4454
  export class EntityMovementSkipComponent extends IEntityComponent {
4455
+ protected constructor();
4434
4456
  /**
4435
4457
  * The maximum number in degrees the mob can turn per tick.
4436
4458
  * @throws This property can throw when used.
@@ -4446,13 +4468,13 @@ export class EntityMovementSkipComponent extends IEntityComponent {
4446
4468
  * minecraft:movement.skip.
4447
4469
  */
4448
4470
  static readonly componentId = 'minecraft:movement.skip';
4449
- protected constructor();
4450
4471
  }
4451
4472
  /**
4452
4473
  * When added, this move control causes the mob to sway side to
4453
4474
  * side giving the impression it is swimming.
4454
4475
  */
4455
4476
  export class EntityMovementSwayComponent extends IEntityComponent {
4477
+ protected constructor();
4456
4478
  /**
4457
4479
  * The maximum number in degrees the mob can turn per tick.
4458
4480
  * @throws This property can throw when used.
@@ -4478,13 +4500,13 @@ export class EntityMovementSwayComponent extends IEntityComponent {
4478
4500
  * minecraft:movement.sway.
4479
4501
  */
4480
4502
  static readonly componentId = 'minecraft:movement.sway';
4481
- protected constructor();
4482
4503
  }
4483
4504
  /**
4484
4505
  * Allows this entity to generate paths that include vertical
4485
4506
  * walls (for example, like Minecraft spiders do.)
4486
4507
  */
4487
4508
  export class EntityNavigationClimbComponent extends IEntityComponent {
4509
+ protected constructor();
4488
4510
  /**
4489
4511
  * Tells the pathfinder to avoid blocks that cause damage when
4490
4512
  * finding a path.
@@ -4605,13 +4627,13 @@ export class EntityNavigationClimbComponent extends IEntityComponent {
4605
4627
  * minecraft:navigation.climb.
4606
4628
  */
4607
4629
  static readonly componentId = 'minecraft:navigation.climb';
4608
- protected constructor();
4609
4630
  }
4610
4631
  /**
4611
4632
  * Allows this entity to generate paths by flying around the
4612
4633
  * air like the regular Ghast.
4613
4634
  */
4614
4635
  export class EntityNavigationFloatComponent extends IEntityComponent {
4636
+ protected constructor();
4615
4637
  /**
4616
4638
  * Tells the pathfinder to avoid blocks that cause damage when
4617
4639
  * finding a path.
@@ -4732,13 +4754,13 @@ export class EntityNavigationFloatComponent extends IEntityComponent {
4732
4754
  * minecraft:navigation.float.
4733
4755
  */
4734
4756
  static readonly componentId = 'minecraft:navigation.float';
4735
- protected constructor();
4736
4757
  }
4737
4758
  /**
4738
4759
  * Allows this entity to generate paths in the air (for
4739
4760
  * example, like Minecraft parrots do.)
4740
4761
  */
4741
4762
  export class EntityNavigationFlyComponent extends IEntityComponent {
4763
+ protected constructor();
4742
4764
  /**
4743
4765
  * Tells the pathfinder to avoid blocks that cause damage when
4744
4766
  * finding a path.
@@ -4859,7 +4881,6 @@ export class EntityNavigationFlyComponent extends IEntityComponent {
4859
4881
  * minecraft:navigation.fly.
4860
4882
  */
4861
4883
  static readonly componentId = 'minecraft:navigation.fly';
4862
- protected constructor();
4863
4884
  }
4864
4885
  /**
4865
4886
  * Allows this entity to generate paths by walking, swimming,
@@ -4867,6 +4888,7 @@ export class EntityNavigationFlyComponent extends IEntityComponent {
4867
4888
  * block.
4868
4889
  */
4869
4890
  export class EntityNavigationGenericComponent extends IEntityComponent {
4891
+ protected constructor();
4870
4892
  /**
4871
4893
  * Tells the pathfinder to avoid blocks that cause damage when
4872
4894
  * finding a path.
@@ -4987,7 +5009,6 @@ export class EntityNavigationGenericComponent extends IEntityComponent {
4987
5009
  * minecraft:navigation.generic.
4988
5010
  */
4989
5011
  static readonly componentId = 'minecraft:navigation.generic';
4990
- protected constructor();
4991
5012
  }
4992
5013
  /**
4993
5014
  * Allows this entity to generate paths in the air (for
@@ -4995,6 +5016,7 @@ export class EntityNavigationGenericComponent extends IEntityComponent {
4995
5016
  * falling out of the skies and doing predictive movement.
4996
5017
  */
4997
5018
  export class EntityNavigationHoverComponent extends IEntityComponent {
5019
+ protected constructor();
4998
5020
  /**
4999
5021
  * Tells the pathfinder to avoid blocks that cause damage when
5000
5022
  * finding a path.
@@ -5115,13 +5137,13 @@ export class EntityNavigationHoverComponent extends IEntityComponent {
5115
5137
  * minecraft:navigation.hover.
5116
5138
  */
5117
5139
  static readonly componentId = 'minecraft:navigation.hover';
5118
- protected constructor();
5119
5140
  }
5120
5141
  /**
5121
5142
  * Allows this entity to generate paths by walking around and
5122
5143
  * jumping up and down a block like regular mobs.
5123
5144
  */
5124
5145
  export class EntityNavigationWalkComponent extends IEntityComponent {
5146
+ protected constructor();
5125
5147
  /**
5126
5148
  * Tells the pathfinder to avoid blocks that cause damage when
5127
5149
  * finding a path.
@@ -5242,12 +5264,12 @@ export class EntityNavigationWalkComponent extends IEntityComponent {
5242
5264
  * minecraft:navigation.swim.
5243
5265
  */
5244
5266
  static readonly componentId = 'minecraft:navigation.walk';
5245
- protected constructor();
5246
5267
  }
5247
5268
  /**
5248
5269
  * Sets the distance through which the entity can push through.
5249
5270
  */
5250
5271
  export class EntityPushThroughComponent extends IEntityComponent {
5272
+ protected constructor();
5251
5273
  /**
5252
5274
  * Identifier of this component. Should always be
5253
5275
  * minecraft:push_through.
@@ -5262,13 +5284,13 @@ export class EntityPushThroughComponent extends IEntityComponent {
5262
5284
  * minecraft:push_through.
5263
5285
  */
5264
5286
  static readonly componentId = 'minecraft:push_through';
5265
- protected constructor();
5266
5287
  }
5267
5288
  /**
5268
5289
  * When added, this component adds the capability that an
5269
5290
  * entity can be ridden by another entity.
5270
5291
  */
5271
5292
  export class EntityRideableComponent extends IEntityComponent {
5293
+ protected constructor();
5272
5294
  /**
5273
5295
  * Zero-based index of the seat that can used to control this
5274
5296
  * entity.
@@ -5351,12 +5373,12 @@ export class EntityRideableComponent extends IEntityComponent {
5351
5373
  * @throws This function can throw errors.
5352
5374
  */
5353
5375
  ejectRiders(): void;
5354
- protected constructor();
5355
5376
  }
5356
5377
  /**
5357
5378
  * Sets the entity's visual size.
5358
5379
  */
5359
5380
  export class EntityScaleComponent extends IEntityComponent {
5381
+ protected constructor();
5360
5382
  /**
5361
5383
  * Identifier of this component. Should always be
5362
5384
  * minecraft:scale.
@@ -5373,13 +5395,13 @@ export class EntityScaleComponent extends IEntityComponent {
5373
5395
  * minecraft:scale.
5374
5396
  */
5375
5397
  static readonly componentId = 'minecraft:scale';
5376
- protected constructor();
5377
5398
  }
5378
5399
  /**
5379
5400
  * Skin Id value. Can be used to differentiate skins, such as
5380
5401
  * base skins for villagers.
5381
5402
  */
5382
5403
  export class EntitySkinIdComponent extends IEntityComponent {
5404
+ protected constructor();
5383
5405
  /**
5384
5406
  * Identifier of this component. Should always be
5385
5407
  * minecraft:skin_id.
@@ -5395,12 +5417,12 @@ export class EntitySkinIdComponent extends IEntityComponent {
5395
5417
  * minecraft:skin_id.
5396
5418
  */
5397
5419
  static readonly componentId = 'minecraft:skin_id';
5398
- protected constructor();
5399
5420
  }
5400
5421
  /**
5401
5422
  * Defines the entity's strength to carry items.
5402
5423
  */
5403
5424
  export class EntityStrengthComponent extends IEntityComponent {
5425
+ protected constructor();
5404
5426
  /**
5405
5427
  * Maximum strength of this entity, as defined in the entity
5406
5428
  * type definition.
@@ -5423,12 +5445,12 @@ export class EntityStrengthComponent extends IEntityComponent {
5423
5445
  * minecraft:strength.
5424
5446
  */
5425
5447
  static readonly componentId = 'minecraft:strength';
5426
- protected constructor();
5427
5448
  }
5428
5449
  /**
5429
5450
  * Defines the rules for a mob to be tamed by the player.
5430
5451
  */
5431
5452
  export class EntityTameableComponent extends IEntityComponent {
5453
+ protected constructor();
5432
5454
  /**
5433
5455
  * The chance of taming the entity with each item use between
5434
5456
  * 0.0 and 1.0, where 1.0 is 100%
@@ -5463,23 +5485,22 @@ export class EntityTameableComponent extends IEntityComponent {
5463
5485
  * @throws This function can throw errors.
5464
5486
  */
5465
5487
  tame(): boolean;
5466
- protected constructor();
5467
5488
  }
5468
5489
  /**
5469
5490
  * Represents information about a type of entity.
5470
5491
  */
5471
5492
  export class EntityType {
5493
+ protected constructor();
5472
5494
  /**
5473
5495
  * Identifier of this entity type - for example,
5474
5496
  * 'minecraft:skeleton'.
5475
5497
  */
5476
5498
  readonly id: string;
5477
- protected constructor();
5478
5499
  }
5479
5500
  export class EntityTypeIterator implements Iterable<EntityType> {
5501
+ protected constructor();
5480
5502
  [Symbol.iterator](): Iterator<EntityType>;
5481
5503
  next(): IteratorResult<EntityType>;
5482
- protected constructor();
5483
5504
  }
5484
5505
  /**
5485
5506
  * Used for accessing all entity types currently available for
@@ -5487,6 +5508,7 @@ export class EntityTypeIterator implements Iterable<EntityType> {
5487
5508
  */
5488
5509
  // tslint:disable-next-line:no-unnecessary-class
5489
5510
  export class EntityTypes {
5511
+ protected constructor();
5490
5512
  /**
5491
5513
  * @remarks
5492
5514
  * Retrieves an entity type using a string-based identifier.
@@ -5498,13 +5520,13 @@ export class EntityTypes {
5498
5520
  * Retrieves an iterator of all entity types within this world.
5499
5521
  */
5500
5522
  static getAll(): EntityTypeIterator;
5501
- protected constructor();
5502
5523
  }
5503
5524
  /**
5504
5525
  * Defines the general movement speed underwater of this
5505
5526
  * entity.
5506
5527
  */
5507
5528
  export class EntityUnderwaterMovementComponent extends IEntityComponent {
5529
+ protected constructor();
5508
5530
  /**
5509
5531
  * Read-only. Returns the current value of movement speed
5510
5532
  * underwater for the entity.
@@ -5558,13 +5580,13 @@ export class EntityUnderwaterMovementComponent extends IEntityComponent {
5558
5580
  * @throws This function can throw errors.
5559
5581
  */
5560
5582
  setCurrent(value: number): void;
5561
- protected constructor();
5562
5583
  }
5563
5584
  /**
5564
5585
  * Used to differentiate the component group of a variant of an
5565
5586
  * entity from others. (e.g. ocelot, villager).
5566
5587
  */
5567
5588
  export class EntityVariantComponent extends IEntityComponent {
5589
+ protected constructor();
5568
5590
  /**
5569
5591
  * Identifier of this component. Should always be
5570
5592
  * minecraft:variant.
@@ -5581,13 +5603,13 @@ export class EntityVariantComponent extends IEntityComponent {
5581
5603
  * minecraft:variant.
5582
5604
  */
5583
5605
  static readonly componentId = 'minecraft:variant';
5584
- protected constructor();
5585
5606
  }
5586
5607
  /**
5587
5608
  * When added, this component signifies that this entity wants
5588
5609
  * to become a jockey.
5589
5610
  */
5590
5611
  export class EntityWantsJockeyComponent extends IEntityComponent {
5612
+ protected constructor();
5591
5613
  /**
5592
5614
  * Identifier of this component. Should always be
5593
5615
  * minecraft:wants_jockey.
@@ -5598,13 +5620,13 @@ export class EntityWantsJockeyComponent extends IEntityComponent {
5598
5620
  * minecraft:wants_jockey.
5599
5621
  */
5600
5622
  static readonly componentId = 'minecraft:wants_jockey';
5601
- protected constructor();
5602
5623
  }
5603
5624
  /**
5604
5625
  * Contains a set of events that are available across the scope
5605
5626
  * of the World.
5606
5627
  */
5607
5628
  export class Events {
5629
+ protected constructor();
5608
5630
  /**
5609
5631
  * This event fires before a chat message is broadcast or
5610
5632
  * delivered. The event can be canceled, and the message can
@@ -5742,6 +5764,10 @@ export class Events {
5742
5764
  * This event fires when a lever activates or is deactivated.
5743
5765
  */
5744
5766
  readonly leverActivate: LeverActionEventSignal;
5767
+ /**
5768
+ * This event is an internal implementation detail, and is
5769
+ * otherwise not currently functional.
5770
+ */
5745
5771
  readonly messageReceive: ServerMessageSignal;
5746
5772
  /**
5747
5773
  * This event fires when a piston expands or retracts.
@@ -5774,13 +5800,13 @@ export class Events {
5774
5800
  * within the scope of a world Initialize event.
5775
5801
  */
5776
5802
  readonly worldInitialize: WorldInitializeEventSignal;
5777
- protected constructor();
5778
5803
  }
5779
5804
  /**
5780
5805
  * Contains information regarding an explosion that has
5781
5806
  * happened.
5782
5807
  */
5783
5808
  export class ExplosionEvent {
5809
+ protected constructor();
5784
5810
  /**
5785
5811
  * Dimension where the explosion has occurred.
5786
5812
  */
@@ -5793,13 +5819,13 @@ export class ExplosionEvent {
5793
5819
  * Optional source of the explosion.
5794
5820
  */
5795
5821
  readonly source: Entity;
5796
- protected constructor();
5797
5822
  }
5798
5823
  /**
5799
5824
  * Manages callbacks that are connected to when an explosion
5800
5825
  * occurs.
5801
5826
  */
5802
5827
  export class ExplosionEventSignal {
5828
+ protected constructor();
5803
5829
  /**
5804
5830
  * @remarks
5805
5831
  * Adds a callback that will be called when an explosion
@@ -5815,13 +5841,13 @@ export class ExplosionEventSignal {
5815
5841
  * @throws This function can throw errors.
5816
5842
  */
5817
5843
  unsubscribe(callback: (arg: ExplosionEvent) => void): void;
5818
- protected constructor();
5819
5844
  }
5820
5845
  /**
5821
5846
  * As part of the Healable component, represents a specific
5822
5847
  * item that can be fed to an entity to cause health effects.
5823
5848
  */
5824
5849
  export class FeedItem {
5850
+ protected constructor();
5825
5851
  /**
5826
5852
  * As part of the Healable component, an optional collection of
5827
5853
  * side effects that can occur from being fed an item.
@@ -5839,13 +5865,13 @@ export class FeedItem {
5839
5865
  * include 'wheat' or 'golden_apple'.
5840
5866
  */
5841
5867
  readonly item: string;
5842
- protected constructor();
5843
5868
  }
5844
5869
  /**
5845
5870
  * Represents an effect that is applied as a result of a food
5846
5871
  * item being fed to an entity.
5847
5872
  */
5848
5873
  export class FeedItemEffect {
5874
+ protected constructor();
5849
5875
  /**
5850
5876
  * Gets an amplifier that may have been applied to this effect.
5851
5877
  * Valid values are integers starting at 0 and up - but usually
@@ -5866,7 +5892,6 @@ export class FeedItemEffect {
5866
5892
  * include 'fire_resistance' or 'regeneration'.
5867
5893
  */
5868
5894
  readonly name: string;
5869
- protected constructor();
5870
5895
  }
5871
5896
  /**
5872
5897
  * Represents a set of filters for when an event should occur.
@@ -5880,6 +5905,7 @@ export class FilterGroup {
5880
5905
  */
5881
5906
  // tslint:disable-next-line:no-unnecessary-class
5882
5907
  export class FluidContainer {
5908
+ protected constructor();
5883
5909
  /**
5884
5910
  * Constant that represents the maximum fill level of a fluid
5885
5911
  * container.
@@ -5890,32 +5916,32 @@ export class FluidContainer {
5890
5916
  * container.
5891
5917
  */
5892
5918
  static readonly minFillLevel = 0;
5893
- protected constructor();
5894
5919
  }
5895
5920
  /**
5896
5921
  * Contains an interface for defining the state of a property
5897
5922
  * for a {@link BlockPermutation}.
5898
5923
  */
5899
5924
  export class IBlockProperty {
5925
+ protected constructor();
5900
5926
  /**
5901
5927
  * The name of this property.
5902
5928
  */
5903
5929
  readonly name: string;
5904
- protected constructor();
5905
5930
  }
5906
5931
  /**
5907
5932
  * Base interface that defines components associated with an
5908
5933
  * entity.
5909
5934
  */
5910
5935
  export class IEntityComponent {
5911
- readonly typeId: string;
5912
5936
  protected constructor();
5937
+ readonly typeId: string;
5913
5938
  }
5914
5939
  /**
5915
5940
  * Contains the state of an integer-based property for a {@link
5916
5941
  * BlockPermutation}.
5917
5942
  */
5918
5943
  export class IntBlockProperty extends IBlockProperty {
5944
+ protected constructor();
5919
5945
  /**
5920
5946
  * The name of this property.
5921
5947
  */
@@ -5932,7 +5958,6 @@ export class IntBlockProperty extends IBlockProperty {
5932
5958
  * IntBlockProperty.validValues} to check allowed values.
5933
5959
  */
5934
5960
  value: number;
5935
- protected constructor();
5936
5961
  }
5937
5962
  /**
5938
5963
  * Represents a container that can hold stacks of items. Used
@@ -5940,6 +5965,7 @@ export class IntBlockProperty extends IBlockProperty {
5940
5965
  * more.
5941
5966
  */
5942
5967
  export class InventoryComponentContainer extends Container {
5968
+ protected constructor();
5943
5969
  /**
5944
5970
  * The number of empty slots in the container.
5945
5971
  * @throws This property can throw when used.
@@ -6025,13 +6051,13 @@ export class InventoryComponentContainer extends Container {
6025
6051
  * ```
6026
6052
  */
6027
6053
  transferItem(fromSlot: number, toSlot: number, toContainer: Container): boolean;
6028
- protected constructor();
6029
6054
  }
6030
6055
  /**
6031
6056
  * Contains information related to a chargeable item completing
6032
6057
  * being charged.
6033
6058
  */
6034
6059
  export class ItemCompleteChargeEvent {
6060
+ protected constructor();
6035
6061
  /**
6036
6062
  * Returns the item stack that has completed charging.
6037
6063
  */
@@ -6045,13 +6071,13 @@ export class ItemCompleteChargeEvent {
6045
6071
  * before the charge completes its cycle.
6046
6072
  */
6047
6073
  readonly useDuration: number;
6048
- protected constructor();
6049
6074
  }
6050
6075
  /**
6051
6076
  * Manages callbacks that are connected to the completion of
6052
6077
  * charging for a chargeable item.
6053
6078
  */
6054
6079
  export class ItemCompleteChargeEventSignal {
6080
+ protected constructor();
6055
6081
  /**
6056
6082
  * @remarks
6057
6083
  * Adds a callback that will be called when a chargeable item
@@ -6067,13 +6093,13 @@ export class ItemCompleteChargeEventSignal {
6067
6093
  * @throws This function can throw errors.
6068
6094
  */
6069
6095
  unsubscribe(callback: (arg: ItemCompleteChargeEvent) => void): void;
6070
- protected constructor();
6071
6096
  }
6072
6097
  /**
6073
6098
  * When present on an item, this item has a cooldown effect
6074
6099
  * when used by entities.
6075
6100
  */
6076
6101
  export class ItemCooldownComponent {
6102
+ protected constructor();
6077
6103
  /**
6078
6104
  * Represents the cooldown category that this item is
6079
6105
  * associated with.
@@ -6086,6 +6112,10 @@ export class ItemCooldownComponent {
6086
6112
  * @throws This property can throw when used.
6087
6113
  */
6088
6114
  readonly cooldownTicks: number;
6115
+ /**
6116
+ * Identifier of this component. Should always be
6117
+ * 'minecraft:cooldown'.
6118
+ */
6089
6119
  static readonly componentId = 'minecraft:cooldown';
6090
6120
  /**
6091
6121
  * @remarks
@@ -6094,13 +6124,13 @@ export class ItemCooldownComponent {
6094
6124
  * @throws This function can throw errors.
6095
6125
  */
6096
6126
  startCooldown(player: Player): void;
6097
- protected constructor();
6098
6127
  }
6099
6128
  /**
6100
6129
  * Manages callbacks that are connected to an item's definition
6101
6130
  * and components changing.
6102
6131
  */
6103
6132
  export class ItemDefinitionEventSignal {
6133
+ protected constructor();
6104
6134
  /**
6105
6135
  * @remarks
6106
6136
  * Adds a callback that will be called when an item's
@@ -6116,13 +6146,13 @@ export class ItemDefinitionEventSignal {
6116
6146
  * @throws This function can throw errors.
6117
6147
  */
6118
6148
  unsubscribe(callback: (arg: ItemDefinitionTriggeredEvent) => void): void;
6119
- protected constructor();
6120
6149
  }
6121
6150
  /**
6122
6151
  * Contains information related to a custom item having a data
6123
6152
  * definition change being triggered.
6124
6153
  */
6125
6154
  export class ItemDefinitionTriggeredEvent {
6155
+ protected constructor();
6126
6156
  /**
6127
6157
  * Name of the data-driven item event that is triggering this
6128
6158
  * change.
@@ -6136,7 +6166,6 @@ export class ItemDefinitionTriggeredEvent {
6136
6166
  * Returns the source entity that triggered this item event.
6137
6167
  */
6138
6168
  readonly source: Entity;
6139
- protected constructor();
6140
6169
  }
6141
6170
  /**
6142
6171
  * When present on an item, this item can take damage in the
@@ -6144,6 +6173,7 @@ export class ItemDefinitionTriggeredEvent {
6144
6173
  * to data-driven items.
6145
6174
  */
6146
6175
  export class ItemDurabilityComponent {
6176
+ protected constructor();
6147
6177
  /**
6148
6178
  * Returns the current damage level of this particular item.
6149
6179
  */
@@ -6160,6 +6190,10 @@ export class ItemDurabilityComponent {
6160
6190
  * @throws This property can throw when used.
6161
6191
  */
6162
6192
  readonly maxDurability: number;
6193
+ /**
6194
+ * Identifier of this component. Should always be
6195
+ * 'minecraft:durability'.
6196
+ */
6163
6197
  static readonly componentId = 'minecraft:durability';
6164
6198
  /**
6165
6199
  * @remarks
@@ -6172,7 +6206,6 @@ export class ItemDurabilityComponent {
6172
6206
  * @throws This function can throw errors.
6173
6207
  */
6174
6208
  getDamageChance(unbreaking?: number): number;
6175
- protected constructor();
6176
6209
  }
6177
6210
  /**
6178
6211
  * When present on an item, this item has applied enchantment
@@ -6180,11 +6213,15 @@ export class ItemDurabilityComponent {
6180
6213
  * data-driven items.
6181
6214
  */
6182
6215
  export class ItemEnchantsComponent {
6216
+ protected constructor();
6183
6217
  /**
6184
6218
  * Returns a collection of the enchantments applied to this
6185
6219
  * item stack.
6186
6220
  */
6187
6221
  enchantments: EnchantmentList;
6222
+ /**
6223
+ * Identifier of this component.
6224
+ */
6188
6225
  static readonly componentId = 'minecraft:enchantments';
6189
6226
  /**
6190
6227
  * @remarks
@@ -6192,7 +6229,6 @@ export class ItemEnchantsComponent {
6192
6229
  * @throws This function can throw errors.
6193
6230
  */
6194
6231
  removeAllEnchantments(): void;
6195
- protected constructor();
6196
6232
  }
6197
6233
  /**
6198
6234
  * When present on an item, this item is consumable by
@@ -6200,6 +6236,7 @@ export class ItemEnchantsComponent {
6200
6236
  * data-driven items.
6201
6237
  */
6202
6238
  export class ItemFoodComponent {
6239
+ protected constructor();
6203
6240
  /**
6204
6241
  * If true, the player can always eat this item (even when not
6205
6242
  * hungry).
@@ -6225,8 +6262,11 @@ export class ItemFoodComponent {
6225
6262
  * @throws This property can throw when used.
6226
6263
  */
6227
6264
  readonly usingConvertsTo: string;
6265
+ /**
6266
+ * Identifier of this component. Should always be
6267
+ * 'minecraft:food'.
6268
+ */
6228
6269
  static readonly componentId = 'minecraft:food';
6229
- protected constructor();
6230
6270
  }
6231
6271
  /**
6232
6272
  * Contains information related to a chargeable item when the
@@ -6234,6 +6274,7 @@ export class ItemFoodComponent {
6234
6274
  * action.
6235
6275
  */
6236
6276
  export class ItemReleaseChargeEvent {
6277
+ protected constructor();
6237
6278
  /**
6238
6279
  * Returns the item stack that triggered this item event.
6239
6280
  */
@@ -6247,13 +6288,13 @@ export class ItemReleaseChargeEvent {
6247
6288
  * before the charge completes its cycle.
6248
6289
  */
6249
6290
  readonly useDuration: number;
6250
- protected constructor();
6251
6291
  }
6252
6292
  /**
6253
6293
  * Manages callbacks that are connected to the releasing of
6254
6294
  * charging for a chargeable item.
6255
6295
  */
6256
6296
  export class ItemReleaseChargeEventSignal {
6297
+ protected constructor();
6257
6298
  /**
6258
6299
  * @remarks
6259
6300
  * Adds a callback that will be called when a chargeable item
@@ -6269,7 +6310,6 @@ export class ItemReleaseChargeEventSignal {
6269
6310
  * @throws This function can throw errors.
6270
6311
  */
6271
6312
  unsubscribe(callback: (arg: ItemReleaseChargeEvent) => void): void;
6272
- protected constructor();
6273
6313
  }
6274
6314
  /**
6275
6315
  * Represents a collection of all of the available item types
@@ -6277,6 +6317,7 @@ export class ItemReleaseChargeEventSignal {
6277
6317
  */
6278
6318
  // tslint:disable-next-line:no-unnecessary-class
6279
6319
  export class Items {
6320
+ protected constructor();
6280
6321
  /**
6281
6322
  * @remarks
6282
6323
  * Returns an item type given an item type identifier.
@@ -6284,7 +6325,6 @@ export class Items {
6284
6325
  * Type of the item to return.
6285
6326
  */
6286
6327
  static get(itemId: string): ItemType;
6287
- protected constructor();
6288
6328
  }
6289
6329
  /**
6290
6330
  * Defines a collection of items.
@@ -6303,6 +6343,11 @@ export class ItemStack {
6303
6343
  * Given name of this stack of items.
6304
6344
  */
6305
6345
  nameTag?: string;
6346
+ /**
6347
+ * Identifier of the type of items for the stack. If a
6348
+ * namespace is not specified, 'minecraft:' is assumed.
6349
+ * Examples include 'wheat' or 'apple'.
6350
+ */
6306
6351
  readonly typeId: string;
6307
6352
  /**
6308
6353
  * @remarks
@@ -6376,6 +6421,7 @@ export class ItemStack {
6376
6421
  * to be charged.
6377
6422
  */
6378
6423
  export class ItemStartChargeEvent {
6424
+ protected constructor();
6379
6425
  /**
6380
6426
  * The impacted item stack that is starting to be charged.
6381
6427
  */
@@ -6389,13 +6435,13 @@ export class ItemStartChargeEvent {
6389
6435
  * before the charge completes its cycle.
6390
6436
  */
6391
6437
  readonly useDuration: number;
6392
- protected constructor();
6393
6438
  }
6394
6439
  /**
6395
6440
  * Manages callbacks that are connected to the start of
6396
6441
  * charging for a chargeable item.
6397
6442
  */
6398
6443
  export class ItemStartChargeEventSignal {
6444
+ protected constructor();
6399
6445
  /**
6400
6446
  * @remarks
6401
6447
  * Adds a callback that will be called when a chargeable item
@@ -6411,13 +6457,13 @@ export class ItemStartChargeEventSignal {
6411
6457
  * @throws This function can throw errors.
6412
6458
  */
6413
6459
  unsubscribe(callback: (arg: ItemStartChargeEvent) => void): void;
6414
- protected constructor();
6415
6460
  }
6416
6461
  /**
6417
6462
  * Contains information related to an item being used on a
6418
6463
  * block.
6419
6464
  */
6420
6465
  export class ItemStartUseOnEvent {
6466
+ protected constructor();
6421
6467
  /**
6422
6468
  * The face of the block that an item is being used on.
6423
6469
  */
@@ -6439,13 +6485,13 @@ export class ItemStartUseOnEvent {
6439
6485
  * Returns the source entity that triggered this item event.
6440
6486
  */
6441
6487
  readonly source: Entity;
6442
- protected constructor();
6443
6488
  }
6444
6489
  /**
6445
6490
  * Manages callbacks that are connected to an item starting
6446
6491
  * being used on a block event.
6447
6492
  */
6448
6493
  export class ItemStartUseOnEventSignal {
6494
+ protected constructor();
6449
6495
  /**
6450
6496
  * @remarks
6451
6497
  * Adds a callback that will be called when an item is used on
@@ -6461,7 +6507,6 @@ export class ItemStartUseOnEventSignal {
6461
6507
  * @throws This function can throw errors.
6462
6508
  */
6463
6509
  unsubscribe(callback: (arg: ItemStartUseOnEvent) => void): void;
6464
- protected constructor();
6465
6510
  }
6466
6511
  /**
6467
6512
  * Contains information related to a chargeable item has
@@ -6469,6 +6514,7 @@ export class ItemStartUseOnEventSignal {
6469
6514
  * the use action with the item.
6470
6515
  */
6471
6516
  export class ItemStopChargeEvent {
6517
+ protected constructor();
6472
6518
  /**
6473
6519
  * The impacted item stack that is stopping being charged.
6474
6520
  */
@@ -6482,7 +6528,6 @@ export class ItemStopChargeEvent {
6482
6528
  * before the charge completes its cycle.
6483
6529
  */
6484
6530
  readonly useDuration: number;
6485
- protected constructor();
6486
6531
  }
6487
6532
  /**
6488
6533
  * Manages callbacks that are connected to the stopping of
@@ -6490,6 +6535,7 @@ export class ItemStopChargeEvent {
6490
6535
  * minecraft:chargeable component.
6491
6536
  */
6492
6537
  export class ItemStopChargeEventSignal {
6538
+ protected constructor();
6493
6539
  /**
6494
6540
  * @remarks
6495
6541
  * Adds a callback that will be called when a chargeable item
@@ -6505,13 +6551,13 @@ export class ItemStopChargeEventSignal {
6505
6551
  * @throws This function can throw errors.
6506
6552
  */
6507
6553
  unsubscribe(callback: (arg: ItemStopChargeEvent) => void): void;
6508
- protected constructor();
6509
6554
  }
6510
6555
  /**
6511
6556
  * Contains information related to an item that has stopped
6512
6557
  * being used on a block.
6513
6558
  */
6514
6559
  export class ItemStopUseOnEvent {
6560
+ protected constructor();
6515
6561
  /**
6516
6562
  * Location of the block being impacted.
6517
6563
  */
@@ -6524,13 +6570,13 @@ export class ItemStopUseOnEvent {
6524
6570
  * Returns the source entity that triggered this item event.
6525
6571
  */
6526
6572
  readonly source: Entity;
6527
- protected constructor();
6528
6573
  }
6529
6574
  /**
6530
6575
  * Manages callbacks that are connected to an item stops used
6531
6576
  * on a block event.
6532
6577
  */
6533
6578
  export class ItemStopUseOnEventSignal {
6579
+ protected constructor();
6534
6580
  /**
6535
6581
  * @remarks
6536
6582
  * Adds a callback that will be called when an item stops being
@@ -6546,34 +6592,34 @@ export class ItemStopUseOnEventSignal {
6546
6592
  * @throws This function can throw errors.
6547
6593
  */
6548
6594
  unsubscribe(callback: (arg: ItemStopUseOnEvent) => void): void;
6549
- protected constructor();
6550
6595
  }
6551
6596
  /**
6552
6597
  * Represents the type of an item - for example, Wool.
6553
6598
  */
6554
6599
  export class ItemType {
6600
+ protected constructor();
6555
6601
  /**
6556
6602
  * Returns the identifier of the item type - for example,
6557
6603
  * 'minecraft:apple'.
6558
6604
  */
6559
6605
  readonly id: string;
6560
- protected constructor();
6561
6606
  }
6562
6607
  export class ItemTypeIterator implements Iterable<ItemType> {
6608
+ protected constructor();
6563
6609
  [Symbol.iterator](): Iterator<ItemType>;
6564
6610
  next(): IteratorResult<ItemType>;
6565
- protected constructor();
6566
6611
  }
6567
6612
  // tslint:disable-next-line:no-unnecessary-class
6568
6613
  export class ItemTypes {
6614
+ protected constructor();
6569
6615
  static get(itemId: string): ItemType;
6570
6616
  static getAll(): ItemTypeIterator;
6571
- protected constructor();
6572
6617
  }
6573
6618
  /**
6574
6619
  * Contains information related to an item being used.
6575
6620
  */
6576
6621
  export class ItemUseEvent {
6622
+ protected constructor();
6577
6623
  /**
6578
6624
  * The impacted item stack that is being used.
6579
6625
  */
@@ -6582,12 +6628,12 @@ export class ItemUseEvent {
6582
6628
  * Returns the source entity that triggered this item event.
6583
6629
  */
6584
6630
  readonly source: Entity;
6585
- protected constructor();
6586
6631
  }
6587
6632
  /**
6588
6633
  * Manages callbacks that are connected to an item use event.
6589
6634
  */
6590
6635
  export class ItemUseEventSignal {
6636
+ protected constructor();
6591
6637
  /**
6592
6638
  * @remarks
6593
6639
  * Adds a callback that will be called when an item is used.
@@ -6601,13 +6647,13 @@ export class ItemUseEventSignal {
6601
6647
  * @throws This function can throw errors.
6602
6648
  */
6603
6649
  unsubscribe(callback: (arg: ItemUseEvent) => void): void;
6604
- protected constructor();
6605
6650
  }
6606
6651
  /**
6607
6652
  * Contains information related to an item being used on a
6608
6653
  * block.
6609
6654
  */
6610
6655
  export class ItemUseOnEvent {
6656
+ protected constructor();
6611
6657
  /**
6612
6658
  * The face of the block that an item is being used on.
6613
6659
  */
@@ -6634,13 +6680,13 @@ export class ItemUseOnEvent {
6634
6680
  * Returns the source entity that triggered this item event.
6635
6681
  */
6636
6682
  readonly source: Entity;
6637
- protected constructor();
6638
6683
  }
6639
6684
  /**
6640
6685
  * Manages callbacks that are connected to an item being used
6641
6686
  * on a block event.
6642
6687
  */
6643
6688
  export class ItemUseOnEventSignal {
6689
+ protected constructor();
6644
6690
  /**
6645
6691
  * @remarks
6646
6692
  * Adds a callback that will be called when an item is used on
@@ -6656,13 +6702,13 @@ export class ItemUseOnEventSignal {
6656
6702
  * @throws This function can throw errors.
6657
6703
  */
6658
6704
  unsubscribe(callback: (arg: ItemUseOnEvent) => void): void;
6659
- protected constructor();
6660
6705
  }
6661
6706
  /**
6662
6707
  * Contains information related to changes to a lever
6663
6708
  * activating or deactivating.
6664
6709
  */
6665
6710
  export class LeverActionEvent extends BlockEvent {
6711
+ protected constructor();
6666
6712
  /**
6667
6713
  * Block impacted by this event.
6668
6714
  */
@@ -6681,13 +6727,13 @@ export class LeverActionEvent extends BlockEvent {
6681
6727
  * Optional player that triggered the lever activation.
6682
6728
  */
6683
6729
  readonly player: Player;
6684
- protected constructor();
6685
6730
  }
6686
6731
  /**
6687
6732
  * Manages callbacks that are connected to lever moves
6688
6733
  * (activates or deactivates).
6689
6734
  */
6690
6735
  export class LeverActionEventSignal {
6736
+ protected constructor();
6691
6737
  /**
6692
6738
  * @remarks
6693
6739
  * Adds a callback that will be called when a lever is moved
@@ -6703,7 +6749,6 @@ export class LeverActionEventSignal {
6703
6749
  * @throws This function can throw errors.
6704
6750
  */
6705
6751
  unsubscribe(callback: (arg: LeverActionEvent) => void): void;
6706
- protected constructor();
6707
6752
  }
6708
6753
  /**
6709
6754
  * Contains a location description that is useful for entities
@@ -6760,11 +6805,11 @@ export class Location {
6760
6805
  isNear(other: Location, epsilon: number): boolean;
6761
6806
  }
6762
6807
  export class MessageReceiveEvent {
6808
+ protected constructor();
6763
6809
  readonly id: string;
6764
6810
  readonly message: string;
6765
6811
  readonly player: Player;
6766
6812
  readonly sourceType: MessageSourceType;
6767
- protected constructor();
6768
6813
  }
6769
6814
  /**
6770
6815
  * Contains definitions of standard Minecraft and Minecraft
@@ -6772,6 +6817,7 @@ export class MessageReceiveEvent {
6772
6817
  */
6773
6818
  // tslint:disable-next-line:no-unnecessary-class
6774
6819
  export class MinecraftBlockTypes {
6820
+ protected constructor();
6775
6821
  /**
6776
6822
  * Represents an acacia button within Minecraft.
6777
6823
  */
@@ -9842,13 +9888,13 @@ export class MinecraftBlockTypes {
9842
9888
  * Returns an array of all block types within Minecraft.
9843
9889
  */
9844
9890
  static getAllBlockTypes(): BlockType[];
9845
- protected constructor();
9846
9891
  }
9847
9892
  /**
9848
9893
  * A collection of default Minecraft dimension types.
9849
9894
  */
9850
9895
  // tslint:disable-next-line:no-unnecessary-class
9851
9896
  export class MinecraftDimensionTypes {
9897
+ protected constructor();
9852
9898
  /**
9853
9899
  * The Nether is a collection of biomes separate from the
9854
9900
  * Overworld, including Soul Sand Valleys and Crimson forests.
@@ -9876,10 +9922,10 @@ export class MinecraftDimensionTypes {
9876
9922
  * the End.
9877
9923
  */
9878
9924
  static readonly theEnd = 'minecraft:the_end';
9879
- protected constructor();
9880
9925
  }
9881
9926
  // tslint:disable-next-line:no-unnecessary-class
9882
9927
  export class MinecraftEffectTypes {
9928
+ protected constructor();
9883
9929
  static readonly absorption: EffectType;
9884
9930
  static readonly badOmen: EffectType;
9885
9931
  static readonly blindness: EffectType;
@@ -9911,10 +9957,10 @@ export class MinecraftEffectTypes {
9911
9957
  static readonly waterBreathing: EffectType;
9912
9958
  static readonly weakness: EffectType;
9913
9959
  static readonly wither: EffectType;
9914
- protected constructor();
9915
9960
  }
9916
9961
  // tslint:disable-next-line:no-unnecessary-class
9917
9962
  export class MinecraftEnchantmentTypes {
9963
+ protected constructor();
9918
9964
  static readonly aquaAffinity: EnchantmentType;
9919
9965
  static readonly baneOfArthropods: EnchantmentType;
9920
9966
  static readonly binding: EnchantmentType;
@@ -9953,10 +9999,10 @@ export class MinecraftEnchantmentTypes {
9953
9999
  static readonly thorns: EnchantmentType;
9954
10000
  static readonly unbreaking: EnchantmentType;
9955
10001
  static readonly vanishing: EnchantmentType;
9956
- protected constructor();
9957
10002
  }
9958
10003
  // tslint:disable-next-line:no-unnecessary-class
9959
10004
  export class MinecraftEntityTypes {
10005
+ protected constructor();
9960
10006
  static readonly agent: EntityType;
9961
10007
  static readonly allay: EntityType;
9962
10008
  static readonly areaEffectCloud: EntityType;
@@ -10069,7 +10115,6 @@ export class MinecraftEntityTypes {
10069
10115
  static readonly zombiePigman: EntityType;
10070
10116
  static readonly zombieVillager: EntityType;
10071
10117
  static readonly zombieVillagerV2: EntityType;
10072
- protected constructor();
10073
10118
  }
10074
10119
  /**
10075
10120
  * Contains definitions of standard Minecraft and Minecraft
@@ -10077,6 +10122,7 @@ export class MinecraftEntityTypes {
10077
10122
  */
10078
10123
  // tslint:disable-next-line:no-unnecessary-class
10079
10124
  export class MinecraftItemTypes {
10125
+ protected constructor();
10080
10126
  static readonly acaciaBoat: ItemType;
10081
10127
  /**
10082
10128
  * Represents an item that can place an acacia button within
@@ -12708,7 +12754,6 @@ export class MinecraftItemTypes {
12708
12754
  static readonly zombiePigmanSpawnEgg: ItemType;
12709
12755
  static readonly zombieSpawnEgg: ItemType;
12710
12756
  static readonly zombieVillagerSpawnEgg: ItemType;
12711
- protected constructor();
12712
12757
  }
12713
12758
  /**
12714
12759
  * Contains a set of additional variable values for further
@@ -12755,6 +12800,7 @@ export class MolangVariableMap {
12755
12800
  * navigation.
12756
12801
  */
12757
12802
  export class NavigationResult {
12803
+ protected constructor();
12758
12804
  /**
12759
12805
  * Whether the navigation result contains a full path,
12760
12806
  * including to the requested destination.
@@ -12764,13 +12810,13 @@ export class NavigationResult {
12764
12810
  * A set of block locations that comprise the navigation route.
12765
12811
  */
12766
12812
  readonly path: BlockLocation[];
12767
- protected constructor();
12768
12813
  }
12769
12814
  /**
12770
12815
  * Represents a min/max structure for expressing a potential
12771
12816
  * range of numbers.
12772
12817
  */
12773
12818
  export class NumberRange {
12819
+ protected constructor();
12774
12820
  /**
12775
12821
  * Maximum value within a range.
12776
12822
  */
@@ -12785,13 +12831,13 @@ export class NumberRange {
12785
12831
  * the range.
12786
12832
  */
12787
12833
  next(): number;
12788
- protected constructor();
12789
12834
  }
12790
12835
  /**
12791
12836
  * Contains information related to changes to a piston
12792
12837
  * expanding or retracting.
12793
12838
  */
12794
12839
  export class PistonActivateEvent extends BlockEvent {
12840
+ protected constructor();
12795
12841
  /**
12796
12842
  * Block impacted by this event.
12797
12843
  */
@@ -12809,12 +12855,12 @@ export class PistonActivateEvent extends BlockEvent {
12809
12855
  * Contains additional properties and details of the piston.
12810
12856
  */
12811
12857
  readonly piston: BlockPistonComponent;
12812
- protected constructor();
12813
12858
  }
12814
12859
  /**
12815
12860
  * Manages callbacks that are connected to piston activations.
12816
12861
  */
12817
12862
  export class PistonActivateEventSignal {
12863
+ protected constructor();
12818
12864
  /**
12819
12865
  * @remarks
12820
12866
  * Adds a callback that will be called when a piston expands or
@@ -12848,12 +12894,12 @@ export class PistonActivateEventSignal {
12848
12894
  * @throws This function can throw errors.
12849
12895
  */
12850
12896
  unsubscribe(callback: (arg: PistonActivateEvent) => void): void;
12851
- protected constructor();
12852
12897
  }
12853
12898
  /**
12854
12899
  * Represents a player within the world.
12855
12900
  */
12856
12901
  export class Player extends Entity {
12902
+ protected constructor();
12857
12903
  /**
12858
12904
  * Dimension that the entity is currently within.
12859
12905
  * @throws This property can throw when used.
@@ -13044,6 +13090,7 @@ export class Player extends Entity {
13044
13090
  * @throws This function can throw errors.
13045
13091
  */
13046
13092
  hasTag(tag: string): boolean;
13093
+ isOp(): boolean;
13047
13094
  /**
13048
13095
  * @remarks
13049
13096
  * Kills this entity. The entity will drop loot as normal.
@@ -13079,9 +13126,8 @@ export class Player extends Entity {
13079
13126
  /**
13080
13127
  * @remarks
13081
13128
  * Runs a particular command asynchronously from the context of
13082
- * this entity. Where possible, running a command
13083
- * asynchronously is recommended, especially for long running
13084
- * operations.
13129
+ * this entity. Note that there is a maximum queue of 128
13130
+ * asynchronous commands that can be run in a given tick.
13085
13131
  * @param commandString
13086
13132
  * Command to run. Note that command strings should not start
13087
13133
  * with slash.
@@ -13100,6 +13146,7 @@ export class Player extends Entity {
13100
13146
  * @throws This function can throw errors.
13101
13147
  */
13102
13148
  setDynamicProperty(identifier: string, value: boolean | number | string): void;
13149
+ setOp(isOp: boolean): void;
13103
13150
  /**
13104
13151
  * @remarks
13105
13152
  * Sets the main rotation of the entity.
@@ -13183,12 +13230,12 @@ export class Player extends Entity {
13183
13230
  * @throws This function can throw errors.
13184
13231
  */
13185
13232
  triggerEvent(eventName: string): void;
13186
- protected constructor();
13187
13233
  }
13188
13234
  /**
13189
13235
  * Represents the inventory of a {@link Player} in the world.
13190
13236
  */
13191
13237
  export class PlayerInventoryComponentContainer extends InventoryComponentContainer {
13238
+ protected constructor();
13192
13239
  /**
13193
13240
  * Contains a count of the slots in the container that are
13194
13241
  * empty.
@@ -13257,7 +13304,6 @@ export class PlayerInventoryComponentContainer extends InventoryComponentContain
13257
13304
  * @throws This function can throw errors.
13258
13305
  */
13259
13306
  transferItem(fromSlot: number, toSlot: number, toContainer: Container): boolean;
13260
- protected constructor();
13261
13307
  }
13262
13308
  /**
13263
13309
  * This type is usable for iterating over a set of players.
@@ -13265,6 +13311,7 @@ export class PlayerInventoryComponentContainer extends InventoryComponentContain
13265
13311
  * statements, Array.from(iterator), and more.
13266
13312
  */
13267
13313
  export class PlayerIterator implements Iterable<Player> {
13314
+ protected constructor();
13268
13315
  [Symbol.iterator](): Iterator<Player>;
13269
13316
  /**
13270
13317
  * @remarks
@@ -13273,23 +13320,23 @@ export class PlayerIterator implements Iterable<Player> {
13273
13320
  * can be used to see the next Player in the iteration.
13274
13321
  */
13275
13322
  next(): IteratorResult<Player>;
13276
- protected constructor();
13277
13323
  }
13278
13324
  /**
13279
13325
  * Contains information regarding a player that has joined.
13280
13326
  */
13281
13327
  export class PlayerJoinEvent {
13328
+ protected constructor();
13282
13329
  /**
13283
13330
  * Player that has joined the world.
13284
13331
  */
13285
13332
  player: Player;
13286
- protected constructor();
13287
13333
  }
13288
13334
  /**
13289
13335
  * Manages callbacks that are connected to a player joining the
13290
13336
  * world.
13291
13337
  */
13292
13338
  export class PlayerJoinEventSignal {
13339
+ protected constructor();
13293
13340
  /**
13294
13341
  * @remarks
13295
13342
  * Adds a callback that will be called when a player joins the
@@ -13305,24 +13352,24 @@ export class PlayerJoinEventSignal {
13305
13352
  * @throws This function can throw errors.
13306
13353
  */
13307
13354
  unsubscribe(callback: (arg: PlayerJoinEvent) => void): void;
13308
- protected constructor();
13309
13355
  }
13310
13356
  /**
13311
13357
  * Contains information regarding a player that has left the
13312
13358
  * world.
13313
13359
  */
13314
13360
  export class PlayerLeaveEvent {
13361
+ protected constructor();
13315
13362
  /**
13316
13363
  * Player that has left the world.
13317
13364
  */
13318
13365
  readonly playerName: string;
13319
- protected constructor();
13320
13366
  }
13321
13367
  /**
13322
13368
  * Manages callbacks that are connected to a player leaving the
13323
13369
  * world.
13324
13370
  */
13325
13371
  export class PlayerLeaveEventSignal {
13372
+ protected constructor();
13326
13373
  /**
13327
13374
  * @remarks
13328
13375
  * Adds a callback that will be called when a player leaves the
@@ -13338,13 +13385,13 @@ export class PlayerLeaveEventSignal {
13338
13385
  * @throws This function can throw errors.
13339
13386
  */
13340
13387
  unsubscribe(callback: (arg: PlayerLeaveEvent) => void): void;
13341
- protected constructor();
13342
13388
  }
13343
13389
  /**
13344
13390
  * Contains information related to a projectile hitting an
13345
13391
  * entity or block.
13346
13392
  */
13347
13393
  export class ProjectileHitEvent {
13394
+ protected constructor();
13348
13395
  /**
13349
13396
  * Contains additional information about the block that was hit
13350
13397
  * by the projectile, or undefined if the projectile did not
@@ -13375,13 +13422,13 @@ export class ProjectileHitEvent {
13375
13422
  * Optional source entity that fired the projectile.
13376
13423
  */
13377
13424
  readonly source: Entity;
13378
- protected constructor();
13379
13425
  }
13380
13426
  /**
13381
13427
  * Manages callbacks that are connected to when a projectile
13382
13428
  * hits an entity or block.
13383
13429
  */
13384
13430
  export class ProjectileHitEventSignal {
13431
+ protected constructor();
13385
13432
  /**
13386
13433
  * @remarks
13387
13434
  * Adds a callback that will be called when a projectile hits
@@ -13397,7 +13444,6 @@ export class ProjectileHitEventSignal {
13397
13444
  * @throws This function can throw errors.
13398
13445
  */
13399
13446
  unsubscribe(callback: (arg: ProjectileHitEvent) => void): void;
13400
- protected constructor();
13401
13447
  }
13402
13448
  /**
13403
13449
  * Provides methods that should be used within the World
@@ -13405,6 +13451,7 @@ export class ProjectileHitEventSignal {
13405
13451
  * used and stored within Minecraft.
13406
13452
  */
13407
13453
  export class PropertyRegistry {
13454
+ protected constructor();
13408
13455
  /**
13409
13456
  * @remarks
13410
13457
  * Registers a dynamic property for a particular entity type
@@ -13424,12 +13471,12 @@ export class PropertyRegistry {
13424
13471
  * @throws This function can throw errors.
13425
13472
  */
13426
13473
  registerWorldDynamicProperties(propertiesDefinition: DynamicPropertiesDefinition): void;
13427
- protected constructor();
13428
13474
  }
13429
13475
  /**
13430
13476
  * Contains objectives and participants for the scoreboard.
13431
13477
  */
13432
13478
  export class Scoreboard {
13479
+ protected constructor();
13433
13480
  /**
13434
13481
  * @remarks
13435
13482
  * Adds a new objective to the scoreboard.
@@ -13491,12 +13538,12 @@ export class Scoreboard {
13491
13538
  displaySlotId: string,
13492
13539
  objectiveDisplaySetting: ScoreboardObjectiveDisplayOptions,
13493
13540
  ): ScoreboardObjective;
13494
- protected constructor();
13495
13541
  }
13496
13542
  /**
13497
13543
  * Contains an identity of the scoreboard item.
13498
13544
  */
13499
13545
  export class ScoreboardIdentity {
13546
+ protected constructor();
13500
13547
  /**
13501
13548
  * Returns the player-visible name of this identity.
13502
13549
  */
@@ -13516,12 +13563,12 @@ export class ScoreboardIdentity {
13516
13563
  * @throws This function can throw errors.
13517
13564
  */
13518
13565
  getEntity(): Entity;
13519
- protected constructor();
13520
13566
  }
13521
13567
  /**
13522
13568
  * Contains objectives and participants for the scoreboard.
13523
13569
  */
13524
13570
  export class ScoreboardObjective {
13571
+ protected constructor();
13525
13572
  /**
13526
13573
  * Returns the player-visible name of this scoreboard
13527
13574
  * objective.
@@ -13553,13 +13600,13 @@ export class ScoreboardObjective {
13553
13600
  * @throws This function can throw errors.
13554
13601
  */
13555
13602
  getScores(): ScoreboardScoreInfo[];
13556
- protected constructor();
13557
13603
  }
13558
13604
  /**
13559
13605
  * Contains a pair of a scoreboard participant and its
13560
13606
  * respective score.
13561
13607
  */
13562
13608
  export class ScoreboardScoreInfo {
13609
+ protected constructor();
13563
13610
  /**
13564
13611
  * This scoreboard participant for this score.
13565
13612
  */
@@ -13568,13 +13615,13 @@ export class ScoreboardScoreInfo {
13568
13615
  * Score value of the identity for this objective.
13569
13616
  */
13570
13617
  readonly score: number;
13571
- protected constructor();
13572
13618
  }
13573
13619
  /**
13574
13620
  * Contains information about user interface elements that are
13575
13621
  * showing up on the screen.
13576
13622
  */
13577
13623
  export class ScreenDisplay {
13624
+ protected constructor();
13578
13625
  /**
13579
13626
  * @remarks
13580
13627
  * Clears the title and subtitle, if currently displayed.
@@ -13607,13 +13654,13 @@ export class ScreenDisplay {
13607
13654
  * @throws This function can throw errors.
13608
13655
  */
13609
13656
  updateSubtitle(subtitle: string): void;
13610
- protected constructor();
13611
13657
  }
13612
13658
  /**
13613
13659
  * Describes a particular seating position on this rideable
13614
13660
  * entity.
13615
13661
  */
13616
13662
  export class Seat {
13663
+ protected constructor();
13617
13664
  /**
13618
13665
  * If specified, contains a forced rotation that the riders in
13619
13666
  * this seat are facing.
@@ -13633,18 +13680,18 @@ export class Seat {
13633
13680
  * location.
13634
13681
  */
13635
13682
  readonly position: Location;
13636
- protected constructor();
13637
13683
  }
13638
13684
  export class ServerMessageSignal {
13685
+ protected constructor();
13639
13686
  subscribe(callback: (arg: MessageReceiveEvent) => void): (arg: MessageReceiveEvent) => void;
13640
13687
  unsubscribe(callback: (arg: MessageReceiveEvent) => void): void;
13641
- protected constructor();
13642
13688
  }
13643
13689
  /**
13644
13690
  * Contains the state of a string-based property for a {@link
13645
13691
  * BlockPermutation}.
13646
13692
  */
13647
13693
  export class StringBlockProperty extends IBlockProperty {
13694
+ protected constructor();
13648
13695
  /**
13649
13696
  * Name of this property.
13650
13697
  */
@@ -13661,29 +13708,79 @@ export class StringBlockProperty extends IBlockProperty {
13661
13708
  * StringBlockProperty.validValues} to check allowed values.
13662
13709
  */
13663
13710
  value: string;
13664
- protected constructor();
13665
13711
  }
13666
13712
  /**
13667
13713
  * A class that provides system-level events and functions.
13668
13714
  */
13669
13715
  export class System {
13716
+ protected constructor();
13717
+ /**
13718
+ * Represents the current world tick of the server.
13719
+ */
13670
13720
  readonly currentTick: number;
13671
13721
  /**
13672
13722
  * Contains a set of events that are applicable for the
13673
13723
  * lifecycle of items in the Minecraft system.
13674
13724
  */
13675
13725
  readonly events: SystemEvents;
13726
+ /**
13727
+ * @remarks
13728
+ * Cancels the execution of a function run that was previously
13729
+ * scheduled via the `run` function.
13730
+ * @param runId
13731
+ */
13676
13732
  clearRun(runId: number): void;
13733
+ /**
13734
+ * @remarks
13735
+ * Cancels the execution of a scheduled function run that was
13736
+ * previously scheduled via the `runSchedule` function.
13737
+ * @param runScheduleId
13738
+ */
13677
13739
  clearRunSchedule(runScheduleId: number): void;
13740
+ /**
13741
+ * @remarks
13742
+ * Runs a specified function at a future time. This is
13743
+ * frequently used to implement delayed behaviors and game
13744
+ * loops.
13745
+ * @param callback
13746
+ * Function callback to run when the tickDelay time criteria is
13747
+ * met.
13748
+ * @param tickDelay
13749
+ * Number of ticks to wait before running this function. 1
13750
+ * means this function will run on the next tick. A value of 20
13751
+ * means that this function will run in 20 ticks (or
13752
+ * approximately one second). When the value of '0' is used
13753
+ * within an event handler, this funtion will run later within
13754
+ * the tick frame. Using the value of '0' within a System.run
13755
+ * function is not supported.
13756
+ * @returns
13757
+ * An opaque identifier that can be used with the `clearRun`
13758
+ * function to cancel the execution of this run.
13759
+ */
13678
13760
  run(callback: () => void, tickDelay?: number): number;
13761
+ /**
13762
+ * @remarks
13763
+ * Runs a specified function at a scheduled interval. This is
13764
+ * frequently used to implement delayed behaviors and game
13765
+ * loops.
13766
+ * @param callback
13767
+ * Function callback to run on the specified schedule.
13768
+ * @param tickInterval
13769
+ * The number of ticks to run this function within - run this
13770
+ * function every `tickInterval` ticks.
13771
+ * @returns
13772
+ * An opaque identifier that can be used with the
13773
+ * `clearRunSchedule` function to cancel the execution of this
13774
+ * scheduled run.
13775
+ */
13679
13776
  runSchedule(callback: () => void, tickInterval?: number): number;
13680
- protected constructor();
13681
13777
  }
13682
13778
  /**
13683
13779
  * Contains a set of events that are available across the scope
13684
13780
  * of the Minecraft add-on system.
13685
13781
  */
13686
13782
  export class SystemEvents {
13783
+ protected constructor();
13687
13784
  /**
13688
13785
  * This event fires before a the performance watchdog
13689
13786
  * terminates scripting execution due to exceeding a
@@ -13693,13 +13790,13 @@ export class SystemEvents {
13693
13790
  * ability to override termination events may be disabled.
13694
13791
  */
13695
13792
  readonly beforeWatchdogTerminate: BeforeWatchdogTerminateEventSignal;
13696
- protected constructor();
13697
13793
  }
13698
13794
  /**
13699
13795
  * An event for handling updates, that fires 20 times every
13700
13796
  * second.
13701
13797
  */
13702
13798
  export class TickEvent {
13799
+ protected constructor();
13703
13800
  /**
13704
13801
  * Current tick at the time this event was fired.
13705
13802
  */
@@ -13708,12 +13805,12 @@ export class TickEvent {
13708
13805
  * Time since the last tick was fired.
13709
13806
  */
13710
13807
  readonly deltaTime: number;
13711
- protected constructor();
13712
13808
  }
13713
13809
  /**
13714
13810
  * Manages callbacks that are connected to a tick event.
13715
13811
  */
13716
13812
  export class TickEventSignal {
13813
+ protected constructor();
13717
13814
  /**
13718
13815
  * @remarks
13719
13816
  * Adds a callback that will be called on every tick.
@@ -13727,7 +13824,6 @@ export class TickEventSignal {
13727
13824
  * @throws This function can throw errors.
13728
13825
  */
13729
13826
  unsubscribe(callback: (arg: TickEvent) => void): void;
13730
- protected constructor();
13731
13827
  }
13732
13828
  /**
13733
13829
  * Represents a trigger for firing an event.
@@ -13787,13 +13883,6 @@ export class Vector {
13787
13883
  * A constant vector that represents (0, 0, 0).
13788
13884
  */
13789
13885
  static readonly zero: Vector;
13790
- /**
13791
- * @remarks
13792
- * Returns the addition of these vectors.
13793
- * @param a
13794
- * @param b
13795
- */
13796
- static add(a: Vector3, b: Vector3): Vector;
13797
13886
  /**
13798
13887
  * @remarks
13799
13888
  * Creates a new instance of an abstract vector.
@@ -13805,6 +13894,37 @@ export class Vector {
13805
13894
  * Z component of the vector.
13806
13895
  */
13807
13896
  constructor(x: number, y: number, z: number);
13897
+ /**
13898
+ * @remarks
13899
+ * Compares this vector and another vector to one another.
13900
+ * @param other
13901
+ * Other vector to compare this vector to.
13902
+ * @returns
13903
+ * True if the two vectors are equal.
13904
+ */
13905
+ equals(other: Vector): boolean;
13906
+ /**
13907
+ * @remarks
13908
+ * Returns the length of this vector.
13909
+ */
13910
+ length(): number;
13911
+ /**
13912
+ * @remarks
13913
+ * Returns the squared length of this vector.
13914
+ */
13915
+ lengthSquared(): number;
13916
+ /**
13917
+ * @remarks
13918
+ * Returns this vector as a normalized vector.
13919
+ */
13920
+ normalized(): Vector;
13921
+ /**
13922
+ * @remarks
13923
+ * Returns the addition of these vectors.
13924
+ * @param a
13925
+ * @param b
13926
+ */
13927
+ static add(a: Vector3, b: Vector3): Vector;
13808
13928
  /**
13809
13929
  * @remarks
13810
13930
  * Returns the cross product of these two vectors.
@@ -13826,25 +13946,6 @@ export class Vector {
13826
13946
  * @param b
13827
13947
  */
13828
13948
  static divide(a: Vector3, b: number | Vector3): Vector;
13829
- /**
13830
- * @remarks
13831
- * Compares this vector and another vector to one another.
13832
- * @param other
13833
- * Other vector to compare this vector to.
13834
- * @returns
13835
- * True if the two vectors are equal.
13836
- */
13837
- equals(other: Vector): boolean;
13838
- /**
13839
- * @remarks
13840
- * Returns the length of this vector.
13841
- */
13842
- length(): number;
13843
- /**
13844
- * @remarks
13845
- * Returns the squared length of this vector.
13846
- */
13847
- lengthSquared(): number;
13848
13949
  /**
13849
13950
  * @remarks
13850
13951
  * Returns the linear interpolation between a and b using t as
@@ -13877,11 +13978,6 @@ export class Vector {
13877
13978
  * @param b
13878
13979
  */
13879
13980
  static multiply(a: Vector3, b: number | Vector3): Vector;
13880
- /**
13881
- * @remarks
13882
- * Returns this vector as a normalized vector.
13883
- */
13884
- normalized(): Vector;
13885
13981
  /**
13886
13982
  * @remarks
13887
13983
  * Returns the spherical linear interpolation between a and b
@@ -13904,6 +14000,7 @@ export class Vector {
13904
14000
  * environment.
13905
14001
  */
13906
14002
  export class WeatherChangeEvent {
14003
+ protected constructor();
13907
14004
  /**
13908
14005
  * Dimension in which the weather has changed.
13909
14006
  */
@@ -13916,12 +14013,12 @@ export class WeatherChangeEvent {
13916
14013
  * Whether it is raining after the change in weather.
13917
14014
  */
13918
14015
  readonly raining: boolean;
13919
- protected constructor();
13920
14016
  }
13921
14017
  /**
13922
14018
  * Manages callbacks that are connected to weather changing.
13923
14019
  */
13924
14020
  export class WeatherChangeEventSignal {
14021
+ protected constructor();
13925
14022
  /**
13926
14023
  * @remarks
13927
14024
  * Adds a callback that will be called when weather changes.
@@ -13935,13 +14032,13 @@ export class WeatherChangeEventSignal {
13935
14032
  * @throws This function can throw errors.
13936
14033
  */
13937
14034
  unsubscribe(callback: (arg: WeatherChangeEvent) => void): void;
13938
- protected constructor();
13939
14035
  }
13940
14036
  /**
13941
14037
  * A class that wraps the state of a world - a set of
13942
14038
  * dimensions and the environment of Minecraft.
13943
14039
  */
13944
14040
  export class World {
14041
+ protected constructor();
13945
14042
  /**
13946
14043
  * Contains a set of events that are applicable to the entirety
13947
14044
  * of the world.
@@ -13953,6 +14050,10 @@ export class World {
13953
14050
  */
13954
14051
  readonly scoreboard: Scoreboard;
13955
14052
  broadcastClientMessage(id: string, value: string): void;
14053
+ /**
14054
+ * @remarks
14055
+ * Returns the absolute time since the start of the world.
14056
+ */
13956
14057
  getAbsoluteTime(): number;
13957
14058
  getAllPlayers(): Player[];
13958
14059
  /**
@@ -13982,6 +14083,10 @@ export class World {
13982
14083
  * @throws This function can throw errors.
13983
14084
  */
13984
14085
  getPlayers(options?: EntityQueryOptions): PlayerIterator;
14086
+ /**
14087
+ * @remarks
14088
+ * Sets the current game time of the day.
14089
+ */
13985
14090
  getTime(): number;
13986
14091
  /**
13987
14092
  * @remarks
@@ -14029,13 +14134,17 @@ export class World {
14029
14134
  * @throws This function can throw errors.
14030
14135
  */
14031
14136
  setDynamicProperty(identifier: string, value: boolean | number | string): void;
14137
+ /**
14138
+ * @remarks
14139
+ * Returns the current game time of the day.
14140
+ * @param timeOfDay
14141
+ */
14032
14142
  setTime(timeOfDay: number): void;
14033
14143
  /**
14034
14144
  * @remarks
14035
14145
  * Stops any music tracks from playing.
14036
14146
  */
14037
14147
  stopMusic(): void;
14038
- protected constructor();
14039
14148
  }
14040
14149
  /**
14041
14150
  * Contains information and methods that can be used at the
@@ -14045,6 +14154,7 @@ export class World {
14045
14154
  * Initialize execution.
14046
14155
  */
14047
14156
  export class WorldInitializeEvent {
14157
+ protected constructor();
14048
14158
  /**
14049
14159
  * Contains methods for scripts to initialize and register
14050
14160
  * dynamic properties they may wish to use within a world.
@@ -14065,7 +14175,6 @@ export class WorldInitializeEvent {
14065
14175
  * ```
14066
14176
  */
14067
14177
  readonly propertyRegistry: PropertyRegistry;
14068
- protected constructor();
14069
14178
  }
14070
14179
  /**
14071
14180
  * Manages callbacks that are run at the initialization of the
@@ -14074,6 +14183,7 @@ export class WorldInitializeEvent {
14074
14183
  * /reload command is used.
14075
14184
  */
14076
14185
  export class WorldInitializeEventSignal {
14186
+ protected constructor();
14077
14187
  /**
14078
14188
  * @remarks
14079
14189
  * Adds a callback that will be called when the scripting
@@ -14089,13 +14199,13 @@ export class WorldInitializeEventSignal {
14089
14199
  * @throws This function can throw errors.
14090
14200
  */
14091
14201
  unsubscribe(callback: (arg: WorldInitializeEvent) => void): void;
14092
- protected constructor();
14093
14202
  }
14094
14203
  /**
14095
14204
  * Represents a rotation structure with pitch and yaw
14096
14205
  * components.
14097
14206
  */
14098
14207
  export class XYRotation {
14208
+ protected constructor();
14099
14209
  /**
14100
14210
  * Yaw component (left-to-right) of this position.
14101
14211
  */
@@ -14104,7 +14214,6 @@ export class XYRotation {
14104
14214
  * Pitch (up-and-down) element of this rotation.
14105
14215
  */
14106
14216
  y: number;
14107
- protected constructor();
14108
14217
  }
14109
14218
  /**
14110
14219
  * Contains additional options for configuring a block raycast
@@ -14344,12 +14453,32 @@ export interface ExplosionOptions {
14344
14453
  */
14345
14454
  source?: Entity;
14346
14455
  }
14456
+ /**
14457
+ * An interface that describes the signature of a message that
14458
+ * is passed into a say/tell API request.
14459
+ */
14347
14460
  // tslint:disable-next-line:interface-name
14348
14461
  export interface IRawMessage {
14349
- rawtext?: IRawMessage | string[];
14462
+ /**
14463
+ * A list of text objects used to build a message.
14464
+ */
14465
+ rawtext?: IRawMessage[] | string[];
14466
+ /**
14467
+ * Contains plain text to display directly. Only valid when
14468
+ * used as a sub member in a parent _rawtext_ or _with_ member.
14469
+ */
14350
14470
  text?: string;
14471
+ /**
14472
+ * Contains a resource pack translation identifier that can be
14473
+ * used to translate text in the player's selected language.
14474
+ */
14351
14475
  translate?: string;
14352
- with?: IRawMessage | string[];
14476
+ /**
14477
+ * A list of text object arguments that can be used to fill
14478
+ * values in the _translate_ text. Ignored when _translate_ is
14479
+ * not present.
14480
+ */
14481
+ with?: IRawMessage[] | string[];
14353
14482
  }
14354
14483
  /**
14355
14484
  * Additional configuration options for {@link