@minecraft/server 1.2.0-rc.1.20.10-preview.21 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +0 -2
  2. package/index.d.ts +95 -160
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
4
4
 
5
- ## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
6
-
7
5
  See full documentation for this module here:
8
6
 
9
7
  https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/@minecraft/server/@minecraft/server
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,14 +15,11 @@
16
15
  * ```json
17
16
  * {
18
17
  * "module_name": "@minecraft/server",
19
- * "version": "1.4.0-internal.1.20.10-preview.21"
18
+ * "version": "1.2.0"
20
19
  * }
21
20
  * ```
22
21
  *
23
22
  */
24
- /**
25
- * @beta
26
- */
27
23
  export enum EntityDamageCause {
28
24
  anvil = 'anvil',
29
25
  blockExplosion = 'blockExplosion',
@@ -59,12 +55,10 @@ export enum EntityDamageCause {
59
55
  }
60
56
 
61
57
  /**
62
- * @beta
63
58
  * Represents a game mode for the current world experience.
64
59
  */
65
60
  export enum GameMode {
66
61
  /**
67
- * @beta
68
62
  * @remarks
69
63
  * World is in a more locked-down experience, where blocks may
70
64
  * not be manipulated.
@@ -72,7 +66,6 @@ export enum GameMode {
72
66
  */
73
67
  adventure = 'adventure',
74
68
  /**
75
- * @beta
76
69
  * @remarks
77
70
  * World is in a full creative mode. In creative mode, the
78
71
  * player has all the resources available in the item selection
@@ -86,7 +79,6 @@ export enum GameMode {
86
79
  creative = 'creative',
87
80
  spectator = 'spectator',
88
81
  /**
89
- * @beta
90
82
  * @remarks
91
83
  * World is in a survival mode, where players can take damage
92
84
  * and entities may not be peaceful. Survival mode is where the
@@ -98,9 +90,6 @@ export enum GameMode {
98
90
  survival = 'survival',
99
91
  }
100
92
 
101
- /**
102
- * @beta
103
- */
104
93
  export enum ItemLockMode {
105
94
  inventory = 'inventory',
106
95
  none = 'none',
@@ -108,14 +97,13 @@ export enum ItemLockMode {
108
97
  }
109
98
 
110
99
  /**
111
- * @beta
112
100
  * Represents a block in a dimension. A block represents a
113
101
  * unique X, Y, and Z within a dimension and get/sets the state
114
102
  * of the block at that location. This type was significantly
115
103
  * updated in version 1.17.10.21.
116
104
  */
117
105
  export class Block {
118
- protected constructor();
106
+ private constructor();
119
107
  /**
120
108
  * @remarks
121
109
  * Returns the dimension that the block is within.
@@ -171,12 +159,11 @@ export class Block {
171
159
  }
172
160
 
173
161
  /**
174
- * @beta
175
162
  * Represents the inventory of a block in the world. Used with
176
163
  * blocks like chests.
177
164
  */
178
165
  export class BlockInventoryComponent {
179
- protected constructor();
166
+ private constructor();
180
167
  /**
181
168
  * @remarks
182
169
  * The container which holds an {@link ItemStack}.
@@ -194,14 +181,13 @@ export class BlockInventoryComponent {
194
181
  }
195
182
 
196
183
  /**
197
- * @beta
198
184
  * Contains the combination of type {@link BlockType} and
199
185
  * properties (also sometimes called block state) which
200
186
  * describe a block (but does not belong to a specific {@link
201
187
  * Block}). This type was introduced as of version 1.17.10.21.
202
188
  */
203
189
  export class BlockPermutation {
204
- protected constructor();
190
+ private constructor();
205
191
  /**
206
192
  * @remarks
207
193
  * Returns a boolean whether a specified permutation matches
@@ -229,7 +215,7 @@ export class BlockPermutation {
229
215
  * Contains return data on the result of a command execution.
230
216
  */
231
217
  export class CommandResult {
232
- protected constructor();
218
+ private constructor();
233
219
  /**
234
220
  * @remarks
235
221
  * If the command operates against a number of entities,
@@ -241,11 +227,10 @@ export class CommandResult {
241
227
  }
242
228
 
243
229
  /**
244
- * @beta
245
230
  * Base class for downstream Component implementations.
246
231
  */
247
232
  export class Component {
248
- protected constructor();
233
+ private constructor();
249
234
  /**
250
235
  * @remarks
251
236
  * Identifier of the component.
@@ -255,13 +240,12 @@ export class Component {
255
240
  }
256
241
 
257
242
  /**
258
- * @beta
259
243
  * Represents a container that can hold sets of items. Used
260
244
  * with entities such as Players, Chest Minecarts, Llamas, and
261
245
  * more.
262
246
  */
263
247
  export class Container {
264
- protected constructor();
248
+ private constructor();
265
249
  /**
266
250
  * @remarks
267
251
  * Count of the slots in the container that are empty.
@@ -426,7 +410,7 @@ export class Container {
426
410
  * End) within a world.
427
411
  */
428
412
  export class Dimension {
429
- protected constructor();
413
+ private constructor();
430
414
  /**
431
415
  * @remarks
432
416
  * Identifier of the dimension.
@@ -435,7 +419,6 @@ export class Dimension {
435
419
  */
436
420
  readonly id: string;
437
421
  /**
438
- * @beta
439
422
  * @remarks
440
423
  * Returns a block instance at the given location.
441
424
  *
@@ -447,7 +430,6 @@ export class Dimension {
447
430
  */
448
431
  getBlock(location: Vector3): Block | undefined;
449
432
  /**
450
- * @beta
451
433
  * @remarks
452
434
  * Returns a set of entities based on a set of conditions
453
435
  * defined via the EntityQueryOptions set of filter criteria.
@@ -479,7 +461,6 @@ export class Dimension {
479
461
  */
480
462
  getEntities(options?: EntityQueryOptions): Entity[];
481
463
  /**
482
- * @beta
483
464
  * @remarks
484
465
  * Returns a set of entities at a particular location.
485
466
  *
@@ -490,7 +471,6 @@ export class Dimension {
490
471
  */
491
472
  getEntitiesAtBlockLocation(location: Vector3): Entity[];
492
473
  /**
493
- * @beta
494
474
  * @remarks
495
475
  * Returns a set of players based on a set of conditions
496
476
  * defined via the EntityQueryOptions set of filter criteria.
@@ -504,7 +484,6 @@ export class Dimension {
504
484
  */
505
485
  getPlayers(options?: EntityQueryOptions): Player[];
506
486
  /**
507
- * @beta
508
487
  * @remarks
509
488
  * This function can't be called in read-only mode.
510
489
  *
@@ -534,9 +513,8 @@ export class Dimension {
534
513
  * other moving objects like minecarts) in the world.
535
514
  */
536
515
  export class Entity {
537
- protected constructor();
516
+ private constructor();
538
517
  /**
539
- * @beta
540
518
  * @remarks
541
519
  * Dimension that the entity is currently within.
542
520
  *
@@ -554,7 +532,6 @@ export class Entity {
554
532
  */
555
533
  readonly id: string;
556
534
  /**
557
- * @beta
558
535
  * @remarks
559
536
  * Current location of the entity.
560
537
  *
@@ -562,7 +539,6 @@ export class Entity {
562
539
  */
563
540
  readonly location: Vector3;
564
541
  /**
565
- * @beta
566
542
  * @remarks
567
543
  * Given name of the entity.
568
544
  *
@@ -579,7 +555,6 @@ export class Entity {
579
555
  */
580
556
  readonly typeId: string;
581
557
  /**
582
- * @beta
583
558
  * @remarks
584
559
  * Adds a specified tag to an entity.
585
560
  *
@@ -594,7 +569,6 @@ export class Entity {
594
569
  */
595
570
  addTag(tag: string): boolean;
596
571
  /**
597
- * @beta
598
572
  * @remarks
599
573
  * Applies a set of damage to an entity.
600
574
  *
@@ -614,7 +588,6 @@ export class Entity {
614
588
  */
615
589
  applyDamage(amount: number, options?: EntityApplyDamageByProjectileOptions | EntityApplyDamageOptions): boolean;
616
590
  /**
617
- * @beta
618
591
  * @remarks
619
592
  * Applies impulse vector to the current velocity of the
620
593
  * entity.
@@ -627,7 +600,6 @@ export class Entity {
627
600
  */
628
601
  applyImpulse(vector: Vector3): void;
629
602
  /**
630
- * @beta
631
603
  * @remarks
632
604
  * Applies impulse vector to the current velocity of the
633
605
  * entity.
@@ -646,7 +618,6 @@ export class Entity {
646
618
  */
647
619
  applyKnockback(directionX: number, directionZ: number, horizontalStrength: number, verticalStrength: number): void;
648
620
  /**
649
- * @beta
650
621
  * @remarks
651
622
  * Sets the current velocity of the Entity to zero. Note that
652
623
  * this method may not have an impact on Players.
@@ -657,7 +628,6 @@ export class Entity {
657
628
  */
658
629
  clearVelocity(): void;
659
630
  /**
660
- * @beta
661
631
  * @remarks
662
632
  * Gets a component (that represents additional capabilities)
663
633
  * for an entity.
@@ -673,7 +643,6 @@ export class Entity {
673
643
  */
674
644
  getComponent(componentId: string): EntityComponent | undefined;
675
645
  /**
676
- * @beta
677
646
  * @remarks
678
647
  * Returns all components that are both present on this entity
679
648
  * and supported by the API.
@@ -684,7 +653,6 @@ export class Entity {
684
653
  */
685
654
  getComponents(): EntityComponent[];
686
655
  /**
687
- * @beta
688
656
  * @remarks
689
657
  * Returns the current location of the head component of this
690
658
  * entity.
@@ -696,7 +664,6 @@ export class Entity {
696
664
  */
697
665
  getHeadLocation(): Vector3;
698
666
  /**
699
- * @beta
700
667
  * @remarks
701
668
  * Returns all tags associated with an entity.
702
669
  *
@@ -706,7 +673,6 @@ export class Entity {
706
673
  */
707
674
  getTags(): string[];
708
675
  /**
709
- * @beta
710
676
  * @remarks
711
677
  * Returns the current velocity vector of the entity.
712
678
  *
@@ -716,7 +682,6 @@ export class Entity {
716
682
  */
717
683
  getVelocity(): Vector3;
718
684
  /**
719
- * @beta
720
685
  * @remarks
721
686
  * Returns the current view direction of the entity.
722
687
  *
@@ -726,7 +691,6 @@ export class Entity {
726
691
  */
727
692
  getViewDirection(): Vector3;
728
693
  /**
729
- * @beta
730
694
  * @remarks
731
695
  * Returns true if the specified component is present on this
732
696
  * entity.
@@ -741,7 +705,6 @@ export class Entity {
741
705
  */
742
706
  hasComponent(componentId: string): boolean;
743
707
  /**
744
- * @beta
745
708
  * @remarks
746
709
  * Returns whether an entity has a particular tag.
747
710
  *
@@ -753,7 +716,6 @@ export class Entity {
753
716
  */
754
717
  hasTag(tag: string): boolean;
755
718
  /**
756
- * @beta
757
719
  * @remarks
758
720
  * Kills this entity. The entity will drop loot as normal.
759
721
  *
@@ -766,7 +728,6 @@ export class Entity {
766
728
  */
767
729
  kill(): boolean;
768
730
  /**
769
- * @beta
770
731
  * @remarks
771
732
  * Removes a specified tag from an entity.
772
733
  *
@@ -780,7 +741,6 @@ export class Entity {
780
741
  */
781
742
  removeTag(tag: string): boolean;
782
743
  /**
783
- * @beta
784
744
  * @remarks
785
745
  * Runs a synchronous command on the entity.
786
746
  *
@@ -813,21 +773,21 @@ export class Entity {
813
773
  }
814
774
 
815
775
  /**
816
- * @beta
817
776
  * Base class for a family of entity movement events.
818
777
  */
778
+ // @ts-ignore Class inheritance allowed for native defined classes
819
779
  export class EntityBaseMovementComponent extends EntityComponent {
820
- protected constructor();
780
+ private constructor();
821
781
  readonly maxTurn: number;
822
782
  }
823
783
 
824
784
  /**
825
- * @beta
826
785
  * When added, this component signifies that the entity can
827
786
  * climb up ladders.
828
787
  */
788
+ // @ts-ignore Class inheritance allowed for native defined classes
829
789
  export class EntityCanClimbComponent extends EntityComponent {
830
- protected constructor();
790
+ private constructor();
831
791
  /**
832
792
  * @remarks
833
793
  * Identifier of this component. Should always be
@@ -838,13 +798,13 @@ export class EntityCanClimbComponent extends EntityComponent {
838
798
  }
839
799
 
840
800
  /**
841
- * @beta
842
801
  * When added, this component signifies that the entity can
843
802
  * fly, and the pathfinder won't be restricted to paths where a
844
803
  * solid block is required underneath it.
845
804
  */
805
+ // @ts-ignore Class inheritance allowed for native defined classes
846
806
  export class EntityCanFlyComponent extends EntityComponent {
847
- protected constructor();
807
+ private constructor();
848
808
  /**
849
809
  * @remarks
850
810
  * Identifier of this component. Should always be
@@ -855,12 +815,12 @@ export class EntityCanFlyComponent extends EntityComponent {
855
815
  }
856
816
 
857
817
  /**
858
- * @beta
859
818
  * When added, this component signifies that the entity can
860
819
  * power jump like the horse does within Minecraft.
861
820
  */
821
+ // @ts-ignore Class inheritance allowed for native defined classes
862
822
  export class EntityCanPowerJumpComponent extends EntityComponent {
863
- protected constructor();
823
+ private constructor();
864
824
  /**
865
825
  * @remarks
866
826
  * Identifier of this component. Should always be
@@ -871,12 +831,12 @@ export class EntityCanPowerJumpComponent extends EntityComponent {
871
831
  }
872
832
 
873
833
  /**
874
- * @beta
875
834
  * Defines the entity's color. Only works on certain entities
876
835
  * that have predefined color values (sheep, llama, shulker).
877
836
  */
837
+ // @ts-ignore Class inheritance allowed for native defined classes
878
838
  export class EntityColorComponent extends EntityComponent {
879
- protected constructor();
839
+ private constructor();
880
840
  /**
881
841
  * @remarks
882
842
  * This property can't be edited in read-only mode.
@@ -893,20 +853,20 @@ export class EntityColorComponent extends EntityComponent {
893
853
  }
894
854
 
895
855
  /**
896
- * @beta
897
856
  * Base class for downstream entity components.
898
857
  */
858
+ // @ts-ignore Class inheritance allowed for native defined classes
899
859
  export class EntityComponent extends Component {
900
- protected constructor();
860
+ private constructor();
901
861
  }
902
862
 
903
863
  /**
904
- * @beta
905
864
  * When added, this component signifies that this entity
906
865
  * doesn't take damage from fire.
907
866
  */
867
+ // @ts-ignore Class inheritance allowed for native defined classes
908
868
  export class EntityFireImmuneComponent extends EntityComponent {
909
- protected constructor();
869
+ private constructor();
910
870
  /**
911
871
  * @remarks
912
872
  * Identifier of this component. Should always be
@@ -917,12 +877,12 @@ export class EntityFireImmuneComponent extends EntityComponent {
917
877
  }
918
878
 
919
879
  /**
920
- * @beta
921
880
  * When added, this component signifies that this entity can
922
881
  * float in liquid blocks.
923
882
  */
883
+ // @ts-ignore Class inheritance allowed for native defined classes
924
884
  export class EntityFloatsInLiquidComponent extends EntityComponent {
925
- protected constructor();
885
+ private constructor();
926
886
  /**
927
887
  * @remarks
928
888
  * Identifier of this component. Should always be
@@ -933,11 +893,11 @@ export class EntityFloatsInLiquidComponent extends EntityComponent {
933
893
  }
934
894
 
935
895
  /**
936
- * @beta
937
896
  * Represents the flying speed of an entity.
938
897
  */
898
+ // @ts-ignore Class inheritance allowed for native defined classes
939
899
  export class EntityFlyingSpeedComponent extends EntityComponent {
940
- protected constructor();
900
+ private constructor();
941
901
  /**
942
902
  * @remarks
943
903
  * This property can't be edited in read-only mode.
@@ -954,11 +914,11 @@ export class EntityFlyingSpeedComponent extends EntityComponent {
954
914
  }
955
915
 
956
916
  /**
957
- * @beta
958
917
  * Defines how much friction affects this entity.
959
918
  */
919
+ // @ts-ignore Class inheritance allowed for native defined classes
960
920
  export class EntityFrictionModifierComponent extends EntityComponent {
961
- protected constructor();
921
+ private constructor();
962
922
  /**
963
923
  * @remarks
964
924
  * This property can't be edited in read-only mode.
@@ -975,12 +935,12 @@ export class EntityFrictionModifierComponent extends EntityComponent {
975
935
  }
976
936
 
977
937
  /**
978
- * @beta
979
938
  * Sets the offset from the ground that the entity is actually
980
939
  * at.
981
940
  */
941
+ // @ts-ignore Class inheritance allowed for native defined classes
982
942
  export class EntityGroundOffsetComponent extends EntityComponent {
983
- protected constructor();
943
+ private constructor();
984
944
  /**
985
945
  * @remarks
986
946
  * This property can't be edited in read-only mode.
@@ -997,11 +957,11 @@ export class EntityGroundOffsetComponent extends EntityComponent {
997
957
  }
998
958
 
999
959
  /**
1000
- * @beta
1001
960
  * Defines this entity's inventory properties.
1002
961
  */
962
+ // @ts-ignore Class inheritance allowed for native defined classes
1003
963
  export class EntityInventoryComponent extends EntityComponent {
1004
- protected constructor();
964
+ private constructor();
1005
965
  /**
1006
966
  * @remarks
1007
967
  * Number of slots that this entity can gain per extra
@@ -1064,12 +1024,12 @@ export class EntityInventoryComponent extends EntityComponent {
1064
1024
  }
1065
1025
 
1066
1026
  /**
1067
- * @beta
1068
1027
  * When added, this component signifies that this entity is a
1069
1028
  * baby.
1070
1029
  */
1030
+ // @ts-ignore Class inheritance allowed for native defined classes
1071
1031
  export class EntityIsBabyComponent extends EntityComponent {
1072
- protected constructor();
1032
+ private constructor();
1073
1033
  /**
1074
1034
  * @remarks
1075
1035
  * Identifier of this component. Should always be
@@ -1080,12 +1040,12 @@ export class EntityIsBabyComponent extends EntityComponent {
1080
1040
  }
1081
1041
 
1082
1042
  /**
1083
- * @beta
1084
1043
  * When added, this component signifies that this entity is
1085
1044
  * charged.
1086
1045
  */
1046
+ // @ts-ignore Class inheritance allowed for native defined classes
1087
1047
  export class EntityIsChargedComponent extends EntityComponent {
1088
- protected constructor();
1048
+ private constructor();
1089
1049
  /**
1090
1050
  * @remarks
1091
1051
  * Identifier of this component. Should always be
@@ -1096,12 +1056,12 @@ export class EntityIsChargedComponent extends EntityComponent {
1096
1056
  }
1097
1057
 
1098
1058
  /**
1099
- * @beta
1100
1059
  * When added, this component signifies that this entity is
1101
1060
  * currently carrying a chest.
1102
1061
  */
1062
+ // @ts-ignore Class inheritance allowed for native defined classes
1103
1063
  export class EntityIsChestedComponent extends EntityComponent {
1104
- protected constructor();
1064
+ private constructor();
1105
1065
  /**
1106
1066
  * @remarks
1107
1067
  * Identifier of this component. Should always be
@@ -1112,12 +1072,12 @@ export class EntityIsChestedComponent extends EntityComponent {
1112
1072
  }
1113
1073
 
1114
1074
  /**
1115
- * @beta
1116
1075
  * When added, this component signifies that dyes can be used
1117
1076
  * on this entity to change its color.
1118
1077
  */
1078
+ // @ts-ignore Class inheritance allowed for native defined classes
1119
1079
  export class EntityIsDyeableComponent extends EntityComponent {
1120
- protected constructor();
1080
+ private constructor();
1121
1081
  /**
1122
1082
  * @remarks
1123
1083
  * Identifier of this component. Should always be
@@ -1128,12 +1088,12 @@ export class EntityIsDyeableComponent extends EntityComponent {
1128
1088
  }
1129
1089
 
1130
1090
  /**
1131
- * @beta
1132
1091
  * When added, this component signifies that this entity can
1133
1092
  * hide from hostile mobs while invisible.
1134
1093
  */
1094
+ // @ts-ignore Class inheritance allowed for native defined classes
1135
1095
  export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
1136
- protected constructor();
1096
+ private constructor();
1137
1097
  /**
1138
1098
  * @remarks
1139
1099
  * Identifier of this component. Should always be
@@ -1144,12 +1104,12 @@ export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
1144
1104
  }
1145
1105
 
1146
1106
  /**
1147
- * @beta
1148
1107
  * When added, this component signifies that this entity this
1149
1108
  * currently on fire.
1150
1109
  */
1110
+ // @ts-ignore Class inheritance allowed for native defined classes
1151
1111
  export class EntityIsIgnitedComponent extends EntityComponent {
1152
- protected constructor();
1112
+ private constructor();
1153
1113
  /**
1154
1114
  * @remarks
1155
1115
  * Identifier of this component. Should always be
@@ -1160,12 +1120,12 @@ export class EntityIsIgnitedComponent extends EntityComponent {
1160
1120
  }
1161
1121
 
1162
1122
  /**
1163
- * @beta
1164
1123
  * When added, this component signifies that this entity is an
1165
1124
  * illager captain.
1166
1125
  */
1126
+ // @ts-ignore Class inheritance allowed for native defined classes
1167
1127
  export class EntityIsIllagerCaptainComponent extends EntityComponent {
1168
- protected constructor();
1128
+ private constructor();
1169
1129
  /**
1170
1130
  * @remarks
1171
1131
  * Identifier of this component. Should always be
@@ -1176,12 +1136,12 @@ export class EntityIsIllagerCaptainComponent extends EntityComponent {
1176
1136
  }
1177
1137
 
1178
1138
  /**
1179
- * @beta
1180
1139
  * When added, this component signifies that this entity is
1181
1140
  * currently saddled.
1182
1141
  */
1142
+ // @ts-ignore Class inheritance allowed for native defined classes
1183
1143
  export class EntityIsSaddledComponent extends EntityComponent {
1184
- protected constructor();
1144
+ private constructor();
1185
1145
  /**
1186
1146
  * @remarks
1187
1147
  * Identifier of this component. Should always be
@@ -1192,12 +1152,12 @@ export class EntityIsSaddledComponent extends EntityComponent {
1192
1152
  }
1193
1153
 
1194
1154
  /**
1195
- * @beta
1196
1155
  * When added, this component signifies that this entity is
1197
1156
  * currently shaking.
1198
1157
  */
1158
+ // @ts-ignore Class inheritance allowed for native defined classes
1199
1159
  export class EntityIsShakingComponent extends EntityComponent {
1200
- protected constructor();
1160
+ private constructor();
1201
1161
  /**
1202
1162
  * @remarks
1203
1163
  * Identifier of this component. Should always be
@@ -1208,12 +1168,12 @@ export class EntityIsShakingComponent extends EntityComponent {
1208
1168
  }
1209
1169
 
1210
1170
  /**
1211
- * @beta
1212
1171
  * When added, this component signifies that this entity is
1213
1172
  * currently sheared.
1214
1173
  */
1174
+ // @ts-ignore Class inheritance allowed for native defined classes
1215
1175
  export class EntityIsShearedComponent extends EntityComponent {
1216
- protected constructor();
1176
+ private constructor();
1217
1177
  /**
1218
1178
  * @remarks
1219
1179
  * Identifier of this component. Should always be
@@ -1224,12 +1184,12 @@ export class EntityIsShearedComponent extends EntityComponent {
1224
1184
  }
1225
1185
 
1226
1186
  /**
1227
- * @beta
1228
1187
  * When added, this component signifies that this entity can be
1229
1188
  * stacked.
1230
1189
  */
1190
+ // @ts-ignore Class inheritance allowed for native defined classes
1231
1191
  export class EntityIsStackableComponent extends EntityComponent {
1232
- protected constructor();
1192
+ private constructor();
1233
1193
  /**
1234
1194
  * @remarks
1235
1195
  * Identifier of this component. Should always be
@@ -1240,12 +1200,12 @@ export class EntityIsStackableComponent extends EntityComponent {
1240
1200
  }
1241
1201
 
1242
1202
  /**
1243
- * @beta
1244
1203
  * When added, this component signifies that this entity is
1245
1204
  * currently stunned.
1246
1205
  */
1206
+ // @ts-ignore Class inheritance allowed for native defined classes
1247
1207
  export class EntityIsStunnedComponent extends EntityComponent {
1248
- protected constructor();
1208
+ private constructor();
1249
1209
  /**
1250
1210
  * @remarks
1251
1211
  * Identifier of this component. Should always be
@@ -1256,12 +1216,12 @@ export class EntityIsStunnedComponent extends EntityComponent {
1256
1216
  }
1257
1217
 
1258
1218
  /**
1259
- * @beta
1260
1219
  * When added, this component signifies that this entity is
1261
1220
  * currently tamed.
1262
1221
  */
1222
+ // @ts-ignore Class inheritance allowed for native defined classes
1263
1223
  export class EntityIsTamedComponent extends EntityComponent {
1264
- protected constructor();
1224
+ private constructor();
1265
1225
  /**
1266
1226
  * @remarks
1267
1227
  * Identifier of this component. Should always be
@@ -1272,14 +1232,14 @@ export class EntityIsTamedComponent extends EntityComponent {
1272
1232
  }
1273
1233
 
1274
1234
  /**
1275
- * @beta
1276
1235
  * If added onto the entity, this indicates that the entity
1277
1236
  * represents a free-floating item in the world. Lets you
1278
1237
  * retrieve the actual item stack contents via the itemStack
1279
1238
  * property.
1280
1239
  */
1240
+ // @ts-ignore Class inheritance allowed for native defined classes
1281
1241
  export class EntityItemComponent extends EntityComponent {
1282
- protected constructor();
1242
+ private constructor();
1283
1243
  /**
1284
1244
  * @remarks
1285
1245
  * Item stack represented by this entity in the world.
@@ -1296,12 +1256,12 @@ export class EntityItemComponent extends EntityComponent {
1296
1256
  }
1297
1257
 
1298
1258
  /**
1299
- * @beta
1300
1259
  * Additional variant value. Can be used to further
1301
1260
  * differentiate variants.
1302
1261
  */
1262
+ // @ts-ignore Class inheritance allowed for native defined classes
1303
1263
  export class EntityMarkVariantComponent extends EntityComponent {
1304
- protected constructor();
1264
+ private constructor();
1305
1265
  /**
1306
1266
  * @remarks
1307
1267
  * This property can't be edited in read-only mode.
@@ -1318,12 +1278,12 @@ export class EntityMarkVariantComponent extends EntityComponent {
1318
1278
  }
1319
1279
 
1320
1280
  /**
1321
- * @beta
1322
1281
  * When added, this movement control allows the mob to swim in
1323
1282
  * water and walk on land.
1324
1283
  */
1284
+ // @ts-ignore Class inheritance allowed for native defined classes
1325
1285
  export class EntityMovementAmphibiousComponent extends EntityBaseMovementComponent {
1326
- protected constructor();
1286
+ private constructor();
1327
1287
  /**
1328
1288
  * @remarks
1329
1289
  * Identifier of this component. Should always be
@@ -1334,11 +1294,11 @@ export class EntityMovementAmphibiousComponent extends EntityBaseMovementCompone
1334
1294
  }
1335
1295
 
1336
1296
  /**
1337
- * @beta
1338
1297
  * This component accents the movement of an entity.
1339
1298
  */
1299
+ // @ts-ignore Class inheritance allowed for native defined classes
1340
1300
  export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
1341
- protected constructor();
1301
+ private constructor();
1342
1302
  /**
1343
1303
  * @remarks
1344
1304
  * Identifier of this component. Should always be
@@ -1349,11 +1309,11 @@ export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
1349
1309
  }
1350
1310
 
1351
1311
  /**
1352
- * @beta
1353
1312
  * When added, this move control causes the mob to fly.
1354
1313
  */
1314
+ // @ts-ignore Class inheritance allowed for native defined classes
1355
1315
  export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
1356
- protected constructor();
1316
+ private constructor();
1357
1317
  /**
1358
1318
  * @remarks
1359
1319
  * Identifier of this component. Should always be
@@ -1364,12 +1324,12 @@ export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
1364
1324
  }
1365
1325
 
1366
1326
  /**
1367
- * @beta
1368
1327
  * When added, this move control allows a mob to fly, swim,
1369
1328
  * climb, etc.
1370
1329
  */
1330
+ // @ts-ignore Class inheritance allowed for native defined classes
1371
1331
  export class EntityMovementGenericComponent extends EntityBaseMovementComponent {
1372
- protected constructor();
1332
+ private constructor();
1373
1333
  /**
1374
1334
  * @remarks
1375
1335
  * Identifier of this component. Should always be
@@ -1380,11 +1340,11 @@ export class EntityMovementGenericComponent extends EntityBaseMovementComponent
1380
1340
  }
1381
1341
 
1382
1342
  /**
1383
- * @beta
1384
1343
  * When added, this move control causes the mob to hover.
1385
1344
  */
1345
+ // @ts-ignore Class inheritance allowed for native defined classes
1386
1346
  export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
1387
- protected constructor();
1347
+ private constructor();
1388
1348
  /**
1389
1349
  * @remarks
1390
1350
  * Identifier of this component. Should always be
@@ -1395,12 +1355,12 @@ export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
1395
1355
  }
1396
1356
 
1397
1357
  /**
1398
- * @beta
1399
1358
  * Move control that causes the mob to jump as it moves with a
1400
1359
  * specified delay between jumps.
1401
1360
  */
1361
+ // @ts-ignore Class inheritance allowed for native defined classes
1402
1362
  export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
1403
- protected constructor();
1363
+ private constructor();
1404
1364
  /**
1405
1365
  * @remarks
1406
1366
  * Identifier of this component. Should always be
@@ -1411,12 +1371,12 @@ export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
1411
1371
  }
1412
1372
 
1413
1373
  /**
1414
- * @beta
1415
1374
  * When added, this move control causes the mob to hop as it
1416
1375
  * moves.
1417
1376
  */
1377
+ // @ts-ignore Class inheritance allowed for native defined classes
1418
1378
  export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
1419
- protected constructor();
1379
+ private constructor();
1420
1380
  /**
1421
1381
  * @remarks
1422
1382
  * Identifier of this component. Should always be
@@ -1427,11 +1387,11 @@ export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
1427
1387
  }
1428
1388
 
1429
1389
  /**
1430
- * @beta
1431
1390
  * Sets the distance through which the entity can push through.
1432
1391
  */
1392
+ // @ts-ignore Class inheritance allowed for native defined classes
1433
1393
  export class EntityPushThroughComponent extends EntityComponent {
1434
- protected constructor();
1394
+ private constructor();
1435
1395
  /**
1436
1396
  * @remarks
1437
1397
  * This property can't be edited in read-only mode.
@@ -1448,11 +1408,11 @@ export class EntityPushThroughComponent extends EntityComponent {
1448
1408
  }
1449
1409
 
1450
1410
  /**
1451
- * @beta
1452
1411
  * Sets the entity's visual size.
1453
1412
  */
1413
+ // @ts-ignore Class inheritance allowed for native defined classes
1454
1414
  export class EntityScaleComponent extends EntityComponent {
1455
- protected constructor();
1415
+ private constructor();
1456
1416
  /**
1457
1417
  * @remarks
1458
1418
  * This property can't be edited in read-only mode.
@@ -1469,12 +1429,12 @@ export class EntityScaleComponent extends EntityComponent {
1469
1429
  }
1470
1430
 
1471
1431
  /**
1472
- * @beta
1473
1432
  * Skin Id value. Can be used to differentiate skins, such as
1474
1433
  * base skins for villagers.
1475
1434
  */
1435
+ // @ts-ignore Class inheritance allowed for native defined classes
1476
1436
  export class EntitySkinIdComponent extends EntityComponent {
1477
- protected constructor();
1437
+ private constructor();
1478
1438
  /**
1479
1439
  * @remarks
1480
1440
  * This property can't be edited in read-only mode.
@@ -1491,12 +1451,12 @@ export class EntitySkinIdComponent extends EntityComponent {
1491
1451
  }
1492
1452
 
1493
1453
  /**
1494
- * @beta
1495
1454
  * Used to differentiate the component group of a variant of an
1496
1455
  * entity from others. (e.g. ocelot, villager).
1497
1456
  */
1457
+ // @ts-ignore Class inheritance allowed for native defined classes
1498
1458
  export class EntityVariantComponent extends EntityComponent {
1499
- protected constructor();
1459
+ private constructor();
1500
1460
  readonly value: number;
1501
1461
  /**
1502
1462
  * @remarks
@@ -1508,12 +1468,12 @@ export class EntityVariantComponent extends EntityComponent {
1508
1468
  }
1509
1469
 
1510
1470
  /**
1511
- * @beta
1512
1471
  * When added, this component signifies that this entity wants
1513
1472
  * to become a jockey.
1514
1473
  */
1474
+ // @ts-ignore Class inheritance allowed for native defined classes
1515
1475
  export class EntityWantsJockeyComponent extends EntityComponent {
1516
- protected constructor();
1476
+ private constructor();
1517
1477
  /**
1518
1478
  * @remarks
1519
1479
  * Identifier of this component. Should always be
@@ -1524,15 +1484,14 @@ export class EntityWantsJockeyComponent extends EntityComponent {
1524
1484
  }
1525
1485
 
1526
1486
  /**
1527
- * @beta
1528
1487
  * Base class for item components.
1529
1488
  */
1489
+ // @ts-ignore Class inheritance allowed for native defined classes
1530
1490
  export class ItemComponent extends Component {
1531
- protected constructor();
1491
+ private constructor();
1532
1492
  }
1533
1493
 
1534
1494
  /**
1535
- * @beta
1536
1495
  * Defines a collection of items.
1537
1496
  */
1538
1497
  export class ItemStack {
@@ -1668,11 +1627,10 @@ export class ItemStack {
1668
1627
  }
1669
1628
 
1670
1629
  /**
1671
- * @beta
1672
1630
  * Represents the type of an item - for example, Wool.
1673
1631
  */
1674
1632
  export class ItemType {
1675
- protected constructor();
1633
+ private constructor();
1676
1634
  /**
1677
1635
  * @remarks
1678
1636
  * Returns the identifier of the item type - for example,
@@ -1686,7 +1644,7 @@ export class ItemType {
1686
1644
  * A collection of default Minecraft dimension types.
1687
1645
  */
1688
1646
  export class MinecraftDimensionTypes {
1689
- protected constructor();
1647
+ private constructor();
1690
1648
  /**
1691
1649
  * @remarks
1692
1650
  * The Nether is a collection of biomes separate from the
@@ -1725,8 +1683,9 @@ export class MinecraftDimensionTypes {
1725
1683
  /**
1726
1684
  * Represents a player within the world.
1727
1685
  */
1686
+ // @ts-ignore Class inheritance allowed for native defined classes
1728
1687
  export class Player extends Entity {
1729
- protected constructor();
1688
+ private constructor();
1730
1689
  /**
1731
1690
  * @remarks
1732
1691
  * Name of the player.
@@ -1735,7 +1694,6 @@ export class Player extends Entity {
1735
1694
  */
1736
1695
  readonly name: string;
1737
1696
  /**
1738
- * @beta
1739
1697
  * @remarks
1740
1698
  * Plays a sound that only this particular player can hear.
1741
1699
  *
@@ -1749,7 +1707,6 @@ export class Player extends Entity {
1749
1707
  */
1750
1708
  playSound(soundID: string, soundOptions?: PlayerSoundOptions): void;
1751
1709
  /**
1752
- * @beta
1753
1710
  * @remarks
1754
1711
  * Sends a message to the player.
1755
1712
  *
@@ -1793,16 +1750,14 @@ export class Player extends Entity {
1793
1750
  * A class that provides system-level events and functions.
1794
1751
  */
1795
1752
  export class System {
1796
- protected constructor();
1753
+ private constructor();
1797
1754
  /**
1798
- * @beta
1799
1755
  * @remarks
1800
1756
  * Represents the current world tick of the server.
1801
1757
  *
1802
1758
  */
1803
1759
  readonly currentTick: number;
1804
1760
  /**
1805
- * @beta
1806
1761
  * @remarks
1807
1762
  * Cancels the execution of a function run that was previously
1808
1763
  * scheduled via the `run` function.
@@ -1824,7 +1779,6 @@ export class System {
1824
1779
  */
1825
1780
  run(callback: () => void): number;
1826
1781
  /**
1827
- * @beta
1828
1782
  * @remarks
1829
1783
  * Runs a set of code on an interval.
1830
1784
  *
@@ -1839,7 +1793,6 @@ export class System {
1839
1793
  */
1840
1794
  runInterval(callback: () => void, tickInterval?: number): number;
1841
1795
  /**
1842
- * @beta
1843
1796
  * @remarks
1844
1797
  * Runs a set of code at a future time specified by tickDelay.
1845
1798
  *
@@ -1860,7 +1813,7 @@ export class System {
1860
1813
  * dimensions and the environment of Minecraft.
1861
1814
  */
1862
1815
  export class World {
1863
- protected constructor();
1816
+ private constructor();
1864
1817
  /**
1865
1818
  * @remarks
1866
1819
  * Returns an array of all active players within the world.
@@ -1879,7 +1832,6 @@ export class World {
1879
1832
  */
1880
1833
  getDimension(dimensionId: string): Dimension;
1881
1834
  /**
1882
- * @beta
1883
1835
  * @remarks
1884
1836
  * Returns a set of players based on a set of conditions
1885
1837
  * defined via the EntityQueryOptions set of filter criteria.
@@ -1893,7 +1845,6 @@ export class World {
1893
1845
  */
1894
1846
  getPlayers(options?: EntityQueryOptions): Player[];
1895
1847
  /**
1896
- * @beta
1897
1848
  * @remarks
1898
1849
  * Plays a particular music track for all players.
1899
1850
  *
@@ -1903,7 +1854,6 @@ export class World {
1903
1854
  */
1904
1855
  playMusic(trackID: string, musicOptions?: MusicOptions): void;
1905
1856
  /**
1906
- * @beta
1907
1857
  * @remarks
1908
1858
  * Plays a sound for all players.
1909
1859
  *
@@ -1913,7 +1863,6 @@ export class World {
1913
1863
  */
1914
1864
  playSound(soundID: string, location: Vector3, soundOptions?: WorldSoundOptions): void;
1915
1865
  /**
1916
- * @beta
1917
1866
  * @remarks
1918
1867
  * Queues an additional music track for players. If a track is
1919
1868
  * not playing, a music track will play.
@@ -1924,7 +1873,6 @@ export class World {
1924
1873
  */
1925
1874
  queueMusic(trackID: string, musicOptions?: MusicOptions): void;
1926
1875
  /**
1927
- * @beta
1928
1876
  * @remarks
1929
1877
  * Sends a message to all players.
1930
1878
  *
@@ -1963,7 +1911,6 @@ export class World {
1963
1911
  */
1964
1912
  sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
1965
1913
  /**
1966
- * @beta
1967
1914
  * @remarks
1968
1915
  * Stops any music tracks from playing.
1969
1916
  *
@@ -1974,7 +1921,6 @@ export class World {
1974
1921
  }
1975
1922
 
1976
1923
  /**
1977
- * @beta
1978
1924
  * Additional options for when damage has been applied via a
1979
1925
  * projectile.
1980
1926
  */
@@ -1994,7 +1940,6 @@ export interface EntityApplyDamageByProjectileOptions {
1994
1940
  }
1995
1941
 
1996
1942
  /**
1997
- * @beta
1998
1943
  * Additional descriptions and metadata for a damage event.
1999
1944
  */
2000
1945
  export interface EntityApplyDamageOptions {
@@ -2013,7 +1958,6 @@ export interface EntityApplyDamageOptions {
2013
1958
  }
2014
1959
 
2015
1960
  /**
2016
- * @beta
2017
1961
  * Contains options for selecting entities within an area.
2018
1962
  */
2019
1963
  export interface EntityQueryOptions {
@@ -2176,7 +2120,6 @@ export interface EntityQueryOptions {
2176
2120
  }
2177
2121
 
2178
2122
  /**
2179
- * @beta
2180
2123
  * Contains additional options for filtering players based on
2181
2124
  * their score for an objective.
2182
2125
  */
@@ -2211,7 +2154,6 @@ export interface EntityQueryScoreOptions {
2211
2154
  }
2212
2155
 
2213
2156
  /**
2214
- * @beta
2215
2157
  * Additional configuration options for {@link
2216
2158
  * World.playMusic}/{@link World.queueMusic} methods.
2217
2159
  */
@@ -2237,7 +2179,6 @@ export interface MusicOptions {
2237
2179
  }
2238
2180
 
2239
2181
  /**
2240
- * @beta
2241
2182
  * Additional options for how a sound plays for a player.
2242
2183
  */
2243
2184
  export interface PlayerSoundOptions {
@@ -2262,9 +2203,6 @@ export interface PlayerSoundOptions {
2262
2203
  volume?: number;
2263
2204
  }
2264
2205
 
2265
- /**
2266
- * @beta
2267
- */
2268
2206
  export interface RawMessage {
2269
2207
  rawtext?: RawMessage[];
2270
2208
  score?: RawMessageScore;
@@ -2274,7 +2212,6 @@ export interface RawMessage {
2274
2212
  }
2275
2213
 
2276
2214
  /**
2277
- * @beta
2278
2215
  * Provides a description of a score token to use within a raw
2279
2216
  * message.
2280
2217
  */
@@ -2294,7 +2231,6 @@ export interface RawMessageScore {
2294
2231
  }
2295
2232
 
2296
2233
  /**
2297
- * @beta
2298
2234
  * Contains a description of a vector.
2299
2235
  */
2300
2236
  export interface Vector3 {
@@ -2319,7 +2255,6 @@ export interface Vector3 {
2319
2255
  }
2320
2256
 
2321
2257
  /**
2322
- * @beta
2323
2258
  * Contains additional options for a world-level playSound
2324
2259
  * occurrence.
2325
2260
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "1.2.0-rc.1.20.10-preview.21",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {