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

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