@minecraft/server 1.8.0-beta.1.20.50-preview.21 → 1.8.0-beta.1.20.50-preview.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/index.d.ts +128 -495
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
***************************************************************************** */
|
|
9
9
|
/**
|
|
10
|
-
* @beta
|
|
11
10
|
* @packageDocumentation
|
|
12
11
|
* Contains many types related to manipulating a Minecraft
|
|
13
12
|
* world, including entities, blocks, dimensions, and more.
|
|
@@ -16,7 +15,7 @@
|
|
|
16
15
|
* ```json
|
|
17
16
|
* {
|
|
18
17
|
* "module_name": "@minecraft/server",
|
|
19
|
-
* "version": "1.
|
|
18
|
+
* "version": "1.6.0"
|
|
20
19
|
* }
|
|
21
20
|
* ```
|
|
22
21
|
*
|
|
@@ -129,47 +128,40 @@ export enum Difficulty {
|
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
/**
|
|
132
|
-
* @beta
|
|
133
131
|
* A general purpose relative direction enumeration.
|
|
134
132
|
*/
|
|
135
133
|
export enum Direction {
|
|
136
134
|
/**
|
|
137
|
-
* @beta
|
|
138
135
|
* @remarks
|
|
139
136
|
* Returns the {@link Block} beneath (y - 1) of this item.
|
|
140
137
|
*
|
|
141
138
|
*/
|
|
142
139
|
Down = 'Down',
|
|
143
140
|
/**
|
|
144
|
-
* @beta
|
|
145
141
|
* @remarks
|
|
146
142
|
* Returns the {@link Block} to the east (x + 1) of this item.
|
|
147
143
|
*
|
|
148
144
|
*/
|
|
149
145
|
East = 'East',
|
|
150
146
|
/**
|
|
151
|
-
* @beta
|
|
152
147
|
* @remarks
|
|
153
148
|
* Returns the {@link Block} to the east (z + 1) of this item.
|
|
154
149
|
*
|
|
155
150
|
*/
|
|
156
151
|
North = 'North',
|
|
157
152
|
/**
|
|
158
|
-
* @beta
|
|
159
153
|
* @remarks
|
|
160
154
|
* Returns the {@link Block} to the south (z - 1) of this item.
|
|
161
155
|
*
|
|
162
156
|
*/
|
|
163
157
|
South = 'South',
|
|
164
158
|
/**
|
|
165
|
-
* @beta
|
|
166
159
|
* @remarks
|
|
167
160
|
* Returns the {@link Block} above (y + 1) of this item.
|
|
168
161
|
*
|
|
169
162
|
*/
|
|
170
163
|
Up = 'Up',
|
|
171
164
|
/**
|
|
172
|
-
* @beta
|
|
173
165
|
* @remarks
|
|
174
166
|
* Returns the {@link Block} to the west (x - 1) of this item.
|
|
175
167
|
*
|
|
@@ -178,26 +170,22 @@ export enum Direction {
|
|
|
178
170
|
}
|
|
179
171
|
|
|
180
172
|
/**
|
|
181
|
-
* @beta
|
|
182
173
|
* Specifies a mechanism for displaying scores on a scoreboard.
|
|
183
174
|
*/
|
|
184
175
|
export enum DisplaySlotId {
|
|
185
176
|
/**
|
|
186
|
-
* @beta
|
|
187
177
|
* @remarks
|
|
188
178
|
* Displays the score below the player's name.
|
|
189
179
|
*
|
|
190
180
|
*/
|
|
191
181
|
BelowName = 'BelowName',
|
|
192
182
|
/**
|
|
193
|
-
* @beta
|
|
194
183
|
* @remarks
|
|
195
184
|
* Displays the score as a list on the pause screen.
|
|
196
185
|
*
|
|
197
186
|
*/
|
|
198
187
|
List = 'List',
|
|
199
188
|
/**
|
|
200
|
-
* @beta
|
|
201
189
|
* @remarks
|
|
202
190
|
* Displays the score on the side of the player's screen.
|
|
203
191
|
*
|
|
@@ -324,9 +312,6 @@ export enum DyeColor {
|
|
|
324
312
|
Yellow = 'Yellow',
|
|
325
313
|
}
|
|
326
314
|
|
|
327
|
-
/**
|
|
328
|
-
* @beta
|
|
329
|
-
*/
|
|
330
315
|
export enum EasingType {
|
|
331
316
|
InBack = 'InBack',
|
|
332
317
|
InBounce = 'InBounce',
|
|
@@ -416,6 +401,7 @@ export enum EntityComponentTypes {
|
|
|
416
401
|
NavigationGeneric = 'minecraft:navigation.generic',
|
|
417
402
|
NavigationHover = 'minecraft:navigation.hover',
|
|
418
403
|
NavigationWalk = 'minecraft:navigation.walk',
|
|
404
|
+
Npc = 'minecraft:npc',
|
|
419
405
|
OnFire = 'minecraft:onfire',
|
|
420
406
|
PushThrough = 'minecraft:push_through',
|
|
421
407
|
Rideable = 'minecraft:rideable',
|
|
@@ -430,19 +416,16 @@ export enum EntityComponentTypes {
|
|
|
430
416
|
}
|
|
431
417
|
|
|
432
418
|
/**
|
|
433
|
-
* @beta
|
|
434
419
|
* Describes the source of damage from an Entity.
|
|
435
420
|
*/
|
|
436
421
|
export enum EntityDamageCause {
|
|
437
422
|
/**
|
|
438
|
-
* @beta
|
|
439
423
|
* @remarks
|
|
440
424
|
* Damage caused by a falling anvil.
|
|
441
425
|
*
|
|
442
426
|
*/
|
|
443
427
|
anvil = 'anvil',
|
|
444
428
|
/**
|
|
445
|
-
* @beta
|
|
446
429
|
* @remarks
|
|
447
430
|
* Damage caused from a non-Entity explosion. For example, an
|
|
448
431
|
* exploding bed.
|
|
@@ -451,14 +434,12 @@ export enum EntityDamageCause {
|
|
|
451
434
|
blockExplosion = 'blockExplosion',
|
|
452
435
|
campfire = 'campfire',
|
|
453
436
|
/**
|
|
454
|
-
* @beta
|
|
455
437
|
* @remarks
|
|
456
438
|
* Unused.
|
|
457
439
|
*
|
|
458
440
|
*/
|
|
459
441
|
charging = 'charging',
|
|
460
442
|
/**
|
|
461
|
-
* @beta
|
|
462
443
|
* @remarks
|
|
463
444
|
* Damage caused by physically touching an Entity or Block. For
|
|
464
445
|
* example, touching a Sweet Berry bush or Pufferfish.
|
|
@@ -466,7 +447,6 @@ export enum EntityDamageCause {
|
|
|
466
447
|
*/
|
|
467
448
|
contact = 'contact',
|
|
468
449
|
/**
|
|
469
|
-
* @beta
|
|
470
450
|
* @remarks
|
|
471
451
|
* Damage caused by an Entity being out of air and inside a
|
|
472
452
|
* liquid block.
|
|
@@ -474,14 +454,12 @@ export enum EntityDamageCause {
|
|
|
474
454
|
*/
|
|
475
455
|
drowning = 'drowning',
|
|
476
456
|
/**
|
|
477
|
-
* @beta
|
|
478
457
|
* @remarks
|
|
479
458
|
* Damage caused by an Entity attack.
|
|
480
459
|
*
|
|
481
460
|
*/
|
|
482
461
|
entityAttack = 'entityAttack',
|
|
483
462
|
/**
|
|
484
|
-
* @beta
|
|
485
463
|
* @remarks
|
|
486
464
|
* Damage caused by an Entity explosion. For example, a Creeper
|
|
487
465
|
* or Wither.
|
|
@@ -489,14 +467,12 @@ export enum EntityDamageCause {
|
|
|
489
467
|
*/
|
|
490
468
|
entityExplosion = 'entityExplosion',
|
|
491
469
|
/**
|
|
492
|
-
* @beta
|
|
493
470
|
* @remarks
|
|
494
471
|
* Damage caused by falling onto the ground.
|
|
495
472
|
*
|
|
496
473
|
*/
|
|
497
474
|
fall = 'fall',
|
|
498
475
|
/**
|
|
499
|
-
* @beta
|
|
500
476
|
* @remarks
|
|
501
477
|
* Damage caused by falling blocks. Note: Anvils and
|
|
502
478
|
* Stalactites have their own damage causes.
|
|
@@ -504,28 +480,24 @@ export enum EntityDamageCause {
|
|
|
504
480
|
*/
|
|
505
481
|
fallingBlock = 'fallingBlock',
|
|
506
482
|
/**
|
|
507
|
-
* @beta
|
|
508
483
|
* @remarks
|
|
509
484
|
* Damage caused by catching on fire.
|
|
510
485
|
*
|
|
511
486
|
*/
|
|
512
487
|
fire = 'fire',
|
|
513
488
|
/**
|
|
514
|
-
* @beta
|
|
515
489
|
* @remarks
|
|
516
490
|
* Damage caused by burning over time.
|
|
517
491
|
*
|
|
518
492
|
*/
|
|
519
493
|
fireTick = 'fireTick',
|
|
520
494
|
/**
|
|
521
|
-
* @beta
|
|
522
495
|
* @remarks
|
|
523
496
|
* Damage caused by fireworks.
|
|
524
497
|
*
|
|
525
498
|
*/
|
|
526
499
|
fireworks = 'fireworks',
|
|
527
500
|
/**
|
|
528
|
-
* @beta
|
|
529
501
|
* @remarks
|
|
530
502
|
* Damage caused by flying into a wall at high speed while
|
|
531
503
|
* gliding with Elytra.
|
|
@@ -533,28 +505,24 @@ export enum EntityDamageCause {
|
|
|
533
505
|
*/
|
|
534
506
|
flyIntoWall = 'flyIntoWall',
|
|
535
507
|
/**
|
|
536
|
-
* @beta
|
|
537
508
|
* @remarks
|
|
538
509
|
* Damage caused by staying inside a Powder Snow block.
|
|
539
510
|
*
|
|
540
511
|
*/
|
|
541
512
|
freezing = 'freezing',
|
|
542
513
|
/**
|
|
543
|
-
* @beta
|
|
544
514
|
* @remarks
|
|
545
515
|
* Damage caused by touching a Lava block.
|
|
546
516
|
*
|
|
547
517
|
*/
|
|
548
518
|
lava = 'lava',
|
|
549
519
|
/**
|
|
550
|
-
* @beta
|
|
551
520
|
* @remarks
|
|
552
521
|
* Damage caused by being struck by lightning.
|
|
553
522
|
*
|
|
554
523
|
*/
|
|
555
524
|
lightning = 'lightning',
|
|
556
525
|
/**
|
|
557
|
-
* @beta
|
|
558
526
|
* @remarks
|
|
559
527
|
* Damage caused by magical attacks. For example, Evoker Fang
|
|
560
528
|
* or Conduit Block.
|
|
@@ -562,14 +530,12 @@ export enum EntityDamageCause {
|
|
|
562
530
|
*/
|
|
563
531
|
magic = 'magic',
|
|
564
532
|
/**
|
|
565
|
-
* @beta
|
|
566
533
|
* @remarks
|
|
567
534
|
* Damage caused by touching a Magma block.
|
|
568
535
|
*
|
|
569
536
|
*/
|
|
570
537
|
magma = 'magma',
|
|
571
538
|
/**
|
|
572
|
-
* @beta
|
|
573
539
|
* @remarks
|
|
574
540
|
* Damage caused by no source. For example, from a command or
|
|
575
541
|
* script.
|
|
@@ -577,7 +543,6 @@ export enum EntityDamageCause {
|
|
|
577
543
|
*/
|
|
578
544
|
none = 'none',
|
|
579
545
|
/**
|
|
580
|
-
* @beta
|
|
581
546
|
* @remarks
|
|
582
547
|
* Damage caused by an indirect source. For example, setting a
|
|
583
548
|
* mob's health to 0 in a behavior pack.
|
|
@@ -585,14 +550,12 @@ export enum EntityDamageCause {
|
|
|
585
550
|
*/
|
|
586
551
|
override = 'override',
|
|
587
552
|
/**
|
|
588
|
-
* @beta
|
|
589
553
|
* @remarks
|
|
590
554
|
* Damage caused by a Piston.
|
|
591
555
|
*
|
|
592
556
|
*/
|
|
593
557
|
piston = 'piston',
|
|
594
558
|
/**
|
|
595
|
-
* @beta
|
|
596
559
|
* @remarks
|
|
597
560
|
* Damage caused by a projectile.
|
|
598
561
|
*
|
|
@@ -602,28 +565,24 @@ export enum EntityDamageCause {
|
|
|
602
565
|
sonicBoom = 'sonicBoom',
|
|
603
566
|
soulCampfire = 'soulCampfire',
|
|
604
567
|
/**
|
|
605
|
-
* @beta
|
|
606
568
|
* @remarks
|
|
607
569
|
* Damage caused by a falling Stalactite block.
|
|
608
570
|
*
|
|
609
571
|
*/
|
|
610
572
|
stalactite = 'stalactite',
|
|
611
573
|
/**
|
|
612
|
-
* @beta
|
|
613
574
|
* @remarks
|
|
614
575
|
* Damage caused by touching a Stalagmite block.
|
|
615
576
|
*
|
|
616
577
|
*/
|
|
617
578
|
stalagmite = 'stalagmite',
|
|
618
579
|
/**
|
|
619
|
-
* @beta
|
|
620
580
|
* @remarks
|
|
621
581
|
* Damage caused over time by having an empty hunger bar.
|
|
622
582
|
*
|
|
623
583
|
*/
|
|
624
584
|
starve = 'starve',
|
|
625
585
|
/**
|
|
626
|
-
* @beta
|
|
627
586
|
* @remarks
|
|
628
587
|
* Damage caused by an Entity being out of air and inside a
|
|
629
588
|
* non-liquid block.
|
|
@@ -631,7 +590,6 @@ export enum EntityDamageCause {
|
|
|
631
590
|
*/
|
|
632
591
|
suffocation = 'suffocation',
|
|
633
592
|
/**
|
|
634
|
-
* @beta
|
|
635
593
|
* @remarks
|
|
636
594
|
* Damage caused by an Entity killing itself. For example, from
|
|
637
595
|
* the /kill command.
|
|
@@ -639,7 +597,6 @@ export enum EntityDamageCause {
|
|
|
639
597
|
*/
|
|
640
598
|
suicide = 'suicide',
|
|
641
599
|
/**
|
|
642
|
-
* @beta
|
|
643
600
|
* @remarks
|
|
644
601
|
* Damage caused by an Entity being in an inhabitable climate.
|
|
645
602
|
* For example, a Snow Golem in a biome with a temperature
|
|
@@ -648,7 +605,6 @@ export enum EntityDamageCause {
|
|
|
648
605
|
*/
|
|
649
606
|
temperature = 'temperature',
|
|
650
607
|
/**
|
|
651
|
-
* @beta
|
|
652
608
|
* @remarks
|
|
653
609
|
* Damage caused by the Thorns armor enchantment and by the
|
|
654
610
|
* Guardian thorns effect.
|
|
@@ -656,14 +612,12 @@ export enum EntityDamageCause {
|
|
|
656
612
|
*/
|
|
657
613
|
thorns = 'thorns',
|
|
658
614
|
/**
|
|
659
|
-
* @beta
|
|
660
615
|
* @remarks
|
|
661
616
|
* Damage caused over time by falling into the void.
|
|
662
617
|
*
|
|
663
618
|
*/
|
|
664
619
|
'void' = 'void',
|
|
665
620
|
/**
|
|
666
|
-
* @beta
|
|
667
621
|
* @remarks
|
|
668
622
|
* Damage caused by the Wither effect. For example, from
|
|
669
623
|
* touching a Wither Rose.
|
|
@@ -673,12 +627,10 @@ export enum EntityDamageCause {
|
|
|
673
627
|
}
|
|
674
628
|
|
|
675
629
|
/**
|
|
676
|
-
* @beta
|
|
677
630
|
* An enumeration describing initialization cause of an entity.
|
|
678
631
|
*/
|
|
679
632
|
export enum EntityInitializationCause {
|
|
680
633
|
/**
|
|
681
|
-
* @beta
|
|
682
634
|
* @remarks
|
|
683
635
|
* Case when an entity is created as child of other entity or
|
|
684
636
|
* entities, e.g., cows making a cow or slimes making smaller
|
|
@@ -687,7 +639,6 @@ export enum EntityInitializationCause {
|
|
|
687
639
|
*/
|
|
688
640
|
Born = 'Born',
|
|
689
641
|
/**
|
|
690
|
-
* @beta
|
|
691
642
|
* @remarks
|
|
692
643
|
* Case when an entity is created by an event, e.g., Wandering
|
|
693
644
|
* trader spawning llamas.
|
|
@@ -696,14 +647,12 @@ export enum EntityInitializationCause {
|
|
|
696
647
|
Event = 'Event',
|
|
697
648
|
Loaded = 'Loaded',
|
|
698
649
|
/**
|
|
699
|
-
* @beta
|
|
700
650
|
* @remarks
|
|
701
651
|
* Case when an entity is naturally spawned in the world.
|
|
702
652
|
*
|
|
703
653
|
*/
|
|
704
654
|
Spawned = 'Spawned',
|
|
705
655
|
/**
|
|
706
|
-
* @beta
|
|
707
656
|
* @remarks
|
|
708
657
|
* Case when an entity is transformed into another entity.
|
|
709
658
|
*
|
|
@@ -737,13 +686,11 @@ export enum EntityLifetimeState {
|
|
|
737
686
|
}
|
|
738
687
|
|
|
739
688
|
/**
|
|
740
|
-
* @beta
|
|
741
689
|
* The equipment slot of the mob. This includes armor, offhand
|
|
742
690
|
* and mainhand slots.
|
|
743
691
|
*/
|
|
744
692
|
export enum EquipmentSlot {
|
|
745
693
|
/**
|
|
746
|
-
* @beta
|
|
747
694
|
* @remarks
|
|
748
695
|
* The chest slot. This slot is used to hold items such as
|
|
749
696
|
* Chestplate or Elytra.
|
|
@@ -751,7 +698,6 @@ export enum EquipmentSlot {
|
|
|
751
698
|
*/
|
|
752
699
|
Chest = 'Chest',
|
|
753
700
|
/**
|
|
754
|
-
* @beta
|
|
755
701
|
* @remarks
|
|
756
702
|
* The feet slot. This slot is used to hold items such as
|
|
757
703
|
* Boots.
|
|
@@ -759,7 +705,6 @@ export enum EquipmentSlot {
|
|
|
759
705
|
*/
|
|
760
706
|
Feet = 'Feet',
|
|
761
707
|
/**
|
|
762
|
-
* @beta
|
|
763
708
|
* @remarks
|
|
764
709
|
* The head slot. This slot is used to hold items such as
|
|
765
710
|
* Helmets or Carved Pumpkins.
|
|
@@ -767,7 +712,6 @@ export enum EquipmentSlot {
|
|
|
767
712
|
*/
|
|
768
713
|
Head = 'Head',
|
|
769
714
|
/**
|
|
770
|
-
* @beta
|
|
771
715
|
* @remarks
|
|
772
716
|
* The legs slot. This slot is used to hold items such as
|
|
773
717
|
* Leggings.
|
|
@@ -775,7 +719,6 @@ export enum EquipmentSlot {
|
|
|
775
719
|
*/
|
|
776
720
|
Legs = 'Legs',
|
|
777
721
|
/**
|
|
778
|
-
* @beta
|
|
779
722
|
* @remarks
|
|
780
723
|
* The mainhand slot. For players, the mainhand slot refers to
|
|
781
724
|
* the currently active hotbar slot.
|
|
@@ -783,7 +726,6 @@ export enum EquipmentSlot {
|
|
|
783
726
|
*/
|
|
784
727
|
Mainhand = 'Mainhand',
|
|
785
728
|
/**
|
|
786
|
-
* @beta
|
|
787
729
|
* @remarks
|
|
788
730
|
* The offhand slot. This slot is used to hold items such as
|
|
789
731
|
* shields and maps.
|
|
@@ -829,12 +771,10 @@ export enum FluidType {
|
|
|
829
771
|
}
|
|
830
772
|
|
|
831
773
|
/**
|
|
832
|
-
* @beta
|
|
833
774
|
* Represents a game mode for the current world experience.
|
|
834
775
|
*/
|
|
835
776
|
export enum GameMode {
|
|
836
777
|
/**
|
|
837
|
-
* @beta
|
|
838
778
|
* @remarks
|
|
839
779
|
* World is in a more locked-down experience, where blocks may
|
|
840
780
|
* not be manipulated.
|
|
@@ -842,7 +782,6 @@ export enum GameMode {
|
|
|
842
782
|
*/
|
|
843
783
|
adventure = 'adventure',
|
|
844
784
|
/**
|
|
845
|
-
* @beta
|
|
846
785
|
* @remarks
|
|
847
786
|
* World is in a full creative mode. In creative mode, the
|
|
848
787
|
* player has all the resources available in the item selection
|
|
@@ -855,7 +794,6 @@ export enum GameMode {
|
|
|
855
794
|
*/
|
|
856
795
|
creative = 'creative',
|
|
857
796
|
/**
|
|
858
|
-
* @beta
|
|
859
797
|
* @remarks
|
|
860
798
|
* World is in spectator mode. In spectator mode, spectators
|
|
861
799
|
* are always flying and cannot become grounded. Spectators can
|
|
@@ -868,7 +806,6 @@ export enum GameMode {
|
|
|
868
806
|
*/
|
|
869
807
|
spectator = 'spectator',
|
|
870
808
|
/**
|
|
871
|
-
* @beta
|
|
872
809
|
* @remarks
|
|
873
810
|
* World is in a survival mode, where players can take damage
|
|
874
811
|
* and entities may not be peaceful. Survival mode is where the
|
|
@@ -891,26 +828,22 @@ export enum ItemComponentTypes {
|
|
|
891
828
|
}
|
|
892
829
|
|
|
893
830
|
/**
|
|
894
|
-
* @beta
|
|
895
831
|
* Describes how an an item can be moved within a container.
|
|
896
832
|
*/
|
|
897
833
|
export enum ItemLockMode {
|
|
898
834
|
/**
|
|
899
|
-
* @beta
|
|
900
835
|
* @remarks
|
|
901
836
|
* The item cannot be dropped or crafted with.
|
|
902
837
|
*
|
|
903
838
|
*/
|
|
904
839
|
inventory = 'inventory',
|
|
905
840
|
/**
|
|
906
|
-
* @beta
|
|
907
841
|
* @remarks
|
|
908
842
|
* The item has no container restrictions.
|
|
909
843
|
*
|
|
910
844
|
*/
|
|
911
845
|
none = 'none',
|
|
912
846
|
/**
|
|
913
|
-
* @beta
|
|
914
847
|
* @remarks
|
|
915
848
|
* The item cannot be moved from its slot, dropped or crafted
|
|
916
849
|
* with.
|
|
@@ -920,7 +853,6 @@ export enum ItemLockMode {
|
|
|
920
853
|
}
|
|
921
854
|
|
|
922
855
|
/**
|
|
923
|
-
* @beta
|
|
924
856
|
* Enum containing the different phases of the moon based on
|
|
925
857
|
* the current day.,Obtain the current MoonPhase using
|
|
926
858
|
* world.getMoonPhase.
|
|
@@ -933,7 +865,6 @@ export enum ItemLockMode {
|
|
|
933
865
|
*/
|
|
934
866
|
export enum MoonPhase {
|
|
935
867
|
/**
|
|
936
|
-
* @beta
|
|
937
868
|
* @remarks
|
|
938
869
|
* The brightest moon phase. During this phase, cats have a 50%
|
|
939
870
|
* chance of spawning as black cats.
|
|
@@ -941,49 +872,42 @@ export enum MoonPhase {
|
|
|
941
872
|
*/
|
|
942
873
|
FullMoon = 0,
|
|
943
874
|
/**
|
|
944
|
-
* @beta
|
|
945
875
|
* @remarks
|
|
946
876
|
* The phase following the Full Moon.
|
|
947
877
|
*
|
|
948
878
|
*/
|
|
949
879
|
WaningGibbous = 1,
|
|
950
880
|
/**
|
|
951
|
-
* @beta
|
|
952
881
|
* @remarks
|
|
953
882
|
* The phase following the Waxing Crescent.
|
|
954
883
|
*
|
|
955
884
|
*/
|
|
956
885
|
FirstQuarter = 2,
|
|
957
886
|
/**
|
|
958
|
-
* @beta
|
|
959
887
|
* @remarks
|
|
960
888
|
* The phase following the Last Quarter.
|
|
961
889
|
*
|
|
962
890
|
*/
|
|
963
891
|
WaningCrescent = 3,
|
|
964
892
|
/**
|
|
965
|
-
* @beta
|
|
966
893
|
* @remarks
|
|
967
894
|
* The darkest moon phase.
|
|
968
895
|
*
|
|
969
896
|
*/
|
|
970
897
|
NewMoon = 4,
|
|
971
898
|
/**
|
|
972
|
-
* @beta
|
|
973
899
|
* @remarks
|
|
974
900
|
* The phase following the New Moon.
|
|
975
901
|
*
|
|
976
902
|
*/
|
|
977
903
|
WaxingCrescent = 5,
|
|
978
904
|
/**
|
|
979
|
-
* @beta
|
|
980
905
|
* @remarks
|
|
981
906
|
* The phase following the Waning Gibbous.
|
|
982
907
|
*
|
|
983
908
|
*/
|
|
984
909
|
LastQuarter = 6,
|
|
985
910
|
/**
|
|
986
|
-
* @beta
|
|
987
911
|
* @remarks
|
|
988
912
|
* The phase following the First Quarter.
|
|
989
913
|
*
|
|
@@ -992,13 +916,11 @@ export enum MoonPhase {
|
|
|
992
916
|
}
|
|
993
917
|
|
|
994
918
|
/**
|
|
995
|
-
* @beta
|
|
996
919
|
* Used for specifying a sort order for how to display an
|
|
997
920
|
* objective and its list of participants.
|
|
998
921
|
*/
|
|
999
922
|
export enum ObjectiveSortOrder {
|
|
1000
923
|
/**
|
|
1001
|
-
* @beta
|
|
1002
924
|
* @remarks
|
|
1003
925
|
* Objective participant list is displayed in ascending (e.g.,
|
|
1004
926
|
* A-Z) order.
|
|
@@ -1006,7 +928,6 @@ export enum ObjectiveSortOrder {
|
|
|
1006
928
|
*/
|
|
1007
929
|
Ascending = 0,
|
|
1008
930
|
/**
|
|
1009
|
-
* @beta
|
|
1010
931
|
* @remarks
|
|
1011
932
|
* Objective participant list is displayed in descending (e.g.,
|
|
1012
933
|
* Z-A) order.
|
|
@@ -1016,19 +937,16 @@ export enum ObjectiveSortOrder {
|
|
|
1016
937
|
}
|
|
1017
938
|
|
|
1018
939
|
/**
|
|
1019
|
-
* @beta
|
|
1020
940
|
* Contains objectives and participants for the scoreboard.
|
|
1021
941
|
*/
|
|
1022
942
|
export enum ScoreboardIdentityType {
|
|
1023
943
|
/**
|
|
1024
|
-
* @beta
|
|
1025
944
|
* @remarks
|
|
1026
945
|
* This scoreboard participant is tied to an entity.
|
|
1027
946
|
*
|
|
1028
947
|
*/
|
|
1029
948
|
Entity = 'Entity',
|
|
1030
949
|
/**
|
|
1031
|
-
* @beta
|
|
1032
950
|
* @remarks
|
|
1033
951
|
* This scoreboard participant is tied to a pseudo player
|
|
1034
952
|
* entity - typically this is used to store scores as data or
|
|
@@ -1037,7 +955,6 @@ export enum ScoreboardIdentityType {
|
|
|
1037
955
|
*/
|
|
1038
956
|
FakePlayer = 'FakePlayer',
|
|
1039
957
|
/**
|
|
1040
|
-
* @beta
|
|
1041
958
|
* @remarks
|
|
1042
959
|
* This scoreboard participant is tied to a player.
|
|
1043
960
|
*
|
|
@@ -1046,12 +963,10 @@ export enum ScoreboardIdentityType {
|
|
|
1046
963
|
}
|
|
1047
964
|
|
|
1048
965
|
/**
|
|
1049
|
-
* @beta
|
|
1050
966
|
* Describes where the script event originated from.
|
|
1051
967
|
*/
|
|
1052
968
|
export enum ScriptEventSource {
|
|
1053
969
|
/**
|
|
1054
|
-
* @beta
|
|
1055
970
|
* @remarks
|
|
1056
971
|
* The script event originated from a Block such as a Command
|
|
1057
972
|
* Block.
|
|
@@ -1059,7 +974,6 @@ export enum ScriptEventSource {
|
|
|
1059
974
|
*/
|
|
1060
975
|
Block = 'Block',
|
|
1061
976
|
/**
|
|
1062
|
-
* @beta
|
|
1063
977
|
* @remarks
|
|
1064
978
|
* The script event originated from an Entity such as a Player,
|
|
1065
979
|
* Command Block Minecart or Animation Controller.
|
|
@@ -1067,14 +981,12 @@ export enum ScriptEventSource {
|
|
|
1067
981
|
*/
|
|
1068
982
|
Entity = 'Entity',
|
|
1069
983
|
/**
|
|
1070
|
-
* @beta
|
|
1071
984
|
* @remarks
|
|
1072
985
|
* The script event originated from an NPC dialogue.
|
|
1073
986
|
*
|
|
1074
987
|
*/
|
|
1075
988
|
NPCDialogue = 'NPCDialogue',
|
|
1076
989
|
/**
|
|
1077
|
-
* @beta
|
|
1078
990
|
* @remarks
|
|
1079
991
|
* The script event originated from the server, such as from a
|
|
1080
992
|
* runCommand API call or a dedicated server console.
|
|
@@ -1105,7 +1017,6 @@ export enum SignSide {
|
|
|
1105
1017
|
}
|
|
1106
1018
|
|
|
1107
1019
|
/**
|
|
1108
|
-
* @beta
|
|
1109
1020
|
* Provides numeric values for common periods in the Minecraft
|
|
1110
1021
|
* day.
|
|
1111
1022
|
*/
|
|
@@ -1144,27 +1055,23 @@ export enum WatchdogTerminateReason {
|
|
|
1144
1055
|
}
|
|
1145
1056
|
|
|
1146
1057
|
/**
|
|
1147
|
-
* @beta
|
|
1148
1058
|
* Used to specify the type of weather condition within the
|
|
1149
1059
|
* world.
|
|
1150
1060
|
*/
|
|
1151
1061
|
export enum WeatherType {
|
|
1152
1062
|
/**
|
|
1153
|
-
* @beta
|
|
1154
1063
|
* @remarks
|
|
1155
1064
|
* Specifies a clear weather condition.
|
|
1156
1065
|
*
|
|
1157
1066
|
*/
|
|
1158
1067
|
Clear = 'Clear',
|
|
1159
1068
|
/**
|
|
1160
|
-
* @beta
|
|
1161
1069
|
* @remarks
|
|
1162
1070
|
* Specifies a rain weather condition.
|
|
1163
1071
|
*
|
|
1164
1072
|
*/
|
|
1165
1073
|
Rain = 'Rain',
|
|
1166
1074
|
/**
|
|
1167
|
-
* @beta
|
|
1168
1075
|
* @remarks
|
|
1169
1076
|
* Specifies a rain and thunder weather condition.
|
|
1170
1077
|
*
|
|
@@ -1280,6 +1187,7 @@ export type EntityComponentTypeMap = {
|
|
|
1280
1187
|
'minecraft:navigation.generic': EntityNavigationGenericComponent;
|
|
1281
1188
|
'minecraft:navigation.hover': EntityNavigationHoverComponent;
|
|
1282
1189
|
'minecraft:navigation.walk': EntityNavigationWalkComponent;
|
|
1190
|
+
'minecraft:npc': EntityNpcComponent;
|
|
1283
1191
|
'minecraft:onfire': EntityOnFireComponent;
|
|
1284
1192
|
'minecraft:push_through': EntityPushThroughComponent;
|
|
1285
1193
|
'minecraft:rideable': EntityRideableComponent;
|
|
@@ -1308,6 +1216,7 @@ export type EntityComponentTypeMap = {
|
|
|
1308
1216
|
'navigation.generic': EntityNavigationGenericComponent;
|
|
1309
1217
|
'navigation.hover': EntityNavigationHoverComponent;
|
|
1310
1218
|
'navigation.walk': EntityNavigationWalkComponent;
|
|
1219
|
+
npc: EntityNpcComponent;
|
|
1311
1220
|
onfire: EntityOnFireComponent;
|
|
1312
1221
|
push_through: EntityPushThroughComponent;
|
|
1313
1222
|
rideable: EntityRideableComponent;
|
|
@@ -1337,7 +1246,6 @@ export type ItemComponentTypeMap = {
|
|
|
1337
1246
|
};
|
|
1338
1247
|
|
|
1339
1248
|
/**
|
|
1340
|
-
* @beta
|
|
1341
1249
|
* Represents a block in a dimension. A block represents a
|
|
1342
1250
|
* unique X, Y, and Z within a dimension and get/sets the state
|
|
1343
1251
|
* of the block at that location. This type was significantly
|
|
@@ -1352,7 +1260,6 @@ export class Block {
|
|
|
1352
1260
|
*/
|
|
1353
1261
|
readonly dimension: Dimension;
|
|
1354
1262
|
/**
|
|
1355
|
-
* @beta
|
|
1356
1263
|
* @remarks
|
|
1357
1264
|
* Returns true if this block is an air block (i.e., empty
|
|
1358
1265
|
* space).
|
|
@@ -1365,7 +1272,6 @@ export class Block {
|
|
|
1365
1272
|
*/
|
|
1366
1273
|
readonly isAir: boolean;
|
|
1367
1274
|
/**
|
|
1368
|
-
* @beta
|
|
1369
1275
|
* @remarks
|
|
1370
1276
|
* Returns true if this block is a liquid block - (e.g., a
|
|
1371
1277
|
* water block and a lava block are liquid, while an air block
|
|
@@ -1549,7 +1455,6 @@ export class Block {
|
|
|
1549
1455
|
*/
|
|
1550
1456
|
east(steps?: number): Block | undefined;
|
|
1551
1457
|
/**
|
|
1552
|
-
* @beta
|
|
1553
1458
|
* @remarks
|
|
1554
1459
|
* Gets a component (that represents additional capabilities)
|
|
1555
1460
|
* for a block - for example, an inventory component of a chest
|
|
@@ -1651,7 +1556,6 @@ export class Block {
|
|
|
1651
1556
|
*/
|
|
1652
1557
|
hasTag(tag: string): boolean;
|
|
1653
1558
|
/**
|
|
1654
|
-
* @beta
|
|
1655
1559
|
* @remarks
|
|
1656
1560
|
* Returns true if this reference to a block is still valid
|
|
1657
1561
|
* (for example, if the block is unloaded, references to that
|
|
@@ -1814,14 +1718,12 @@ export class BlockAreaSize {
|
|
|
1814
1718
|
}
|
|
1815
1719
|
|
|
1816
1720
|
/**
|
|
1817
|
-
* @beta
|
|
1818
1721
|
* Base type for components associated with blocks.
|
|
1819
1722
|
*/
|
|
1820
1723
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1821
1724
|
export class BlockComponent extends Component {
|
|
1822
1725
|
private constructor();
|
|
1823
1726
|
/**
|
|
1824
|
-
* @beta
|
|
1825
1727
|
* @remarks
|
|
1826
1728
|
* Block instance that this component pertains to.
|
|
1827
1729
|
*
|
|
@@ -1830,7 +1732,6 @@ export class BlockComponent extends Component {
|
|
|
1830
1732
|
}
|
|
1831
1733
|
|
|
1832
1734
|
/**
|
|
1833
|
-
* @beta
|
|
1834
1735
|
* Contains information regarding an event that impacts a
|
|
1835
1736
|
* specific block.
|
|
1836
1737
|
*/
|
|
@@ -1902,7 +1803,6 @@ export class BlockExplodeAfterEventSignal {
|
|
|
1902
1803
|
}
|
|
1903
1804
|
|
|
1904
1805
|
/**
|
|
1905
|
-
* @beta
|
|
1906
1806
|
* Represents the inventory of a block in the world. Used with
|
|
1907
1807
|
* blocks like chests.
|
|
1908
1808
|
*/
|
|
@@ -1996,7 +1896,6 @@ export class BlockLocationIterator implements Iterable<Vector3> {
|
|
|
1996
1896
|
}
|
|
1997
1897
|
|
|
1998
1898
|
/**
|
|
1999
|
-
* @beta
|
|
2000
1899
|
* Contains the combination of type {@link BlockType} and
|
|
2001
1900
|
* properties (also sometimes called block state) which
|
|
2002
1901
|
* describe a block (but does not belong to a specific {@link
|
|
@@ -2808,7 +2707,6 @@ export class BoundingBoxUtils {
|
|
|
2808
2707
|
}
|
|
2809
2708
|
|
|
2810
2709
|
/**
|
|
2811
|
-
* @beta
|
|
2812
2710
|
* Contains information related to changes to a button push.
|
|
2813
2711
|
*/
|
|
2814
2712
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -2823,7 +2721,6 @@ export class ButtonPushAfterEvent extends BlockEvent {
|
|
|
2823
2721
|
}
|
|
2824
2722
|
|
|
2825
2723
|
/**
|
|
2826
|
-
* @beta
|
|
2827
2724
|
* Manages callbacks that are connected to when a button is
|
|
2828
2725
|
* pushed.
|
|
2829
2726
|
*/
|
|
@@ -2833,7 +2730,6 @@ export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal {
|
|
|
2833
2730
|
}
|
|
2834
2731
|
|
|
2835
2732
|
/**
|
|
2836
|
-
* @beta
|
|
2837
2733
|
* Contains methods relating to the active camera for the
|
|
2838
2734
|
* specified player.
|
|
2839
2735
|
*/
|
|
@@ -3032,7 +2928,6 @@ export class CommandResult {
|
|
|
3032
2928
|
}
|
|
3033
2929
|
|
|
3034
2930
|
/**
|
|
3035
|
-
* @beta
|
|
3036
2931
|
* Base class for downstream Component implementations.
|
|
3037
2932
|
*/
|
|
3038
2933
|
export class Component {
|
|
@@ -3044,7 +2939,6 @@ export class Component {
|
|
|
3044
2939
|
*/
|
|
3045
2940
|
readonly typeId: string;
|
|
3046
2941
|
/**
|
|
3047
|
-
* @beta
|
|
3048
2942
|
* @remarks
|
|
3049
2943
|
* Returns whether the component is valid. A component is
|
|
3050
2944
|
* considered valid if its owner is valid, in addition to any
|
|
@@ -3309,7 +3203,6 @@ export class CompoundBlockVolume {
|
|
|
3309
3203
|
}
|
|
3310
3204
|
|
|
3311
3205
|
/**
|
|
3312
|
-
* @beta
|
|
3313
3206
|
* Represents a container that can hold sets of items. Used
|
|
3314
3207
|
* with entities such as Players, Chest Minecarts, Llamas, and
|
|
3315
3208
|
* more.
|
|
@@ -3395,7 +3288,6 @@ export class Container {
|
|
|
3395
3288
|
*/
|
|
3396
3289
|
getSlot(slot: number): ContainerSlot;
|
|
3397
3290
|
/**
|
|
3398
|
-
* @beta
|
|
3399
3291
|
* @remarks
|
|
3400
3292
|
* Returns whether a container object (or the entity or block
|
|
3401
3293
|
* that this container is associated with) is still available
|
|
@@ -3740,14 +3632,12 @@ export class DataDrivenEntityTriggerAfterEvent {
|
|
|
3740
3632
|
* Name of the data driven event being triggered.
|
|
3741
3633
|
*
|
|
3742
3634
|
*/
|
|
3743
|
-
readonly
|
|
3635
|
+
readonly eventId: string;
|
|
3744
3636
|
/**
|
|
3745
3637
|
* @remarks
|
|
3746
3638
|
* An updateable list of modifications to component state that
|
|
3747
3639
|
* are the effect of this triggered event.
|
|
3748
3640
|
*
|
|
3749
|
-
* This function can't be called in read-only mode.
|
|
3750
|
-
*
|
|
3751
3641
|
*/
|
|
3752
3642
|
getModifiers(): DefinitionModifier[];
|
|
3753
3643
|
}
|
|
@@ -3860,56 +3750,6 @@ export class DataDrivenEntityTriggerBeforeEventSignal {
|
|
|
3860
3750
|
unsubscribe(callback: (arg: DataDrivenEntityTriggerBeforeEvent) => void): void;
|
|
3861
3751
|
}
|
|
3862
3752
|
|
|
3863
|
-
/**
|
|
3864
|
-
* @beta
|
|
3865
|
-
* Contains a set of updates to the component definition state
|
|
3866
|
-
* of an entity.
|
|
3867
|
-
*/
|
|
3868
|
-
export class DefinitionModifier {
|
|
3869
|
-
/**
|
|
3870
|
-
* @remarks
|
|
3871
|
-
* Retrieves the list of component groups that will be added
|
|
3872
|
-
* via this definition modification.
|
|
3873
|
-
*
|
|
3874
|
-
*/
|
|
3875
|
-
getComponentGroupsToAdd(): string[];
|
|
3876
|
-
/**
|
|
3877
|
-
* @remarks
|
|
3878
|
-
* Retrieves the list of component groups that will be removed
|
|
3879
|
-
* via this definition modification.
|
|
3880
|
-
*
|
|
3881
|
-
*/
|
|
3882
|
-
getComponentGroupsToRemove(): string[];
|
|
3883
|
-
/**
|
|
3884
|
-
* @remarks
|
|
3885
|
-
* Retrieves the list of entity definition events that will be
|
|
3886
|
-
* fired via this update.
|
|
3887
|
-
*
|
|
3888
|
-
*/
|
|
3889
|
-
getTriggers(): Trigger[];
|
|
3890
|
-
/**
|
|
3891
|
-
* @remarks
|
|
3892
|
-
* Updates the list of component groups that will be added via
|
|
3893
|
-
* this definition modification.
|
|
3894
|
-
*
|
|
3895
|
-
*/
|
|
3896
|
-
setComponentGroupsToAdd(newGroups: string[]): void;
|
|
3897
|
-
/**
|
|
3898
|
-
* @remarks
|
|
3899
|
-
* Updates the list of component groups that will be removed
|
|
3900
|
-
* via this definition modification.
|
|
3901
|
-
*
|
|
3902
|
-
*/
|
|
3903
|
-
setComponentGroupsToRemove(removedGroups: string[]): void;
|
|
3904
|
-
/**
|
|
3905
|
-
* @remarks
|
|
3906
|
-
* Updates the list of entity definition events that will be
|
|
3907
|
-
* fired via this update.
|
|
3908
|
-
*
|
|
3909
|
-
*/
|
|
3910
|
-
setTriggers(newTriggers: Trigger[]): void;
|
|
3911
|
-
}
|
|
3912
|
-
|
|
3913
3753
|
/**
|
|
3914
3754
|
* A class that represents a particular dimension (e.g., The
|
|
3915
3755
|
* End) within a world.
|
|
@@ -4012,7 +3852,6 @@ export class Dimension {
|
|
|
4012
3852
|
options?: BlockFillOptions,
|
|
4013
3853
|
): number;
|
|
4014
3854
|
/**
|
|
4015
|
-
* @beta
|
|
4016
3855
|
* @remarks
|
|
4017
3856
|
* Returns a block instance at the given location.
|
|
4018
3857
|
*
|
|
@@ -4037,7 +3876,6 @@ export class Dimension {
|
|
|
4037
3876
|
*/
|
|
4038
3877
|
getBlock(location: Vector3): Block | undefined;
|
|
4039
3878
|
/**
|
|
4040
|
-
* @beta
|
|
4041
3879
|
* @remarks
|
|
4042
3880
|
* Gets the first block that intersects with a vector emanating
|
|
4043
3881
|
* from a location.
|
|
@@ -4051,7 +3889,6 @@ export class Dimension {
|
|
|
4051
3889
|
*/
|
|
4052
3890
|
getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
4053
3891
|
/**
|
|
4054
|
-
* @beta
|
|
4055
3892
|
* @remarks
|
|
4056
3893
|
* Returns a set of entities based on a set of conditions
|
|
4057
3894
|
* defined via the EntityQueryOptions set of filter criteria.
|
|
@@ -4120,7 +3957,6 @@ export class Dimension {
|
|
|
4120
3957
|
*/
|
|
4121
3958
|
getEntities(options?: EntityQueryOptions): Entity[];
|
|
4122
3959
|
/**
|
|
4123
|
-
* @beta
|
|
4124
3960
|
* @remarks
|
|
4125
3961
|
* Returns a set of entities at a particular location.
|
|
4126
3962
|
*
|
|
@@ -4131,7 +3967,6 @@ export class Dimension {
|
|
|
4131
3967
|
*/
|
|
4132
3968
|
getEntitiesAtBlockLocation(location: Vector3): Entity[];
|
|
4133
3969
|
/**
|
|
4134
|
-
* @beta
|
|
4135
3970
|
* @remarks
|
|
4136
3971
|
* Gets entities that intersect with a specified vector
|
|
4137
3972
|
* emanating from a location.
|
|
@@ -4141,7 +3976,6 @@ export class Dimension {
|
|
|
4141
3976
|
*/
|
|
4142
3977
|
getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): EntityRaycastHit[];
|
|
4143
3978
|
/**
|
|
4144
|
-
* @beta
|
|
4145
3979
|
* @remarks
|
|
4146
3980
|
* Returns a set of players based on a set of conditions
|
|
4147
3981
|
* defined via the EntityQueryOptions set of filter criteria.
|
|
@@ -4162,7 +3996,6 @@ export class Dimension {
|
|
|
4162
3996
|
*/
|
|
4163
3997
|
getWeather(): WeatherType;
|
|
4164
3998
|
/**
|
|
4165
|
-
* @beta
|
|
4166
3999
|
* @remarks
|
|
4167
4000
|
* Runs a command synchronously using the context of the
|
|
4168
4001
|
* broader dimenion.
|
|
@@ -4207,7 +4040,6 @@ export class Dimension {
|
|
|
4207
4040
|
*/
|
|
4208
4041
|
runCommandAsync(commandString: string): Promise<CommandResult>;
|
|
4209
4042
|
/**
|
|
4210
|
-
* @beta
|
|
4211
4043
|
* @remarks
|
|
4212
4044
|
* Sets the current weather within the dimension
|
|
4213
4045
|
*
|
|
@@ -4223,7 +4055,6 @@ export class Dimension {
|
|
|
4223
4055
|
*/
|
|
4224
4056
|
setWeather(weatherType: WeatherType, duration?: number): void;
|
|
4225
4057
|
/**
|
|
4226
|
-
* @beta
|
|
4227
4058
|
* @remarks
|
|
4228
4059
|
* Creates a new entity (e.g., a mob) at the specified
|
|
4229
4060
|
* location.
|
|
@@ -4284,7 +4115,6 @@ export class Dimension {
|
|
|
4284
4115
|
*/
|
|
4285
4116
|
spawnEntity(identifier: string, location: Vector3): Entity;
|
|
4286
4117
|
/**
|
|
4287
|
-
* @beta
|
|
4288
4118
|
* @remarks
|
|
4289
4119
|
* Creates a new item stack as an entity at the specified
|
|
4290
4120
|
* location.
|
|
@@ -4331,7 +4161,6 @@ export class Dimension {
|
|
|
4331
4161
|
*/
|
|
4332
4162
|
spawnItem(itemStack: ItemStack, location: Vector3): Entity;
|
|
4333
4163
|
/**
|
|
4334
|
-
* @beta
|
|
4335
4164
|
* @remarks
|
|
4336
4165
|
* Creates a new particle emitter at a specified location in
|
|
4337
4166
|
* the world.
|
|
@@ -4404,7 +4233,6 @@ export class DimensionTypes {
|
|
|
4404
4233
|
}
|
|
4405
4234
|
|
|
4406
4235
|
/**
|
|
4407
|
-
* @beta
|
|
4408
4236
|
* Represents an effect - like poison - that has been added to
|
|
4409
4237
|
* an Entity.
|
|
4410
4238
|
*/
|
|
@@ -4565,7 +4393,6 @@ export class EffectAddBeforeEventSignal {
|
|
|
4565
4393
|
}
|
|
4566
4394
|
|
|
4567
4395
|
/**
|
|
4568
|
-
* @beta
|
|
4569
4396
|
* Represents a type of effect - like poison - that can be
|
|
4570
4397
|
* applied to an entity.
|
|
4571
4398
|
*/
|
|
@@ -4802,7 +4629,6 @@ export class EnchantmentTypes {
|
|
|
4802
4629
|
export class Entity {
|
|
4803
4630
|
private constructor();
|
|
4804
4631
|
/**
|
|
4805
|
-
* @beta
|
|
4806
4632
|
* @remarks
|
|
4807
4633
|
* Dimension that the entity is currently within.
|
|
4808
4634
|
*
|
|
@@ -4831,7 +4657,6 @@ export class Entity {
|
|
|
4831
4657
|
*/
|
|
4832
4658
|
readonly id: string;
|
|
4833
4659
|
/**
|
|
4834
|
-
* @beta
|
|
4835
4660
|
* @remarks
|
|
4836
4661
|
* Whether the entity is touching a climbable block. For
|
|
4837
4662
|
* example, a player next to a ladder or a spider next to a
|
|
@@ -4841,7 +4666,6 @@ export class Entity {
|
|
|
4841
4666
|
*/
|
|
4842
4667
|
readonly isClimbing: boolean;
|
|
4843
4668
|
/**
|
|
4844
|
-
* @beta
|
|
4845
4669
|
* @remarks
|
|
4846
4670
|
* Whether the entity has a fall distance greater than 0, or
|
|
4847
4671
|
* greater than 1 while gliding.
|
|
@@ -4850,7 +4674,6 @@ export class Entity {
|
|
|
4850
4674
|
*/
|
|
4851
4675
|
readonly isFalling: boolean;
|
|
4852
4676
|
/**
|
|
4853
|
-
* @beta
|
|
4854
4677
|
* @remarks
|
|
4855
4678
|
* Whether any part of the entity is inside a water block.
|
|
4856
4679
|
*
|
|
@@ -4858,7 +4681,6 @@ export class Entity {
|
|
|
4858
4681
|
*/
|
|
4859
4682
|
readonly isInWater: boolean;
|
|
4860
4683
|
/**
|
|
4861
|
-
* @beta
|
|
4862
4684
|
* @remarks
|
|
4863
4685
|
* Whether the entity is on top of a solid block.
|
|
4864
4686
|
*
|
|
@@ -4866,7 +4688,6 @@ export class Entity {
|
|
|
4866
4688
|
*/
|
|
4867
4689
|
readonly isOnGround: boolean;
|
|
4868
4690
|
/**
|
|
4869
|
-
* @beta
|
|
4870
4691
|
* @remarks
|
|
4871
4692
|
* If true, the entity is currently sleeping.
|
|
4872
4693
|
*
|
|
@@ -4874,7 +4695,6 @@ export class Entity {
|
|
|
4874
4695
|
*/
|
|
4875
4696
|
readonly isSleeping: boolean;
|
|
4876
4697
|
/**
|
|
4877
|
-
* @beta
|
|
4878
4698
|
* @remarks
|
|
4879
4699
|
* Whether the entity is sneaking - that is, moving more slowly
|
|
4880
4700
|
* and more quietly.
|
|
@@ -4884,7 +4704,6 @@ export class Entity {
|
|
|
4884
4704
|
*/
|
|
4885
4705
|
isSneaking: boolean;
|
|
4886
4706
|
/**
|
|
4887
|
-
* @beta
|
|
4888
4707
|
* @remarks
|
|
4889
4708
|
* Whether the entity is sprinting. For example, a player using
|
|
4890
4709
|
* the sprint action, an ocelot running away or a pig boosting
|
|
@@ -4894,7 +4713,6 @@ export class Entity {
|
|
|
4894
4713
|
*/
|
|
4895
4714
|
readonly isSprinting: boolean;
|
|
4896
4715
|
/**
|
|
4897
|
-
* @beta
|
|
4898
4716
|
* @remarks
|
|
4899
4717
|
* Whether the entity is in the swimming state. For example, a
|
|
4900
4718
|
* player using the swim action or a fish in water.
|
|
@@ -4913,7 +4731,6 @@ export class Entity {
|
|
|
4913
4731
|
*/
|
|
4914
4732
|
readonly lifetimeState: EntityLifetimeState;
|
|
4915
4733
|
/**
|
|
4916
|
-
* @beta
|
|
4917
4734
|
* @remarks
|
|
4918
4735
|
* Current location of the entity.
|
|
4919
4736
|
*
|
|
@@ -4921,7 +4738,6 @@ export class Entity {
|
|
|
4921
4738
|
*/
|
|
4922
4739
|
readonly location: Vector3;
|
|
4923
4740
|
/**
|
|
4924
|
-
* @beta
|
|
4925
4741
|
* @remarks
|
|
4926
4742
|
* Given name of the entity.
|
|
4927
4743
|
*
|
|
@@ -4930,7 +4746,6 @@ export class Entity {
|
|
|
4930
4746
|
*/
|
|
4931
4747
|
nameTag: string;
|
|
4932
4748
|
/**
|
|
4933
|
-
* @beta
|
|
4934
4749
|
* @remarks
|
|
4935
4750
|
* Returns a scoreboard identity that represents this entity.
|
|
4936
4751
|
* Will remain valid when the entity is killed.
|
|
@@ -4941,11 +4756,12 @@ export class Entity {
|
|
|
4941
4756
|
* @beta
|
|
4942
4757
|
* @remarks
|
|
4943
4758
|
* Retrieves or sets an entity that is used as the target of
|
|
4944
|
-
* AI-related behaviors, like attacking.
|
|
4759
|
+
* AI-related behaviors, like attacking. If the entity
|
|
4760
|
+
* currently has no target returns undefined.
|
|
4945
4761
|
*
|
|
4946
4762
|
* @throws This property can throw when used.
|
|
4947
4763
|
*/
|
|
4948
|
-
readonly target
|
|
4764
|
+
readonly target?: Entity;
|
|
4949
4765
|
/**
|
|
4950
4766
|
* @remarks
|
|
4951
4767
|
* Identifier of the type of the entity - for example,
|
|
@@ -4955,7 +4771,6 @@ export class Entity {
|
|
|
4955
4771
|
*/
|
|
4956
4772
|
readonly typeId: string;
|
|
4957
4773
|
/**
|
|
4958
|
-
* @beta
|
|
4959
4774
|
* @remarks
|
|
4960
4775
|
* Adds or updates an effect, like poison, to the entity.
|
|
4961
4776
|
*
|
|
@@ -5014,7 +4829,6 @@ export class Entity {
|
|
|
5014
4829
|
*/
|
|
5015
4830
|
addEffect(effectType: EffectType | string, duration: number, options?: EntityEffectOptions): void;
|
|
5016
4831
|
/**
|
|
5017
|
-
* @beta
|
|
5018
4832
|
* @remarks
|
|
5019
4833
|
* Adds a specified tag to an entity.
|
|
5020
4834
|
*
|
|
@@ -5049,7 +4863,6 @@ export class Entity {
|
|
|
5049
4863
|
*/
|
|
5050
4864
|
addTag(tag: string): boolean;
|
|
5051
4865
|
/**
|
|
5052
|
-
* @beta
|
|
5053
4866
|
* @remarks
|
|
5054
4867
|
* Applies a set of damage to an entity.
|
|
5055
4868
|
*
|
|
@@ -5082,7 +4895,6 @@ export class Entity {
|
|
|
5082
4895
|
*/
|
|
5083
4896
|
applyDamage(amount: number, options?: EntityApplyDamageByProjectileOptions | EntityApplyDamageOptions): boolean;
|
|
5084
4897
|
/**
|
|
5085
|
-
* @beta
|
|
5086
4898
|
* @remarks
|
|
5087
4899
|
* Applies impulse vector to the current velocity of the
|
|
5088
4900
|
* entity.
|
|
@@ -5104,7 +4916,6 @@ export class Entity {
|
|
|
5104
4916
|
*/
|
|
5105
4917
|
applyImpulse(vector: Vector3): void;
|
|
5106
4918
|
/**
|
|
5107
|
-
* @beta
|
|
5108
4919
|
* @remarks
|
|
5109
4920
|
* Applies impulse vector to the current velocity of the
|
|
5110
4921
|
* entity.
|
|
@@ -5145,7 +4956,6 @@ export class Entity {
|
|
|
5145
4956
|
*/
|
|
5146
4957
|
clearDynamicProperties(): void;
|
|
5147
4958
|
/**
|
|
5148
|
-
* @beta
|
|
5149
4959
|
* @remarks
|
|
5150
4960
|
* Sets the current velocity of the Entity to zero. Note that
|
|
5151
4961
|
* this method may not have an impact on Players.
|
|
@@ -5209,7 +5019,6 @@ export class Entity {
|
|
|
5209
5019
|
*/
|
|
5210
5020
|
extinguishFire(useEffects?: boolean): boolean;
|
|
5211
5021
|
/**
|
|
5212
|
-
* @beta
|
|
5213
5022
|
* @remarks
|
|
5214
5023
|
* Returns the first intersecting block from the direction that
|
|
5215
5024
|
* this entity is looking at.
|
|
@@ -5223,7 +5032,6 @@ export class Entity {
|
|
|
5223
5032
|
*/
|
|
5224
5033
|
getBlockFromViewDirection(options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
5225
5034
|
/**
|
|
5226
|
-
* @beta
|
|
5227
5035
|
* @remarks
|
|
5228
5036
|
* Gets a component (that represents additional capabilities)
|
|
5229
5037
|
* for an entity.
|
|
@@ -5239,7 +5047,6 @@ export class Entity {
|
|
|
5239
5047
|
*/
|
|
5240
5048
|
getComponent<T extends keyof EntityComponentTypeMap>(componentId: T): EntityComponentTypeMap[T] | undefined;
|
|
5241
5049
|
/**
|
|
5242
|
-
* @beta
|
|
5243
5050
|
* @remarks
|
|
5244
5051
|
* Returns all components that are both present on this entity
|
|
5245
5052
|
* and supported by the API.
|
|
@@ -5273,7 +5080,6 @@ export class Entity {
|
|
|
5273
5080
|
*/
|
|
5274
5081
|
getDynamicPropertyTotalByteCount(): number;
|
|
5275
5082
|
/**
|
|
5276
|
-
* @beta
|
|
5277
5083
|
* @remarks
|
|
5278
5084
|
* Returns the effect for the specified EffectType on the
|
|
5279
5085
|
* entity, undefined if the effect is not present, or throws an
|
|
@@ -5289,7 +5095,6 @@ export class Entity {
|
|
|
5289
5095
|
*/
|
|
5290
5096
|
getEffect(effectType: EffectType | string): Effect | undefined;
|
|
5291
5097
|
/**
|
|
5292
|
-
* @beta
|
|
5293
5098
|
* @remarks
|
|
5294
5099
|
* Returns a set of effects applied to this entity.
|
|
5295
5100
|
*
|
|
@@ -5299,7 +5104,6 @@ export class Entity {
|
|
|
5299
5104
|
*/
|
|
5300
5105
|
getEffects(): Effect[];
|
|
5301
5106
|
/**
|
|
5302
|
-
* @beta
|
|
5303
5107
|
* @remarks
|
|
5304
5108
|
* Gets the entities that this entity is looking at by
|
|
5305
5109
|
* performing a ray cast from the view of this entity.
|
|
@@ -5313,7 +5117,6 @@ export class Entity {
|
|
|
5313
5117
|
*/
|
|
5314
5118
|
getEntitiesFromViewDirection(options?: EntityRaycastOptions): EntityRaycastHit[];
|
|
5315
5119
|
/**
|
|
5316
|
-
* @beta
|
|
5317
5120
|
* @remarks
|
|
5318
5121
|
* Returns the current location of the head component of this
|
|
5319
5122
|
* entity.
|
|
@@ -5325,7 +5128,6 @@ export class Entity {
|
|
|
5325
5128
|
*/
|
|
5326
5129
|
getHeadLocation(): Vector3;
|
|
5327
5130
|
/**
|
|
5328
|
-
* @beta
|
|
5329
5131
|
* @remarks
|
|
5330
5132
|
* Gets an entity Property value. If the property was set using
|
|
5331
5133
|
* the setProperty function within the same tick, the updated
|
|
@@ -5343,7 +5145,6 @@ export class Entity {
|
|
|
5343
5145
|
*/
|
|
5344
5146
|
getProperty(identifier: string): boolean | number | string | undefined;
|
|
5345
5147
|
/**
|
|
5346
|
-
* @beta
|
|
5347
5148
|
* @remarks
|
|
5348
5149
|
* Returns the current rotation component of this entity.
|
|
5349
5150
|
*
|
|
@@ -5354,17 +5155,13 @@ export class Entity {
|
|
|
5354
5155
|
*/
|
|
5355
5156
|
getRotation(): Vector2;
|
|
5356
5157
|
/**
|
|
5357
|
-
* @beta
|
|
5358
5158
|
* @remarks
|
|
5359
|
-
* Returns all tags associated with an entity.
|
|
5360
|
-
*
|
|
5361
5159
|
* @returns
|
|
5362
|
-
* Returns
|
|
5160
|
+
* Returns all tags associated with an entity.
|
|
5363
5161
|
* @throws This function can throw errors.
|
|
5364
5162
|
*/
|
|
5365
5163
|
getTags(): string[];
|
|
5366
5164
|
/**
|
|
5367
|
-
* @beta
|
|
5368
5165
|
* @remarks
|
|
5369
5166
|
* Returns the current velocity vector of the entity.
|
|
5370
5167
|
*
|
|
@@ -5384,7 +5181,6 @@ export class Entity {
|
|
|
5384
5181
|
*/
|
|
5385
5182
|
getVelocity(): Vector3;
|
|
5386
5183
|
/**
|
|
5387
|
-
* @beta
|
|
5388
5184
|
* @remarks
|
|
5389
5185
|
* Returns the current view direction of the entity.
|
|
5390
5186
|
*
|
|
@@ -5394,7 +5190,6 @@ export class Entity {
|
|
|
5394
5190
|
*/
|
|
5395
5191
|
getViewDirection(): Vector3;
|
|
5396
5192
|
/**
|
|
5397
|
-
* @beta
|
|
5398
5193
|
* @remarks
|
|
5399
5194
|
* Returns true if the specified component is present on this
|
|
5400
5195
|
* entity.
|
|
@@ -5409,7 +5204,6 @@ export class Entity {
|
|
|
5409
5204
|
*/
|
|
5410
5205
|
hasComponent(componentId: string): boolean;
|
|
5411
5206
|
/**
|
|
5412
|
-
* @beta
|
|
5413
5207
|
* @remarks
|
|
5414
5208
|
* Returns whether an entity has a particular tag.
|
|
5415
5209
|
*
|
|
@@ -5421,7 +5215,6 @@ export class Entity {
|
|
|
5421
5215
|
*/
|
|
5422
5216
|
hasTag(tag: string): boolean;
|
|
5423
5217
|
/**
|
|
5424
|
-
* @beta
|
|
5425
5218
|
* @remarks
|
|
5426
5219
|
* Returns whether the entity can be manipulated by script. A
|
|
5427
5220
|
* Player is considered valid when it's EntityLifetimeState is
|
|
@@ -5432,7 +5225,6 @@ export class Entity {
|
|
|
5432
5225
|
*/
|
|
5433
5226
|
isValid(): boolean;
|
|
5434
5227
|
/**
|
|
5435
|
-
* @beta
|
|
5436
5228
|
* @remarks
|
|
5437
5229
|
* Kills this entity. The entity will drop loot as normal.
|
|
5438
5230
|
*
|
|
@@ -5465,6 +5257,14 @@ export class Entity {
|
|
|
5465
5257
|
kill(): boolean;
|
|
5466
5258
|
/**
|
|
5467
5259
|
* @beta
|
|
5260
|
+
* @remarks
|
|
5261
|
+
* Matches the entity against the passed in options. Uses the
|
|
5262
|
+
* location of the entity for matching if the location is not
|
|
5263
|
+
* specified in the passed in EntityQueryOptions.
|
|
5264
|
+
*
|
|
5265
|
+
* @returns
|
|
5266
|
+
* Returns true if the entity matches the criteria in the
|
|
5267
|
+
* passed in EntityQueryOptions, otherwise it returns false.
|
|
5468
5268
|
* @throws This function can throw errors.
|
|
5469
5269
|
*/
|
|
5470
5270
|
matches(options: EntityQueryOptions): boolean;
|
|
@@ -5496,7 +5296,6 @@ export class Entity {
|
|
|
5496
5296
|
*/
|
|
5497
5297
|
remove(): void;
|
|
5498
5298
|
/**
|
|
5499
|
-
* @beta
|
|
5500
5299
|
* @remarks
|
|
5501
5300
|
* Removes the specified EffectType on the entity, or returns
|
|
5502
5301
|
* false if the effect is not present.
|
|
@@ -5512,7 +5311,6 @@ export class Entity {
|
|
|
5512
5311
|
*/
|
|
5513
5312
|
removeEffect(effectType: EffectType | string): boolean;
|
|
5514
5313
|
/**
|
|
5515
|
-
* @beta
|
|
5516
5314
|
* @remarks
|
|
5517
5315
|
* Removes a specified tag from an entity.
|
|
5518
5316
|
*
|
|
@@ -5526,7 +5324,6 @@ export class Entity {
|
|
|
5526
5324
|
*/
|
|
5527
5325
|
removeTag(tag: string): boolean;
|
|
5528
5326
|
/**
|
|
5529
|
-
* @beta
|
|
5530
5327
|
* @remarks
|
|
5531
5328
|
* Resets an Entity Property back to its default value, as
|
|
5532
5329
|
* specified in the Entity's definition. This property change
|
|
@@ -5550,7 +5347,6 @@ export class Entity {
|
|
|
5550
5347
|
*/
|
|
5551
5348
|
resetProperty(identifier: string): boolean | number | string;
|
|
5552
5349
|
/**
|
|
5553
|
-
* @beta
|
|
5554
5350
|
* @remarks
|
|
5555
5351
|
* Runs a synchronous command on the entity.
|
|
5556
5352
|
*
|
|
@@ -5646,7 +5442,6 @@ export class Entity {
|
|
|
5646
5442
|
*/
|
|
5647
5443
|
setOnFire(seconds: number, useEffects?: boolean): boolean;
|
|
5648
5444
|
/**
|
|
5649
|
-
* @beta
|
|
5650
5445
|
* @remarks
|
|
5651
5446
|
* Sets an Entity Property to the provided value. This property
|
|
5652
5447
|
* change is not applied until the next tick.
|
|
@@ -5670,7 +5465,6 @@ export class Entity {
|
|
|
5670
5465
|
*/
|
|
5671
5466
|
setProperty(identifier: string, value: boolean | number | string): void;
|
|
5672
5467
|
/**
|
|
5673
|
-
* @beta
|
|
5674
5468
|
* @remarks
|
|
5675
5469
|
* Sets the main rotation of the entity.
|
|
5676
5470
|
*
|
|
@@ -5684,7 +5478,6 @@ export class Entity {
|
|
|
5684
5478
|
*/
|
|
5685
5479
|
setRotation(rotation: Vector2): void;
|
|
5686
5480
|
/**
|
|
5687
|
-
* @beta
|
|
5688
5481
|
* @remarks
|
|
5689
5482
|
* Teleports the selected entity to a new location
|
|
5690
5483
|
*
|
|
@@ -5717,7 +5510,6 @@ export class Entity {
|
|
|
5717
5510
|
*/
|
|
5718
5511
|
teleport(location: Vector3, teleportOptions?: TeleportOptions): void;
|
|
5719
5512
|
/**
|
|
5720
|
-
* @beta
|
|
5721
5513
|
* @remarks
|
|
5722
5514
|
* Triggers an entity type event. For every entity, a number of
|
|
5723
5515
|
* events are defined in an entities' definition for key entity
|
|
@@ -5741,7 +5533,6 @@ export class Entity {
|
|
|
5741
5533
|
*/
|
|
5742
5534
|
triggerEvent(eventName: string): void;
|
|
5743
5535
|
/**
|
|
5744
|
-
* @beta
|
|
5745
5536
|
* @remarks
|
|
5746
5537
|
* Attempts to try a teleport, but may not complete the
|
|
5747
5538
|
* teleport operation (for example, if there are blocks at the
|
|
@@ -5833,7 +5624,6 @@ export class EntityAgeableComponent extends EntityComponent {
|
|
|
5833
5624
|
}
|
|
5834
5625
|
|
|
5835
5626
|
/**
|
|
5836
|
-
* @beta
|
|
5837
5627
|
* This is a base abstract class for any entity component that
|
|
5838
5628
|
* centers around a number and can have a minimum, maximum, and
|
|
5839
5629
|
* default defined value.
|
|
@@ -5913,7 +5703,6 @@ export class EntityAttributeComponent extends EntityComponent {
|
|
|
5913
5703
|
}
|
|
5914
5704
|
|
|
5915
5705
|
/**
|
|
5916
|
-
* @beta
|
|
5917
5706
|
* Base class for a family of entity movement events.
|
|
5918
5707
|
*/
|
|
5919
5708
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6021,7 +5810,6 @@ export class EntityBreathableComponent extends EntityComponent {
|
|
|
6021
5810
|
}
|
|
6022
5811
|
|
|
6023
5812
|
/**
|
|
6024
|
-
* @beta
|
|
6025
5813
|
* When added, this component signifies that the entity can
|
|
6026
5814
|
* climb up ladders.
|
|
6027
5815
|
*/
|
|
@@ -6032,7 +5820,6 @@ export class EntityCanClimbComponent extends EntityComponent {
|
|
|
6032
5820
|
}
|
|
6033
5821
|
|
|
6034
5822
|
/**
|
|
6035
|
-
* @beta
|
|
6036
5823
|
* When added, this component signifies that the entity can
|
|
6037
5824
|
* fly, and the pathfinder won't be restricted to paths where a
|
|
6038
5825
|
* solid block is required underneath it.
|
|
@@ -6044,7 +5831,6 @@ export class EntityCanFlyComponent extends EntityComponent {
|
|
|
6044
5831
|
}
|
|
6045
5832
|
|
|
6046
5833
|
/**
|
|
6047
|
-
* @beta
|
|
6048
5834
|
* When added, this component signifies that the entity can
|
|
6049
5835
|
* power jump like the horse does within Minecraft.
|
|
6050
5836
|
*/
|
|
@@ -6055,7 +5841,6 @@ export class EntityCanPowerJumpComponent extends EntityComponent {
|
|
|
6055
5841
|
}
|
|
6056
5842
|
|
|
6057
5843
|
/**
|
|
6058
|
-
* @beta
|
|
6059
5844
|
* Defines the entity's color. Only works on certain entities
|
|
6060
5845
|
* that have predefined color values (e.g., sheep, llama,
|
|
6061
5846
|
* shulker).
|
|
@@ -6075,7 +5860,6 @@ export class EntityColorComponent extends EntityComponent {
|
|
|
6075
5860
|
}
|
|
6076
5861
|
|
|
6077
5862
|
/**
|
|
6078
|
-
* @beta
|
|
6079
5863
|
* Base class for downstream entity components.
|
|
6080
5864
|
*/
|
|
6081
5865
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6084,10 +5868,11 @@ export class EntityComponent extends Component {
|
|
|
6084
5868
|
/**
|
|
6085
5869
|
* @beta
|
|
6086
5870
|
* @remarks
|
|
6087
|
-
* The entity that owns this component.
|
|
5871
|
+
* The entity that owns this component. The entity will be
|
|
5872
|
+
* undefined if it has been removed.
|
|
6088
5873
|
*
|
|
6089
5874
|
*/
|
|
6090
|
-
readonly entity
|
|
5875
|
+
readonly entity?: Entity;
|
|
6091
5876
|
}
|
|
6092
5877
|
|
|
6093
5878
|
/**
|
|
@@ -6116,7 +5901,6 @@ export class EntityDefinitionFeedItem {
|
|
|
6116
5901
|
}
|
|
6117
5902
|
|
|
6118
5903
|
/**
|
|
6119
|
-
* @beta
|
|
6120
5904
|
* Contains data related to the death of an entity in the game.
|
|
6121
5905
|
*/
|
|
6122
5906
|
export class EntityDieAfterEvent {
|
|
@@ -6137,7 +5921,6 @@ export class EntityDieAfterEvent {
|
|
|
6137
5921
|
}
|
|
6138
5922
|
|
|
6139
5923
|
/**
|
|
6140
|
-
* @beta
|
|
6141
5924
|
* Supports registering for an event that fires after an entity
|
|
6142
5925
|
* has died.
|
|
6143
5926
|
*/
|
|
@@ -6175,7 +5958,6 @@ export class EntityDieAfterEventSignal {
|
|
|
6175
5958
|
}
|
|
6176
5959
|
|
|
6177
5960
|
/**
|
|
6178
|
-
* @beta
|
|
6179
5961
|
* Provides access to a mob's equipment slots. This component
|
|
6180
5962
|
* exists for all mob entities.
|
|
6181
5963
|
*/
|
|
@@ -6229,7 +6011,6 @@ export class EntityEquippableComponent extends EntityComponent {
|
|
|
6229
6011
|
}
|
|
6230
6012
|
|
|
6231
6013
|
/**
|
|
6232
|
-
* @beta
|
|
6233
6014
|
* When added, this component signifies that this entity
|
|
6234
6015
|
* doesn't take damage from fire.
|
|
6235
6016
|
*/
|
|
@@ -6240,7 +6021,6 @@ export class EntityFireImmuneComponent extends EntityComponent {
|
|
|
6240
6021
|
}
|
|
6241
6022
|
|
|
6242
6023
|
/**
|
|
6243
|
-
* @beta
|
|
6244
6024
|
* When added, this component signifies that this entity can
|
|
6245
6025
|
* float in liquid blocks.
|
|
6246
6026
|
*/
|
|
@@ -6251,7 +6031,6 @@ export class EntityFloatsInLiquidComponent extends EntityComponent {
|
|
|
6251
6031
|
}
|
|
6252
6032
|
|
|
6253
6033
|
/**
|
|
6254
|
-
* @beta
|
|
6255
6034
|
* Represents the flying speed of an entity.
|
|
6256
6035
|
*/
|
|
6257
6036
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6269,7 +6048,6 @@ export class EntityFlyingSpeedComponent extends EntityComponent {
|
|
|
6269
6048
|
}
|
|
6270
6049
|
|
|
6271
6050
|
/**
|
|
6272
|
-
* @beta
|
|
6273
6051
|
* Defines how much friction affects this entity.
|
|
6274
6052
|
*/
|
|
6275
6053
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6288,7 +6066,6 @@ export class EntityFrictionModifierComponent extends EntityComponent {
|
|
|
6288
6066
|
}
|
|
6289
6067
|
|
|
6290
6068
|
/**
|
|
6291
|
-
* @beta
|
|
6292
6069
|
* Sets the offset from the ground that the entity is actually
|
|
6293
6070
|
* at.
|
|
6294
6071
|
*/
|
|
@@ -6309,7 +6086,6 @@ export class EntityGroundOffsetComponent extends EntityComponent {
|
|
|
6309
6086
|
}
|
|
6310
6087
|
|
|
6311
6088
|
/**
|
|
6312
|
-
* @beta
|
|
6313
6089
|
* Defines the interactions with this entity for healing it.
|
|
6314
6090
|
*/
|
|
6315
6091
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6345,7 +6121,6 @@ export class EntityHealableComponent extends EntityComponent {
|
|
|
6345
6121
|
}
|
|
6346
6122
|
|
|
6347
6123
|
/**
|
|
6348
|
-
* @beta
|
|
6349
6124
|
* Contains information related to an entity when its health
|
|
6350
6125
|
* changes. Warning: don't change the health of an entity in
|
|
6351
6126
|
* this event, or it will cause an infinite loop!
|
|
@@ -6373,7 +6148,6 @@ export class EntityHealthChangedAfterEvent {
|
|
|
6373
6148
|
}
|
|
6374
6149
|
|
|
6375
6150
|
/**
|
|
6376
|
-
* @beta
|
|
6377
6151
|
* Manages callbacks that are connected to when the health of
|
|
6378
6152
|
* an entity changes.
|
|
6379
6153
|
*/
|
|
@@ -6404,7 +6178,6 @@ export class EntityHealthChangedAfterEventSignal {
|
|
|
6404
6178
|
}
|
|
6405
6179
|
|
|
6406
6180
|
/**
|
|
6407
|
-
* @beta
|
|
6408
6181
|
* Defines the health properties of an entity.
|
|
6409
6182
|
*/
|
|
6410
6183
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6414,7 +6187,6 @@ export class EntityHealthComponent extends EntityAttributeComponent {
|
|
|
6414
6187
|
}
|
|
6415
6188
|
|
|
6416
6189
|
/**
|
|
6417
|
-
* @beta
|
|
6418
6190
|
* Contains information related to an entity hitting a block.
|
|
6419
6191
|
*/
|
|
6420
6192
|
export class EntityHitBlockAfterEvent {
|
|
@@ -6440,7 +6212,6 @@ export class EntityHitBlockAfterEvent {
|
|
|
6440
6212
|
}
|
|
6441
6213
|
|
|
6442
6214
|
/**
|
|
6443
|
-
* @beta
|
|
6444
6215
|
* Manages callbacks that are connected to when an entity hits
|
|
6445
6216
|
* a block.
|
|
6446
6217
|
*/
|
|
@@ -6471,7 +6242,6 @@ export class EntityHitBlockAfterEventSignal {
|
|
|
6471
6242
|
}
|
|
6472
6243
|
|
|
6473
6244
|
/**
|
|
6474
|
-
* @beta
|
|
6475
6245
|
* Contains information related to an entity hitting (melee
|
|
6476
6246
|
* attacking) another entity.
|
|
6477
6247
|
*/
|
|
@@ -6492,7 +6262,6 @@ export class EntityHitEntityAfterEvent {
|
|
|
6492
6262
|
}
|
|
6493
6263
|
|
|
6494
6264
|
/**
|
|
6495
|
-
* @beta
|
|
6496
6265
|
* Manages callbacks that are connected to when an entity makes
|
|
6497
6266
|
* a melee attack on another entity.
|
|
6498
6267
|
*/
|
|
@@ -6523,7 +6292,6 @@ export class EntityHitEntityAfterEventSignal {
|
|
|
6523
6292
|
}
|
|
6524
6293
|
|
|
6525
6294
|
/**
|
|
6526
|
-
* @beta
|
|
6527
6295
|
* Contains information related to an entity getting hurt.
|
|
6528
6296
|
*/
|
|
6529
6297
|
export class EntityHurtAfterEvent {
|
|
@@ -6550,7 +6318,6 @@ export class EntityHurtAfterEvent {
|
|
|
6550
6318
|
}
|
|
6551
6319
|
|
|
6552
6320
|
/**
|
|
6553
|
-
* @beta
|
|
6554
6321
|
* Manages callbacks that are connected to when an entity is
|
|
6555
6322
|
* hurt.
|
|
6556
6323
|
*/
|
|
@@ -6579,7 +6346,6 @@ export class EntityHurtAfterEventSignal {
|
|
|
6579
6346
|
}
|
|
6580
6347
|
|
|
6581
6348
|
/**
|
|
6582
|
-
* @beta
|
|
6583
6349
|
* Defines this entity's inventory properties.
|
|
6584
6350
|
*/
|
|
6585
6351
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6603,11 +6369,12 @@ export class EntityInventoryComponent extends EntityComponent {
|
|
|
6603
6369
|
readonly canBeSiphonedFrom: boolean;
|
|
6604
6370
|
/**
|
|
6605
6371
|
* @remarks
|
|
6606
|
-
* Defines the container for this entity.
|
|
6372
|
+
* Defines the container for this entity. The container will be
|
|
6373
|
+
* undefined if the entity has been removed.
|
|
6607
6374
|
*
|
|
6608
6375
|
* @throws This property can throw when used.
|
|
6609
6376
|
*/
|
|
6610
|
-
readonly container
|
|
6377
|
+
readonly container?: Container;
|
|
6611
6378
|
/**
|
|
6612
6379
|
* @remarks
|
|
6613
6380
|
* Type of container this entity has.
|
|
@@ -6641,7 +6408,6 @@ export class EntityInventoryComponent extends EntityComponent {
|
|
|
6641
6408
|
}
|
|
6642
6409
|
|
|
6643
6410
|
/**
|
|
6644
|
-
* @beta
|
|
6645
6411
|
* When added, this component signifies that this entity is a
|
|
6646
6412
|
* baby.
|
|
6647
6413
|
*/
|
|
@@ -6652,7 +6418,6 @@ export class EntityIsBabyComponent extends EntityComponent {
|
|
|
6652
6418
|
}
|
|
6653
6419
|
|
|
6654
6420
|
/**
|
|
6655
|
-
* @beta
|
|
6656
6421
|
* When added, this component signifies that this entity is
|
|
6657
6422
|
* charged.
|
|
6658
6423
|
*/
|
|
@@ -6663,7 +6428,6 @@ export class EntityIsChargedComponent extends EntityComponent {
|
|
|
6663
6428
|
}
|
|
6664
6429
|
|
|
6665
6430
|
/**
|
|
6666
|
-
* @beta
|
|
6667
6431
|
* When added, this component signifies that this entity is
|
|
6668
6432
|
* currently carrying a chest.
|
|
6669
6433
|
*/
|
|
@@ -6674,7 +6438,6 @@ export class EntityIsChestedComponent extends EntityComponent {
|
|
|
6674
6438
|
}
|
|
6675
6439
|
|
|
6676
6440
|
/**
|
|
6677
|
-
* @beta
|
|
6678
6441
|
* When added, this component signifies that dyes can be used
|
|
6679
6442
|
* on this entity to change its color.
|
|
6680
6443
|
*/
|
|
@@ -6685,7 +6448,6 @@ export class EntityIsDyeableComponent extends EntityComponent {
|
|
|
6685
6448
|
}
|
|
6686
6449
|
|
|
6687
6450
|
/**
|
|
6688
|
-
* @beta
|
|
6689
6451
|
* When added, this component signifies that this entity can
|
|
6690
6452
|
* hide from hostile mobs while invisible.
|
|
6691
6453
|
*/
|
|
@@ -6696,7 +6458,6 @@ export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
|
|
|
6696
6458
|
}
|
|
6697
6459
|
|
|
6698
6460
|
/**
|
|
6699
|
-
* @beta
|
|
6700
6461
|
* When added, this component signifies that this entity this
|
|
6701
6462
|
* currently on fire.
|
|
6702
6463
|
*/
|
|
@@ -6707,7 +6468,6 @@ export class EntityIsIgnitedComponent extends EntityComponent {
|
|
|
6707
6468
|
}
|
|
6708
6469
|
|
|
6709
6470
|
/**
|
|
6710
|
-
* @beta
|
|
6711
6471
|
* When added, this component signifies that this entity is an
|
|
6712
6472
|
* illager captain.
|
|
6713
6473
|
*/
|
|
@@ -6718,7 +6478,6 @@ export class EntityIsIllagerCaptainComponent extends EntityComponent {
|
|
|
6718
6478
|
}
|
|
6719
6479
|
|
|
6720
6480
|
/**
|
|
6721
|
-
* @beta
|
|
6722
6481
|
* When added, this component signifies that this entity is
|
|
6723
6482
|
* currently saddled.
|
|
6724
6483
|
*/
|
|
@@ -6729,7 +6488,6 @@ export class EntityIsSaddledComponent extends EntityComponent {
|
|
|
6729
6488
|
}
|
|
6730
6489
|
|
|
6731
6490
|
/**
|
|
6732
|
-
* @beta
|
|
6733
6491
|
* When added, this component signifies that this entity is
|
|
6734
6492
|
* currently shaking.
|
|
6735
6493
|
*/
|
|
@@ -6740,7 +6498,6 @@ export class EntityIsShakingComponent extends EntityComponent {
|
|
|
6740
6498
|
}
|
|
6741
6499
|
|
|
6742
6500
|
/**
|
|
6743
|
-
* @beta
|
|
6744
6501
|
* When added, this component signifies that this entity is
|
|
6745
6502
|
* currently sheared.
|
|
6746
6503
|
*/
|
|
@@ -6751,7 +6508,6 @@ export class EntityIsShearedComponent extends EntityComponent {
|
|
|
6751
6508
|
}
|
|
6752
6509
|
|
|
6753
6510
|
/**
|
|
6754
|
-
* @beta
|
|
6755
6511
|
* When added, this component signifies that this entity can be
|
|
6756
6512
|
* stacked.
|
|
6757
6513
|
*/
|
|
@@ -6762,7 +6518,6 @@ export class EntityIsStackableComponent extends EntityComponent {
|
|
|
6762
6518
|
}
|
|
6763
6519
|
|
|
6764
6520
|
/**
|
|
6765
|
-
* @beta
|
|
6766
6521
|
* When added, this component signifies that this entity is
|
|
6767
6522
|
* currently stunned.
|
|
6768
6523
|
*/
|
|
@@ -6773,7 +6528,6 @@ export class EntityIsStunnedComponent extends EntityComponent {
|
|
|
6773
6528
|
}
|
|
6774
6529
|
|
|
6775
6530
|
/**
|
|
6776
|
-
* @beta
|
|
6777
6531
|
* When added, this component signifies that this entity is
|
|
6778
6532
|
* currently tamed.
|
|
6779
6533
|
*/
|
|
@@ -6784,7 +6538,6 @@ export class EntityIsTamedComponent extends EntityComponent {
|
|
|
6784
6538
|
}
|
|
6785
6539
|
|
|
6786
6540
|
/**
|
|
6787
|
-
* @beta
|
|
6788
6541
|
* If added onto the entity, this indicates that the entity
|
|
6789
6542
|
* represents a free-floating item in the world. Lets you
|
|
6790
6543
|
* retrieve the actual item stack contents via the itemStack
|
|
@@ -6880,7 +6633,6 @@ export class EntityLeashableComponent extends EntityComponent {
|
|
|
6880
6633
|
}
|
|
6881
6634
|
|
|
6882
6635
|
/**
|
|
6883
|
-
* @beta
|
|
6884
6636
|
* Contains data related to an entity loaded within the world.
|
|
6885
6637
|
* This could happen when an unloaded chunk is reloaded, or
|
|
6886
6638
|
* when an entity changes dimensions.
|
|
@@ -6898,7 +6650,6 @@ export class EntityLoadAfterEvent {
|
|
|
6898
6650
|
}
|
|
6899
6651
|
|
|
6900
6652
|
/**
|
|
6901
|
-
* @beta
|
|
6902
6653
|
* Registers a script-based event handler for handling what
|
|
6903
6654
|
* happens when an entity loads.
|
|
6904
6655
|
*/
|
|
@@ -6931,7 +6682,6 @@ export class EntityLoadAfterEventSignal {
|
|
|
6931
6682
|
}
|
|
6932
6683
|
|
|
6933
6684
|
/**
|
|
6934
|
-
* @beta
|
|
6935
6685
|
* Additional variant value. Can be used to further
|
|
6936
6686
|
* differentiate variants.
|
|
6937
6687
|
*/
|
|
@@ -6972,7 +6722,6 @@ export class EntityMountTamingComponent extends EntityComponent {
|
|
|
6972
6722
|
}
|
|
6973
6723
|
|
|
6974
6724
|
/**
|
|
6975
|
-
* @beta
|
|
6976
6725
|
* When added, this movement control allows the mob to swim in
|
|
6977
6726
|
* water and walk on land.
|
|
6978
6727
|
*/
|
|
@@ -6983,7 +6732,6 @@ export class EntityMovementAmphibiousComponent extends EntityBaseMovementCompone
|
|
|
6983
6732
|
}
|
|
6984
6733
|
|
|
6985
6734
|
/**
|
|
6986
|
-
* @beta
|
|
6987
6735
|
* This component accents the movement of an entity.
|
|
6988
6736
|
*/
|
|
6989
6737
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7003,7 +6751,6 @@ export class EntityMovementComponent extends EntityAttributeComponent {
|
|
|
7003
6751
|
}
|
|
7004
6752
|
|
|
7005
6753
|
/**
|
|
7006
|
-
* @beta
|
|
7007
6754
|
* When added, this move control causes the mob to fly.
|
|
7008
6755
|
*/
|
|
7009
6756
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7013,7 +6760,6 @@ export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
|
|
|
7013
6760
|
}
|
|
7014
6761
|
|
|
7015
6762
|
/**
|
|
7016
|
-
* @beta
|
|
7017
6763
|
* When added, this move control allows a mob to fly, swim,
|
|
7018
6764
|
* climb, etc.
|
|
7019
6765
|
*/
|
|
@@ -7048,7 +6794,6 @@ export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
|
|
|
7048
6794
|
}
|
|
7049
6795
|
|
|
7050
6796
|
/**
|
|
7051
|
-
* @beta
|
|
7052
6797
|
* When added, this move control causes the mob to hover.
|
|
7053
6798
|
*/
|
|
7054
6799
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7058,7 +6803,6 @@ export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
|
|
|
7058
6803
|
}
|
|
7059
6804
|
|
|
7060
6805
|
/**
|
|
7061
|
-
* @beta
|
|
7062
6806
|
* Move control that causes the mob to jump as it moves with a
|
|
7063
6807
|
* specified delay between jumps.
|
|
7064
6808
|
*/
|
|
@@ -7069,7 +6813,6 @@ export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
|
|
|
7069
6813
|
}
|
|
7070
6814
|
|
|
7071
6815
|
/**
|
|
7072
|
-
* @beta
|
|
7073
6816
|
* When added, this move control causes the mob to hop as it
|
|
7074
6817
|
* moves.
|
|
7075
6818
|
*/
|
|
@@ -7330,6 +7073,42 @@ export class EntityNavigationWalkComponent extends EntityNavigationComponent {
|
|
|
7330
7073
|
static readonly componentId = 'minecraft:navigation.walk';
|
|
7331
7074
|
}
|
|
7332
7075
|
|
|
7076
|
+
/**
|
|
7077
|
+
* @beta
|
|
7078
|
+
* Adds NPC capabilities to an entity such as custom skin,
|
|
7079
|
+
* name, and dialogue interactions.
|
|
7080
|
+
*/
|
|
7081
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7082
|
+
export class EntityNpcComponent extends EntityComponent {
|
|
7083
|
+
private constructor();
|
|
7084
|
+
/**
|
|
7085
|
+
* @remarks
|
|
7086
|
+
* The DialogueScene that is opened when players first interact
|
|
7087
|
+
* with the NPC.
|
|
7088
|
+
*
|
|
7089
|
+
* This property can't be edited in read-only mode.
|
|
7090
|
+
*
|
|
7091
|
+
*/
|
|
7092
|
+
defaultScene: string;
|
|
7093
|
+
/**
|
|
7094
|
+
* @remarks
|
|
7095
|
+
* The name of the NPC as it is displayed to players.
|
|
7096
|
+
*
|
|
7097
|
+
* This property can't be edited in read-only mode.
|
|
7098
|
+
*
|
|
7099
|
+
*/
|
|
7100
|
+
name: string;
|
|
7101
|
+
/**
|
|
7102
|
+
* @remarks
|
|
7103
|
+
* The index of the skin the NPC will use.
|
|
7104
|
+
*
|
|
7105
|
+
* This property can't be edited in read-only mode.
|
|
7106
|
+
*
|
|
7107
|
+
*/
|
|
7108
|
+
skinIndex: number;
|
|
7109
|
+
static readonly componentId = 'minecraft:npc';
|
|
7110
|
+
}
|
|
7111
|
+
|
|
7333
7112
|
/**
|
|
7334
7113
|
* @beta
|
|
7335
7114
|
* When present on an entity, this entity is on fire.
|
|
@@ -7347,7 +7126,6 @@ export class EntityOnFireComponent extends EntityComponent {
|
|
|
7347
7126
|
}
|
|
7348
7127
|
|
|
7349
7128
|
/**
|
|
7350
|
-
* @beta
|
|
7351
7129
|
* Sets the distance through which the entity can push through.
|
|
7352
7130
|
*/
|
|
7353
7131
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7365,7 +7143,6 @@ export class EntityPushThroughComponent extends EntityComponent {
|
|
|
7365
7143
|
}
|
|
7366
7144
|
|
|
7367
7145
|
/**
|
|
7368
|
-
* @beta
|
|
7369
7146
|
* Data for an event that happens when an entity is removed
|
|
7370
7147
|
* from the world (for example, the entity is unloaded because
|
|
7371
7148
|
* it is not close to players.)
|
|
@@ -7388,7 +7165,6 @@ export class EntityRemoveAfterEvent {
|
|
|
7388
7165
|
}
|
|
7389
7166
|
|
|
7390
7167
|
/**
|
|
7391
|
-
* @beta
|
|
7392
7168
|
* Allows registration for an event that fires when an entity
|
|
7393
7169
|
* is removed from the game (for example, unloaded, or a few
|
|
7394
7170
|
* seconds after they are dead.)
|
|
@@ -7427,7 +7203,6 @@ export class EntityRemoveAfterEventSignal {
|
|
|
7427
7203
|
}
|
|
7428
7204
|
|
|
7429
7205
|
/**
|
|
7430
|
-
* @beta
|
|
7431
7206
|
* Data for an event that happens when an entity is being
|
|
7432
7207
|
* removed from the world (for example, the entity is unloaded
|
|
7433
7208
|
* because it is not close to players.)
|
|
@@ -7443,7 +7218,6 @@ export class EntityRemoveBeforeEvent {
|
|
|
7443
7218
|
}
|
|
7444
7219
|
|
|
7445
7220
|
/**
|
|
7446
|
-
* @beta
|
|
7447
7221
|
* Allows registration for an event that fires when an entity
|
|
7448
7222
|
* is being removed from the game (for example, unloaded, or a
|
|
7449
7223
|
* few seconds after they are dead.)
|
|
@@ -7611,7 +7385,6 @@ export class EntityRidingComponent extends EntityComponent {
|
|
|
7611
7385
|
}
|
|
7612
7386
|
|
|
7613
7387
|
/**
|
|
7614
|
-
* @beta
|
|
7615
7388
|
* Sets the entity's visual size.
|
|
7616
7389
|
*/
|
|
7617
7390
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7629,7 +7402,6 @@ export class EntityScaleComponent extends EntityComponent {
|
|
|
7629
7402
|
}
|
|
7630
7403
|
|
|
7631
7404
|
/**
|
|
7632
|
-
* @beta
|
|
7633
7405
|
* Skin Id value. Can be used to differentiate skins, such as
|
|
7634
7406
|
* base skins for villagers.
|
|
7635
7407
|
*/
|
|
@@ -7648,7 +7420,6 @@ export class EntitySkinIdComponent extends EntityComponent {
|
|
|
7648
7420
|
}
|
|
7649
7421
|
|
|
7650
7422
|
/**
|
|
7651
|
-
* @beta
|
|
7652
7423
|
* Contains data related to an entity spawning within the
|
|
7653
7424
|
* world.
|
|
7654
7425
|
*/
|
|
@@ -7671,7 +7442,6 @@ export class EntitySpawnAfterEvent {
|
|
|
7671
7442
|
}
|
|
7672
7443
|
|
|
7673
7444
|
/**
|
|
7674
|
-
* @beta
|
|
7675
7445
|
* Registers a script-based event handler for handling what
|
|
7676
7446
|
* happens when an entity spawns.
|
|
7677
7447
|
*/
|
|
@@ -7827,7 +7597,7 @@ export class EntityTypes {
|
|
|
7827
7597
|
* Retrieves an entity type using a string-based identifier.
|
|
7828
7598
|
*
|
|
7829
7599
|
*/
|
|
7830
|
-
static get(identifier: string): EntityType;
|
|
7600
|
+
static get(identifier: string): EntityType | undefined;
|
|
7831
7601
|
/**
|
|
7832
7602
|
* @remarks
|
|
7833
7603
|
* Retrieves an iterator of all entity types within this world.
|
|
@@ -7848,7 +7618,6 @@ export class EntityUnderwaterMovementComponent extends EntityAttributeComponent
|
|
|
7848
7618
|
}
|
|
7849
7619
|
|
|
7850
7620
|
/**
|
|
7851
|
-
* @beta
|
|
7852
7621
|
* Used to differentiate the component group of a variant of an
|
|
7853
7622
|
* entity from others. (e.g. ocelot, villager).
|
|
7854
7623
|
*/
|
|
@@ -7867,7 +7636,6 @@ export class EntityVariantComponent extends EntityComponent {
|
|
|
7867
7636
|
}
|
|
7868
7637
|
|
|
7869
7638
|
/**
|
|
7870
|
-
* @beta
|
|
7871
7639
|
* When added, this component signifies that this entity wants
|
|
7872
7640
|
* to become a jockey.
|
|
7873
7641
|
*/
|
|
@@ -7987,7 +7755,6 @@ export class ExplosionBeforeEventSignal {
|
|
|
7987
7755
|
}
|
|
7988
7756
|
|
|
7989
7757
|
/**
|
|
7990
|
-
* @beta
|
|
7991
7758
|
* As part of the Healable component, represents a specific
|
|
7992
7759
|
* item that can be fed to an entity to cause health effects.
|
|
7993
7760
|
*/
|
|
@@ -8019,7 +7786,6 @@ export class FeedItem {
|
|
|
8019
7786
|
}
|
|
8020
7787
|
|
|
8021
7788
|
/**
|
|
8022
|
-
* @beta
|
|
8023
7789
|
* Represents an effect that is applied as a result of a food
|
|
8024
7790
|
* item being fed to an entity.
|
|
8025
7791
|
*/
|
|
@@ -8086,7 +7852,6 @@ export class FluidContainer {
|
|
|
8086
7852
|
}
|
|
8087
7853
|
|
|
8088
7854
|
/**
|
|
8089
|
-
* @beta
|
|
8090
7855
|
* Provides an adaptable interface for callers to subscribe to
|
|
8091
7856
|
* an event that fires when a button is pushed.
|
|
8092
7857
|
*/
|
|
@@ -8112,7 +7877,6 @@ export class IButtonPushAfterEventSignal {
|
|
|
8112
7877
|
}
|
|
8113
7878
|
|
|
8114
7879
|
/**
|
|
8115
|
-
* @beta
|
|
8116
7880
|
* Provides an adaptable interface for callers to subscribe to
|
|
8117
7881
|
* an event that fires after a lever is used.
|
|
8118
7882
|
*/
|
|
@@ -8138,7 +7902,6 @@ export class ILeverActionAfterEventSignal {
|
|
|
8138
7902
|
}
|
|
8139
7903
|
|
|
8140
7904
|
/**
|
|
8141
|
-
* @beta
|
|
8142
7905
|
* Provides an adaptable interface for callers to subscribe to
|
|
8143
7906
|
* an event that fires after a player joins a world.
|
|
8144
7907
|
*/
|
|
@@ -8164,7 +7927,6 @@ export class IPlayerJoinAfterEventSignal {
|
|
|
8164
7927
|
}
|
|
8165
7928
|
|
|
8166
7929
|
/**
|
|
8167
|
-
* @beta
|
|
8168
7930
|
* Provides an adaptable interface for callers to subscribe to
|
|
8169
7931
|
* an event that fires after a player leaves a world.
|
|
8170
7932
|
*/
|
|
@@ -8190,7 +7952,6 @@ export class IPlayerLeaveAfterEventSignal {
|
|
|
8190
7952
|
}
|
|
8191
7953
|
|
|
8192
7954
|
/**
|
|
8193
|
-
* @beta
|
|
8194
7955
|
* Provides an adaptable interface for callers to subscribe to
|
|
8195
7956
|
* an event that fires after a player spawns.
|
|
8196
7957
|
*/
|
|
@@ -8216,7 +7977,6 @@ export class IPlayerSpawnAfterEventSignal {
|
|
|
8216
7977
|
}
|
|
8217
7978
|
|
|
8218
7979
|
/**
|
|
8219
|
-
* @beta
|
|
8220
7980
|
* Contains information related to a chargeable item completing
|
|
8221
7981
|
* being charged.
|
|
8222
7982
|
*/
|
|
@@ -8244,7 +8004,6 @@ export class ItemCompleteUseAfterEvent {
|
|
|
8244
8004
|
}
|
|
8245
8005
|
|
|
8246
8006
|
/**
|
|
8247
|
-
* @beta
|
|
8248
8007
|
* Manages callbacks that are connected to the completion of
|
|
8249
8008
|
* charging for a chargeable item.
|
|
8250
8009
|
*/
|
|
@@ -8272,7 +8031,6 @@ export class ItemCompleteUseAfterEventSignal {
|
|
|
8272
8031
|
}
|
|
8273
8032
|
|
|
8274
8033
|
/**
|
|
8275
|
-
* @beta
|
|
8276
8034
|
* Base class for item components.
|
|
8277
8035
|
*/
|
|
8278
8036
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -8550,7 +8308,6 @@ export class ItemFoodComponent extends ItemComponent {
|
|
|
8550
8308
|
}
|
|
8551
8309
|
|
|
8552
8310
|
/**
|
|
8553
|
-
* @beta
|
|
8554
8311
|
* Contains information related to a chargeable item when the
|
|
8555
8312
|
* player has finished using the item and released the build
|
|
8556
8313
|
* action.
|
|
@@ -8579,7 +8336,6 @@ export class ItemReleaseUseAfterEvent {
|
|
|
8579
8336
|
}
|
|
8580
8337
|
|
|
8581
8338
|
/**
|
|
8582
|
-
* @beta
|
|
8583
8339
|
* Manages callbacks that are connected to the releasing of
|
|
8584
8340
|
* charging for a chargeable item.
|
|
8585
8341
|
*/
|
|
@@ -8607,7 +8363,6 @@ export class ItemReleaseUseAfterEventSignal {
|
|
|
8607
8363
|
}
|
|
8608
8364
|
|
|
8609
8365
|
/**
|
|
8610
|
-
* @beta
|
|
8611
8366
|
* Defines a collection of items.
|
|
8612
8367
|
*/
|
|
8613
8368
|
export class ItemStack {
|
|
@@ -8702,7 +8457,6 @@ export class ItemStack {
|
|
|
8702
8457
|
*/
|
|
8703
8458
|
constructor(itemType: ItemType | string, amount?: number);
|
|
8704
8459
|
/**
|
|
8705
|
-
* @beta
|
|
8706
8460
|
* @remarks
|
|
8707
8461
|
* Creates an exact copy of the item stack, including any
|
|
8708
8462
|
* custom data or properties.
|
|
@@ -8712,7 +8466,6 @@ export class ItemStack {
|
|
|
8712
8466
|
*/
|
|
8713
8467
|
clone(): ItemStack;
|
|
8714
8468
|
/**
|
|
8715
|
-
* @beta
|
|
8716
8469
|
* @remarks
|
|
8717
8470
|
* Get the list of block types this item can break in Adventure
|
|
8718
8471
|
* mode.
|
|
@@ -8722,7 +8475,6 @@ export class ItemStack {
|
|
|
8722
8475
|
*/
|
|
8723
8476
|
getCanDestroy(): string[];
|
|
8724
8477
|
/**
|
|
8725
|
-
* @beta
|
|
8726
8478
|
* @remarks
|
|
8727
8479
|
* Get the list of block types this item can be placed on in
|
|
8728
8480
|
* Adventure mode.
|
|
@@ -8761,7 +8513,6 @@ export class ItemStack {
|
|
|
8761
8513
|
*/
|
|
8762
8514
|
getComponents(): ItemComponent[];
|
|
8763
8515
|
/**
|
|
8764
|
-
* @beta
|
|
8765
8516
|
* @remarks
|
|
8766
8517
|
* Returns the lore value - a secondary display string - for an
|
|
8767
8518
|
* ItemStack.
|
|
@@ -8772,7 +8523,6 @@ export class ItemStack {
|
|
|
8772
8523
|
*/
|
|
8773
8524
|
getLore(): string[];
|
|
8774
8525
|
/**
|
|
8775
|
-
* @beta
|
|
8776
8526
|
* @remarks
|
|
8777
8527
|
* Returns a set of tags associated with this item stack.
|
|
8778
8528
|
*
|
|
@@ -8790,7 +8540,6 @@ export class ItemStack {
|
|
|
8790
8540
|
*/
|
|
8791
8541
|
hasComponent(componentId: string): boolean;
|
|
8792
8542
|
/**
|
|
8793
|
-
* @beta
|
|
8794
8543
|
* @remarks
|
|
8795
8544
|
* Checks whether this item stack has a particular tag
|
|
8796
8545
|
* associated with it.
|
|
@@ -8818,7 +8567,6 @@ export class ItemStack {
|
|
|
8818
8567
|
*/
|
|
8819
8568
|
isStackableWith(itemStack: ItemStack): boolean;
|
|
8820
8569
|
/**
|
|
8821
|
-
* @beta
|
|
8822
8570
|
* @remarks
|
|
8823
8571
|
* The list of block types this item can break in Adventure
|
|
8824
8572
|
* mode. The block names are displayed in the item's tooltip.
|
|
@@ -8839,7 +8587,6 @@ export class ItemStack {
|
|
|
8839
8587
|
*/
|
|
8840
8588
|
setCanDestroy(blockIdentifiers?: string[]): void;
|
|
8841
8589
|
/**
|
|
8842
|
-
* @beta
|
|
8843
8590
|
* @remarks
|
|
8844
8591
|
* The list of block types this item can be placed on in
|
|
8845
8592
|
* Adventure mode. This is only applicable to block items. The
|
|
@@ -8861,7 +8608,6 @@ export class ItemStack {
|
|
|
8861
8608
|
*/
|
|
8862
8609
|
setCanPlaceOn(blockIdentifiers?: string[]): void;
|
|
8863
8610
|
/**
|
|
8864
|
-
* @beta
|
|
8865
8611
|
* @remarks
|
|
8866
8612
|
* Sets the lore value - a secondary display string - for an
|
|
8867
8613
|
* ItemStack. The lore list is cleared if set to an empty
|
|
@@ -8918,7 +8664,6 @@ export class ItemStack {
|
|
|
8918
8664
|
}
|
|
8919
8665
|
|
|
8920
8666
|
/**
|
|
8921
|
-
* @beta
|
|
8922
8667
|
* Contains information related to a chargeable item starting
|
|
8923
8668
|
* to be charged.
|
|
8924
8669
|
*/
|
|
@@ -8946,7 +8691,6 @@ export class ItemStartUseAfterEvent {
|
|
|
8946
8691
|
}
|
|
8947
8692
|
|
|
8948
8693
|
/**
|
|
8949
|
-
* @beta
|
|
8950
8694
|
* Manages callbacks that are connected to the start of
|
|
8951
8695
|
* charging for a chargeable item.
|
|
8952
8696
|
*/
|
|
@@ -8974,7 +8718,6 @@ export class ItemStartUseAfterEventSignal {
|
|
|
8974
8718
|
}
|
|
8975
8719
|
|
|
8976
8720
|
/**
|
|
8977
|
-
* @beta
|
|
8978
8721
|
* Contains information related to an item being used on a
|
|
8979
8722
|
* block. This event fires when a player presses the the Use
|
|
8980
8723
|
* Item / Place Block button to successfully use an item or
|
|
@@ -8998,10 +8741,12 @@ export class ItemStartUseOnAfterEvent {
|
|
|
8998
8741
|
readonly blockFace: Direction;
|
|
8999
8742
|
/**
|
|
9000
8743
|
* @remarks
|
|
9001
|
-
* The impacted item stack that is starting to be used.
|
|
8744
|
+
* The impacted item stack that is starting to be used. Can be
|
|
8745
|
+
* undefined in some gameplay scenarios like pushing a button
|
|
8746
|
+
* with an empty hand.
|
|
9002
8747
|
*
|
|
9003
8748
|
*/
|
|
9004
|
-
readonly itemStack
|
|
8749
|
+
readonly itemStack?: ItemStack;
|
|
9005
8750
|
/**
|
|
9006
8751
|
* @remarks
|
|
9007
8752
|
* Returns the source entity that triggered this item event.
|
|
@@ -9011,7 +8756,6 @@ export class ItemStartUseOnAfterEvent {
|
|
|
9011
8756
|
}
|
|
9012
8757
|
|
|
9013
8758
|
/**
|
|
9014
|
-
* @beta
|
|
9015
8759
|
* Manages callbacks that are connected to an item starting
|
|
9016
8760
|
* being used on a block event.
|
|
9017
8761
|
*/
|
|
@@ -9039,7 +8783,6 @@ export class ItemStartUseOnAfterEventSignal {
|
|
|
9039
8783
|
}
|
|
9040
8784
|
|
|
9041
8785
|
/**
|
|
9042
|
-
* @beta
|
|
9043
8786
|
* Contains information related to a chargeable item has
|
|
9044
8787
|
* finished an items use cycle, or when the player has released
|
|
9045
8788
|
* the use action with the item.
|
|
@@ -9049,9 +8792,11 @@ export class ItemStopUseAfterEvent {
|
|
|
9049
8792
|
/**
|
|
9050
8793
|
* @remarks
|
|
9051
8794
|
* The impacted item stack that is stopping being charged.
|
|
8795
|
+
* ItemStopUseAfterEvent can be called when teleporting to a
|
|
8796
|
+
* different dimension and this can be undefined.
|
|
9052
8797
|
*
|
|
9053
8798
|
*/
|
|
9054
|
-
readonly itemStack
|
|
8799
|
+
readonly itemStack?: ItemStack;
|
|
9055
8800
|
/**
|
|
9056
8801
|
* @remarks
|
|
9057
8802
|
* Returns the source entity that triggered this item event.
|
|
@@ -9068,7 +8813,6 @@ export class ItemStopUseAfterEvent {
|
|
|
9068
8813
|
}
|
|
9069
8814
|
|
|
9070
8815
|
/**
|
|
9071
|
-
* @beta
|
|
9072
8816
|
* Manages callbacks that are connected to the stopping of
|
|
9073
8817
|
* charging for an item that has a registered
|
|
9074
8818
|
* minecraft:chargeable component.
|
|
@@ -9097,7 +8841,6 @@ export class ItemStopUseAfterEventSignal {
|
|
|
9097
8841
|
}
|
|
9098
8842
|
|
|
9099
8843
|
/**
|
|
9100
|
-
* @beta
|
|
9101
8844
|
* Contains information related to an item that has stopped
|
|
9102
8845
|
* being used on a block. This event fires when a player
|
|
9103
8846
|
* successfully uses an item or places a block by pressing the
|
|
@@ -9129,7 +8872,6 @@ export class ItemStopUseOnAfterEvent {
|
|
|
9129
8872
|
}
|
|
9130
8873
|
|
|
9131
8874
|
/**
|
|
9132
|
-
* @beta
|
|
9133
8875
|
* Manages callbacks that are connected to an item stops used
|
|
9134
8876
|
* on a block event.
|
|
9135
8877
|
*/
|
|
@@ -9157,7 +8899,6 @@ export class ItemStopUseOnAfterEventSignal {
|
|
|
9157
8899
|
}
|
|
9158
8900
|
|
|
9159
8901
|
/**
|
|
9160
|
-
* @beta
|
|
9161
8902
|
* Represents the type of an item - for example, Wool.
|
|
9162
8903
|
*/
|
|
9163
8904
|
export class ItemType {
|
|
@@ -9193,7 +8934,6 @@ export class ItemTypes {
|
|
|
9193
8934
|
}
|
|
9194
8935
|
|
|
9195
8936
|
/**
|
|
9196
|
-
* @beta
|
|
9197
8937
|
* Contains information related to an item being used on a
|
|
9198
8938
|
* block. This event fires when an item used by a player
|
|
9199
8939
|
* successfully triggers an entity interaction.
|
|
@@ -9215,7 +8955,6 @@ export class ItemUseAfterEvent {
|
|
|
9215
8955
|
}
|
|
9216
8956
|
|
|
9217
8957
|
/**
|
|
9218
|
-
* @beta
|
|
9219
8958
|
* Manages callbacks that are connected to an item use event.
|
|
9220
8959
|
*/
|
|
9221
8960
|
export class ItemUseAfterEventSignal {
|
|
@@ -9240,7 +8979,6 @@ export class ItemUseAfterEventSignal {
|
|
|
9240
8979
|
}
|
|
9241
8980
|
|
|
9242
8981
|
/**
|
|
9243
|
-
* @beta
|
|
9244
8982
|
* Contains information related to an item being used.
|
|
9245
8983
|
*/
|
|
9246
8984
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -9255,7 +8993,6 @@ export class ItemUseBeforeEvent extends ItemUseAfterEvent {
|
|
|
9255
8993
|
}
|
|
9256
8994
|
|
|
9257
8995
|
/**
|
|
9258
|
-
* @beta
|
|
9259
8996
|
* Manages callbacks that fire before an item is used.
|
|
9260
8997
|
*/
|
|
9261
8998
|
export class ItemUseBeforeEventSignal {
|
|
@@ -9280,7 +9017,6 @@ export class ItemUseBeforeEventSignal {
|
|
|
9280
9017
|
}
|
|
9281
9018
|
|
|
9282
9019
|
/**
|
|
9283
|
-
* @beta
|
|
9284
9020
|
* Contains information related to an item being used on a
|
|
9285
9021
|
* block. This event fires when an item used by a player
|
|
9286
9022
|
* successfully triggers a block interaction.
|
|
@@ -9321,7 +9057,6 @@ export class ItemUseOnAfterEvent {
|
|
|
9321
9057
|
}
|
|
9322
9058
|
|
|
9323
9059
|
/**
|
|
9324
|
-
* @beta
|
|
9325
9060
|
* Manages callbacks that are connected to an item being used
|
|
9326
9061
|
* on a block event.
|
|
9327
9062
|
*/
|
|
@@ -9349,7 +9084,6 @@ export class ItemUseOnAfterEventSignal {
|
|
|
9349
9084
|
}
|
|
9350
9085
|
|
|
9351
9086
|
/**
|
|
9352
|
-
* @beta
|
|
9353
9087
|
* Contains information related to an item being used on a
|
|
9354
9088
|
* block.
|
|
9355
9089
|
*/
|
|
@@ -9365,7 +9099,6 @@ export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
|
|
|
9365
9099
|
}
|
|
9366
9100
|
|
|
9367
9101
|
/**
|
|
9368
|
-
* @beta
|
|
9369
9102
|
* Manages callbacks that fire before an item being used on a
|
|
9370
9103
|
* block event.
|
|
9371
9104
|
*/
|
|
@@ -9393,7 +9126,6 @@ export class ItemUseOnBeforeEventSignal {
|
|
|
9393
9126
|
}
|
|
9394
9127
|
|
|
9395
9128
|
/**
|
|
9396
|
-
* @beta
|
|
9397
9129
|
* Contains information related to changes to a lever
|
|
9398
9130
|
* activating or deactivating.
|
|
9399
9131
|
*/
|
|
@@ -9416,7 +9148,6 @@ export class LeverActionAfterEvent extends BlockEvent {
|
|
|
9416
9148
|
}
|
|
9417
9149
|
|
|
9418
9150
|
/**
|
|
9419
|
-
* @beta
|
|
9420
9151
|
* Manages callbacks that are connected to lever moves
|
|
9421
9152
|
* (activates or deactivates).
|
|
9422
9153
|
*/
|
|
@@ -9495,7 +9226,6 @@ export class MinecraftDimensionTypes {
|
|
|
9495
9226
|
}
|
|
9496
9227
|
|
|
9497
9228
|
/**
|
|
9498
|
-
* @beta
|
|
9499
9229
|
* Contains a set of additional variable values for further
|
|
9500
9230
|
* defining how rendering and animations function.
|
|
9501
9231
|
*/
|
|
@@ -9792,7 +9522,6 @@ export class PistonActivateBeforeEventSignal {
|
|
|
9792
9522
|
export class Player extends Entity {
|
|
9793
9523
|
private constructor();
|
|
9794
9524
|
/**
|
|
9795
|
-
* @beta
|
|
9796
9525
|
* @remarks
|
|
9797
9526
|
* The player's Camera.
|
|
9798
9527
|
*
|
|
@@ -9800,7 +9529,6 @@ export class Player extends Entity {
|
|
|
9800
9529
|
*/
|
|
9801
9530
|
readonly camera: Camera;
|
|
9802
9531
|
/**
|
|
9803
|
-
* @beta
|
|
9804
9532
|
* @remarks
|
|
9805
9533
|
* If true, the player is currently emoting.
|
|
9806
9534
|
*
|
|
@@ -9808,7 +9536,6 @@ export class Player extends Entity {
|
|
|
9808
9536
|
*/
|
|
9809
9537
|
readonly isEmoting: boolean;
|
|
9810
9538
|
/**
|
|
9811
|
-
* @beta
|
|
9812
9539
|
* @remarks
|
|
9813
9540
|
* Whether the player is flying. For example, in Creative or
|
|
9814
9541
|
* Spectator mode.
|
|
@@ -9817,7 +9544,6 @@ export class Player extends Entity {
|
|
|
9817
9544
|
*/
|
|
9818
9545
|
readonly isFlying: boolean;
|
|
9819
9546
|
/**
|
|
9820
|
-
* @beta
|
|
9821
9547
|
* @remarks
|
|
9822
9548
|
* Whether the player is gliding with Elytra.
|
|
9823
9549
|
*
|
|
@@ -9825,7 +9551,6 @@ export class Player extends Entity {
|
|
|
9825
9551
|
*/
|
|
9826
9552
|
readonly isGliding: boolean;
|
|
9827
9553
|
/**
|
|
9828
|
-
* @beta
|
|
9829
9554
|
* @remarks
|
|
9830
9555
|
* Whether the player is jumping. This will remain true while
|
|
9831
9556
|
* the player is holding the jump action.
|
|
@@ -9834,7 +9559,6 @@ export class Player extends Entity {
|
|
|
9834
9559
|
*/
|
|
9835
9560
|
readonly isJumping: boolean;
|
|
9836
9561
|
/**
|
|
9837
|
-
* @beta
|
|
9838
9562
|
* @remarks
|
|
9839
9563
|
* The current overall level for the player, based on their
|
|
9840
9564
|
* experience.
|
|
@@ -9850,7 +9574,6 @@ export class Player extends Entity {
|
|
|
9850
9574
|
*/
|
|
9851
9575
|
readonly name: string;
|
|
9852
9576
|
/**
|
|
9853
|
-
* @beta
|
|
9854
9577
|
* @remarks
|
|
9855
9578
|
* Contains methods for manipulating the on-screen display of a
|
|
9856
9579
|
* Player.
|
|
@@ -9868,7 +9591,6 @@ export class Player extends Entity {
|
|
|
9868
9591
|
*/
|
|
9869
9592
|
selectedSlot: number;
|
|
9870
9593
|
/**
|
|
9871
|
-
* @beta
|
|
9872
9594
|
* @remarks
|
|
9873
9595
|
* The overall total set of experience needed to achieve the
|
|
9874
9596
|
* next level for a player.
|
|
@@ -9877,7 +9599,6 @@ export class Player extends Entity {
|
|
|
9877
9599
|
*/
|
|
9878
9600
|
readonly totalXpNeededForNextLevel: number;
|
|
9879
9601
|
/**
|
|
9880
|
-
* @beta
|
|
9881
9602
|
* @remarks
|
|
9882
9603
|
* The current set of experience achieved for the player.
|
|
9883
9604
|
*
|
|
@@ -9885,7 +9606,6 @@ export class Player extends Entity {
|
|
|
9885
9606
|
*/
|
|
9886
9607
|
readonly xpEarnedAtCurrentLevel: number;
|
|
9887
9608
|
/**
|
|
9888
|
-
* @beta
|
|
9889
9609
|
* @remarks
|
|
9890
9610
|
* Adds/removes experience to/from the Player and returns the
|
|
9891
9611
|
* current experience of the Player.
|
|
@@ -9901,7 +9621,6 @@ export class Player extends Entity {
|
|
|
9901
9621
|
*/
|
|
9902
9622
|
addExperience(amount: number): number;
|
|
9903
9623
|
/**
|
|
9904
|
-
* @beta
|
|
9905
9624
|
* @remarks
|
|
9906
9625
|
* Adds/removes level to/from the Player and returns the
|
|
9907
9626
|
* current level of the Player.
|
|
@@ -9928,7 +9647,6 @@ export class Player extends Entity {
|
|
|
9928
9647
|
*/
|
|
9929
9648
|
getItemCooldown(itemCategory: string): number;
|
|
9930
9649
|
/**
|
|
9931
|
-
* @beta
|
|
9932
9650
|
* @remarks
|
|
9933
9651
|
* Gets the current spawn point of the player.
|
|
9934
9652
|
*
|
|
@@ -9936,7 +9654,6 @@ export class Player extends Entity {
|
|
|
9936
9654
|
*/
|
|
9937
9655
|
getSpawnPoint(): DimensionLocation | undefined;
|
|
9938
9656
|
/**
|
|
9939
|
-
* @beta
|
|
9940
9657
|
* @remarks
|
|
9941
9658
|
* Gets the total experience of the Player.
|
|
9942
9659
|
*
|
|
@@ -9967,7 +9684,6 @@ export class Player extends Entity {
|
|
|
9967
9684
|
*/
|
|
9968
9685
|
playMusic(trackId: string, musicOptions?: MusicOptions): void;
|
|
9969
9686
|
/**
|
|
9970
|
-
* @beta
|
|
9971
9687
|
* @remarks
|
|
9972
9688
|
* Plays a sound that only this particular player can hear.
|
|
9973
9689
|
*
|
|
@@ -10033,7 +9749,6 @@ export class Player extends Entity {
|
|
|
10033
9749
|
*/
|
|
10034
9750
|
queueMusic(trackId: string, musicOptions?: MusicOptions): void;
|
|
10035
9751
|
/**
|
|
10036
|
-
* @beta
|
|
10037
9752
|
* @remarks
|
|
10038
9753
|
* Resets the level of the player.
|
|
10039
9754
|
*
|
|
@@ -10043,7 +9758,6 @@ export class Player extends Entity {
|
|
|
10043
9758
|
*/
|
|
10044
9759
|
resetLevel(): void;
|
|
10045
9760
|
/**
|
|
10046
|
-
* @beta
|
|
10047
9761
|
* @remarks
|
|
10048
9762
|
* Sends a message to the player.
|
|
10049
9763
|
*
|
|
@@ -10105,7 +9819,6 @@ export class Player extends Entity {
|
|
|
10105
9819
|
*/
|
|
10106
9820
|
setOp(isOp: boolean): void;
|
|
10107
9821
|
/**
|
|
10108
|
-
* @beta
|
|
10109
9822
|
* @remarks
|
|
10110
9823
|
* Sets the current starting spawn point for this particular
|
|
10111
9824
|
* player.
|
|
@@ -10149,7 +9862,6 @@ export class Player extends Entity {
|
|
|
10149
9862
|
}
|
|
10150
9863
|
|
|
10151
9864
|
/**
|
|
10152
|
-
* @beta
|
|
10153
9865
|
* Contains information regarding an event after a player
|
|
10154
9866
|
* breaks a block.
|
|
10155
9867
|
*/
|
|
@@ -10186,7 +9898,6 @@ export class PlayerBreakBlockAfterEvent extends BlockEvent {
|
|
|
10186
9898
|
}
|
|
10187
9899
|
|
|
10188
9900
|
/**
|
|
10189
|
-
* @beta
|
|
10190
9901
|
* Manages callbacks that are connected to when a player breaks
|
|
10191
9902
|
* a block.
|
|
10192
9903
|
*/
|
|
@@ -10217,7 +9928,6 @@ export class PlayerBreakBlockAfterEventSignal {
|
|
|
10217
9928
|
}
|
|
10218
9929
|
|
|
10219
9930
|
/**
|
|
10220
|
-
* @beta
|
|
10221
9931
|
* Contains information regarding an event before a player
|
|
10222
9932
|
* breaks a block.
|
|
10223
9933
|
*/
|
|
@@ -10246,7 +9956,6 @@ export class PlayerBreakBlockBeforeEvent extends BlockEvent {
|
|
|
10246
9956
|
}
|
|
10247
9957
|
|
|
10248
9958
|
/**
|
|
10249
|
-
* @beta
|
|
10250
9959
|
* Manages callbacks that are connected to before a player
|
|
10251
9960
|
* breaks a block.
|
|
10252
9961
|
*/
|
|
@@ -10277,7 +9986,6 @@ export class PlayerBreakBlockBeforeEventSignal {
|
|
|
10277
9986
|
}
|
|
10278
9987
|
|
|
10279
9988
|
/**
|
|
10280
|
-
* @beta
|
|
10281
9989
|
* Contains information related to changes to a player's
|
|
10282
9990
|
* dimension having been changed.
|
|
10283
9991
|
*/
|
|
@@ -10317,7 +10025,6 @@ export class PlayerDimensionChangeAfterEvent {
|
|
|
10317
10025
|
}
|
|
10318
10026
|
|
|
10319
10027
|
/**
|
|
10320
|
-
* @beta
|
|
10321
10028
|
* Manages callbacks that are connected to successful player
|
|
10322
10029
|
* dimension changes.
|
|
10323
10030
|
*/
|
|
@@ -10387,11 +10094,16 @@ export class PlayerInteractWithBlockAfterEvent {
|
|
|
10387
10094
|
|
|
10388
10095
|
/**
|
|
10389
10096
|
* @beta
|
|
10097
|
+
* Manages callbacks that are connected to after a player
|
|
10098
|
+
* interacts with a block.
|
|
10390
10099
|
*/
|
|
10391
10100
|
export class PlayerInteractWithBlockAfterEventSignal {
|
|
10392
10101
|
private constructor();
|
|
10393
10102
|
/**
|
|
10394
10103
|
* @remarks
|
|
10104
|
+
* Adds a callback that will be called after a player interacts
|
|
10105
|
+
* with a block.
|
|
10106
|
+
*
|
|
10395
10107
|
* This function can't be called in read-only mode.
|
|
10396
10108
|
*
|
|
10397
10109
|
*/
|
|
@@ -10400,6 +10112,9 @@ export class PlayerInteractWithBlockAfterEventSignal {
|
|
|
10400
10112
|
): (arg: PlayerInteractWithBlockAfterEvent) => void;
|
|
10401
10113
|
/**
|
|
10402
10114
|
* @remarks
|
|
10115
|
+
* Removes a callback from being called after a player
|
|
10116
|
+
* interacts with a block.
|
|
10117
|
+
*
|
|
10403
10118
|
* This function can't be called in read-only mode.
|
|
10404
10119
|
*
|
|
10405
10120
|
* @throws This function can throw errors.
|
|
@@ -10456,11 +10171,16 @@ export class PlayerInteractWithBlockBeforeEvent {
|
|
|
10456
10171
|
|
|
10457
10172
|
/**
|
|
10458
10173
|
* @beta
|
|
10174
|
+
* Manages callbacks that are connected to before a player
|
|
10175
|
+
* interacts with a block.
|
|
10459
10176
|
*/
|
|
10460
10177
|
export class PlayerInteractWithBlockBeforeEventSignal {
|
|
10461
10178
|
private constructor();
|
|
10462
10179
|
/**
|
|
10463
10180
|
* @remarks
|
|
10181
|
+
* Adds a callback that will be called before a player
|
|
10182
|
+
* interacts with a block.
|
|
10183
|
+
*
|
|
10464
10184
|
* This function can't be called in read-only mode.
|
|
10465
10185
|
*
|
|
10466
10186
|
*/
|
|
@@ -10469,6 +10189,9 @@ export class PlayerInteractWithBlockBeforeEventSignal {
|
|
|
10469
10189
|
): (arg: PlayerInteractWithBlockBeforeEvent) => void;
|
|
10470
10190
|
/**
|
|
10471
10191
|
* @remarks
|
|
10192
|
+
* Removes a callback from being called before a player
|
|
10193
|
+
* interacts with a block.
|
|
10194
|
+
*
|
|
10472
10195
|
* This function can't be called in read-only mode.
|
|
10473
10196
|
*
|
|
10474
10197
|
* @throws This function can throw errors.
|
|
@@ -10506,11 +10229,16 @@ export class PlayerInteractWithEntityAfterEvent {
|
|
|
10506
10229
|
|
|
10507
10230
|
/**
|
|
10508
10231
|
* @beta
|
|
10232
|
+
* Manages callbacks that are connected to after a player
|
|
10233
|
+
* interacts with an entity.
|
|
10509
10234
|
*/
|
|
10510
10235
|
export class PlayerInteractWithEntityAfterEventSignal {
|
|
10511
10236
|
private constructor();
|
|
10512
10237
|
/**
|
|
10513
10238
|
* @remarks
|
|
10239
|
+
* Adds a callback that will be called after a player interacts
|
|
10240
|
+
* with an entity.
|
|
10241
|
+
*
|
|
10514
10242
|
* This function can't be called in read-only mode.
|
|
10515
10243
|
*
|
|
10516
10244
|
*/
|
|
@@ -10519,6 +10247,9 @@ export class PlayerInteractWithEntityAfterEventSignal {
|
|
|
10519
10247
|
): (arg: PlayerInteractWithEntityAfterEvent) => void;
|
|
10520
10248
|
/**
|
|
10521
10249
|
* @remarks
|
|
10250
|
+
* Removes a callback from being called after a player
|
|
10251
|
+
* interacts with an entity.
|
|
10252
|
+
*
|
|
10522
10253
|
* This function can't be called in read-only mode.
|
|
10523
10254
|
*
|
|
10524
10255
|
* @throws This function can throw errors.
|
|
@@ -10562,11 +10293,16 @@ export class PlayerInteractWithEntityBeforeEvent {
|
|
|
10562
10293
|
|
|
10563
10294
|
/**
|
|
10564
10295
|
* @beta
|
|
10296
|
+
* Manages callbacks that are connected to before a player
|
|
10297
|
+
* interacts with an entity.
|
|
10565
10298
|
*/
|
|
10566
10299
|
export class PlayerInteractWithEntityBeforeEventSignal {
|
|
10567
10300
|
private constructor();
|
|
10568
10301
|
/**
|
|
10569
10302
|
* @remarks
|
|
10303
|
+
* Adds a callback that will be called before a player
|
|
10304
|
+
* interacts with an entity.
|
|
10305
|
+
*
|
|
10570
10306
|
* This function can't be called in read-only mode.
|
|
10571
10307
|
*
|
|
10572
10308
|
*/
|
|
@@ -10575,6 +10311,9 @@ export class PlayerInteractWithEntityBeforeEventSignal {
|
|
|
10575
10311
|
): (arg: PlayerInteractWithEntityBeforeEvent) => void;
|
|
10576
10312
|
/**
|
|
10577
10313
|
* @remarks
|
|
10314
|
+
* Removes a callback from being called before a player
|
|
10315
|
+
* interacts with an entity.
|
|
10316
|
+
*
|
|
10578
10317
|
* This function can't be called in read-only mode.
|
|
10579
10318
|
*
|
|
10580
10319
|
* @throws This function can throw errors.
|
|
@@ -10609,7 +10348,6 @@ export class PlayerIterator implements Iterable<Player> {
|
|
|
10609
10348
|
}
|
|
10610
10349
|
|
|
10611
10350
|
/**
|
|
10612
|
-
* @beta
|
|
10613
10351
|
* Contains information regarding a player that has joined.
|
|
10614
10352
|
* See the playerSpawn event for more detailed information that
|
|
10615
10353
|
* could be returned after the first time a player has spawned
|
|
@@ -10632,7 +10370,6 @@ export class PlayerJoinAfterEvent {
|
|
|
10632
10370
|
}
|
|
10633
10371
|
|
|
10634
10372
|
/**
|
|
10635
|
-
* @beta
|
|
10636
10373
|
* Manages callbacks that are connected to a player joining the
|
|
10637
10374
|
* world.
|
|
10638
10375
|
*/
|
|
@@ -10642,7 +10379,6 @@ export class PlayerJoinAfterEventSignal extends IPlayerJoinAfterEventSignal {
|
|
|
10642
10379
|
}
|
|
10643
10380
|
|
|
10644
10381
|
/**
|
|
10645
|
-
* @beta
|
|
10646
10382
|
* Contains information regarding a player that has left the
|
|
10647
10383
|
* world.
|
|
10648
10384
|
*/
|
|
@@ -10664,7 +10400,6 @@ export class PlayerLeaveAfterEvent {
|
|
|
10664
10400
|
}
|
|
10665
10401
|
|
|
10666
10402
|
/**
|
|
10667
|
-
* @beta
|
|
10668
10403
|
* Manages callbacks that are connected to a player leaving the
|
|
10669
10404
|
* world.
|
|
10670
10405
|
*/
|
|
@@ -10702,7 +10437,6 @@ export class PlayerLeaveBeforeEventSignal {
|
|
|
10702
10437
|
}
|
|
10703
10438
|
|
|
10704
10439
|
/**
|
|
10705
|
-
* @beta
|
|
10706
10440
|
* Contains information regarding an event where a player
|
|
10707
10441
|
* places a block.
|
|
10708
10442
|
*/
|
|
@@ -10718,7 +10452,6 @@ export class PlayerPlaceBlockAfterEvent extends BlockEvent {
|
|
|
10718
10452
|
}
|
|
10719
10453
|
|
|
10720
10454
|
/**
|
|
10721
|
-
* @beta
|
|
10722
10455
|
* Manages callbacks that are connected to when a block is
|
|
10723
10456
|
* placed by a player.
|
|
10724
10457
|
*/
|
|
@@ -10821,7 +10554,6 @@ export class PlayerPlaceBlockBeforeEventSignal {
|
|
|
10821
10554
|
}
|
|
10822
10555
|
|
|
10823
10556
|
/**
|
|
10824
|
-
* @beta
|
|
10825
10557
|
* An event that contains more information about a player
|
|
10826
10558
|
* spawning.
|
|
10827
10559
|
*/
|
|
@@ -10847,7 +10579,6 @@ export class PlayerSpawnAfterEvent {
|
|
|
10847
10579
|
}
|
|
10848
10580
|
|
|
10849
10581
|
/**
|
|
10850
|
-
* @beta
|
|
10851
10582
|
* Registers an event when a player is spawned (or re-spawned
|
|
10852
10583
|
* after death) and fully ready within the world.
|
|
10853
10584
|
*/
|
|
@@ -10857,7 +10588,6 @@ export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal {
|
|
|
10857
10588
|
}
|
|
10858
10589
|
|
|
10859
10590
|
/**
|
|
10860
|
-
* @beta
|
|
10861
10591
|
* Contains information related to changes to a pressure plate
|
|
10862
10592
|
* pop.
|
|
10863
10593
|
*/
|
|
@@ -10881,7 +10611,6 @@ export class PressurePlatePopAfterEvent extends BlockEvent {
|
|
|
10881
10611
|
}
|
|
10882
10612
|
|
|
10883
10613
|
/**
|
|
10884
|
-
* @beta
|
|
10885
10614
|
* Manages callbacks that are connected to when a pressure
|
|
10886
10615
|
* plate is popped.
|
|
10887
10616
|
*/
|
|
@@ -10909,7 +10638,6 @@ export class PressurePlatePopAfterEventSignal {
|
|
|
10909
10638
|
}
|
|
10910
10639
|
|
|
10911
10640
|
/**
|
|
10912
|
-
* @beta
|
|
10913
10641
|
* Contains information related to changes to a pressure plate
|
|
10914
10642
|
* push.
|
|
10915
10643
|
*/
|
|
@@ -10939,7 +10667,6 @@ export class PressurePlatePushAfterEvent extends BlockEvent {
|
|
|
10939
10667
|
}
|
|
10940
10668
|
|
|
10941
10669
|
/**
|
|
10942
|
-
* @beta
|
|
10943
10670
|
* Manages callbacks that are connected to when a pressure
|
|
10944
10671
|
* plate is pushed.
|
|
10945
10672
|
*/
|
|
@@ -10967,7 +10694,6 @@ export class PressurePlatePushAfterEventSignal {
|
|
|
10967
10694
|
}
|
|
10968
10695
|
|
|
10969
10696
|
/**
|
|
10970
|
-
* @beta
|
|
10971
10697
|
* Contains information related to a projectile hitting a
|
|
10972
10698
|
* block.
|
|
10973
10699
|
*/
|
|
@@ -11015,7 +10741,6 @@ export class ProjectileHitBlockAfterEvent {
|
|
|
11015
10741
|
}
|
|
11016
10742
|
|
|
11017
10743
|
/**
|
|
11018
|
-
* @beta
|
|
11019
10744
|
* Manages callbacks that are connected to when a projectile
|
|
11020
10745
|
* hits a block.
|
|
11021
10746
|
*/
|
|
@@ -11043,7 +10768,6 @@ export class ProjectileHitBlockAfterEventSignal {
|
|
|
11043
10768
|
}
|
|
11044
10769
|
|
|
11045
10770
|
/**
|
|
11046
|
-
* @beta
|
|
11047
10771
|
* Contains information related to a projectile hitting an
|
|
11048
10772
|
* entity.
|
|
11049
10773
|
*/
|
|
@@ -11091,7 +10815,6 @@ export class ProjectileHitEntityAfterEvent {
|
|
|
11091
10815
|
}
|
|
11092
10816
|
|
|
11093
10817
|
/**
|
|
11094
|
-
* @beta
|
|
11095
10818
|
* Manages callbacks that are connected to when a projectile
|
|
11096
10819
|
* hits an entity.
|
|
11097
10820
|
*/
|
|
@@ -11119,7 +10842,6 @@ export class ProjectileHitEntityAfterEventSignal {
|
|
|
11119
10842
|
}
|
|
11120
10843
|
|
|
11121
10844
|
/**
|
|
11122
|
-
* @beta
|
|
11123
10845
|
* Contains objectives and participants for the scoreboard.
|
|
11124
10846
|
*/
|
|
11125
10847
|
export class Scoreboard {
|
|
@@ -11197,7 +10919,6 @@ export class Scoreboard {
|
|
|
11197
10919
|
}
|
|
11198
10920
|
|
|
11199
10921
|
/**
|
|
11200
|
-
* @beta
|
|
11201
10922
|
* Contains an identity of the scoreboard item.
|
|
11202
10923
|
*/
|
|
11203
10924
|
export class ScoreboardIdentity {
|
|
@@ -11238,7 +10959,6 @@ export class ScoreboardIdentity {
|
|
|
11238
10959
|
}
|
|
11239
10960
|
|
|
11240
10961
|
/**
|
|
11241
|
-
* @beta
|
|
11242
10962
|
* Contains objectives and participants for the scoreboard.
|
|
11243
10963
|
*/
|
|
11244
10964
|
export class ScoreboardObjective {
|
|
@@ -11336,7 +11056,6 @@ export class ScoreboardObjective {
|
|
|
11336
11056
|
}
|
|
11337
11057
|
|
|
11338
11058
|
/**
|
|
11339
|
-
* @beta
|
|
11340
11059
|
* Contains a pair of a scoreboard participant and its
|
|
11341
11060
|
* respective score.
|
|
11342
11061
|
*/
|
|
@@ -11357,7 +11076,6 @@ export class ScoreboardScoreInfo {
|
|
|
11357
11076
|
}
|
|
11358
11077
|
|
|
11359
11078
|
/**
|
|
11360
|
-
* @beta
|
|
11361
11079
|
* Contains information about user interface elements that are
|
|
11362
11080
|
* showing up on the screen.
|
|
11363
11081
|
*/
|
|
@@ -11446,7 +11164,6 @@ export class ScreenDisplay {
|
|
|
11446
11164
|
}
|
|
11447
11165
|
|
|
11448
11166
|
/**
|
|
11449
|
-
* @beta
|
|
11450
11167
|
* Returns additional data about a /scriptevent command
|
|
11451
11168
|
* invocation.
|
|
11452
11169
|
*/
|
|
@@ -11495,7 +11212,6 @@ export class ScriptEventCommandMessageAfterEvent {
|
|
|
11495
11212
|
}
|
|
11496
11213
|
|
|
11497
11214
|
/**
|
|
11498
|
-
* @beta
|
|
11499
11215
|
* Allows for registering an event handler that responds to
|
|
11500
11216
|
* inbound /scriptevent commands.
|
|
11501
11217
|
*/
|
|
@@ -11594,7 +11310,6 @@ export class ServerMessageAfterEventSignal {
|
|
|
11594
11310
|
export class System {
|
|
11595
11311
|
private constructor();
|
|
11596
11312
|
/**
|
|
11597
|
-
* @beta
|
|
11598
11313
|
* @remarks
|
|
11599
11314
|
* Returns a collection of after-events for system-level
|
|
11600
11315
|
* operations.
|
|
@@ -11610,14 +11325,12 @@ export class System {
|
|
|
11610
11325
|
*/
|
|
11611
11326
|
readonly beforeEvents: SystemBeforeEvents;
|
|
11612
11327
|
/**
|
|
11613
|
-
* @beta
|
|
11614
11328
|
* @remarks
|
|
11615
11329
|
* Represents the current world tick of the server.
|
|
11616
11330
|
*
|
|
11617
11331
|
*/
|
|
11618
11332
|
readonly currentTick: number;
|
|
11619
11333
|
/**
|
|
11620
|
-
* @beta
|
|
11621
11334
|
* @remarks
|
|
11622
11335
|
* Cancels the execution of a function run that was previously
|
|
11623
11336
|
* scheduled via the `run` function.
|
|
@@ -11654,7 +11367,6 @@ export class System {
|
|
|
11654
11367
|
*/
|
|
11655
11368
|
run(callback: () => void): number;
|
|
11656
11369
|
/**
|
|
11657
|
-
* @beta
|
|
11658
11370
|
* @remarks
|
|
11659
11371
|
* Runs a set of code on an interval.
|
|
11660
11372
|
*
|
|
@@ -11677,7 +11389,6 @@ export class System {
|
|
|
11677
11389
|
*/
|
|
11678
11390
|
runInterval(callback: () => void, tickInterval?: number): number;
|
|
11679
11391
|
/**
|
|
11680
|
-
* @beta
|
|
11681
11392
|
* @remarks
|
|
11682
11393
|
* Runs a set of code at a future time specified by tickDelay.
|
|
11683
11394
|
*
|
|
@@ -11694,7 +11405,6 @@ export class System {
|
|
|
11694
11405
|
}
|
|
11695
11406
|
|
|
11696
11407
|
/**
|
|
11697
|
-
* @beta
|
|
11698
11408
|
* Provides a set of events that fire within the broader
|
|
11699
11409
|
* scripting system within Minecraft.
|
|
11700
11410
|
*/
|
|
@@ -11733,7 +11443,6 @@ export class SystemBeforeEvents {
|
|
|
11733
11443
|
}
|
|
11734
11444
|
|
|
11735
11445
|
/**
|
|
11736
|
-
* @beta
|
|
11737
11446
|
* Contains information related to changes to a target block
|
|
11738
11447
|
* hit.
|
|
11739
11448
|
*/
|
|
@@ -11767,7 +11476,6 @@ export class TargetBlockHitAfterEvent extends BlockEvent {
|
|
|
11767
11476
|
}
|
|
11768
11477
|
|
|
11769
11478
|
/**
|
|
11770
|
-
* @beta
|
|
11771
11479
|
* Manages callbacks that are connected to when a target block
|
|
11772
11480
|
* is hit.
|
|
11773
11481
|
*/
|
|
@@ -11814,7 +11522,6 @@ export class Trigger {
|
|
|
11814
11522
|
}
|
|
11815
11523
|
|
|
11816
11524
|
/**
|
|
11817
|
-
* @beta
|
|
11818
11525
|
* Contains information related to changes to a trip wire trip.
|
|
11819
11526
|
*/
|
|
11820
11527
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -11835,7 +11542,6 @@ export class TripWireTripAfterEvent extends BlockEvent {
|
|
|
11835
11542
|
}
|
|
11836
11543
|
|
|
11837
11544
|
/**
|
|
11838
|
-
* @beta
|
|
11839
11545
|
* Manages callbacks that are connected to when a trip wire is
|
|
11840
11546
|
* tripped.
|
|
11841
11547
|
*/
|
|
@@ -12155,7 +11861,6 @@ export class WeatherChangeAfterEventSignal {
|
|
|
12155
11861
|
export class World {
|
|
12156
11862
|
private constructor();
|
|
12157
11863
|
/**
|
|
12158
|
-
* @beta
|
|
12159
11864
|
* @remarks
|
|
12160
11865
|
* Contains a set of events that are applicable to the entirety
|
|
12161
11866
|
* of the world. Event callbacks are called in a deferred
|
|
@@ -12164,7 +11869,6 @@ export class World {
|
|
|
12164
11869
|
*/
|
|
12165
11870
|
readonly afterEvents: WorldAfterEvents;
|
|
12166
11871
|
/**
|
|
12167
|
-
* @beta
|
|
12168
11872
|
* @remarks
|
|
12169
11873
|
* Contains a set of events that are applicable to the entirety
|
|
12170
11874
|
* of the world. Event callbacks are called immediately. Event
|
|
@@ -12173,7 +11877,6 @@ export class World {
|
|
|
12173
11877
|
*/
|
|
12174
11878
|
readonly beforeEvents: WorldBeforeEvents;
|
|
12175
11879
|
/**
|
|
12176
|
-
* @beta
|
|
12177
11880
|
* @remarks
|
|
12178
11881
|
* Returns the general global scoreboard that applies to the
|
|
12179
11882
|
* world.
|
|
@@ -12199,7 +11902,6 @@ export class World {
|
|
|
12199
11902
|
*/
|
|
12200
11903
|
clearDynamicProperties(): void;
|
|
12201
11904
|
/**
|
|
12202
|
-
* @beta
|
|
12203
11905
|
* @remarks
|
|
12204
11906
|
* Returns the absolute time since the start of the world.
|
|
12205
11907
|
*
|
|
@@ -12213,7 +11915,6 @@ export class World {
|
|
|
12213
11915
|
*/
|
|
12214
11916
|
getAllPlayers(): Player[];
|
|
12215
11917
|
/**
|
|
12216
|
-
* @beta
|
|
12217
11918
|
* @remarks
|
|
12218
11919
|
* Returns the current day.
|
|
12219
11920
|
*
|
|
@@ -12223,7 +11924,6 @@ export class World {
|
|
|
12223
11924
|
*/
|
|
12224
11925
|
getDay(): number;
|
|
12225
11926
|
/**
|
|
12226
|
-
* @beta
|
|
12227
11927
|
* @remarks
|
|
12228
11928
|
* Returns the default Overworld spawn location.
|
|
12229
11929
|
*
|
|
@@ -12335,14 +12035,12 @@ export class World {
|
|
|
12335
12035
|
*/
|
|
12336
12036
|
getEntity(id: string): Entity | undefined;
|
|
12337
12037
|
/**
|
|
12338
|
-
* @beta
|
|
12339
12038
|
* @remarks
|
|
12340
12039
|
* Returns the MoonPhase for the current time.
|
|
12341
12040
|
*
|
|
12342
12041
|
*/
|
|
12343
12042
|
getMoonPhase(): MoonPhase;
|
|
12344
12043
|
/**
|
|
12345
|
-
* @beta
|
|
12346
12044
|
* @remarks
|
|
12347
12045
|
* Returns a set of players based on a set of conditions
|
|
12348
12046
|
* defined via the EntityQueryOptions set of filter criteria.
|
|
@@ -12357,7 +12055,6 @@ export class World {
|
|
|
12357
12055
|
*/
|
|
12358
12056
|
getPlayers(options?: EntityQueryOptions): Player[];
|
|
12359
12057
|
/**
|
|
12360
|
-
* @beta
|
|
12361
12058
|
* @remarks
|
|
12362
12059
|
* Returns the time of day.
|
|
12363
12060
|
*
|
|
@@ -12366,7 +12063,6 @@ export class World {
|
|
|
12366
12063
|
*/
|
|
12367
12064
|
getTimeOfDay(): number;
|
|
12368
12065
|
/**
|
|
12369
|
-
* @beta
|
|
12370
12066
|
* @remarks
|
|
12371
12067
|
* Plays a particular music track for all players.
|
|
12372
12068
|
*
|
|
@@ -12400,7 +12096,6 @@ export class World {
|
|
|
12400
12096
|
*/
|
|
12401
12097
|
playMusic(trackId: string, musicOptions?: MusicOptions): void;
|
|
12402
12098
|
/**
|
|
12403
|
-
* @beta
|
|
12404
12099
|
* @remarks
|
|
12405
12100
|
* Plays a sound for all players.
|
|
12406
12101
|
*
|
|
@@ -12438,7 +12133,6 @@ export class World {
|
|
|
12438
12133
|
*/
|
|
12439
12134
|
playSound(soundId: string, location: Vector3, soundOptions?: WorldSoundOptions): void;
|
|
12440
12135
|
/**
|
|
12441
|
-
* @beta
|
|
12442
12136
|
* @remarks
|
|
12443
12137
|
* Queues an additional music track for players. If a track is
|
|
12444
12138
|
* not playing, a music track will play.
|
|
@@ -12456,7 +12150,6 @@ export class World {
|
|
|
12456
12150
|
*/
|
|
12457
12151
|
queueMusic(trackId: string, musicOptions?: MusicOptions): void;
|
|
12458
12152
|
/**
|
|
12459
|
-
* @beta
|
|
12460
12153
|
* @remarks
|
|
12461
12154
|
* Sends a message to all players.
|
|
12462
12155
|
*
|
|
@@ -12495,7 +12188,6 @@ export class World {
|
|
|
12495
12188
|
*/
|
|
12496
12189
|
sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
|
|
12497
12190
|
/**
|
|
12498
|
-
* @beta
|
|
12499
12191
|
* @remarks
|
|
12500
12192
|
* Sets the world time.
|
|
12501
12193
|
*
|
|
@@ -12506,7 +12198,6 @@ export class World {
|
|
|
12506
12198
|
*/
|
|
12507
12199
|
setAbsoluteTime(absoluteTime: number): void;
|
|
12508
12200
|
/**
|
|
12509
|
-
* @beta
|
|
12510
12201
|
* @remarks
|
|
12511
12202
|
* Sets a default spawn location for all players.
|
|
12512
12203
|
*
|
|
@@ -12590,7 +12281,6 @@ export class World {
|
|
|
12590
12281
|
*/
|
|
12591
12282
|
setDynamicProperty(identifier: string, value?: boolean | number | string | Vector3): void;
|
|
12592
12283
|
/**
|
|
12593
|
-
* @beta
|
|
12594
12284
|
* @remarks
|
|
12595
12285
|
* Sets the time of day.
|
|
12596
12286
|
*
|
|
@@ -12604,7 +12294,6 @@ export class World {
|
|
|
12604
12294
|
*/
|
|
12605
12295
|
setTimeOfDay(timeOfDay: number | TimeOfDay): void;
|
|
12606
12296
|
/**
|
|
12607
|
-
* @beta
|
|
12608
12297
|
* @remarks
|
|
12609
12298
|
* Stops any music tracks from playing.
|
|
12610
12299
|
*
|
|
@@ -12615,7 +12304,6 @@ export class World {
|
|
|
12615
12304
|
}
|
|
12616
12305
|
|
|
12617
12306
|
/**
|
|
12618
|
-
* @beta
|
|
12619
12307
|
* Contains a set of events that are available across the scope
|
|
12620
12308
|
* of the World.
|
|
12621
12309
|
*/
|
|
@@ -12662,21 +12350,18 @@ export class WorldAfterEvents {
|
|
|
12662
12350
|
*/
|
|
12663
12351
|
readonly effectAdd: EffectAddAfterEventSignal;
|
|
12664
12352
|
/**
|
|
12665
|
-
* @beta
|
|
12666
12353
|
* @remarks
|
|
12667
12354
|
* This event fires when an entity dies.
|
|
12668
12355
|
*
|
|
12669
12356
|
*/
|
|
12670
12357
|
readonly entityDie: EntityDieAfterEventSignal;
|
|
12671
12358
|
/**
|
|
12672
|
-
* @beta
|
|
12673
12359
|
* @remarks
|
|
12674
12360
|
* This event fires when entity health changes in any degree.
|
|
12675
12361
|
*
|
|
12676
12362
|
*/
|
|
12677
12363
|
readonly entityHealthChanged: EntityHealthChangedAfterEventSignal;
|
|
12678
12364
|
/**
|
|
12679
|
-
* @beta
|
|
12680
12365
|
* @remarks
|
|
12681
12366
|
* This event fires when an entity hits (that is, melee
|
|
12682
12367
|
* attacks) a block.
|
|
@@ -12684,7 +12369,6 @@ export class WorldAfterEvents {
|
|
|
12684
12369
|
*/
|
|
12685
12370
|
readonly entityHitBlock: EntityHitBlockAfterEventSignal;
|
|
12686
12371
|
/**
|
|
12687
|
-
* @beta
|
|
12688
12372
|
* @remarks
|
|
12689
12373
|
* This event fires when an entity hits (that is, melee
|
|
12690
12374
|
* attacks) another entity.
|
|
@@ -12692,21 +12376,18 @@ export class WorldAfterEvents {
|
|
|
12692
12376
|
*/
|
|
12693
12377
|
readonly entityHitEntity: EntityHitEntityAfterEventSignal;
|
|
12694
12378
|
/**
|
|
12695
|
-
* @beta
|
|
12696
12379
|
* @remarks
|
|
12697
12380
|
* This event fires when an entity is hurt (takes damage).
|
|
12698
12381
|
*
|
|
12699
12382
|
*/
|
|
12700
12383
|
readonly entityHurt: EntityHurtAfterEventSignal;
|
|
12701
12384
|
/**
|
|
12702
|
-
* @beta
|
|
12703
12385
|
* @remarks
|
|
12704
12386
|
* Fires when an entity is loaded.
|
|
12705
12387
|
*
|
|
12706
12388
|
*/
|
|
12707
12389
|
readonly entityLoad: EntityLoadAfterEventSignal;
|
|
12708
12390
|
/**
|
|
12709
|
-
* @beta
|
|
12710
12391
|
* @remarks
|
|
12711
12392
|
* Fires when an entity is removed (for example, potentially
|
|
12712
12393
|
* unloaded, or removed after being killed).
|
|
@@ -12714,7 +12395,6 @@ export class WorldAfterEvents {
|
|
|
12714
12395
|
*/
|
|
12715
12396
|
readonly entityRemove: EntityRemoveAfterEventSignal;
|
|
12716
12397
|
/**
|
|
12717
|
-
* @beta
|
|
12718
12398
|
* @remarks
|
|
12719
12399
|
* This event fires when an entity is spawned.
|
|
12720
12400
|
*
|
|
@@ -12728,7 +12408,6 @@ export class WorldAfterEvents {
|
|
|
12728
12408
|
*/
|
|
12729
12409
|
readonly explosion: ExplosionAfterEventSignal;
|
|
12730
12410
|
/**
|
|
12731
|
-
* @beta
|
|
12732
12411
|
* @remarks
|
|
12733
12412
|
* This event fires when a chargeable item completes charging.
|
|
12734
12413
|
*
|
|
@@ -12745,7 +12424,6 @@ export class WorldAfterEvents {
|
|
|
12745
12424
|
*/
|
|
12746
12425
|
readonly itemDefinitionEvent: ItemDefinitionAfterEventSignal;
|
|
12747
12426
|
/**
|
|
12748
|
-
* @beta
|
|
12749
12427
|
* @remarks
|
|
12750
12428
|
* This event fires when a chargeable item is released from
|
|
12751
12429
|
* charging.
|
|
@@ -12753,14 +12431,12 @@ export class WorldAfterEvents {
|
|
|
12753
12431
|
*/
|
|
12754
12432
|
readonly itemReleaseUse: ItemReleaseUseAfterEventSignal;
|
|
12755
12433
|
/**
|
|
12756
|
-
* @beta
|
|
12757
12434
|
* @remarks
|
|
12758
12435
|
* This event fires when a chargeable item starts charging.
|
|
12759
12436
|
*
|
|
12760
12437
|
*/
|
|
12761
12438
|
readonly itemStartUse: ItemStartUseAfterEventSignal;
|
|
12762
12439
|
/**
|
|
12763
|
-
* @beta
|
|
12764
12440
|
* @remarks
|
|
12765
12441
|
* This event fires when a player successfully uses an item or
|
|
12766
12442
|
* places a block by pressing the Use Item / Place Block
|
|
@@ -12771,14 +12447,12 @@ export class WorldAfterEvents {
|
|
|
12771
12447
|
*/
|
|
12772
12448
|
readonly itemStartUseOn: ItemStartUseOnAfterEventSignal;
|
|
12773
12449
|
/**
|
|
12774
|
-
* @beta
|
|
12775
12450
|
* @remarks
|
|
12776
12451
|
* This event fires when a chargeable item stops charging.
|
|
12777
12452
|
*
|
|
12778
12453
|
*/
|
|
12779
12454
|
readonly itemStopUse: ItemStopUseAfterEventSignal;
|
|
12780
12455
|
/**
|
|
12781
|
-
* @beta
|
|
12782
12456
|
* @remarks
|
|
12783
12457
|
* This event fires when a player releases the Use Item / Place
|
|
12784
12458
|
* Block button after successfully using an item. Note: This
|
|
@@ -12787,7 +12461,6 @@ export class WorldAfterEvents {
|
|
|
12787
12461
|
*/
|
|
12788
12462
|
readonly itemStopUseOn: ItemStopUseOnAfterEventSignal;
|
|
12789
12463
|
/**
|
|
12790
|
-
* @beta
|
|
12791
12464
|
* @remarks
|
|
12792
12465
|
* This event fires when an item is successfully used by a
|
|
12793
12466
|
* player.
|
|
@@ -12795,7 +12468,6 @@ export class WorldAfterEvents {
|
|
|
12795
12468
|
*/
|
|
12796
12469
|
readonly itemUse: ItemUseAfterEventSignal;
|
|
12797
12470
|
/**
|
|
12798
|
-
* @beta
|
|
12799
12471
|
* @remarks
|
|
12800
12472
|
* This event fires when an item is used on a block by a
|
|
12801
12473
|
* player.
|
|
@@ -12824,14 +12496,12 @@ export class WorldAfterEvents {
|
|
|
12824
12496
|
*/
|
|
12825
12497
|
readonly pistonActivate: PistonActivateAfterEventSignal;
|
|
12826
12498
|
/**
|
|
12827
|
-
* @beta
|
|
12828
12499
|
* @remarks
|
|
12829
12500
|
* This event fires for a block that is broken by a player.
|
|
12830
12501
|
*
|
|
12831
12502
|
*/
|
|
12832
12503
|
readonly playerBreakBlock: PlayerBreakBlockAfterEventSignal;
|
|
12833
12504
|
/**
|
|
12834
|
-
* @beta
|
|
12835
12505
|
* @remarks
|
|
12836
12506
|
* Fires when a player moved to a different dimension.
|
|
12837
12507
|
*
|
|
@@ -12860,7 +12530,6 @@ export class WorldAfterEvents {
|
|
|
12860
12530
|
*/
|
|
12861
12531
|
readonly playerLeave: PlayerLeaveAfterEventSignal;
|
|
12862
12532
|
/**
|
|
12863
|
-
* @beta
|
|
12864
12533
|
* @remarks
|
|
12865
12534
|
* This event fires for a block that is placed by a player.
|
|
12866
12535
|
*
|
|
@@ -12875,7 +12544,6 @@ export class WorldAfterEvents {
|
|
|
12875
12544
|
*/
|
|
12876
12545
|
readonly playerSpawn: PlayerSpawnAfterEventSignal;
|
|
12877
12546
|
/**
|
|
12878
|
-
* @beta
|
|
12879
12547
|
* @remarks
|
|
12880
12548
|
* A pressure plate has popped back up (i.e., there are no
|
|
12881
12549
|
* entities on the pressure plate.)
|
|
@@ -12883,7 +12551,6 @@ export class WorldAfterEvents {
|
|
|
12883
12551
|
*/
|
|
12884
12552
|
readonly pressurePlatePop: PressurePlatePopAfterEventSignal;
|
|
12885
12553
|
/**
|
|
12886
|
-
* @beta
|
|
12887
12554
|
* @remarks
|
|
12888
12555
|
* A pressure plate has pushed (at least one entity has moved
|
|
12889
12556
|
* onto a pressure plate.)
|
|
@@ -12891,28 +12558,24 @@ export class WorldAfterEvents {
|
|
|
12891
12558
|
*/
|
|
12892
12559
|
readonly pressurePlatePush: PressurePlatePushAfterEventSignal;
|
|
12893
12560
|
/**
|
|
12894
|
-
* @beta
|
|
12895
12561
|
* @remarks
|
|
12896
12562
|
* This event fires when a projectile hits a block.
|
|
12897
12563
|
*
|
|
12898
12564
|
*/
|
|
12899
12565
|
readonly projectileHitBlock: ProjectileHitBlockAfterEventSignal;
|
|
12900
12566
|
/**
|
|
12901
|
-
* @beta
|
|
12902
12567
|
* @remarks
|
|
12903
12568
|
* This event fires when a projectile hits an entity.
|
|
12904
12569
|
*
|
|
12905
12570
|
*/
|
|
12906
12571
|
readonly projectileHitEntity: ProjectileHitEntityAfterEventSignal;
|
|
12907
12572
|
/**
|
|
12908
|
-
* @beta
|
|
12909
12573
|
* @remarks
|
|
12910
12574
|
* A target block was hit.
|
|
12911
12575
|
*
|
|
12912
12576
|
*/
|
|
12913
12577
|
readonly targetBlockHit: TargetBlockHitAfterEventSignal;
|
|
12914
12578
|
/**
|
|
12915
|
-
* @beta
|
|
12916
12579
|
* @remarks
|
|
12917
12580
|
* A trip wire was tripped.
|
|
12918
12581
|
*
|
|
@@ -12938,7 +12601,6 @@ export class WorldAfterEvents {
|
|
|
12938
12601
|
}
|
|
12939
12602
|
|
|
12940
12603
|
/**
|
|
12941
|
-
* @beta
|
|
12942
12604
|
* A set of events that fire before an actual action occurs. In
|
|
12943
12605
|
* most cases, you can potentially cancel or modify the
|
|
12944
12606
|
* impending event. Note that in before events any APIs that
|
|
@@ -12973,7 +12635,6 @@ export class WorldBeforeEvents {
|
|
|
12973
12635
|
*/
|
|
12974
12636
|
readonly effectAdd: EffectAddBeforeEventSignal;
|
|
12975
12637
|
/**
|
|
12976
|
-
* @beta
|
|
12977
12638
|
* @remarks
|
|
12978
12639
|
* Fires before an entity is removed from the world (for
|
|
12979
12640
|
* example, unloaded or removed after being killed.)
|
|
@@ -13019,7 +12680,6 @@ export class WorldBeforeEvents {
|
|
|
13019
12680
|
*/
|
|
13020
12681
|
readonly pistonActivate: PistonActivateBeforeEventSignal;
|
|
13021
12682
|
/**
|
|
13022
|
-
* @beta
|
|
13023
12683
|
* @remarks
|
|
13024
12684
|
* This event fires before a block is broken by a player.
|
|
13025
12685
|
*
|
|
@@ -13089,7 +12749,6 @@ export class WorldInitializeAfterEventSignal {
|
|
|
13089
12749
|
}
|
|
13090
12750
|
|
|
13091
12751
|
/**
|
|
13092
|
-
* @beta
|
|
13093
12752
|
* Contains optional parameters for registering a block event.
|
|
13094
12753
|
*/
|
|
13095
12754
|
export interface BlockEventOptions {
|
|
@@ -13124,7 +12783,6 @@ export interface BlockFillOptions {
|
|
|
13124
12783
|
}
|
|
13125
12784
|
|
|
13126
12785
|
/**
|
|
13127
|
-
* @beta
|
|
13128
12786
|
* Contains more information for events where a block is hit.
|
|
13129
12787
|
*/
|
|
13130
12788
|
export interface BlockHitInformation {
|
|
@@ -13150,7 +12808,6 @@ export interface BlockHitInformation {
|
|
|
13150
12808
|
}
|
|
13151
12809
|
|
|
13152
12810
|
/**
|
|
13153
|
-
* @beta
|
|
13154
12811
|
* Contains information for block raycast hit results.
|
|
13155
12812
|
*/
|
|
13156
12813
|
export interface BlockRaycastHit {
|
|
@@ -13176,7 +12833,6 @@ export interface BlockRaycastHit {
|
|
|
13176
12833
|
}
|
|
13177
12834
|
|
|
13178
12835
|
/**
|
|
13179
|
-
* @beta
|
|
13180
12836
|
* Contains additional options for configuring a block raycast
|
|
13181
12837
|
* query.
|
|
13182
12838
|
*/
|
|
@@ -13285,15 +12941,11 @@ export interface BoundingBox {
|
|
|
13285
12941
|
min: Vector3;
|
|
13286
12942
|
}
|
|
13287
12943
|
|
|
13288
|
-
/**
|
|
13289
|
-
* @beta
|
|
13290
|
-
*/
|
|
13291
12944
|
export interface CameraDefaultOptions {
|
|
13292
12945
|
easeOptions: CameraEaseOptions;
|
|
13293
12946
|
}
|
|
13294
12947
|
|
|
13295
12948
|
/**
|
|
13296
|
-
* @beta
|
|
13297
12949
|
* Contains options associated with a camera ease operation.
|
|
13298
12950
|
*/
|
|
13299
12951
|
export interface CameraEaseOptions {
|
|
@@ -13312,7 +12964,6 @@ export interface CameraEaseOptions {
|
|
|
13312
12964
|
}
|
|
13313
12965
|
|
|
13314
12966
|
/**
|
|
13315
|
-
* @beta
|
|
13316
12967
|
* Used to initiate a full-screen color fade.
|
|
13317
12968
|
*/
|
|
13318
12969
|
export interface CameraFadeOptions {
|
|
@@ -13331,7 +12982,6 @@ export interface CameraFadeOptions {
|
|
|
13331
12982
|
}
|
|
13332
12983
|
|
|
13333
12984
|
/**
|
|
13334
|
-
* @beta
|
|
13335
12985
|
* Contains timings for a fade transition.
|
|
13336
12986
|
*/
|
|
13337
12987
|
export interface CameraFadeTimeOptions {
|
|
@@ -13355,35 +13005,23 @@ export interface CameraFadeTimeOptions {
|
|
|
13355
13005
|
holdTime: number;
|
|
13356
13006
|
}
|
|
13357
13007
|
|
|
13358
|
-
/**
|
|
13359
|
-
* @beta
|
|
13360
|
-
*/
|
|
13361
13008
|
export interface CameraSetFacingOptions {
|
|
13362
13009
|
easeOptions?: CameraEaseOptions;
|
|
13363
13010
|
facingEntity: Entity;
|
|
13364
13011
|
location?: Vector3;
|
|
13365
13012
|
}
|
|
13366
13013
|
|
|
13367
|
-
/**
|
|
13368
|
-
* @beta
|
|
13369
|
-
*/
|
|
13370
13014
|
export interface CameraSetLocationOptions {
|
|
13371
13015
|
easeOptions?: CameraEaseOptions;
|
|
13372
13016
|
location: Vector3;
|
|
13373
13017
|
}
|
|
13374
13018
|
|
|
13375
|
-
/**
|
|
13376
|
-
* @beta
|
|
13377
|
-
*/
|
|
13378
13019
|
export interface CameraSetPosOptions {
|
|
13379
13020
|
easeOptions?: CameraEaseOptions;
|
|
13380
13021
|
facingLocation: Vector3;
|
|
13381
13022
|
location?: Vector3;
|
|
13382
13023
|
}
|
|
13383
13024
|
|
|
13384
|
-
/**
|
|
13385
|
-
* @beta
|
|
13386
|
-
*/
|
|
13387
13025
|
export interface CameraSetRotOptions {
|
|
13388
13026
|
easeOptions?: CameraEaseOptions;
|
|
13389
13027
|
location?: Vector3;
|
|
@@ -13426,6 +13064,34 @@ export interface CompoundBlockVolumeItem {
|
|
|
13426
13064
|
|
|
13427
13065
|
/**
|
|
13428
13066
|
* @beta
|
|
13067
|
+
* Contains a set of updates to the component definition state
|
|
13068
|
+
* of an entity.
|
|
13069
|
+
*/
|
|
13070
|
+
export interface DefinitionModifier {
|
|
13071
|
+
/**
|
|
13072
|
+
* @remarks
|
|
13073
|
+
* Retrieves the list of component groups that will be added
|
|
13074
|
+
* via this definition modification.
|
|
13075
|
+
*
|
|
13076
|
+
*/
|
|
13077
|
+
addedComponentGroups: string[];
|
|
13078
|
+
/**
|
|
13079
|
+
* @remarks
|
|
13080
|
+
* The list of component groups that will be removed via this
|
|
13081
|
+
* definition modification.
|
|
13082
|
+
*
|
|
13083
|
+
*/
|
|
13084
|
+
removedComponentGroups: string[];
|
|
13085
|
+
/**
|
|
13086
|
+
* @remarks
|
|
13087
|
+
* The list of entity definition events that will be fired via
|
|
13088
|
+
* this update.
|
|
13089
|
+
*
|
|
13090
|
+
*/
|
|
13091
|
+
triggers: Trigger[];
|
|
13092
|
+
}
|
|
13093
|
+
|
|
13094
|
+
/**
|
|
13429
13095
|
* An exact coordinate within the world, including its
|
|
13430
13096
|
* dimension and location.
|
|
13431
13097
|
*/
|
|
@@ -13457,7 +13123,6 @@ export interface DimensionLocation {
|
|
|
13457
13123
|
}
|
|
13458
13124
|
|
|
13459
13125
|
/**
|
|
13460
|
-
* @beta
|
|
13461
13126
|
* Additional options for when damage has been applied via a
|
|
13462
13127
|
* projectile.
|
|
13463
13128
|
*/
|
|
@@ -13477,7 +13142,6 @@ export interface EntityApplyDamageByProjectileOptions {
|
|
|
13477
13142
|
}
|
|
13478
13143
|
|
|
13479
13144
|
/**
|
|
13480
|
-
* @beta
|
|
13481
13145
|
* Additional descriptions and metadata for a damage event.
|
|
13482
13146
|
*/
|
|
13483
13147
|
export interface EntityApplyDamageOptions {
|
|
@@ -13496,7 +13160,6 @@ export interface EntityApplyDamageOptions {
|
|
|
13496
13160
|
}
|
|
13497
13161
|
|
|
13498
13162
|
/**
|
|
13499
|
-
* @beta
|
|
13500
13163
|
* Provides information about how damage has been applied to an
|
|
13501
13164
|
* entity.
|
|
13502
13165
|
*/
|
|
@@ -13552,7 +13215,6 @@ export interface EntityDataDrivenTriggerEventOptions {
|
|
|
13552
13215
|
}
|
|
13553
13216
|
|
|
13554
13217
|
/**
|
|
13555
|
-
* @beta
|
|
13556
13218
|
* Contains additional options for entity effects.
|
|
13557
13219
|
*/
|
|
13558
13220
|
export interface EntityEffectOptions {
|
|
@@ -13571,7 +13233,6 @@ export interface EntityEffectOptions {
|
|
|
13571
13233
|
}
|
|
13572
13234
|
|
|
13573
13235
|
/**
|
|
13574
|
-
* @beta
|
|
13575
13236
|
* Contains optional parameters for registering an entity
|
|
13576
13237
|
* event.
|
|
13577
13238
|
*/
|
|
@@ -13593,7 +13254,6 @@ export interface EntityEventOptions {
|
|
|
13593
13254
|
}
|
|
13594
13255
|
|
|
13595
13256
|
/**
|
|
13596
|
-
* @beta
|
|
13597
13257
|
* Contains additional information about an entity that was
|
|
13598
13258
|
* hit.
|
|
13599
13259
|
*/
|
|
@@ -13603,11 +13263,10 @@ export interface EntityHitInformation {
|
|
|
13603
13263
|
* Entity that was hit.
|
|
13604
13264
|
*
|
|
13605
13265
|
*/
|
|
13606
|
-
entity
|
|
13266
|
+
entity?: Entity;
|
|
13607
13267
|
}
|
|
13608
13268
|
|
|
13609
13269
|
/**
|
|
13610
|
-
* @beta
|
|
13611
13270
|
* Contains options for selecting entities within an area.
|
|
13612
13271
|
*/
|
|
13613
13272
|
export interface EntityQueryOptions {
|
|
@@ -13778,7 +13437,6 @@ export interface EntityQueryOptions {
|
|
|
13778
13437
|
}
|
|
13779
13438
|
|
|
13780
13439
|
/**
|
|
13781
|
-
* @beta
|
|
13782
13440
|
* Contains additional options for filtering players based on
|
|
13783
13441
|
* their score for an objective.
|
|
13784
13442
|
*/
|
|
@@ -13813,7 +13471,6 @@ export interface EntityQueryScoreOptions {
|
|
|
13813
13471
|
}
|
|
13814
13472
|
|
|
13815
13473
|
/**
|
|
13816
|
-
* @beta
|
|
13817
13474
|
* Contains information for entity raycast hit results.
|
|
13818
13475
|
*/
|
|
13819
13476
|
export interface EntityRaycastHit {
|
|
@@ -13832,7 +13489,6 @@ export interface EntityRaycastHit {
|
|
|
13832
13489
|
}
|
|
13833
13490
|
|
|
13834
13491
|
/**
|
|
13835
|
-
* @beta
|
|
13836
13492
|
* Contains additional options for an entity raycast operation.
|
|
13837
13493
|
*/
|
|
13838
13494
|
export interface EntityRaycastOptions {
|
|
@@ -13879,7 +13535,6 @@ export interface ExplosionOptions {
|
|
|
13879
13535
|
}
|
|
13880
13536
|
|
|
13881
13537
|
/**
|
|
13882
|
-
* @beta
|
|
13883
13538
|
* Additional configuration options for {@link
|
|
13884
13539
|
* World.playMusic}/{@link World.queueMusic} methods.
|
|
13885
13540
|
*/
|
|
@@ -13938,7 +13593,6 @@ export interface PlayAnimationOptions {
|
|
|
13938
13593
|
}
|
|
13939
13594
|
|
|
13940
13595
|
/**
|
|
13941
|
-
* @beta
|
|
13942
13596
|
* Additional options for how a sound plays for a player.
|
|
13943
13597
|
*/
|
|
13944
13598
|
export interface PlayerSoundOptions {
|
|
@@ -13964,7 +13618,6 @@ export interface PlayerSoundOptions {
|
|
|
13964
13618
|
}
|
|
13965
13619
|
|
|
13966
13620
|
/**
|
|
13967
|
-
* @beta
|
|
13968
13621
|
* Defines a JSON structure that is used for more flexible.
|
|
13969
13622
|
*/
|
|
13970
13623
|
export interface RawMessage {
|
|
@@ -14006,7 +13659,6 @@ export interface RawMessage {
|
|
|
14006
13659
|
}
|
|
14007
13660
|
|
|
14008
13661
|
/**
|
|
14009
|
-
* @beta
|
|
14010
13662
|
* Provides a description of a score token to use within a raw
|
|
14011
13663
|
* message.
|
|
14012
13664
|
*/
|
|
@@ -14043,7 +13695,6 @@ export interface RawText {
|
|
|
14043
13695
|
}
|
|
14044
13696
|
|
|
14045
13697
|
/**
|
|
14046
|
-
* @beta
|
|
14047
13698
|
* Represents a fully customizable color within Minecraft.
|
|
14048
13699
|
*/
|
|
14049
13700
|
export interface RGB {
|
|
@@ -14071,7 +13722,6 @@ export interface RGB {
|
|
|
14071
13722
|
}
|
|
14072
13723
|
|
|
14073
13724
|
/**
|
|
14074
|
-
* @beta
|
|
14075
13725
|
* Represents a fully customizable color within Minecraft.
|
|
14076
13726
|
*/
|
|
14077
13727
|
export interface RGBA {
|
|
@@ -14106,7 +13756,6 @@ export interface RGBA {
|
|
|
14106
13756
|
}
|
|
14107
13757
|
|
|
14108
13758
|
/**
|
|
14109
|
-
* @beta
|
|
14110
13759
|
* Contains additional options for how a scoreboard should be
|
|
14111
13760
|
* displayed within its display slot.
|
|
14112
13761
|
*/
|
|
@@ -14126,7 +13775,6 @@ export interface ScoreboardObjectiveDisplayOptions {
|
|
|
14126
13775
|
}
|
|
14127
13776
|
|
|
14128
13777
|
/**
|
|
14129
|
-
* @beta
|
|
14130
13778
|
* Contains additional options for registering a script event
|
|
14131
13779
|
* event callback.
|
|
14132
13780
|
*/
|
|
@@ -14141,7 +13789,6 @@ export interface ScriptEventMessageFilterOptions {
|
|
|
14141
13789
|
}
|
|
14142
13790
|
|
|
14143
13791
|
/**
|
|
14144
|
-
* @beta
|
|
14145
13792
|
* Contains additional options for teleporting an entity.
|
|
14146
13793
|
*/
|
|
14147
13794
|
export interface TeleportOptions {
|
|
@@ -14181,7 +13828,6 @@ export interface TeleportOptions {
|
|
|
14181
13828
|
}
|
|
14182
13829
|
|
|
14183
13830
|
/**
|
|
14184
|
-
* @beta
|
|
14185
13831
|
* Contains additional options for displaying a title and
|
|
14186
13832
|
* optional subtitle.
|
|
14187
13833
|
*/
|
|
@@ -14220,7 +13866,6 @@ export interface TitleDisplayOptions {
|
|
|
14220
13866
|
}
|
|
14221
13867
|
|
|
14222
13868
|
/**
|
|
14223
|
-
* @beta
|
|
14224
13869
|
* Represents a two-directional vector.
|
|
14225
13870
|
*/
|
|
14226
13871
|
export interface Vector2 {
|
|
@@ -14239,7 +13884,6 @@ export interface Vector2 {
|
|
|
14239
13884
|
}
|
|
14240
13885
|
|
|
14241
13886
|
/**
|
|
14242
|
-
* @beta
|
|
14243
13887
|
* Contains a description of a vector.
|
|
14244
13888
|
*/
|
|
14245
13889
|
export interface Vector3 {
|
|
@@ -14264,7 +13908,6 @@ export interface Vector3 {
|
|
|
14264
13908
|
}
|
|
14265
13909
|
|
|
14266
13910
|
/**
|
|
14267
|
-
* @beta
|
|
14268
13911
|
* Contains additional options for a world-level playSound
|
|
14269
13912
|
* occurrence.
|
|
14270
13913
|
*/
|
|
@@ -14283,32 +13926,22 @@ export interface WorldSoundOptions {
|
|
|
14283
13926
|
volume?: number;
|
|
14284
13927
|
}
|
|
14285
13928
|
|
|
14286
|
-
/**
|
|
14287
|
-
* @beta
|
|
14288
|
-
*/
|
|
14289
13929
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
14290
13930
|
export class CommandError extends Error {
|
|
14291
13931
|
private constructor();
|
|
14292
13932
|
}
|
|
14293
13933
|
|
|
14294
|
-
/**
|
|
14295
|
-
* @beta
|
|
14296
|
-
*/
|
|
14297
13934
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
14298
13935
|
export class LocationInUnloadedChunkError extends Error {
|
|
14299
13936
|
private constructor();
|
|
14300
13937
|
}
|
|
14301
13938
|
|
|
14302
|
-
/**
|
|
14303
|
-
* @beta
|
|
14304
|
-
*/
|
|
14305
13939
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
14306
13940
|
export class LocationOutOfWorldBoundariesError extends Error {
|
|
14307
13941
|
private constructor();
|
|
14308
13942
|
}
|
|
14309
13943
|
|
|
14310
13944
|
/**
|
|
14311
|
-
* @beta
|
|
14312
13945
|
* @remarks
|
|
14313
13946
|
* Holds the number of MoonPhases
|
|
14314
13947
|
*
|