@minecraft/server 1.4.0-beta.1.20.10-preview.21 → 1.4.0-beta.1.20.10-preview.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +735 -527
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* ```json
|
|
17
17
|
* {
|
|
18
18
|
* "module_name": "@minecraft/server",
|
|
19
|
-
* "version": "1.4.0-internal.1.20.10-preview.
|
|
19
|
+
* "version": "1.4.0-internal.1.20.10-preview.23"
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -42,43 +42,43 @@ export enum CompoundBlockVolumeAction {
|
|
|
42
42
|
* @beta
|
|
43
43
|
*/
|
|
44
44
|
export enum Direction {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
Down = 'Down',
|
|
46
|
+
East = 'East',
|
|
47
|
+
North = 'North',
|
|
48
|
+
South = 'South',
|
|
49
|
+
Up = 'Up',
|
|
50
|
+
West = 'West',
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* @beta
|
|
55
55
|
*/
|
|
56
56
|
export enum DisplaySlotId {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
BelowName = 'BelowName',
|
|
58
|
+
List = 'List',
|
|
59
|
+
Sidebar = 'Sidebar',
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* @beta
|
|
64
64
|
*/
|
|
65
65
|
export enum DyeColor {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
Black = 'Black',
|
|
67
|
+
Blue = 'Blue',
|
|
68
|
+
Brown = 'Brown',
|
|
69
|
+
Cyan = 'Cyan',
|
|
70
|
+
Gray = 'Gray',
|
|
71
|
+
Green = 'Green',
|
|
72
|
+
LightBlue = 'LightBlue',
|
|
73
|
+
Lime = 'Lime',
|
|
74
|
+
Magenta = 'Magenta',
|
|
75
|
+
Orange = 'Orange',
|
|
76
|
+
Pink = 'Pink',
|
|
77
|
+
Purple = 'Purple',
|
|
78
|
+
Red = 'Red',
|
|
79
|
+
Silver = 'Silver',
|
|
80
|
+
White = 'White',
|
|
81
|
+
Yellow = 'Yellow',
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
@@ -122,8 +122,8 @@ export enum EntityDamageCause {
|
|
|
122
122
|
* @beta
|
|
123
123
|
*/
|
|
124
124
|
export enum EntityLifetimeState {
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
Loaded = 'Loaded',
|
|
126
|
+
Unloaded = 'Unloaded',
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/**
|
|
@@ -150,28 +150,28 @@ export enum FluidType {
|
|
|
150
150
|
* Represents lava as a type of fluid.
|
|
151
151
|
*
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
Lava = 'Lava',
|
|
154
154
|
/**
|
|
155
155
|
* @beta
|
|
156
156
|
* @remarks
|
|
157
157
|
* Represents a potion as a type of fluid.
|
|
158
158
|
*
|
|
159
159
|
*/
|
|
160
|
-
|
|
160
|
+
Potion = 'Potion',
|
|
161
161
|
/**
|
|
162
162
|
* @beta
|
|
163
163
|
* @remarks
|
|
164
164
|
* Represents powder snow as a type of fluid.
|
|
165
165
|
*
|
|
166
166
|
*/
|
|
167
|
-
|
|
167
|
+
PowderSnow = 'PowderSnow',
|
|
168
168
|
/**
|
|
169
169
|
* @beta
|
|
170
170
|
* @remarks
|
|
171
171
|
* Represents water as a type of fluida.
|
|
172
172
|
*
|
|
173
173
|
*/
|
|
174
|
-
|
|
174
|
+
Water = 'Water',
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/**
|
|
@@ -236,7 +236,7 @@ export enum ObjectiveSortOrder {
|
|
|
236
236
|
* A-Z) order.
|
|
237
237
|
*
|
|
238
238
|
*/
|
|
239
|
-
|
|
239
|
+
Ascending = 0,
|
|
240
240
|
/**
|
|
241
241
|
* @beta
|
|
242
242
|
* @remarks
|
|
@@ -244,7 +244,7 @@ export enum ObjectiveSortOrder {
|
|
|
244
244
|
* Z-A) order.
|
|
245
245
|
*
|
|
246
246
|
*/
|
|
247
|
-
|
|
247
|
+
Descending = 1,
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
/**
|
|
@@ -258,7 +258,7 @@ export enum ScoreboardIdentityType {
|
|
|
258
258
|
* This scoreboard participant is tied to an entity.
|
|
259
259
|
*
|
|
260
260
|
*/
|
|
261
|
-
|
|
261
|
+
Entity = 'Entity',
|
|
262
262
|
/**
|
|
263
263
|
* @beta
|
|
264
264
|
* @remarks
|
|
@@ -267,24 +267,24 @@ export enum ScoreboardIdentityType {
|
|
|
267
267
|
* as abstract progress.
|
|
268
268
|
*
|
|
269
269
|
*/
|
|
270
|
-
|
|
270
|
+
FakePlayer = 'FakePlayer',
|
|
271
271
|
/**
|
|
272
272
|
* @beta
|
|
273
273
|
* @remarks
|
|
274
274
|
* This scoreboard participant is tied to a player.
|
|
275
275
|
*
|
|
276
276
|
*/
|
|
277
|
-
|
|
277
|
+
Player = 'Player',
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
281
|
* @beta
|
|
282
282
|
*/
|
|
283
283
|
export enum ScriptEventSource {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
284
|
+
Block = 'Block',
|
|
285
|
+
Entity = 'Entity',
|
|
286
|
+
NPCDialogue = 'NPCDialogue',
|
|
287
|
+
Server = 'Server',
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
/**
|
|
@@ -298,14 +298,14 @@ export enum SignSide {
|
|
|
298
298
|
* The back of the sign.
|
|
299
299
|
*
|
|
300
300
|
*/
|
|
301
|
-
|
|
301
|
+
Back = 'Back',
|
|
302
302
|
/**
|
|
303
303
|
* @beta
|
|
304
304
|
* @remarks
|
|
305
305
|
* The front of the sign.
|
|
306
306
|
*
|
|
307
307
|
*/
|
|
308
|
-
|
|
308
|
+
Front = 'Front',
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
/**
|
|
@@ -333,7 +333,7 @@ export enum WatchdogTerminateReason {
|
|
|
333
333
|
* non-responsiveness from script (a hang or infinite loop).
|
|
334
334
|
*
|
|
335
335
|
*/
|
|
336
|
-
|
|
336
|
+
Hang = 'Hang',
|
|
337
337
|
/**
|
|
338
338
|
* @beta
|
|
339
339
|
* @remarks
|
|
@@ -342,16 +342,16 @@ export enum WatchdogTerminateReason {
|
|
|
342
342
|
* function calls.
|
|
343
343
|
*
|
|
344
344
|
*/
|
|
345
|
-
|
|
345
|
+
StackOverflow = 'StackOverflow',
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
349
|
* @beta
|
|
350
350
|
*/
|
|
351
351
|
export enum WeatherType {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
352
|
+
Clear = 'Clear',
|
|
353
|
+
Rain = 'Rain',
|
|
354
|
+
Thunder = 'Thunder',
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
/**
|
|
@@ -362,7 +362,7 @@ export enum WeatherType {
|
|
|
362
362
|
* updated in version 1.17.10.21.
|
|
363
363
|
*/
|
|
364
364
|
export class Block {
|
|
365
|
-
|
|
365
|
+
private constructor();
|
|
366
366
|
/**
|
|
367
367
|
* @remarks
|
|
368
368
|
* Returns the dimension that the block is within.
|
|
@@ -644,8 +644,9 @@ export class BlockAreaSize {
|
|
|
644
644
|
* Contains information regarding an event where a player
|
|
645
645
|
* breaks a block.
|
|
646
646
|
*/
|
|
647
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
647
648
|
export class BlockBreakAfterEvent extends BlockEvent {
|
|
648
|
-
|
|
649
|
+
private constructor();
|
|
649
650
|
/**
|
|
650
651
|
* @remarks
|
|
651
652
|
* Returns permutation information about this block before it
|
|
@@ -666,17 +667,20 @@ export class BlockBreakAfterEvent extends BlockEvent {
|
|
|
666
667
|
* Manages callbacks that are connected to when a block is
|
|
667
668
|
* broken.
|
|
668
669
|
*/
|
|
670
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
669
671
|
export class BlockBreakAfterEventSignal extends IBlockBreakAfterEventSignal {
|
|
670
|
-
|
|
672
|
+
private constructor();
|
|
671
673
|
}
|
|
672
674
|
|
|
673
675
|
/**
|
|
674
676
|
* @beta
|
|
675
677
|
* Base type for components associated with blocks.
|
|
676
678
|
*/
|
|
679
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
677
680
|
export class BlockComponent extends Component {
|
|
678
|
-
|
|
681
|
+
private constructor();
|
|
679
682
|
/**
|
|
683
|
+
* @beta
|
|
680
684
|
* @remarks
|
|
681
685
|
* Block instance that this component pertains to.
|
|
682
686
|
*
|
|
@@ -690,7 +694,7 @@ export class BlockComponent extends Component {
|
|
|
690
694
|
* specific block.
|
|
691
695
|
*/
|
|
692
696
|
export class BlockEvent {
|
|
693
|
-
|
|
697
|
+
private constructor();
|
|
694
698
|
/**
|
|
695
699
|
* @remarks
|
|
696
700
|
* Block impacted by this event.
|
|
@@ -711,8 +715,9 @@ export class BlockEvent {
|
|
|
711
715
|
* Contains information regarding an explosion that has
|
|
712
716
|
* occurred for a specific block.
|
|
713
717
|
*/
|
|
718
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
714
719
|
export class BlockExplodeAfterEvent extends BlockEvent {
|
|
715
|
-
|
|
720
|
+
private constructor();
|
|
716
721
|
/**
|
|
717
722
|
* @remarks
|
|
718
723
|
* Description of the block that has exploded.
|
|
@@ -732,8 +737,9 @@ export class BlockExplodeAfterEvent extends BlockEvent {
|
|
|
732
737
|
* Manages callbacks that are connected to when an explosion
|
|
733
738
|
* occurs, as it impacts individual blocks.
|
|
734
739
|
*/
|
|
740
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
735
741
|
export class BlockExplodeAfterEventSignal extends IBlockExplodeAfterEventSignal {
|
|
736
|
-
|
|
742
|
+
private constructor();
|
|
737
743
|
}
|
|
738
744
|
|
|
739
745
|
/**
|
|
@@ -741,8 +747,9 @@ export class BlockExplodeAfterEventSignal extends IBlockExplodeAfterEventSignal
|
|
|
741
747
|
* Represents the inventory of a block in the world. Used with
|
|
742
748
|
* blocks like chests.
|
|
743
749
|
*/
|
|
750
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
744
751
|
export class BlockInventoryComponent extends BlockComponent {
|
|
745
|
-
|
|
752
|
+
private constructor();
|
|
746
753
|
/**
|
|
747
754
|
* @remarks
|
|
748
755
|
* The container which holds an {@link ItemStack}.
|
|
@@ -764,8 +771,9 @@ export class BlockInventoryComponent extends BlockComponent {
|
|
|
764
771
|
* Represents a fluid container block that currently contains
|
|
765
772
|
* lava.
|
|
766
773
|
*/
|
|
774
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
767
775
|
export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
|
|
768
|
-
|
|
776
|
+
private constructor();
|
|
769
777
|
/**
|
|
770
778
|
* @remarks
|
|
771
779
|
* Identifier of this component. Should always be
|
|
@@ -780,8 +788,9 @@ export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
|
|
|
780
788
|
* For blocks that can contain a liquid (e.g., a cauldron),
|
|
781
789
|
* this is a base component for liquid containers.
|
|
782
790
|
*/
|
|
791
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
783
792
|
export class BlockLiquidContainerComponent extends BlockComponent {
|
|
784
|
-
|
|
793
|
+
private constructor();
|
|
785
794
|
/**
|
|
786
795
|
* @remarks
|
|
787
796
|
* Relative fill level of the liquid container.
|
|
@@ -790,6 +799,7 @@ export class BlockLiquidContainerComponent extends BlockComponent {
|
|
|
790
799
|
*
|
|
791
800
|
*/
|
|
792
801
|
fillLevel: number;
|
|
802
|
+
isValidLiquid(): boolean;
|
|
793
803
|
}
|
|
794
804
|
|
|
795
805
|
/**
|
|
@@ -811,7 +821,7 @@ export class BlockLiquidContainerComponent extends BlockComponent {
|
|
|
811
821
|
* coordinate to the next XZ slice)
|
|
812
822
|
*/
|
|
813
823
|
export class BlockLocationIterator implements Iterable<Vector3> {
|
|
814
|
-
|
|
824
|
+
private constructor();
|
|
815
825
|
/**
|
|
816
826
|
* @remarks
|
|
817
827
|
* This function can't be called in read-only mode.
|
|
@@ -834,7 +844,7 @@ export class BlockLocationIterator implements Iterable<Vector3> {
|
|
|
834
844
|
* Block}). This type was introduced as of version 1.17.10.21.
|
|
835
845
|
*/
|
|
836
846
|
export class BlockPermutation {
|
|
837
|
-
|
|
847
|
+
private constructor();
|
|
838
848
|
/**
|
|
839
849
|
* @beta
|
|
840
850
|
* @remarks
|
|
@@ -955,8 +965,9 @@ export class BlockPermutation {
|
|
|
955
965
|
* When present, this block has piston-like behavior. Contains
|
|
956
966
|
* additional properties for discovering block piston state.
|
|
957
967
|
*/
|
|
968
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
958
969
|
export class BlockPistonComponent extends BlockComponent {
|
|
959
|
-
|
|
970
|
+
private constructor();
|
|
960
971
|
/**
|
|
961
972
|
* @remarks
|
|
962
973
|
* Whether the piston is fully expanded.
|
|
@@ -1014,8 +1025,9 @@ export class BlockPistonComponent extends BlockComponent {
|
|
|
1014
1025
|
* Contains information regarding an event where a player
|
|
1015
1026
|
* places a block.
|
|
1016
1027
|
*/
|
|
1028
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1017
1029
|
export class BlockPlaceAfterEvent extends BlockEvent {
|
|
1018
|
-
|
|
1030
|
+
private constructor();
|
|
1019
1031
|
/**
|
|
1020
1032
|
* @remarks
|
|
1021
1033
|
* Player that placed the block for this event.
|
|
@@ -1029,8 +1041,9 @@ export class BlockPlaceAfterEvent extends BlockEvent {
|
|
|
1029
1041
|
* Manages callbacks that are connected to when a block is
|
|
1030
1042
|
* placed.
|
|
1031
1043
|
*/
|
|
1044
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1032
1045
|
export class BlockPlaceAfterEventSignal extends IBlockPlaceAfterEventSignal {
|
|
1033
|
-
|
|
1046
|
+
private constructor();
|
|
1034
1047
|
}
|
|
1035
1048
|
|
|
1036
1049
|
/**
|
|
@@ -1038,8 +1051,9 @@ export class BlockPlaceAfterEventSignal extends IBlockPlaceAfterEventSignal {
|
|
|
1038
1051
|
* Represents a fluid container block that currently contains a
|
|
1039
1052
|
* potion.
|
|
1040
1053
|
*/
|
|
1054
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1041
1055
|
export class BlockPotionContainerComponent extends BlockLiquidContainerComponent {
|
|
1042
|
-
|
|
1056
|
+
private constructor();
|
|
1043
1057
|
/**
|
|
1044
1058
|
* @remarks
|
|
1045
1059
|
* Identifier of this component. Should always be
|
|
@@ -1062,8 +1076,9 @@ export class BlockPotionContainerComponent extends BlockLiquidContainerComponent
|
|
|
1062
1076
|
* @beta
|
|
1063
1077
|
* Represents a block that can play a record.
|
|
1064
1078
|
*/
|
|
1079
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1065
1080
|
export class BlockRecordPlayerComponent extends BlockComponent {
|
|
1066
|
-
|
|
1081
|
+
private constructor();
|
|
1067
1082
|
/**
|
|
1068
1083
|
* @remarks
|
|
1069
1084
|
* Identifier of this component. Should always be
|
|
@@ -1104,8 +1119,9 @@ export class BlockRecordPlayerComponent extends BlockComponent {
|
|
|
1104
1119
|
* @beta
|
|
1105
1120
|
* Represents a block that can display text on it.
|
|
1106
1121
|
*/
|
|
1122
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1107
1123
|
export class BlockSignComponent extends BlockComponent {
|
|
1108
|
-
|
|
1124
|
+
private constructor();
|
|
1109
1125
|
/**
|
|
1110
1126
|
* @remarks
|
|
1111
1127
|
* Whether or not players can edit the sign. This happens if a
|
|
@@ -1233,8 +1249,9 @@ export class BlockSignComponent extends BlockComponent {
|
|
|
1233
1249
|
* Represents a fluid container block that currently contains
|
|
1234
1250
|
* snow.
|
|
1235
1251
|
*/
|
|
1252
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1236
1253
|
export class BlockSnowContainerComponent extends BlockLiquidContainerComponent {
|
|
1237
|
-
|
|
1254
|
+
private constructor();
|
|
1238
1255
|
/**
|
|
1239
1256
|
* @remarks
|
|
1240
1257
|
* Identifier of this component. Should always be
|
|
@@ -1249,7 +1266,7 @@ export class BlockSnowContainerComponent extends BlockLiquidContainerComponent {
|
|
|
1249
1266
|
* Enumerates all {@link BlockStateType}s.
|
|
1250
1267
|
*/
|
|
1251
1268
|
export class BlockStates {
|
|
1252
|
-
|
|
1269
|
+
private constructor();
|
|
1253
1270
|
/**
|
|
1254
1271
|
* @remarks
|
|
1255
1272
|
* Retrieves a specific block state instance.
|
|
@@ -1271,7 +1288,7 @@ export class BlockStates {
|
|
|
1271
1288
|
* a block state.
|
|
1272
1289
|
*/
|
|
1273
1290
|
export class BlockStateType {
|
|
1274
|
-
|
|
1291
|
+
private constructor();
|
|
1275
1292
|
/**
|
|
1276
1293
|
* @remarks
|
|
1277
1294
|
* Identifier of the block property.
|
|
@@ -1294,7 +1311,7 @@ export class BlockStateType {
|
|
|
1294
1311
|
* 1.17.10.21.
|
|
1295
1312
|
*/
|
|
1296
1313
|
export class BlockType {
|
|
1297
|
-
|
|
1314
|
+
private constructor();
|
|
1298
1315
|
/**
|
|
1299
1316
|
* @remarks
|
|
1300
1317
|
* Represents whether this type of block can be waterlogged.
|
|
@@ -1316,7 +1333,7 @@ export class BlockType {
|
|
|
1316
1333
|
* @minecraft-server.BlockVolume} objects
|
|
1317
1334
|
*/
|
|
1318
1335
|
export class BlockVolumeUtils {
|
|
1319
|
-
|
|
1336
|
+
private constructor();
|
|
1320
1337
|
/**
|
|
1321
1338
|
* @remarks
|
|
1322
1339
|
* Check to see if the given location is directly adjacent to
|
|
@@ -1453,8 +1470,9 @@ export class BlockVolumeUtils {
|
|
|
1453
1470
|
* Represents a fluid container block that currently contains
|
|
1454
1471
|
* water.
|
|
1455
1472
|
*/
|
|
1473
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1456
1474
|
export class BlockWaterContainerComponent extends BlockLiquidContainerComponent {
|
|
1457
|
-
|
|
1475
|
+
private constructor();
|
|
1458
1476
|
/**
|
|
1459
1477
|
* @remarks
|
|
1460
1478
|
* Identifier of this component. Should always be
|
|
@@ -1498,7 +1516,7 @@ export class BlockWaterContainerComponent extends BlockLiquidContainerComponent
|
|
|
1498
1516
|
* @minecraft-server.BoundingBox} objects
|
|
1499
1517
|
*/
|
|
1500
1518
|
export class BoundingBoxUtils {
|
|
1501
|
-
|
|
1519
|
+
private constructor();
|
|
1502
1520
|
/**
|
|
1503
1521
|
* @remarks
|
|
1504
1522
|
* Create a validated instance of a {@link
|
|
@@ -1625,8 +1643,9 @@ export class BoundingBoxUtils {
|
|
|
1625
1643
|
* @beta
|
|
1626
1644
|
* Contains information related to changes to a button push.
|
|
1627
1645
|
*/
|
|
1646
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1628
1647
|
export class ButtonPushAfterEvent extends BlockEvent {
|
|
1629
|
-
|
|
1648
|
+
private constructor();
|
|
1630
1649
|
/**
|
|
1631
1650
|
* @remarks
|
|
1632
1651
|
* Optional source that triggered the button push.
|
|
@@ -1640,8 +1659,9 @@ export class ButtonPushAfterEvent extends BlockEvent {
|
|
|
1640
1659
|
* Manages callbacks that are connected to when a button is
|
|
1641
1660
|
* pushed.
|
|
1642
1661
|
*/
|
|
1662
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1643
1663
|
export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal {
|
|
1644
|
-
|
|
1664
|
+
private constructor();
|
|
1645
1665
|
}
|
|
1646
1666
|
|
|
1647
1667
|
/**
|
|
@@ -1649,7 +1669,7 @@ export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal {
|
|
|
1649
1669
|
* An event that fires as players enter chat messages.
|
|
1650
1670
|
*/
|
|
1651
1671
|
export class ChatSendAfterEvent {
|
|
1652
|
-
|
|
1672
|
+
private constructor();
|
|
1653
1673
|
/**
|
|
1654
1674
|
* @remarks
|
|
1655
1675
|
* Message that is being broadcast. In a beforeChat event
|
|
@@ -1686,16 +1706,18 @@ export class ChatSendAfterEvent {
|
|
|
1686
1706
|
* Manages callbacks that are connected to chat messages being
|
|
1687
1707
|
* sent.
|
|
1688
1708
|
*/
|
|
1709
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1689
1710
|
export class ChatSendAfterEventSignal extends IChatSendAfterEventSignal {
|
|
1690
|
-
|
|
1711
|
+
private constructor();
|
|
1691
1712
|
}
|
|
1692
1713
|
|
|
1693
1714
|
/**
|
|
1694
1715
|
* @beta
|
|
1695
1716
|
* An event that fires as players enter chat messages.
|
|
1696
1717
|
*/
|
|
1718
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1697
1719
|
export class ChatSendBeforeEvent extends ChatSendAfterEvent {
|
|
1698
|
-
|
|
1720
|
+
private constructor();
|
|
1699
1721
|
/**
|
|
1700
1722
|
* @remarks
|
|
1701
1723
|
* If set to true in a beforeChat event handler, this message
|
|
@@ -1719,15 +1741,16 @@ export class ChatSendBeforeEvent extends ChatSendAfterEvent {
|
|
|
1719
1741
|
* Manages callbacks that are connected to an event that fires
|
|
1720
1742
|
* before chat messages are sent.
|
|
1721
1743
|
*/
|
|
1744
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1722
1745
|
export class ChatSendBeforeEventSignal extends IChatSendBeforeEventSignal {
|
|
1723
|
-
|
|
1746
|
+
private constructor();
|
|
1724
1747
|
}
|
|
1725
1748
|
|
|
1726
1749
|
/**
|
|
1727
1750
|
* Contains return data on the result of a command execution.
|
|
1728
1751
|
*/
|
|
1729
1752
|
export class CommandResult {
|
|
1730
|
-
|
|
1753
|
+
private constructor();
|
|
1731
1754
|
/**
|
|
1732
1755
|
* @remarks
|
|
1733
1756
|
* If the command operates against a number of entities,
|
|
@@ -1743,13 +1766,17 @@ export class CommandResult {
|
|
|
1743
1766
|
* Base class for downstream Component implementations.
|
|
1744
1767
|
*/
|
|
1745
1768
|
export class Component {
|
|
1746
|
-
|
|
1769
|
+
private constructor();
|
|
1747
1770
|
/**
|
|
1748
1771
|
* @remarks
|
|
1749
1772
|
* Identifier of the component.
|
|
1750
1773
|
*
|
|
1751
1774
|
*/
|
|
1752
1775
|
readonly typeId: string;
|
|
1776
|
+
/**
|
|
1777
|
+
* @beta
|
|
1778
|
+
*/
|
|
1779
|
+
isValid(): boolean;
|
|
1753
1780
|
}
|
|
1754
1781
|
|
|
1755
1782
|
/**
|
|
@@ -1923,7 +1950,7 @@ export class CompoundBlockVolume {
|
|
|
1923
1950
|
* more.
|
|
1924
1951
|
*/
|
|
1925
1952
|
export class Container {
|
|
1926
|
-
|
|
1953
|
+
private constructor();
|
|
1927
1954
|
/**
|
|
1928
1955
|
* @remarks
|
|
1929
1956
|
* Count of the slots in the container that are empty.
|
|
@@ -2107,7 +2134,7 @@ export class Container {
|
|
|
2107
2134
|
* inventory.)
|
|
2108
2135
|
*/
|
|
2109
2136
|
export class ContainerSlot {
|
|
2110
|
-
|
|
2137
|
+
private constructor();
|
|
2111
2138
|
/**
|
|
2112
2139
|
* @remarks
|
|
2113
2140
|
* Number of the items in the stack. Valid values range between
|
|
@@ -2328,7 +2355,7 @@ export class ContainerSlot {
|
|
|
2328
2355
|
* event on a chicken.
|
|
2329
2356
|
*/
|
|
2330
2357
|
export class DataDrivenEntityTriggerAfterEvent {
|
|
2331
|
-
|
|
2358
|
+
private constructor();
|
|
2332
2359
|
/**
|
|
2333
2360
|
* @remarks
|
|
2334
2361
|
* Entity that the event triggered on.
|
|
@@ -2358,8 +2385,9 @@ export class DataDrivenEntityTriggerAfterEvent {
|
|
|
2358
2385
|
* driven entity event - for example, the
|
|
2359
2386
|
* minecraft:ageable_grow_up event on a chicken.
|
|
2360
2387
|
*/
|
|
2388
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2361
2389
|
export class DataDrivenEntityTriggerAfterEventSignal extends IDataDrivenEntityTriggerAfterEventSignal {
|
|
2362
|
-
|
|
2390
|
+
private constructor();
|
|
2363
2391
|
}
|
|
2364
2392
|
|
|
2365
2393
|
/**
|
|
@@ -2369,7 +2397,7 @@ export class DataDrivenEntityTriggerAfterEventSignal extends IDataDrivenEntityTr
|
|
|
2369
2397
|
* event on a chicken.
|
|
2370
2398
|
*/
|
|
2371
2399
|
export class DataDrivenEntityTriggerBeforeEvent {
|
|
2372
|
-
|
|
2400
|
+
private constructor();
|
|
2373
2401
|
/**
|
|
2374
2402
|
* @remarks
|
|
2375
2403
|
* If set to true, this entity event is not triggered.
|
|
@@ -2412,8 +2440,9 @@ export class DataDrivenEntityTriggerBeforeEvent {
|
|
|
2412
2440
|
* entity event - for example, the minecraft:ageable_grow_up
|
|
2413
2441
|
* event on a chicken.
|
|
2414
2442
|
*/
|
|
2443
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2415
2444
|
export class DataDrivenEntityTriggerBeforeEventSignal extends IDataDrivenEntityTriggerBeforeEventSignal {
|
|
2416
|
-
|
|
2445
|
+
private constructor();
|
|
2417
2446
|
}
|
|
2418
2447
|
|
|
2419
2448
|
/**
|
|
@@ -2471,7 +2500,7 @@ export class DefinitionModifier {
|
|
|
2471
2500
|
* End) within a world.
|
|
2472
2501
|
*/
|
|
2473
2502
|
export class Dimension {
|
|
2474
|
-
|
|
2503
|
+
private constructor();
|
|
2475
2504
|
/**
|
|
2476
2505
|
* @remarks
|
|
2477
2506
|
* Identifier of the dimension.
|
|
@@ -2579,9 +2608,8 @@ export class Dimension {
|
|
|
2579
2608
|
* Vector direction to cast the ray.
|
|
2580
2609
|
* @param options
|
|
2581
2610
|
* Additional options for processing this raycast query.
|
|
2582
|
-
* @throws This function can throw errors.
|
|
2583
2611
|
*/
|
|
2584
|
-
getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions):
|
|
2612
|
+
getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
2585
2613
|
/**
|
|
2586
2614
|
* @beta
|
|
2587
2615
|
* @remarks
|
|
@@ -2633,9 +2661,8 @@ export class Dimension {
|
|
|
2633
2661
|
*
|
|
2634
2662
|
* @param options
|
|
2635
2663
|
* Additional options for processing this raycast query.
|
|
2636
|
-
* @throws This function can throw errors.
|
|
2637
2664
|
*/
|
|
2638
|
-
getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions):
|
|
2665
|
+
getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): EntityRaycastHit[];
|
|
2639
2666
|
/**
|
|
2640
2667
|
* @beta
|
|
2641
2668
|
* @remarks
|
|
@@ -2830,7 +2857,7 @@ export class DynamicPropertiesDefinition {
|
|
|
2830
2857
|
* an Entity.
|
|
2831
2858
|
*/
|
|
2832
2859
|
export class Effect {
|
|
2833
|
-
|
|
2860
|
+
private constructor();
|
|
2834
2861
|
/**
|
|
2835
2862
|
* @remarks
|
|
2836
2863
|
* Gets an amplifier that may have been applied to this effect.
|
|
@@ -2873,7 +2900,7 @@ export class Effect {
|
|
|
2873
2900
|
* poison - being added to an entity.
|
|
2874
2901
|
*/
|
|
2875
2902
|
export class EffectAddAfterEvent {
|
|
2876
|
-
|
|
2903
|
+
private constructor();
|
|
2877
2904
|
/**
|
|
2878
2905
|
* @remarks
|
|
2879
2906
|
* Additional properties and details of the effect.
|
|
@@ -2905,8 +2932,9 @@ export class EffectAddAfterEvent {
|
|
|
2905
2932
|
* Manages callbacks that are connected to when an effect is
|
|
2906
2933
|
* added to an entity.
|
|
2907
2934
|
*/
|
|
2935
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2908
2936
|
export class EffectAddAfterEventSignal extends IEffectAddAfterEventSignal {
|
|
2909
|
-
|
|
2937
|
+
private constructor();
|
|
2910
2938
|
}
|
|
2911
2939
|
|
|
2912
2940
|
/**
|
|
@@ -2915,7 +2943,7 @@ export class EffectAddAfterEventSignal extends IEffectAddAfterEventSignal {
|
|
|
2915
2943
|
* applied to an entity.
|
|
2916
2944
|
*/
|
|
2917
2945
|
export class EffectType {
|
|
2918
|
-
|
|
2946
|
+
private constructor();
|
|
2919
2947
|
/**
|
|
2920
2948
|
* @remarks
|
|
2921
2949
|
* Identifier name of this effect type.
|
|
@@ -2932,7 +2960,7 @@ export class EffectType {
|
|
|
2932
2960
|
* applied to an entity.
|
|
2933
2961
|
*/
|
|
2934
2962
|
export class EffectTypes {
|
|
2935
|
-
|
|
2963
|
+
private constructor();
|
|
2936
2964
|
/**
|
|
2937
2965
|
* @remarks
|
|
2938
2966
|
* Effect type for the given identifier.
|
|
@@ -3073,7 +3101,7 @@ export class EnchantmentList implements Iterable<Enchantment> {
|
|
|
3073
3101
|
* enchantment can be applied to.
|
|
3074
3102
|
*/
|
|
3075
3103
|
export class EnchantmentSlot {
|
|
3076
|
-
|
|
3104
|
+
private constructor();
|
|
3077
3105
|
static readonly all = -1;
|
|
3078
3106
|
static readonly armorFeet = 4;
|
|
3079
3107
|
static readonly armorHead = 1;
|
|
@@ -3105,7 +3133,7 @@ export class EnchantmentSlot {
|
|
|
3105
3133
|
* Contains information on a type of enchantment.
|
|
3106
3134
|
*/
|
|
3107
3135
|
export class EnchantmentType {
|
|
3108
|
-
|
|
3136
|
+
private constructor();
|
|
3109
3137
|
/**
|
|
3110
3138
|
* @remarks
|
|
3111
3139
|
* The name of the enchantment type.
|
|
@@ -3124,7 +3152,7 @@ export class EnchantmentType {
|
|
|
3124
3152
|
* @beta
|
|
3125
3153
|
*/
|
|
3126
3154
|
export class EnchantmentTypes {
|
|
3127
|
-
|
|
3155
|
+
private constructor();
|
|
3128
3156
|
/**
|
|
3129
3157
|
* @remarks
|
|
3130
3158
|
* Retrieves an enchantment with the specified identifier.
|
|
@@ -3144,7 +3172,7 @@ export class EnchantmentTypes {
|
|
|
3144
3172
|
* other moving objects like minecarts) in the world.
|
|
3145
3173
|
*/
|
|
3146
3174
|
export class Entity {
|
|
3147
|
-
|
|
3175
|
+
private constructor();
|
|
3148
3176
|
/**
|
|
3149
3177
|
* @beta
|
|
3150
3178
|
* @remarks
|
|
@@ -3449,7 +3477,7 @@ export class Entity {
|
|
|
3449
3477
|
* this entity is looking at.
|
|
3450
3478
|
* @throws This function can throw errors.
|
|
3451
3479
|
*/
|
|
3452
|
-
getBlockFromViewDirection(options?: BlockRaycastOptions):
|
|
3480
|
+
getBlockFromViewDirection(options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
3453
3481
|
/**
|
|
3454
3482
|
* @beta
|
|
3455
3483
|
* @remarks
|
|
@@ -3529,7 +3557,7 @@ export class Entity {
|
|
|
3529
3557
|
* entity is looking at.
|
|
3530
3558
|
* @throws This function can throw errors.
|
|
3531
3559
|
*/
|
|
3532
|
-
getEntitiesFromViewDirection(options?: EntityRaycastOptions):
|
|
3560
|
+
getEntitiesFromViewDirection(options?: EntityRaycastOptions): EntityRaycastHit[];
|
|
3533
3561
|
/**
|
|
3534
3562
|
* @beta
|
|
3535
3563
|
* @remarks
|
|
@@ -3609,6 +3637,10 @@ export class Entity {
|
|
|
3609
3637
|
* @throws This function can throw errors.
|
|
3610
3638
|
*/
|
|
3611
3639
|
hasTag(tag: string): boolean;
|
|
3640
|
+
/**
|
|
3641
|
+
* @beta
|
|
3642
|
+
*/
|
|
3643
|
+
isValid(): boolean;
|
|
3612
3644
|
/**
|
|
3613
3645
|
* @beta
|
|
3614
3646
|
* @remarks
|
|
@@ -3816,8 +3848,9 @@ export class Entity {
|
|
|
3816
3848
|
* When added, this component makes the entity spawn with a
|
|
3817
3849
|
* rider of the specified entityType.
|
|
3818
3850
|
*/
|
|
3851
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3819
3852
|
export class EntityAddRiderComponent extends EntityComponent {
|
|
3820
|
-
|
|
3853
|
+
private constructor();
|
|
3821
3854
|
/**
|
|
3822
3855
|
* @remarks
|
|
3823
3856
|
* The type of entity that is added as a rider for this entity
|
|
@@ -3849,8 +3882,9 @@ export class EntityAddRiderComponent extends EntityComponent {
|
|
|
3849
3882
|
* accelerated by giving the entity the items it likes as
|
|
3850
3883
|
* defined by feedItems.
|
|
3851
3884
|
*/
|
|
3885
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3852
3886
|
export class EntityAgeableComponent extends EntityComponent {
|
|
3853
|
-
|
|
3887
|
+
private constructor();
|
|
3854
3888
|
/**
|
|
3855
3889
|
* @remarks
|
|
3856
3890
|
* Amount of time before the entity grows up, -1 for always a
|
|
@@ -3894,8 +3928,9 @@ export class EntityAgeableComponent extends EntityComponent {
|
|
|
3894
3928
|
/**
|
|
3895
3929
|
* @beta
|
|
3896
3930
|
*/
|
|
3931
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3897
3932
|
export class EntityAttributeComponent extends EntityComponent {
|
|
3898
|
-
|
|
3933
|
+
private constructor();
|
|
3899
3934
|
readonly currentValue: number;
|
|
3900
3935
|
readonly defaultValue: number;
|
|
3901
3936
|
readonly effectiveMax: number;
|
|
@@ -3934,8 +3969,9 @@ export class EntityAttributeComponent extends EntityComponent {
|
|
|
3934
3969
|
* @beta
|
|
3935
3970
|
* Base class for a family of entity movement events.
|
|
3936
3971
|
*/
|
|
3972
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3937
3973
|
export class EntityBaseMovementComponent extends EntityComponent {
|
|
3938
|
-
|
|
3974
|
+
private constructor();
|
|
3939
3975
|
readonly maxTurn: number;
|
|
3940
3976
|
}
|
|
3941
3977
|
|
|
@@ -3944,8 +3980,9 @@ export class EntityBaseMovementComponent extends EntityComponent {
|
|
|
3944
3980
|
* Defines what blocks this entity can breathe in and gives
|
|
3945
3981
|
* them the ability to suffocate.
|
|
3946
3982
|
*/
|
|
3983
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3947
3984
|
export class EntityBreathableComponent extends EntityComponent {
|
|
3948
|
-
|
|
3985
|
+
private constructor();
|
|
3949
3986
|
/**
|
|
3950
3987
|
* @remarks
|
|
3951
3988
|
* If true, this entity can breathe in air.
|
|
@@ -4041,8 +4078,9 @@ export class EntityBreathableComponent extends EntityComponent {
|
|
|
4041
4078
|
* When added, this component signifies that the entity can
|
|
4042
4079
|
* climb up ladders.
|
|
4043
4080
|
*/
|
|
4081
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4044
4082
|
export class EntityCanClimbComponent extends EntityComponent {
|
|
4045
|
-
|
|
4083
|
+
private constructor();
|
|
4046
4084
|
/**
|
|
4047
4085
|
* @remarks
|
|
4048
4086
|
* Identifier of this component. Should always be
|
|
@@ -4058,8 +4096,9 @@ export class EntityCanClimbComponent extends EntityComponent {
|
|
|
4058
4096
|
* fly, and the pathfinder won't be restricted to paths where a
|
|
4059
4097
|
* solid block is required underneath it.
|
|
4060
4098
|
*/
|
|
4099
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4061
4100
|
export class EntityCanFlyComponent extends EntityComponent {
|
|
4062
|
-
|
|
4101
|
+
private constructor();
|
|
4063
4102
|
/**
|
|
4064
4103
|
* @remarks
|
|
4065
4104
|
* Identifier of this component. Should always be
|
|
@@ -4074,8 +4113,9 @@ export class EntityCanFlyComponent extends EntityComponent {
|
|
|
4074
4113
|
* When added, this component signifies that the entity can
|
|
4075
4114
|
* power jump like the horse does within Minecraft.
|
|
4076
4115
|
*/
|
|
4116
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4077
4117
|
export class EntityCanPowerJumpComponent extends EntityComponent {
|
|
4078
|
-
|
|
4118
|
+
private constructor();
|
|
4079
4119
|
/**
|
|
4080
4120
|
* @remarks
|
|
4081
4121
|
* Identifier of this component. Should always be
|
|
@@ -4090,8 +4130,9 @@ export class EntityCanPowerJumpComponent extends EntityComponent {
|
|
|
4090
4130
|
* Defines the entity's color. Only works on certain entities
|
|
4091
4131
|
* that have predefined color values (sheep, llama, shulker).
|
|
4092
4132
|
*/
|
|
4133
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4093
4134
|
export class EntityColorComponent extends EntityComponent {
|
|
4094
|
-
|
|
4135
|
+
private constructor();
|
|
4095
4136
|
/**
|
|
4096
4137
|
* @remarks
|
|
4097
4138
|
* This property can't be edited in read-only mode.
|
|
@@ -4111,8 +4152,9 @@ export class EntityColorComponent extends EntityComponent {
|
|
|
4111
4152
|
* @beta
|
|
4112
4153
|
* Base class for downstream entity components.
|
|
4113
4154
|
*/
|
|
4155
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4114
4156
|
export class EntityComponent extends Component {
|
|
4115
|
-
|
|
4157
|
+
private constructor();
|
|
4116
4158
|
/**
|
|
4117
4159
|
* @beta
|
|
4118
4160
|
* @remarks
|
|
@@ -4120,10 +4162,6 @@ export class EntityComponent extends Component {
|
|
|
4120
4162
|
*
|
|
4121
4163
|
*/
|
|
4122
4164
|
readonly entity: Entity;
|
|
4123
|
-
/**
|
|
4124
|
-
* @beta
|
|
4125
|
-
*/
|
|
4126
|
-
isValid(): boolean;
|
|
4127
4165
|
}
|
|
4128
4166
|
|
|
4129
4167
|
/**
|
|
@@ -4133,7 +4171,7 @@ export class EntityComponent extends Component {
|
|
|
4133
4171
|
* causes them to grow.
|
|
4134
4172
|
*/
|
|
4135
4173
|
export class EntityDefinitionFeedItem {
|
|
4136
|
-
|
|
4174
|
+
private constructor();
|
|
4137
4175
|
/**
|
|
4138
4176
|
* @remarks
|
|
4139
4177
|
* The amount by which an entity's age will increase when fed
|
|
@@ -4155,7 +4193,7 @@ export class EntityDefinitionFeedItem {
|
|
|
4155
4193
|
* @beta
|
|
4156
4194
|
*/
|
|
4157
4195
|
export class EntityDieAfterEvent {
|
|
4158
|
-
|
|
4196
|
+
private constructor();
|
|
4159
4197
|
readonly damageSource: EntityDamageSource;
|
|
4160
4198
|
readonly deadEntity: Entity;
|
|
4161
4199
|
}
|
|
@@ -4163,8 +4201,9 @@ export class EntityDieAfterEvent {
|
|
|
4163
4201
|
/**
|
|
4164
4202
|
* @beta
|
|
4165
4203
|
*/
|
|
4204
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4166
4205
|
export class EntityDieAfterEventSignal extends IEntityDieAfterEventSignal {
|
|
4167
|
-
|
|
4206
|
+
private constructor();
|
|
4168
4207
|
}
|
|
4169
4208
|
|
|
4170
4209
|
/**
|
|
@@ -4172,8 +4211,9 @@ export class EntityDieAfterEventSignal extends IEntityDieAfterEventSignal {
|
|
|
4172
4211
|
* Provides access to a mob's equipment slots. This component
|
|
4173
4212
|
* exists for all mob entities.
|
|
4174
4213
|
*/
|
|
4214
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4175
4215
|
export class EntityEquipmentInventoryComponent extends EntityComponent {
|
|
4176
|
-
|
|
4216
|
+
private constructor();
|
|
4177
4217
|
static readonly componentId = 'minecraft:equipment_inventory';
|
|
4178
4218
|
/**
|
|
4179
4219
|
* @remarks
|
|
@@ -4224,8 +4264,9 @@ export class EntityEquipmentInventoryComponent extends EntityComponent {
|
|
|
4224
4264
|
* When added, this component signifies that this entity
|
|
4225
4265
|
* doesn't take damage from fire.
|
|
4226
4266
|
*/
|
|
4267
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4227
4268
|
export class EntityFireImmuneComponent extends EntityComponent {
|
|
4228
|
-
|
|
4269
|
+
private constructor();
|
|
4229
4270
|
/**
|
|
4230
4271
|
* @remarks
|
|
4231
4272
|
* Identifier of this component. Should always be
|
|
@@ -4240,8 +4281,9 @@ export class EntityFireImmuneComponent extends EntityComponent {
|
|
|
4240
4281
|
* When added, this component signifies that this entity can
|
|
4241
4282
|
* float in liquid blocks.
|
|
4242
4283
|
*/
|
|
4284
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4243
4285
|
export class EntityFloatsInLiquidComponent extends EntityComponent {
|
|
4244
|
-
|
|
4286
|
+
private constructor();
|
|
4245
4287
|
/**
|
|
4246
4288
|
* @remarks
|
|
4247
4289
|
* Identifier of this component. Should always be
|
|
@@ -4255,8 +4297,9 @@ export class EntityFloatsInLiquidComponent extends EntityComponent {
|
|
|
4255
4297
|
* @beta
|
|
4256
4298
|
* Represents the flying speed of an entity.
|
|
4257
4299
|
*/
|
|
4300
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4258
4301
|
export class EntityFlyingSpeedComponent extends EntityComponent {
|
|
4259
|
-
|
|
4302
|
+
private constructor();
|
|
4260
4303
|
/**
|
|
4261
4304
|
* @remarks
|
|
4262
4305
|
* This property can't be edited in read-only mode.
|
|
@@ -4276,8 +4319,9 @@ export class EntityFlyingSpeedComponent extends EntityComponent {
|
|
|
4276
4319
|
* @beta
|
|
4277
4320
|
* Defines how much friction affects this entity.
|
|
4278
4321
|
*/
|
|
4322
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4279
4323
|
export class EntityFrictionModifierComponent extends EntityComponent {
|
|
4280
|
-
|
|
4324
|
+
private constructor();
|
|
4281
4325
|
/**
|
|
4282
4326
|
* @remarks
|
|
4283
4327
|
* This property can't be edited in read-only mode.
|
|
@@ -4298,8 +4342,9 @@ export class EntityFrictionModifierComponent extends EntityComponent {
|
|
|
4298
4342
|
* Sets the offset from the ground that the entity is actually
|
|
4299
4343
|
* at.
|
|
4300
4344
|
*/
|
|
4345
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4301
4346
|
export class EntityGroundOffsetComponent extends EntityComponent {
|
|
4302
|
-
|
|
4347
|
+
private constructor();
|
|
4303
4348
|
/**
|
|
4304
4349
|
* @remarks
|
|
4305
4350
|
* This property can't be edited in read-only mode.
|
|
@@ -4319,8 +4364,17 @@ export class EntityGroundOffsetComponent extends EntityComponent {
|
|
|
4319
4364
|
* @beta
|
|
4320
4365
|
* Defines the interactions with this entity for healing it.
|
|
4321
4366
|
*/
|
|
4367
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4322
4368
|
export class EntityHealableComponent extends EntityComponent {
|
|
4323
|
-
|
|
4369
|
+
private constructor();
|
|
4370
|
+
/**
|
|
4371
|
+
* @beta
|
|
4372
|
+
* @remarks
|
|
4373
|
+
* A set of filters for when these Healable items would apply.
|
|
4374
|
+
*
|
|
4375
|
+
* @throws This property can throw when used.
|
|
4376
|
+
*/
|
|
4377
|
+
readonly filters: FilterGroup;
|
|
4324
4378
|
/**
|
|
4325
4379
|
* @remarks
|
|
4326
4380
|
* Determines if an item can be used regardless of the entity
|
|
@@ -4354,7 +4408,7 @@ export class EntityHealableComponent extends EntityComponent {
|
|
|
4354
4408
|
* this event, or it will cause an infinite loop!
|
|
4355
4409
|
*/
|
|
4356
4410
|
export class EntityHealthChangedAfterEvent {
|
|
4357
|
-
|
|
4411
|
+
private constructor();
|
|
4358
4412
|
/**
|
|
4359
4413
|
* @remarks
|
|
4360
4414
|
* Entity whose health changed.
|
|
@@ -4380,16 +4434,18 @@ export class EntityHealthChangedAfterEvent {
|
|
|
4380
4434
|
* Manages callbacks that are connected to when the health of
|
|
4381
4435
|
* an entity changes.
|
|
4382
4436
|
*/
|
|
4437
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4383
4438
|
export class EntityHealthChangedAfterEventSignal extends IEntityHealthChangedAfterEventSignal {
|
|
4384
|
-
|
|
4439
|
+
private constructor();
|
|
4385
4440
|
}
|
|
4386
4441
|
|
|
4387
4442
|
/**
|
|
4388
4443
|
* @beta
|
|
4389
4444
|
* Defines the health properties of an entity.
|
|
4390
4445
|
*/
|
|
4446
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4391
4447
|
export class EntityHealthComponent extends EntityAttributeComponent {
|
|
4392
|
-
|
|
4448
|
+
private constructor();
|
|
4393
4449
|
/**
|
|
4394
4450
|
* @remarks
|
|
4395
4451
|
* Identifier of this component. Should always be
|
|
@@ -4401,35 +4457,54 @@ export class EntityHealthComponent extends EntityAttributeComponent {
|
|
|
4401
4457
|
|
|
4402
4458
|
/**
|
|
4403
4459
|
* @beta
|
|
4404
|
-
* Contains information related to an entity hitting
|
|
4405
|
-
* attacking) another entity.
|
|
4460
|
+
* Contains information related to an entity hitting a block.
|
|
4406
4461
|
*/
|
|
4407
|
-
export class
|
|
4408
|
-
|
|
4462
|
+
export class EntityHitBlockAfterEvent {
|
|
4463
|
+
private constructor();
|
|
4464
|
+
readonly blockFace: Direction;
|
|
4409
4465
|
/**
|
|
4410
4466
|
* @remarks
|
|
4411
|
-
* Entity that made
|
|
4467
|
+
* Entity that made the attack.
|
|
4412
4468
|
*
|
|
4413
4469
|
*/
|
|
4414
|
-
readonly
|
|
4470
|
+
readonly damagingEntity: Entity;
|
|
4415
4471
|
/**
|
|
4416
4472
|
* @remarks
|
|
4417
|
-
* Block that was hit by the attack
|
|
4418
|
-
*
|
|
4419
|
-
|
|
4420
|
-
|
|
4473
|
+
* Block that was hit by the attack.
|
|
4474
|
+
*
|
|
4475
|
+
*/
|
|
4476
|
+
readonly hitBlock: Block;
|
|
4477
|
+
}
|
|
4478
|
+
|
|
4479
|
+
/**
|
|
4480
|
+
* @beta
|
|
4481
|
+
* Manages callbacks that are connected to when an entity hits
|
|
4482
|
+
* a block.
|
|
4483
|
+
*/
|
|
4484
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4485
|
+
export class EntityHitBlockAfterEventSignal extends IEntityHitBlockAfterEventSignal {
|
|
4486
|
+
private constructor();
|
|
4487
|
+
}
|
|
4488
|
+
|
|
4489
|
+
/**
|
|
4490
|
+
* @beta
|
|
4491
|
+
* Contains information related to an entity hitting (melee
|
|
4492
|
+
* attacking) another entity.
|
|
4493
|
+
*/
|
|
4494
|
+
export class EntityHitEntityAfterEvent {
|
|
4495
|
+
private constructor();
|
|
4496
|
+
/**
|
|
4497
|
+
* @remarks
|
|
4498
|
+
* Entity that made a hit/melee attack.
|
|
4421
4499
|
*
|
|
4422
4500
|
*/
|
|
4423
|
-
readonly
|
|
4501
|
+
readonly damagingEntity: Entity;
|
|
4424
4502
|
/**
|
|
4425
4503
|
* @remarks
|
|
4426
|
-
* Entity that was hit by the attack
|
|
4427
|
-
* attack did not hit an entity. If both hitEntity and hitBlock
|
|
4428
|
-
* are undefined, then the entity basically swiped into the
|
|
4429
|
-
* air.
|
|
4504
|
+
* Entity that was hit by the attack.
|
|
4430
4505
|
*
|
|
4431
4506
|
*/
|
|
4432
|
-
readonly hitEntity
|
|
4507
|
+
readonly hitEntity: Entity;
|
|
4433
4508
|
}
|
|
4434
4509
|
|
|
4435
4510
|
/**
|
|
@@ -4437,17 +4512,17 @@ export class EntityHitAfterEvent {
|
|
|
4437
4512
|
* Manages callbacks that are connected to when an entity makes
|
|
4438
4513
|
* a melee attack on another entity.
|
|
4439
4514
|
*/
|
|
4440
|
-
|
|
4441
|
-
|
|
4515
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4516
|
+
export class EntityHitEntityAfterEventSignal extends IEntityHitEntityAfterEventSignal {
|
|
4517
|
+
private constructor();
|
|
4442
4518
|
}
|
|
4443
4519
|
|
|
4444
4520
|
/**
|
|
4445
4521
|
* @beta
|
|
4446
|
-
* Contains information related to an entity getting hurt
|
|
4447
|
-
* another entity.
|
|
4522
|
+
* Contains information related to an entity getting hurt.
|
|
4448
4523
|
*/
|
|
4449
4524
|
export class EntityHurtAfterEvent {
|
|
4450
|
-
|
|
4525
|
+
private constructor();
|
|
4451
4526
|
/**
|
|
4452
4527
|
* @remarks
|
|
4453
4528
|
* Describes the amount of damage caused.
|
|
@@ -4474,16 +4549,18 @@ export class EntityHurtAfterEvent {
|
|
|
4474
4549
|
* Manages callbacks that are connected to when an entity is
|
|
4475
4550
|
* hurt.
|
|
4476
4551
|
*/
|
|
4552
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4477
4553
|
export class EntityHurtAfterEventSignal extends IEntityHurtAfterEventSignal {
|
|
4478
|
-
|
|
4554
|
+
private constructor();
|
|
4479
4555
|
}
|
|
4480
4556
|
|
|
4481
4557
|
/**
|
|
4482
4558
|
* @beta
|
|
4483
4559
|
* Defines this entity's inventory properties.
|
|
4484
4560
|
*/
|
|
4561
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4485
4562
|
export class EntityInventoryComponent extends EntityComponent {
|
|
4486
|
-
|
|
4563
|
+
private constructor();
|
|
4487
4564
|
/**
|
|
4488
4565
|
* @remarks
|
|
4489
4566
|
* Number of slots that this entity can gain per extra
|
|
@@ -4550,8 +4627,9 @@ export class EntityInventoryComponent extends EntityComponent {
|
|
|
4550
4627
|
* When added, this component signifies that this entity is a
|
|
4551
4628
|
* baby.
|
|
4552
4629
|
*/
|
|
4630
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4553
4631
|
export class EntityIsBabyComponent extends EntityComponent {
|
|
4554
|
-
|
|
4632
|
+
private constructor();
|
|
4555
4633
|
/**
|
|
4556
4634
|
* @remarks
|
|
4557
4635
|
* Identifier of this component. Should always be
|
|
@@ -4566,8 +4644,9 @@ export class EntityIsBabyComponent extends EntityComponent {
|
|
|
4566
4644
|
* When added, this component signifies that this entity is
|
|
4567
4645
|
* charged.
|
|
4568
4646
|
*/
|
|
4647
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4569
4648
|
export class EntityIsChargedComponent extends EntityComponent {
|
|
4570
|
-
|
|
4649
|
+
private constructor();
|
|
4571
4650
|
/**
|
|
4572
4651
|
* @remarks
|
|
4573
4652
|
* Identifier of this component. Should always be
|
|
@@ -4582,8 +4661,9 @@ export class EntityIsChargedComponent extends EntityComponent {
|
|
|
4582
4661
|
* When added, this component signifies that this entity is
|
|
4583
4662
|
* currently carrying a chest.
|
|
4584
4663
|
*/
|
|
4664
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4585
4665
|
export class EntityIsChestedComponent extends EntityComponent {
|
|
4586
|
-
|
|
4666
|
+
private constructor();
|
|
4587
4667
|
/**
|
|
4588
4668
|
* @remarks
|
|
4589
4669
|
* Identifier of this component. Should always be
|
|
@@ -4598,8 +4678,9 @@ export class EntityIsChestedComponent extends EntityComponent {
|
|
|
4598
4678
|
* When added, this component signifies that dyes can be used
|
|
4599
4679
|
* on this entity to change its color.
|
|
4600
4680
|
*/
|
|
4681
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4601
4682
|
export class EntityIsDyeableComponent extends EntityComponent {
|
|
4602
|
-
|
|
4683
|
+
private constructor();
|
|
4603
4684
|
/**
|
|
4604
4685
|
* @remarks
|
|
4605
4686
|
* Identifier of this component. Should always be
|
|
@@ -4614,8 +4695,9 @@ export class EntityIsDyeableComponent extends EntityComponent {
|
|
|
4614
4695
|
* When added, this component signifies that this entity can
|
|
4615
4696
|
* hide from hostile mobs while invisible.
|
|
4616
4697
|
*/
|
|
4698
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4617
4699
|
export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
|
|
4618
|
-
|
|
4700
|
+
private constructor();
|
|
4619
4701
|
/**
|
|
4620
4702
|
* @remarks
|
|
4621
4703
|
* Identifier of this component. Should always be
|
|
@@ -4630,8 +4712,9 @@ export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
|
|
|
4630
4712
|
* When added, this component signifies that this entity this
|
|
4631
4713
|
* currently on fire.
|
|
4632
4714
|
*/
|
|
4715
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4633
4716
|
export class EntityIsIgnitedComponent extends EntityComponent {
|
|
4634
|
-
|
|
4717
|
+
private constructor();
|
|
4635
4718
|
/**
|
|
4636
4719
|
* @remarks
|
|
4637
4720
|
* Identifier of this component. Should always be
|
|
@@ -4646,8 +4729,9 @@ export class EntityIsIgnitedComponent extends EntityComponent {
|
|
|
4646
4729
|
* When added, this component signifies that this entity is an
|
|
4647
4730
|
* illager captain.
|
|
4648
4731
|
*/
|
|
4732
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4649
4733
|
export class EntityIsIllagerCaptainComponent extends EntityComponent {
|
|
4650
|
-
|
|
4734
|
+
private constructor();
|
|
4651
4735
|
/**
|
|
4652
4736
|
* @remarks
|
|
4653
4737
|
* Identifier of this component. Should always be
|
|
@@ -4662,8 +4746,9 @@ export class EntityIsIllagerCaptainComponent extends EntityComponent {
|
|
|
4662
4746
|
* When added, this component signifies that this entity is
|
|
4663
4747
|
* currently saddled.
|
|
4664
4748
|
*/
|
|
4749
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4665
4750
|
export class EntityIsSaddledComponent extends EntityComponent {
|
|
4666
|
-
|
|
4751
|
+
private constructor();
|
|
4667
4752
|
/**
|
|
4668
4753
|
* @remarks
|
|
4669
4754
|
* Identifier of this component. Should always be
|
|
@@ -4678,8 +4763,9 @@ export class EntityIsSaddledComponent extends EntityComponent {
|
|
|
4678
4763
|
* When added, this component signifies that this entity is
|
|
4679
4764
|
* currently shaking.
|
|
4680
4765
|
*/
|
|
4766
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4681
4767
|
export class EntityIsShakingComponent extends EntityComponent {
|
|
4682
|
-
|
|
4768
|
+
private constructor();
|
|
4683
4769
|
/**
|
|
4684
4770
|
* @remarks
|
|
4685
4771
|
* Identifier of this component. Should always be
|
|
@@ -4694,8 +4780,9 @@ export class EntityIsShakingComponent extends EntityComponent {
|
|
|
4694
4780
|
* When added, this component signifies that this entity is
|
|
4695
4781
|
* currently sheared.
|
|
4696
4782
|
*/
|
|
4783
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4697
4784
|
export class EntityIsShearedComponent extends EntityComponent {
|
|
4698
|
-
|
|
4785
|
+
private constructor();
|
|
4699
4786
|
/**
|
|
4700
4787
|
* @remarks
|
|
4701
4788
|
* Identifier of this component. Should always be
|
|
@@ -4710,8 +4797,9 @@ export class EntityIsShearedComponent extends EntityComponent {
|
|
|
4710
4797
|
* When added, this component signifies that this entity can be
|
|
4711
4798
|
* stacked.
|
|
4712
4799
|
*/
|
|
4800
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4713
4801
|
export class EntityIsStackableComponent extends EntityComponent {
|
|
4714
|
-
|
|
4802
|
+
private constructor();
|
|
4715
4803
|
/**
|
|
4716
4804
|
* @remarks
|
|
4717
4805
|
* Identifier of this component. Should always be
|
|
@@ -4726,8 +4814,9 @@ export class EntityIsStackableComponent extends EntityComponent {
|
|
|
4726
4814
|
* When added, this component signifies that this entity is
|
|
4727
4815
|
* currently stunned.
|
|
4728
4816
|
*/
|
|
4817
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4729
4818
|
export class EntityIsStunnedComponent extends EntityComponent {
|
|
4730
|
-
|
|
4819
|
+
private constructor();
|
|
4731
4820
|
/**
|
|
4732
4821
|
* @remarks
|
|
4733
4822
|
* Identifier of this component. Should always be
|
|
@@ -4742,8 +4831,9 @@ export class EntityIsStunnedComponent extends EntityComponent {
|
|
|
4742
4831
|
* When added, this component signifies that this entity is
|
|
4743
4832
|
* currently tamed.
|
|
4744
4833
|
*/
|
|
4834
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4745
4835
|
export class EntityIsTamedComponent extends EntityComponent {
|
|
4746
|
-
|
|
4836
|
+
private constructor();
|
|
4747
4837
|
/**
|
|
4748
4838
|
* @remarks
|
|
4749
4839
|
* Identifier of this component. Should always be
|
|
@@ -4760,8 +4850,9 @@ export class EntityIsTamedComponent extends EntityComponent {
|
|
|
4760
4850
|
* retrieve the actual item stack contents via the itemStack
|
|
4761
4851
|
* property.
|
|
4762
4852
|
*/
|
|
4853
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4763
4854
|
export class EntityItemComponent extends EntityComponent {
|
|
4764
|
-
|
|
4855
|
+
private constructor();
|
|
4765
4856
|
/**
|
|
4766
4857
|
* @remarks
|
|
4767
4858
|
* Item stack represented by this entity in the world.
|
|
@@ -4784,7 +4875,7 @@ export class EntityItemComponent extends EntityComponent {
|
|
|
4784
4875
|
* statements, Array.from(iterator), and more.
|
|
4785
4876
|
*/
|
|
4786
4877
|
export class EntityIterator implements Iterable<Entity> {
|
|
4787
|
-
|
|
4878
|
+
private constructor();
|
|
4788
4879
|
/**
|
|
4789
4880
|
* @remarks
|
|
4790
4881
|
* This function can't be called in read-only mode.
|
|
@@ -4807,8 +4898,9 @@ export class EntityIterator implements Iterable<Entity> {
|
|
|
4807
4898
|
* @beta
|
|
4808
4899
|
* Defines the base movement speed in lava of this entity.
|
|
4809
4900
|
*/
|
|
4901
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4810
4902
|
export class EntityLavaMovementComponent extends EntityAttributeComponent {
|
|
4811
|
-
|
|
4903
|
+
private constructor();
|
|
4812
4904
|
/**
|
|
4813
4905
|
* @remarks
|
|
4814
4906
|
* Identifier of this component. Should always be
|
|
@@ -4823,8 +4915,9 @@ export class EntityLavaMovementComponent extends EntityAttributeComponent {
|
|
|
4823
4915
|
* Allows this entity to be leashed and defines the conditions
|
|
4824
4916
|
* and events for this entity when is leashed.
|
|
4825
4917
|
*/
|
|
4918
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4826
4919
|
export class EntityLeashableComponent extends EntityComponent {
|
|
4827
|
-
|
|
4920
|
+
private constructor();
|
|
4828
4921
|
/**
|
|
4829
4922
|
* @remarks
|
|
4830
4923
|
* Distance in blocks at which the 'spring' effect starts
|
|
@@ -4868,8 +4961,9 @@ export class EntityLeashableComponent extends EntityComponent {
|
|
|
4868
4961
|
* Additional variant value. Can be used to further
|
|
4869
4962
|
* differentiate variants.
|
|
4870
4963
|
*/
|
|
4964
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4871
4965
|
export class EntityMarkVariantComponent extends EntityComponent {
|
|
4872
|
-
|
|
4966
|
+
private constructor();
|
|
4873
4967
|
/**
|
|
4874
4968
|
* @remarks
|
|
4875
4969
|
* This property can't be edited in read-only mode.
|
|
@@ -4890,8 +4984,9 @@ export class EntityMarkVariantComponent extends EntityComponent {
|
|
|
4890
4984
|
* Contains options for taming a rideable entity based on the
|
|
4891
4985
|
* entity that mounts it.
|
|
4892
4986
|
*/
|
|
4987
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4893
4988
|
export class EntityMountTamingComponent extends EntityComponent {
|
|
4894
|
-
|
|
4989
|
+
private constructor();
|
|
4895
4990
|
/**
|
|
4896
4991
|
* @remarks
|
|
4897
4992
|
* Identifier of this component. Should always be
|
|
@@ -4917,8 +5012,9 @@ export class EntityMountTamingComponent extends EntityComponent {
|
|
|
4917
5012
|
* When added, this movement control allows the mob to swim in
|
|
4918
5013
|
* water and walk on land.
|
|
4919
5014
|
*/
|
|
5015
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4920
5016
|
export class EntityMovementAmphibiousComponent extends EntityBaseMovementComponent {
|
|
4921
|
-
|
|
5017
|
+
private constructor();
|
|
4922
5018
|
/**
|
|
4923
5019
|
* @remarks
|
|
4924
5020
|
* Identifier of this component. Should always be
|
|
@@ -4932,8 +5028,9 @@ export class EntityMovementAmphibiousComponent extends EntityBaseMovementCompone
|
|
|
4932
5028
|
* @beta
|
|
4933
5029
|
* This component accents the movement of an entity.
|
|
4934
5030
|
*/
|
|
5031
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4935
5032
|
export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
|
|
4936
|
-
|
|
5033
|
+
private constructor();
|
|
4937
5034
|
/**
|
|
4938
5035
|
* @remarks
|
|
4939
5036
|
* Identifier of this component. Should always be
|
|
@@ -4947,8 +5044,9 @@ export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
|
|
|
4947
5044
|
* @beta
|
|
4948
5045
|
* Defines the general movement speed of this entity.
|
|
4949
5046
|
*/
|
|
5047
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4950
5048
|
export class EntityMovementComponent extends EntityAttributeComponent {
|
|
4951
|
-
|
|
5049
|
+
private constructor();
|
|
4952
5050
|
/**
|
|
4953
5051
|
* @remarks
|
|
4954
5052
|
* Identifier of this component. Should always be
|
|
@@ -4962,8 +5060,9 @@ export class EntityMovementComponent extends EntityAttributeComponent {
|
|
|
4962
5060
|
* @beta
|
|
4963
5061
|
* When added, this move control causes the mob to fly.
|
|
4964
5062
|
*/
|
|
5063
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4965
5064
|
export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
|
|
4966
|
-
|
|
5065
|
+
private constructor();
|
|
4967
5066
|
/**
|
|
4968
5067
|
* @remarks
|
|
4969
5068
|
* Identifier of this component. Should always be
|
|
@@ -4978,8 +5077,9 @@ export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
|
|
|
4978
5077
|
* When added, this move control allows a mob to fly, swim,
|
|
4979
5078
|
* climb, etc.
|
|
4980
5079
|
*/
|
|
5080
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4981
5081
|
export class EntityMovementGenericComponent extends EntityBaseMovementComponent {
|
|
4982
|
-
|
|
5082
|
+
private constructor();
|
|
4983
5083
|
/**
|
|
4984
5084
|
* @remarks
|
|
4985
5085
|
* Identifier of this component. Should always be
|
|
@@ -4993,8 +5093,9 @@ export class EntityMovementGenericComponent extends EntityBaseMovementComponent
|
|
|
4993
5093
|
* @beta
|
|
4994
5094
|
* When added, this movement control allows the mob to glide.
|
|
4995
5095
|
*/
|
|
5096
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4996
5097
|
export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
|
|
4997
|
-
|
|
5098
|
+
private constructor();
|
|
4998
5099
|
/**
|
|
4999
5100
|
* @remarks
|
|
5000
5101
|
* Speed in effect when the entity is turning.
|
|
@@ -5022,8 +5123,9 @@ export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
|
|
|
5022
5123
|
* @beta
|
|
5023
5124
|
* When added, this move control causes the mob to hover.
|
|
5024
5125
|
*/
|
|
5126
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5025
5127
|
export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
|
|
5026
|
-
|
|
5128
|
+
private constructor();
|
|
5027
5129
|
/**
|
|
5028
5130
|
* @remarks
|
|
5029
5131
|
* Identifier of this component. Should always be
|
|
@@ -5038,8 +5140,9 @@ export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
|
|
|
5038
5140
|
* Move control that causes the mob to jump as it moves with a
|
|
5039
5141
|
* specified delay between jumps.
|
|
5040
5142
|
*/
|
|
5143
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5041
5144
|
export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
|
|
5042
|
-
|
|
5145
|
+
private constructor();
|
|
5043
5146
|
/**
|
|
5044
5147
|
* @remarks
|
|
5045
5148
|
* Identifier of this component. Should always be
|
|
@@ -5054,8 +5157,9 @@ export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
|
|
|
5054
5157
|
* When added, this move control causes the mob to hop as it
|
|
5055
5158
|
* moves.
|
|
5056
5159
|
*/
|
|
5160
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5057
5161
|
export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
|
|
5058
|
-
|
|
5162
|
+
private constructor();
|
|
5059
5163
|
/**
|
|
5060
5164
|
* @remarks
|
|
5061
5165
|
* Identifier of this component. Should always be
|
|
@@ -5070,8 +5174,9 @@ export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
|
|
|
5070
5174
|
* When added, this move control causes the mob to sway side to
|
|
5071
5175
|
* side giving the impression it is swimming.
|
|
5072
5176
|
*/
|
|
5177
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5073
5178
|
export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
|
|
5074
|
-
|
|
5179
|
+
private constructor();
|
|
5075
5180
|
/**
|
|
5076
5181
|
* @remarks
|
|
5077
5182
|
* Amplitude of the sway motion.
|
|
@@ -5100,8 +5205,9 @@ export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
|
|
|
5100
5205
|
* Allows this entity to generate paths that include vertical
|
|
5101
5206
|
* walls (for example, like Minecraft spiders do.)
|
|
5102
5207
|
*/
|
|
5208
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5103
5209
|
export class EntityNavigationClimbComponent extends EntityNavigationComponent {
|
|
5104
|
-
|
|
5210
|
+
private constructor();
|
|
5105
5211
|
/**
|
|
5106
5212
|
* @remarks
|
|
5107
5213
|
* Identifier of this component. Should always be
|
|
@@ -5116,8 +5222,9 @@ export class EntityNavigationClimbComponent extends EntityNavigationComponent {
|
|
|
5116
5222
|
* Allows this entity to generate paths that include vertical
|
|
5117
5223
|
* walls (for example, like Minecraft spiders do.)
|
|
5118
5224
|
*/
|
|
5225
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5119
5226
|
export class EntityNavigationComponent extends EntityComponent {
|
|
5120
|
-
|
|
5227
|
+
private constructor();
|
|
5121
5228
|
/**
|
|
5122
5229
|
* @remarks
|
|
5123
5230
|
* Tells the pathfinder to avoid blocks that cause damage when
|
|
@@ -5273,8 +5380,9 @@ export class EntityNavigationComponent extends EntityComponent {
|
|
|
5273
5380
|
* Allows this entity to generate paths by flying around the
|
|
5274
5381
|
* air like the regular Ghast.
|
|
5275
5382
|
*/
|
|
5383
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5276
5384
|
export class EntityNavigationFloatComponent extends EntityNavigationComponent {
|
|
5277
|
-
|
|
5385
|
+
private constructor();
|
|
5278
5386
|
/**
|
|
5279
5387
|
* @remarks
|
|
5280
5388
|
* Identifier of this component. Should always be
|
|
@@ -5289,8 +5397,9 @@ export class EntityNavigationFloatComponent extends EntityNavigationComponent {
|
|
|
5289
5397
|
* Allows this entity to generate paths in the air (for
|
|
5290
5398
|
* example, like Minecraft parrots do.)
|
|
5291
5399
|
*/
|
|
5400
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5292
5401
|
export class EntityNavigationFlyComponent extends EntityNavigationComponent {
|
|
5293
|
-
|
|
5402
|
+
private constructor();
|
|
5294
5403
|
/**
|
|
5295
5404
|
* @remarks
|
|
5296
5405
|
* Identifier of this component. Should always be
|
|
@@ -5306,8 +5415,9 @@ export class EntityNavigationFlyComponent extends EntityNavigationComponent {
|
|
|
5306
5415
|
* flying and/or climbing around and jumping up and down a
|
|
5307
5416
|
* block.
|
|
5308
5417
|
*/
|
|
5418
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5309
5419
|
export class EntityNavigationGenericComponent extends EntityNavigationComponent {
|
|
5310
|
-
|
|
5420
|
+
private constructor();
|
|
5311
5421
|
/**
|
|
5312
5422
|
* @remarks
|
|
5313
5423
|
* Identifier of this component. Should always be
|
|
@@ -5323,8 +5433,9 @@ export class EntityNavigationGenericComponent extends EntityNavigationComponent
|
|
|
5323
5433
|
* example, like the Minecraft Bees do.) Keeps them from
|
|
5324
5434
|
* falling out of the skies and doing predictive movement.
|
|
5325
5435
|
*/
|
|
5436
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5326
5437
|
export class EntityNavigationHoverComponent extends EntityNavigationComponent {
|
|
5327
|
-
|
|
5438
|
+
private constructor();
|
|
5328
5439
|
/**
|
|
5329
5440
|
* @remarks
|
|
5330
5441
|
* Identifier of this component. Should always be
|
|
@@ -5339,8 +5450,9 @@ export class EntityNavigationHoverComponent extends EntityNavigationComponent {
|
|
|
5339
5450
|
* Allows this entity to generate paths by walking around and
|
|
5340
5451
|
* jumping up and down a block like regular mobs.
|
|
5341
5452
|
*/
|
|
5453
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5342
5454
|
export class EntityNavigationWalkComponent extends EntityNavigationComponent {
|
|
5343
|
-
|
|
5455
|
+
private constructor();
|
|
5344
5456
|
/**
|
|
5345
5457
|
* @remarks
|
|
5346
5458
|
* Identifier of this component. Should always be
|
|
@@ -5354,8 +5466,9 @@ export class EntityNavigationWalkComponent extends EntityNavigationComponent {
|
|
|
5354
5466
|
* @beta
|
|
5355
5467
|
* When present on an entity, this entity is on fire.
|
|
5356
5468
|
*/
|
|
5469
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5357
5470
|
export class EntityOnFireComponent extends EntityComponent {
|
|
5358
|
-
|
|
5471
|
+
private constructor();
|
|
5359
5472
|
/**
|
|
5360
5473
|
* @remarks
|
|
5361
5474
|
* The number of ticks remaining before the fire goes out.
|
|
@@ -5369,8 +5482,9 @@ export class EntityOnFireComponent extends EntityComponent {
|
|
|
5369
5482
|
* @beta
|
|
5370
5483
|
* Sets the distance through which the entity can push through.
|
|
5371
5484
|
*/
|
|
5485
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5372
5486
|
export class EntityPushThroughComponent extends EntityComponent {
|
|
5373
|
-
|
|
5487
|
+
private constructor();
|
|
5374
5488
|
/**
|
|
5375
5489
|
* @remarks
|
|
5376
5490
|
* This property can't be edited in read-only mode.
|
|
@@ -5390,15 +5504,16 @@ export class EntityPushThroughComponent extends EntityComponent {
|
|
|
5390
5504
|
* @beta
|
|
5391
5505
|
*/
|
|
5392
5506
|
export class EntityRemovedAfterEvent {
|
|
5393
|
-
|
|
5507
|
+
private constructor();
|
|
5394
5508
|
readonly removedEntity: string;
|
|
5395
5509
|
}
|
|
5396
5510
|
|
|
5397
5511
|
/**
|
|
5398
5512
|
* @beta
|
|
5399
5513
|
*/
|
|
5514
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5400
5515
|
export class EntityRemovedAfterEventSignal extends IEntityRemovedAfterEventSignal {
|
|
5401
|
-
|
|
5516
|
+
private constructor();
|
|
5402
5517
|
}
|
|
5403
5518
|
|
|
5404
5519
|
/**
|
|
@@ -5406,8 +5521,9 @@ export class EntityRemovedAfterEventSignal extends IEntityRemovedAfterEventSigna
|
|
|
5406
5521
|
* When added, this component adds the capability that an
|
|
5407
5522
|
* entity can be ridden by another entity.
|
|
5408
5523
|
*/
|
|
5524
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5409
5525
|
export class EntityRideableComponent extends EntityComponent {
|
|
5410
|
-
|
|
5526
|
+
private constructor();
|
|
5411
5527
|
/**
|
|
5412
5528
|
* @remarks
|
|
5413
5529
|
* Zero-based index of the seat that can used to control this
|
|
@@ -5527,8 +5643,9 @@ export class EntityRideableComponent extends EntityComponent {
|
|
|
5527
5643
|
* This component is added to any entity when it is riding
|
|
5528
5644
|
* another entity.
|
|
5529
5645
|
*/
|
|
5646
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5530
5647
|
export class EntityRidingComponent extends EntityComponent {
|
|
5531
|
-
|
|
5648
|
+
private constructor();
|
|
5532
5649
|
/**
|
|
5533
5650
|
* @remarks
|
|
5534
5651
|
* The entity this entity is currently riding on.
|
|
@@ -5549,8 +5666,9 @@ export class EntityRidingComponent extends EntityComponent {
|
|
|
5549
5666
|
* @beta
|
|
5550
5667
|
* Sets the entity's visual size.
|
|
5551
5668
|
*/
|
|
5669
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5552
5670
|
export class EntityScaleComponent extends EntityComponent {
|
|
5553
|
-
|
|
5671
|
+
private constructor();
|
|
5554
5672
|
/**
|
|
5555
5673
|
* @remarks
|
|
5556
5674
|
* This property can't be edited in read-only mode.
|
|
@@ -5571,8 +5689,9 @@ export class EntityScaleComponent extends EntityComponent {
|
|
|
5571
5689
|
* Skin Id value. Can be used to differentiate skins, such as
|
|
5572
5690
|
* base skins for villagers.
|
|
5573
5691
|
*/
|
|
5692
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5574
5693
|
export class EntitySkinIdComponent extends EntityComponent {
|
|
5575
|
-
|
|
5694
|
+
private constructor();
|
|
5576
5695
|
/**
|
|
5577
5696
|
* @remarks
|
|
5578
5697
|
* This property can't be edited in read-only mode.
|
|
@@ -5594,7 +5713,7 @@ export class EntitySkinIdComponent extends EntityComponent {
|
|
|
5594
5713
|
* world.
|
|
5595
5714
|
*/
|
|
5596
5715
|
export class EntitySpawnAfterEvent {
|
|
5597
|
-
|
|
5716
|
+
private constructor();
|
|
5598
5717
|
/**
|
|
5599
5718
|
* @remarks
|
|
5600
5719
|
* Entity that was spawned.
|
|
@@ -5610,16 +5729,18 @@ export class EntitySpawnAfterEvent {
|
|
|
5610
5729
|
* Registers a script-based event handler for handling what
|
|
5611
5730
|
* happens when an entity spawns.
|
|
5612
5731
|
*/
|
|
5732
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5613
5733
|
export class EntitySpawnAfterEventSignal extends IEntitySpawnAfterEventSignal {
|
|
5614
|
-
|
|
5734
|
+
private constructor();
|
|
5615
5735
|
}
|
|
5616
5736
|
|
|
5617
5737
|
/**
|
|
5618
5738
|
* @beta
|
|
5619
5739
|
* Defines the entity's strength to carry items.
|
|
5620
5740
|
*/
|
|
5741
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5621
5742
|
export class EntityStrengthComponent extends EntityComponent {
|
|
5622
|
-
|
|
5743
|
+
private constructor();
|
|
5623
5744
|
/**
|
|
5624
5745
|
* @remarks
|
|
5625
5746
|
* Maximum strength of this entity, as defined in the entity
|
|
@@ -5642,8 +5763,9 @@ export class EntityStrengthComponent extends EntityComponent {
|
|
|
5642
5763
|
* @beta
|
|
5643
5764
|
* Defines the rules for an entity to be tamed by the player.
|
|
5644
5765
|
*/
|
|
5766
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5645
5767
|
export class EntityTameableComponent extends EntityComponent {
|
|
5646
|
-
|
|
5768
|
+
private constructor();
|
|
5647
5769
|
/**
|
|
5648
5770
|
* @remarks
|
|
5649
5771
|
* The chance of taming the entity with each item use between
|
|
@@ -5684,7 +5806,7 @@ export class EntityTameableComponent extends EntityComponent {
|
|
|
5684
5806
|
* Represents information about a type of entity.
|
|
5685
5807
|
*/
|
|
5686
5808
|
export class EntityType {
|
|
5687
|
-
|
|
5809
|
+
private constructor();
|
|
5688
5810
|
/**
|
|
5689
5811
|
* @remarks
|
|
5690
5812
|
* Identifier of this entity type - for example,
|
|
@@ -5699,7 +5821,7 @@ export class EntityType {
|
|
|
5699
5821
|
* An iterator that loops through available entity types.
|
|
5700
5822
|
*/
|
|
5701
5823
|
export class EntityTypeIterator implements Iterable<EntityType> {
|
|
5702
|
-
|
|
5824
|
+
private constructor();
|
|
5703
5825
|
/**
|
|
5704
5826
|
* @remarks
|
|
5705
5827
|
* This function can't be called in read-only mode.
|
|
@@ -5720,7 +5842,7 @@ export class EntityTypeIterator implements Iterable<EntityType> {
|
|
|
5720
5842
|
* use within the world.
|
|
5721
5843
|
*/
|
|
5722
5844
|
export class EntityTypes {
|
|
5723
|
-
|
|
5845
|
+
private constructor();
|
|
5724
5846
|
/**
|
|
5725
5847
|
* @remarks
|
|
5726
5848
|
* Retrieves an entity type using a string-based identifier.
|
|
@@ -5740,8 +5862,9 @@ export class EntityTypes {
|
|
|
5740
5862
|
* Defines the general movement speed underwater of this
|
|
5741
5863
|
* entity.
|
|
5742
5864
|
*/
|
|
5865
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5743
5866
|
export class EntityUnderwaterMovementComponent extends EntityAttributeComponent {
|
|
5744
|
-
|
|
5867
|
+
private constructor();
|
|
5745
5868
|
/**
|
|
5746
5869
|
* @remarks
|
|
5747
5870
|
* Identifier of this component. Should always be
|
|
@@ -5756,8 +5879,9 @@ export class EntityUnderwaterMovementComponent extends EntityAttributeComponent
|
|
|
5756
5879
|
* Used to differentiate the component group of a variant of an
|
|
5757
5880
|
* entity from others. (e.g. ocelot, villager).
|
|
5758
5881
|
*/
|
|
5882
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5759
5883
|
export class EntityVariantComponent extends EntityComponent {
|
|
5760
|
-
|
|
5884
|
+
private constructor();
|
|
5761
5885
|
readonly value: number;
|
|
5762
5886
|
/**
|
|
5763
5887
|
* @remarks
|
|
@@ -5773,8 +5897,9 @@ export class EntityVariantComponent extends EntityComponent {
|
|
|
5773
5897
|
* When added, this component signifies that this entity wants
|
|
5774
5898
|
* to become a jockey.
|
|
5775
5899
|
*/
|
|
5900
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5776
5901
|
export class EntityWantsJockeyComponent extends EntityComponent {
|
|
5777
|
-
|
|
5902
|
+
private constructor();
|
|
5778
5903
|
/**
|
|
5779
5904
|
* @remarks
|
|
5780
5905
|
* Identifier of this component. Should always be
|
|
@@ -5790,7 +5915,7 @@ export class EntityWantsJockeyComponent extends EntityComponent {
|
|
|
5790
5915
|
* happened.
|
|
5791
5916
|
*/
|
|
5792
5917
|
export class ExplosionAfterEvent {
|
|
5793
|
-
|
|
5918
|
+
private constructor();
|
|
5794
5919
|
/**
|
|
5795
5920
|
* @remarks
|
|
5796
5921
|
* Dimension where the explosion has occurred.
|
|
@@ -5816,8 +5941,9 @@ export class ExplosionAfterEvent {
|
|
|
5816
5941
|
* Manages callbacks that are connected to when an explosion
|
|
5817
5942
|
* occurs.
|
|
5818
5943
|
*/
|
|
5944
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5819
5945
|
export class ExplosionAfterEventSignal extends IExplosionAfterEventSignal {
|
|
5820
|
-
|
|
5946
|
+
private constructor();
|
|
5821
5947
|
}
|
|
5822
5948
|
|
|
5823
5949
|
/**
|
|
@@ -5825,8 +5951,9 @@ export class ExplosionAfterEventSignal extends IExplosionAfterEventSignal {
|
|
|
5825
5951
|
* Contains information regarding an explosion that has
|
|
5826
5952
|
* happened.
|
|
5827
5953
|
*/
|
|
5954
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5828
5955
|
export class ExplosionBeforeEvent extends ExplosionAfterEvent {
|
|
5829
|
-
|
|
5956
|
+
private constructor();
|
|
5830
5957
|
/**
|
|
5831
5958
|
* @remarks
|
|
5832
5959
|
* If set to true, cancels the explosion event.
|
|
@@ -5849,8 +5976,9 @@ export class ExplosionBeforeEvent extends ExplosionAfterEvent {
|
|
|
5849
5976
|
* Manages callbacks that are connected to before an explosion
|
|
5850
5977
|
* occurs.
|
|
5851
5978
|
*/
|
|
5979
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5852
5980
|
export class ExplosionBeforeEventSignal extends IExplosionBeforeEventSignal {
|
|
5853
|
-
|
|
5981
|
+
private constructor();
|
|
5854
5982
|
}
|
|
5855
5983
|
|
|
5856
5984
|
/**
|
|
@@ -5859,7 +5987,7 @@ export class ExplosionBeforeEventSignal extends IExplosionBeforeEventSignal {
|
|
|
5859
5987
|
* item that can be fed to an entity to cause health effects.
|
|
5860
5988
|
*/
|
|
5861
5989
|
export class FeedItem {
|
|
5862
|
-
|
|
5990
|
+
private constructor();
|
|
5863
5991
|
/**
|
|
5864
5992
|
* @remarks
|
|
5865
5993
|
* The amount of health this entity gains when fed this item.
|
|
@@ -5891,7 +6019,7 @@ export class FeedItem {
|
|
|
5891
6019
|
* item being fed to an entity.
|
|
5892
6020
|
*/
|
|
5893
6021
|
export class FeedItemEffect {
|
|
5894
|
-
|
|
6022
|
+
private constructor();
|
|
5895
6023
|
/**
|
|
5896
6024
|
* @remarks
|
|
5897
6025
|
* Gets an amplifier that may have been applied to this effect.
|
|
@@ -5927,7 +6055,7 @@ export class FeedItemEffect {
|
|
|
5927
6055
|
* Represents a set of filters for when an event should occur.
|
|
5928
6056
|
*/
|
|
5929
6057
|
export class FilterGroup {
|
|
5930
|
-
|
|
6058
|
+
private constructor();
|
|
5931
6059
|
}
|
|
5932
6060
|
|
|
5933
6061
|
/**
|
|
@@ -5935,7 +6063,7 @@ export class FilterGroup {
|
|
|
5935
6063
|
* Represents constants related to fluid containers.
|
|
5936
6064
|
*/
|
|
5937
6065
|
export class FluidContainer {
|
|
5938
|
-
|
|
6066
|
+
private constructor();
|
|
5939
6067
|
/**
|
|
5940
6068
|
* @remarks
|
|
5941
6069
|
* Constant that represents the maximum fill level of a fluid
|
|
@@ -5958,7 +6086,7 @@ export class FluidContainer {
|
|
|
5958
6086
|
* an event that fires when blocks are broken.
|
|
5959
6087
|
*/
|
|
5960
6088
|
export class IBlockBreakAfterEventSignal {
|
|
5961
|
-
|
|
6089
|
+
private constructor();
|
|
5962
6090
|
/**
|
|
5963
6091
|
* @remarks
|
|
5964
6092
|
* This function can't be called in read-only mode.
|
|
@@ -5980,7 +6108,7 @@ export class IBlockBreakAfterEventSignal {
|
|
|
5980
6108
|
* an event that fires when an explosion occurs.
|
|
5981
6109
|
*/
|
|
5982
6110
|
export class IBlockExplodeAfterEventSignal {
|
|
5983
|
-
|
|
6111
|
+
private constructor();
|
|
5984
6112
|
/**
|
|
5985
6113
|
* @remarks
|
|
5986
6114
|
* This function can't be called in read-only mode.
|
|
@@ -6002,7 +6130,7 @@ export class IBlockExplodeAfterEventSignal {
|
|
|
6002
6130
|
* an event that fires after a block is placed.
|
|
6003
6131
|
*/
|
|
6004
6132
|
export class IBlockPlaceAfterEventSignal {
|
|
6005
|
-
|
|
6133
|
+
private constructor();
|
|
6006
6134
|
/**
|
|
6007
6135
|
* @remarks
|
|
6008
6136
|
* This function can't be called in read-only mode.
|
|
@@ -6024,7 +6152,7 @@ export class IBlockPlaceAfterEventSignal {
|
|
|
6024
6152
|
* an event that fires when a button is pushed.
|
|
6025
6153
|
*/
|
|
6026
6154
|
export class IButtonPushAfterEventSignal {
|
|
6027
|
-
|
|
6155
|
+
private constructor();
|
|
6028
6156
|
/**
|
|
6029
6157
|
* @remarks
|
|
6030
6158
|
* This function can't be called in read-only mode.
|
|
@@ -6046,7 +6174,7 @@ export class IButtonPushAfterEventSignal {
|
|
|
6046
6174
|
* an event that fires when a chat message is sent.
|
|
6047
6175
|
*/
|
|
6048
6176
|
export class IChatSendAfterEventSignal {
|
|
6049
|
-
|
|
6177
|
+
private constructor();
|
|
6050
6178
|
/**
|
|
6051
6179
|
* @remarks
|
|
6052
6180
|
* This function can't be called in read-only mode.
|
|
@@ -6068,7 +6196,7 @@ export class IChatSendAfterEventSignal {
|
|
|
6068
6196
|
* an event that fires before a chat message is sent.
|
|
6069
6197
|
*/
|
|
6070
6198
|
export class IChatSendBeforeEventSignal {
|
|
6071
|
-
|
|
6199
|
+
private constructor();
|
|
6072
6200
|
/**
|
|
6073
6201
|
* @remarks
|
|
6074
6202
|
* This function can't be called in read-only mode.
|
|
@@ -6091,7 +6219,7 @@ export class IChatSendBeforeEventSignal {
|
|
|
6091
6219
|
* triggered to change.
|
|
6092
6220
|
*/
|
|
6093
6221
|
export class IDataDrivenEntityTriggerAfterEventSignal {
|
|
6094
|
-
|
|
6222
|
+
private constructor();
|
|
6095
6223
|
/**
|
|
6096
6224
|
* @remarks
|
|
6097
6225
|
* This function can't be called in read-only mode.
|
|
@@ -6117,7 +6245,7 @@ export class IDataDrivenEntityTriggerAfterEventSignal {
|
|
|
6117
6245
|
* scheduled to change via a triggered event.
|
|
6118
6246
|
*/
|
|
6119
6247
|
export class IDataDrivenEntityTriggerBeforeEventSignal {
|
|
6120
|
-
|
|
6248
|
+
private constructor();
|
|
6121
6249
|
/**
|
|
6122
6250
|
* @remarks
|
|
6123
6251
|
* This function can't be called in read-only mode.
|
|
@@ -6142,7 +6270,7 @@ export class IDataDrivenEntityTriggerBeforeEventSignal {
|
|
|
6142
6270
|
* an event that fires when an effect is added to an entity.
|
|
6143
6271
|
*/
|
|
6144
6272
|
export class IEffectAddAfterEventSignal {
|
|
6145
|
-
|
|
6273
|
+
private constructor();
|
|
6146
6274
|
/**
|
|
6147
6275
|
* @remarks
|
|
6148
6276
|
* This function can't be called in read-only mode.
|
|
@@ -6167,7 +6295,7 @@ export class IEffectAddAfterEventSignal {
|
|
|
6167
6295
|
* an event that fires when an entity dies.
|
|
6168
6296
|
*/
|
|
6169
6297
|
export class IEntityDieAfterEventSignal {
|
|
6170
|
-
|
|
6298
|
+
private constructor();
|
|
6171
6299
|
/**
|
|
6172
6300
|
* @remarks
|
|
6173
6301
|
* This function can't be called in read-only mode.
|
|
@@ -6190,7 +6318,7 @@ export class IEntityDieAfterEventSignal {
|
|
|
6190
6318
|
* @beta
|
|
6191
6319
|
*/
|
|
6192
6320
|
export class IEntityHealthChangedAfterEventSignal {
|
|
6193
|
-
|
|
6321
|
+
private constructor();
|
|
6194
6322
|
/**
|
|
6195
6323
|
* @remarks
|
|
6196
6324
|
* This function can't be called in read-only mode.
|
|
@@ -6211,28 +6339,48 @@ export class IEntityHealthChangedAfterEventSignal {
|
|
|
6211
6339
|
|
|
6212
6340
|
/**
|
|
6213
6341
|
* @beta
|
|
6214
|
-
* Provides an adaptable interface for callers to subscribe to
|
|
6215
|
-
* an event that fires when an entity hits (melee attacks)
|
|
6216
|
-
* another entity.
|
|
6217
6342
|
*/
|
|
6218
|
-
export class
|
|
6219
|
-
|
|
6343
|
+
export class IEntityHitBlockAfterEventSignal {
|
|
6344
|
+
private constructor();
|
|
6220
6345
|
/**
|
|
6221
6346
|
* @remarks
|
|
6222
6347
|
* This function can't be called in read-only mode.
|
|
6223
6348
|
*
|
|
6224
6349
|
*/
|
|
6225
6350
|
subscribe(
|
|
6226
|
-
callback: (arg:
|
|
6351
|
+
callback: (arg: EntityHitBlockAfterEvent) => void,
|
|
6227
6352
|
options?: EntityEventOptions,
|
|
6228
|
-
): (arg:
|
|
6353
|
+
): (arg: EntityHitBlockAfterEvent) => void;
|
|
6229
6354
|
/**
|
|
6230
6355
|
* @remarks
|
|
6231
6356
|
* This function can't be called in read-only mode.
|
|
6232
6357
|
*
|
|
6233
6358
|
* @throws This function can throw errors.
|
|
6234
6359
|
*/
|
|
6235
|
-
unsubscribe(callback: (arg:
|
|
6360
|
+
unsubscribe(callback: (arg: EntityHitBlockAfterEvent) => void): void;
|
|
6361
|
+
}
|
|
6362
|
+
|
|
6363
|
+
/**
|
|
6364
|
+
* @beta
|
|
6365
|
+
*/
|
|
6366
|
+
export class IEntityHitEntityAfterEventSignal {
|
|
6367
|
+
private constructor();
|
|
6368
|
+
/**
|
|
6369
|
+
* @remarks
|
|
6370
|
+
* This function can't be called in read-only mode.
|
|
6371
|
+
*
|
|
6372
|
+
*/
|
|
6373
|
+
subscribe(
|
|
6374
|
+
callback: (arg: EntityHitEntityAfterEvent) => void,
|
|
6375
|
+
options?: EntityEventOptions,
|
|
6376
|
+
): (arg: EntityHitEntityAfterEvent) => void;
|
|
6377
|
+
/**
|
|
6378
|
+
* @remarks
|
|
6379
|
+
* This function can't be called in read-only mode.
|
|
6380
|
+
*
|
|
6381
|
+
* @throws This function can throw errors.
|
|
6382
|
+
*/
|
|
6383
|
+
unsubscribe(callback: (arg: EntityHitEntityAfterEvent) => void): void;
|
|
6236
6384
|
}
|
|
6237
6385
|
|
|
6238
6386
|
/**
|
|
@@ -6241,7 +6389,7 @@ export class IEntityHitAfterEventSignal {
|
|
|
6241
6389
|
* an event that fires when an entity is hurt.
|
|
6242
6390
|
*/
|
|
6243
6391
|
export class IEntityHurtAfterEventSignal {
|
|
6244
|
-
|
|
6392
|
+
private constructor();
|
|
6245
6393
|
/**
|
|
6246
6394
|
* @remarks
|
|
6247
6395
|
* This function can't be called in read-only mode.
|
|
@@ -6264,7 +6412,7 @@ export class IEntityHurtAfterEventSignal {
|
|
|
6264
6412
|
* @beta
|
|
6265
6413
|
*/
|
|
6266
6414
|
export class IEntityRemovedAfterEventSignal {
|
|
6267
|
-
|
|
6415
|
+
private constructor();
|
|
6268
6416
|
/**
|
|
6269
6417
|
* @remarks
|
|
6270
6418
|
* This function can't be called in read-only mode.
|
|
@@ -6289,7 +6437,7 @@ export class IEntityRemovedAfterEventSignal {
|
|
|
6289
6437
|
* an event that fires after an entity is spawned.
|
|
6290
6438
|
*/
|
|
6291
6439
|
export class IEntitySpawnAfterEventSignal {
|
|
6292
|
-
|
|
6440
|
+
private constructor();
|
|
6293
6441
|
/**
|
|
6294
6442
|
* @remarks
|
|
6295
6443
|
* This function can't be called in read-only mode.
|
|
@@ -6311,7 +6459,7 @@ export class IEntitySpawnAfterEventSignal {
|
|
|
6311
6459
|
* an event that fires after an explosion occurs.
|
|
6312
6460
|
*/
|
|
6313
6461
|
export class IExplosionAfterEventSignal {
|
|
6314
|
-
|
|
6462
|
+
private constructor();
|
|
6315
6463
|
/**
|
|
6316
6464
|
* @remarks
|
|
6317
6465
|
* This function can't be called in read-only mode.
|
|
@@ -6333,7 +6481,7 @@ export class IExplosionAfterEventSignal {
|
|
|
6333
6481
|
* an event that fires before an explosion begins.
|
|
6334
6482
|
*/
|
|
6335
6483
|
export class IExplosionBeforeEventSignal {
|
|
6336
|
-
|
|
6484
|
+
private constructor();
|
|
6337
6485
|
/**
|
|
6338
6486
|
* @remarks
|
|
6339
6487
|
* This function can't be called in read-only mode.
|
|
@@ -6353,7 +6501,7 @@ export class IExplosionBeforeEventSignal {
|
|
|
6353
6501
|
* @beta
|
|
6354
6502
|
*/
|
|
6355
6503
|
export class IItemCompleteUseAfterEventSignal {
|
|
6356
|
-
|
|
6504
|
+
private constructor();
|
|
6357
6505
|
/**
|
|
6358
6506
|
* @remarks
|
|
6359
6507
|
* This function can't be called in read-only mode.
|
|
@@ -6375,7 +6523,7 @@ export class IItemCompleteUseAfterEventSignal {
|
|
|
6375
6523
|
* an event that fires after an items' definition has changed.
|
|
6376
6524
|
*/
|
|
6377
6525
|
export class IItemDefinitionAfterEventSignal {
|
|
6378
|
-
|
|
6526
|
+
private constructor();
|
|
6379
6527
|
/**
|
|
6380
6528
|
* @remarks
|
|
6381
6529
|
* This function can't be called in read-only mode.
|
|
@@ -6399,7 +6547,7 @@ export class IItemDefinitionAfterEventSignal {
|
|
|
6399
6547
|
* an event that fires before an items' definition changes.
|
|
6400
6548
|
*/
|
|
6401
6549
|
export class IItemDefinitionBeforeEventSignal {
|
|
6402
|
-
|
|
6550
|
+
private constructor();
|
|
6403
6551
|
/**
|
|
6404
6552
|
* @remarks
|
|
6405
6553
|
* This function can't be called in read-only mode.
|
|
@@ -6421,7 +6569,7 @@ export class IItemDefinitionBeforeEventSignal {
|
|
|
6421
6569
|
* @beta
|
|
6422
6570
|
*/
|
|
6423
6571
|
export class IItemReleaseUseAfterEventSignal {
|
|
6424
|
-
|
|
6572
|
+
private constructor();
|
|
6425
6573
|
/**
|
|
6426
6574
|
* @remarks
|
|
6427
6575
|
* This function can't be called in read-only mode.
|
|
@@ -6441,7 +6589,7 @@ export class IItemReleaseUseAfterEventSignal {
|
|
|
6441
6589
|
* @beta
|
|
6442
6590
|
*/
|
|
6443
6591
|
export class IItemStartUseAfterEventSignal {
|
|
6444
|
-
|
|
6592
|
+
private constructor();
|
|
6445
6593
|
/**
|
|
6446
6594
|
* @remarks
|
|
6447
6595
|
* This function can't be called in read-only mode.
|
|
@@ -6464,7 +6612,7 @@ export class IItemStartUseAfterEventSignal {
|
|
|
6464
6612
|
* on a block.
|
|
6465
6613
|
*/
|
|
6466
6614
|
export class IItemStartUseOnAfterEventSignal {
|
|
6467
|
-
|
|
6615
|
+
private constructor();
|
|
6468
6616
|
/**
|
|
6469
6617
|
* @remarks
|
|
6470
6618
|
* This function can't be called in read-only mode.
|
|
@@ -6484,7 +6632,7 @@ export class IItemStartUseOnAfterEventSignal {
|
|
|
6484
6632
|
* @beta
|
|
6485
6633
|
*/
|
|
6486
6634
|
export class IItemStopUseAfterEventSignal {
|
|
6487
|
-
|
|
6635
|
+
private constructor();
|
|
6488
6636
|
/**
|
|
6489
6637
|
* @remarks
|
|
6490
6638
|
* This function can't be called in read-only mode.
|
|
@@ -6507,7 +6655,7 @@ export class IItemStopUseAfterEventSignal {
|
|
|
6507
6655
|
* block.
|
|
6508
6656
|
*/
|
|
6509
6657
|
export class IItemStopUseOnAfterEventSignal {
|
|
6510
|
-
|
|
6658
|
+
private constructor();
|
|
6511
6659
|
/**
|
|
6512
6660
|
* @remarks
|
|
6513
6661
|
* This function can't be called in read-only mode.
|
|
@@ -6529,7 +6677,7 @@ export class IItemStopUseOnAfterEventSignal {
|
|
|
6529
6677
|
* an event that fires after an item is used.
|
|
6530
6678
|
*/
|
|
6531
6679
|
export class IItemUseAfterEventSignal {
|
|
6532
|
-
|
|
6680
|
+
private constructor();
|
|
6533
6681
|
/**
|
|
6534
6682
|
* @remarks
|
|
6535
6683
|
* This function can't be called in read-only mode.
|
|
@@ -6551,7 +6699,7 @@ export class IItemUseAfterEventSignal {
|
|
|
6551
6699
|
* an event that fires before an item is used.
|
|
6552
6700
|
*/
|
|
6553
6701
|
export class IItemUseBeforeEventSignal {
|
|
6554
|
-
|
|
6702
|
+
private constructor();
|
|
6555
6703
|
/**
|
|
6556
6704
|
* @remarks
|
|
6557
6705
|
* This function can't be called in read-only mode.
|
|
@@ -6573,7 +6721,7 @@ export class IItemUseBeforeEventSignal {
|
|
|
6573
6721
|
* an event that fires after an item is used on a block.
|
|
6574
6722
|
*/
|
|
6575
6723
|
export class IItemUseOnAfterEventSignal {
|
|
6576
|
-
|
|
6724
|
+
private constructor();
|
|
6577
6725
|
/**
|
|
6578
6726
|
* @remarks
|
|
6579
6727
|
* This function can't be called in read-only mode.
|
|
@@ -6595,7 +6743,7 @@ export class IItemUseOnAfterEventSignal {
|
|
|
6595
6743
|
* an event that fires before an item is being used on a block.
|
|
6596
6744
|
*/
|
|
6597
6745
|
export class IItemUseOnBeforeEventSignal {
|
|
6598
|
-
|
|
6746
|
+
private constructor();
|
|
6599
6747
|
/**
|
|
6600
6748
|
* @remarks
|
|
6601
6749
|
* This function can't be called in read-only mode.
|
|
@@ -6617,7 +6765,7 @@ export class IItemUseOnBeforeEventSignal {
|
|
|
6617
6765
|
* an event that fires after a lever is used.
|
|
6618
6766
|
*/
|
|
6619
6767
|
export class ILeverActionAfterEventSignal {
|
|
6620
|
-
|
|
6768
|
+
private constructor();
|
|
6621
6769
|
/**
|
|
6622
6770
|
* @remarks
|
|
6623
6771
|
* This function can't be called in read-only mode.
|
|
@@ -6639,7 +6787,7 @@ export class ILeverActionAfterEventSignal {
|
|
|
6639
6787
|
* an event that fires after a piston is activated.
|
|
6640
6788
|
*/
|
|
6641
6789
|
export class IPistonActivateAfterEventSignal {
|
|
6642
|
-
|
|
6790
|
+
private constructor();
|
|
6643
6791
|
/**
|
|
6644
6792
|
* @remarks
|
|
6645
6793
|
* This function can't be called in read-only mode.
|
|
@@ -6661,7 +6809,7 @@ export class IPistonActivateAfterEventSignal {
|
|
|
6661
6809
|
* an event that fires before a piston is activated.
|
|
6662
6810
|
*/
|
|
6663
6811
|
export class IPistonActivateBeforeEventSignal {
|
|
6664
|
-
|
|
6812
|
+
private constructor();
|
|
6665
6813
|
/**
|
|
6666
6814
|
* @remarks
|
|
6667
6815
|
* This function can't be called in read-only mode.
|
|
@@ -6683,7 +6831,7 @@ export class IPistonActivateBeforeEventSignal {
|
|
|
6683
6831
|
* an event that fires after a player joins a world.
|
|
6684
6832
|
*/
|
|
6685
6833
|
export class IPlayerJoinAfterEventSignal {
|
|
6686
|
-
|
|
6834
|
+
private constructor();
|
|
6687
6835
|
/**
|
|
6688
6836
|
* @remarks
|
|
6689
6837
|
* This function can't be called in read-only mode.
|
|
@@ -6705,7 +6853,7 @@ export class IPlayerJoinAfterEventSignal {
|
|
|
6705
6853
|
* an event that fires after a player leaves a world.
|
|
6706
6854
|
*/
|
|
6707
6855
|
export class IPlayerLeaveAfterEventSignal {
|
|
6708
|
-
|
|
6856
|
+
private constructor();
|
|
6709
6857
|
/**
|
|
6710
6858
|
* @remarks
|
|
6711
6859
|
* This function can't be called in read-only mode.
|
|
@@ -6727,7 +6875,7 @@ export class IPlayerLeaveAfterEventSignal {
|
|
|
6727
6875
|
* an event that fires after a player spawns.
|
|
6728
6876
|
*/
|
|
6729
6877
|
export class IPlayerSpawnAfterEventSignal {
|
|
6730
|
-
|
|
6878
|
+
private constructor();
|
|
6731
6879
|
/**
|
|
6732
6880
|
* @remarks
|
|
6733
6881
|
* This function can't be called in read-only mode.
|
|
@@ -6747,7 +6895,7 @@ export class IPlayerSpawnAfterEventSignal {
|
|
|
6747
6895
|
* @beta
|
|
6748
6896
|
*/
|
|
6749
6897
|
export class IPressurePlatePopAfterEventSignal {
|
|
6750
|
-
|
|
6898
|
+
private constructor();
|
|
6751
6899
|
/**
|
|
6752
6900
|
* @remarks
|
|
6753
6901
|
* This function can't be called in read-only mode.
|
|
@@ -6767,7 +6915,7 @@ export class IPressurePlatePopAfterEventSignal {
|
|
|
6767
6915
|
* @beta
|
|
6768
6916
|
*/
|
|
6769
6917
|
export class IPressurePlatePushAfterEventSignal {
|
|
6770
|
-
|
|
6918
|
+
private constructor();
|
|
6771
6919
|
/**
|
|
6772
6920
|
* @remarks
|
|
6773
6921
|
* This function can't be called in read-only mode.
|
|
@@ -6789,7 +6937,7 @@ export class IPressurePlatePushAfterEventSignal {
|
|
|
6789
6937
|
* an event that fires after a projectile hits a target.
|
|
6790
6938
|
*/
|
|
6791
6939
|
export class IProjectileHitAfterEventSignal {
|
|
6792
|
-
|
|
6940
|
+
private constructor();
|
|
6793
6941
|
/**
|
|
6794
6942
|
* @remarks
|
|
6795
6943
|
* This function can't be called in read-only mode.
|
|
@@ -6811,7 +6959,7 @@ export class IProjectileHitAfterEventSignal {
|
|
|
6811
6959
|
* an event that fires when /script event command is called.
|
|
6812
6960
|
*/
|
|
6813
6961
|
export class IScriptEventCommandMessageAfterEventSignal {
|
|
6814
|
-
|
|
6962
|
+
private constructor();
|
|
6815
6963
|
/**
|
|
6816
6964
|
* @remarks
|
|
6817
6965
|
* This function can't be called in read-only mode.
|
|
@@ -6837,7 +6985,7 @@ export class IScriptEventCommandMessageAfterEventSignal {
|
|
|
6837
6985
|
* that this event is for internal use only.
|
|
6838
6986
|
*/
|
|
6839
6987
|
export class IServerMessageAfterEventSignal {
|
|
6840
|
-
|
|
6988
|
+
private constructor();
|
|
6841
6989
|
/**
|
|
6842
6990
|
* @remarks
|
|
6843
6991
|
* This function can't be called in read-only mode.
|
|
@@ -6857,7 +7005,7 @@ export class IServerMessageAfterEventSignal {
|
|
|
6857
7005
|
* @beta
|
|
6858
7006
|
*/
|
|
6859
7007
|
export class ITargetBlockHitAfterEventSignal {
|
|
6860
|
-
|
|
7008
|
+
private constructor();
|
|
6861
7009
|
/**
|
|
6862
7010
|
* @remarks
|
|
6863
7011
|
* This function can't be called in read-only mode.
|
|
@@ -6879,7 +7027,7 @@ export class ITargetBlockHitAfterEventSignal {
|
|
|
6879
7027
|
* being charged.
|
|
6880
7028
|
*/
|
|
6881
7029
|
export class ItemCompleteUseAfterEvent {
|
|
6882
|
-
|
|
7030
|
+
private constructor();
|
|
6883
7031
|
/**
|
|
6884
7032
|
* @remarks
|
|
6885
7033
|
* Returns the item stack that has completed charging.
|
|
@@ -6906,20 +7054,18 @@ export class ItemCompleteUseAfterEvent {
|
|
|
6906
7054
|
* Manages callbacks that are connected to the completion of
|
|
6907
7055
|
* charging for a chargeable item.
|
|
6908
7056
|
*/
|
|
7057
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6909
7058
|
export class ItemCompleteUseAfterEventSignal extends IItemCompleteUseAfterEventSignal {
|
|
6910
|
-
|
|
7059
|
+
private constructor();
|
|
6911
7060
|
}
|
|
6912
7061
|
|
|
6913
7062
|
/**
|
|
6914
7063
|
* @beta
|
|
6915
7064
|
* Base class for item components.
|
|
6916
7065
|
*/
|
|
7066
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6917
7067
|
export class ItemComponent extends Component {
|
|
6918
|
-
|
|
6919
|
-
/**
|
|
6920
|
-
* @beta
|
|
6921
|
-
*/
|
|
6922
|
-
isValid(): boolean;
|
|
7068
|
+
private constructor();
|
|
6923
7069
|
}
|
|
6924
7070
|
|
|
6925
7071
|
/**
|
|
@@ -6927,8 +7073,9 @@ export class ItemComponent extends Component {
|
|
|
6927
7073
|
* When present on an item, this item has a cooldown effect
|
|
6928
7074
|
* when used by entities.
|
|
6929
7075
|
*/
|
|
7076
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6930
7077
|
export class ItemCooldownComponent extends ItemComponent {
|
|
6931
|
-
|
|
7078
|
+
private constructor();
|
|
6932
7079
|
/**
|
|
6933
7080
|
* @remarks
|
|
6934
7081
|
* Represents the cooldown category that this item is
|
|
@@ -6968,8 +7115,9 @@ export class ItemCooldownComponent extends ItemComponent {
|
|
|
6968
7115
|
* Manages callbacks that are connected to an item's definition
|
|
6969
7116
|
* and components changing.
|
|
6970
7117
|
*/
|
|
7118
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6971
7119
|
export class ItemDefinitionAfterEventSignal extends IItemDefinitionAfterEventSignal {
|
|
6972
|
-
|
|
7120
|
+
private constructor();
|
|
6973
7121
|
}
|
|
6974
7122
|
|
|
6975
7123
|
/**
|
|
@@ -6977,8 +7125,9 @@ export class ItemDefinitionAfterEventSignal extends IItemDefinitionAfterEventSig
|
|
|
6977
7125
|
* Manages callbacks that are connected to an item's definition
|
|
6978
7126
|
* and components changing.
|
|
6979
7127
|
*/
|
|
7128
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6980
7129
|
export class ItemDefinitionBeforeEventSignal extends IItemDefinitionBeforeEventSignal {
|
|
6981
|
-
|
|
7130
|
+
private constructor();
|
|
6982
7131
|
}
|
|
6983
7132
|
|
|
6984
7133
|
/**
|
|
@@ -6987,7 +7136,7 @@ export class ItemDefinitionBeforeEventSignal extends IItemDefinitionBeforeEventS
|
|
|
6987
7136
|
* definition change being triggered.
|
|
6988
7137
|
*/
|
|
6989
7138
|
export class ItemDefinitionTriggeredAfterEvent {
|
|
6990
|
-
|
|
7139
|
+
private constructor();
|
|
6991
7140
|
/**
|
|
6992
7141
|
* @remarks
|
|
6993
7142
|
* Name of the data-driven item event that is triggering this
|
|
@@ -7009,8 +7158,9 @@ export class ItemDefinitionTriggeredAfterEvent {
|
|
|
7009
7158
|
* Contains information related to a triggering of a custom
|
|
7010
7159
|
* item definition change.
|
|
7011
7160
|
*/
|
|
7161
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7012
7162
|
export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredAfterEvent {
|
|
7013
|
-
|
|
7163
|
+
private constructor();
|
|
7014
7164
|
/**
|
|
7015
7165
|
* @remarks
|
|
7016
7166
|
* If set to true, will cancel the application of this item
|
|
@@ -7026,8 +7176,9 @@ export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredA
|
|
|
7026
7176
|
* process of being used. Note that this component only applies
|
|
7027
7177
|
* to data-driven items.
|
|
7028
7178
|
*/
|
|
7179
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7029
7180
|
export class ItemDurabilityComponent extends ItemComponent {
|
|
7030
|
-
|
|
7181
|
+
private constructor();
|
|
7031
7182
|
/**
|
|
7032
7183
|
* @remarks
|
|
7033
7184
|
* Returns the current damage level of this particular item.
|
|
@@ -7083,8 +7234,9 @@ export class ItemDurabilityComponent extends ItemComponent {
|
|
|
7083
7234
|
* effects. Note that this component only applies to
|
|
7084
7235
|
* data-driven items.
|
|
7085
7236
|
*/
|
|
7237
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7086
7238
|
export class ItemEnchantsComponent extends ItemComponent {
|
|
7087
|
-
|
|
7239
|
+
private constructor();
|
|
7088
7240
|
/**
|
|
7089
7241
|
* @remarks
|
|
7090
7242
|
* Returns a collection of the enchantments applied to this
|
|
@@ -7117,8 +7269,9 @@ export class ItemEnchantsComponent extends ItemComponent {
|
|
|
7117
7269
|
* entities. Note that this component only applies to
|
|
7118
7270
|
* data-driven items.
|
|
7119
7271
|
*/
|
|
7272
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7120
7273
|
export class ItemFoodComponent extends ItemComponent {
|
|
7121
|
-
|
|
7274
|
+
private constructor();
|
|
7122
7275
|
/**
|
|
7123
7276
|
* @remarks
|
|
7124
7277
|
* If true, the player can always eat this item (even when not
|
|
@@ -7168,7 +7321,7 @@ export class ItemFoodComponent extends ItemComponent {
|
|
|
7168
7321
|
* action.
|
|
7169
7322
|
*/
|
|
7170
7323
|
export class ItemReleaseUseAfterEvent {
|
|
7171
|
-
|
|
7324
|
+
private constructor();
|
|
7172
7325
|
/**
|
|
7173
7326
|
* @remarks
|
|
7174
7327
|
* Returns the item stack that triggered this item event.
|
|
@@ -7195,8 +7348,9 @@ export class ItemReleaseUseAfterEvent {
|
|
|
7195
7348
|
* Manages callbacks that are connected to the releasing of
|
|
7196
7349
|
* charging for a chargeable item.
|
|
7197
7350
|
*/
|
|
7351
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7198
7352
|
export class ItemReleaseUseAfterEventSignal extends IItemReleaseUseAfterEventSignal {
|
|
7199
|
-
|
|
7353
|
+
private constructor();
|
|
7200
7354
|
}
|
|
7201
7355
|
|
|
7202
7356
|
/**
|
|
@@ -7459,7 +7613,7 @@ export class ItemStack {
|
|
|
7459
7613
|
* to be charged.
|
|
7460
7614
|
*/
|
|
7461
7615
|
export class ItemStartUseAfterEvent {
|
|
7462
|
-
|
|
7616
|
+
private constructor();
|
|
7463
7617
|
/**
|
|
7464
7618
|
* @remarks
|
|
7465
7619
|
* The impacted item stack that is starting to be charged.
|
|
@@ -7486,8 +7640,9 @@ export class ItemStartUseAfterEvent {
|
|
|
7486
7640
|
* Manages callbacks that are connected to the start of
|
|
7487
7641
|
* charging for a chargeable item.
|
|
7488
7642
|
*/
|
|
7643
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7489
7644
|
export class ItemStartUseAfterEventSignal extends IItemStartUseAfterEventSignal {
|
|
7490
|
-
|
|
7645
|
+
private constructor();
|
|
7491
7646
|
}
|
|
7492
7647
|
|
|
7493
7648
|
/**
|
|
@@ -7499,7 +7654,7 @@ export class ItemStartUseAfterEventSignal extends IItemStartUseAfterEventSignal
|
|
|
7499
7654
|
* Axe items.
|
|
7500
7655
|
*/
|
|
7501
7656
|
export class ItemStartUseOnAfterEvent {
|
|
7502
|
-
|
|
7657
|
+
private constructor();
|
|
7503
7658
|
/**
|
|
7504
7659
|
* @remarks
|
|
7505
7660
|
* The block that the item is used on.
|
|
@@ -7531,8 +7686,9 @@ export class ItemStartUseOnAfterEvent {
|
|
|
7531
7686
|
* Manages callbacks that are connected to an item starting
|
|
7532
7687
|
* being used on a block event.
|
|
7533
7688
|
*/
|
|
7689
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7534
7690
|
export class ItemStartUseOnAfterEventSignal extends IItemStartUseOnAfterEventSignal {
|
|
7535
|
-
|
|
7691
|
+
private constructor();
|
|
7536
7692
|
}
|
|
7537
7693
|
|
|
7538
7694
|
/**
|
|
@@ -7542,7 +7698,7 @@ export class ItemStartUseOnAfterEventSignal extends IItemStartUseOnAfterEventSig
|
|
|
7542
7698
|
* the use action with the item.
|
|
7543
7699
|
*/
|
|
7544
7700
|
export class ItemStopUseAfterEvent {
|
|
7545
|
-
|
|
7701
|
+
private constructor();
|
|
7546
7702
|
/**
|
|
7547
7703
|
* @remarks
|
|
7548
7704
|
* The impacted item stack that is stopping being charged.
|
|
@@ -7570,8 +7726,9 @@ export class ItemStopUseAfterEvent {
|
|
|
7570
7726
|
* charging for an item that has a registered
|
|
7571
7727
|
* minecraft:chargeable component.
|
|
7572
7728
|
*/
|
|
7729
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7573
7730
|
export class ItemStopUseAfterEventSignal extends IItemStopUseAfterEventSignal {
|
|
7574
|
-
|
|
7731
|
+
private constructor();
|
|
7575
7732
|
}
|
|
7576
7733
|
|
|
7577
7734
|
/**
|
|
@@ -7585,7 +7742,7 @@ export class ItemStopUseAfterEventSignal extends IItemStopUseAfterEventSignal {
|
|
|
7585
7742
|
* Hoe or Axe items.
|
|
7586
7743
|
*/
|
|
7587
7744
|
export class ItemStopUseOnAfterEvent {
|
|
7588
|
-
|
|
7745
|
+
private constructor();
|
|
7589
7746
|
/**
|
|
7590
7747
|
* @remarks
|
|
7591
7748
|
* The block that the item is used on.
|
|
@@ -7611,8 +7768,9 @@ export class ItemStopUseOnAfterEvent {
|
|
|
7611
7768
|
* Manages callbacks that are connected to an item stops used
|
|
7612
7769
|
* on a block event.
|
|
7613
7770
|
*/
|
|
7771
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7614
7772
|
export class ItemStopUseOnAfterEventSignal extends IItemStopUseOnAfterEventSignal {
|
|
7615
|
-
|
|
7773
|
+
private constructor();
|
|
7616
7774
|
}
|
|
7617
7775
|
|
|
7618
7776
|
/**
|
|
@@ -7620,7 +7778,7 @@ export class ItemStopUseOnAfterEventSignal extends IItemStopUseOnAfterEventSigna
|
|
|
7620
7778
|
* Represents the type of an item - for example, Wool.
|
|
7621
7779
|
*/
|
|
7622
7780
|
export class ItemType {
|
|
7623
|
-
|
|
7781
|
+
private constructor();
|
|
7624
7782
|
/**
|
|
7625
7783
|
* @remarks
|
|
7626
7784
|
* Returns the identifier of the item type - for example,
|
|
@@ -7635,7 +7793,7 @@ export class ItemType {
|
|
|
7635
7793
|
* An iterator over a set of available item types.
|
|
7636
7794
|
*/
|
|
7637
7795
|
export class ItemTypeIterator implements Iterable<ItemType> {
|
|
7638
|
-
|
|
7796
|
+
private constructor();
|
|
7639
7797
|
/**
|
|
7640
7798
|
* @remarks
|
|
7641
7799
|
* This function can't be called in read-only mode.
|
|
@@ -7655,7 +7813,7 @@ export class ItemTypeIterator implements Iterable<ItemType> {
|
|
|
7655
7813
|
* Returns the set of item types registered within Minecraft.
|
|
7656
7814
|
*/
|
|
7657
7815
|
export class ItemTypes {
|
|
7658
|
-
|
|
7816
|
+
private constructor();
|
|
7659
7817
|
/**
|
|
7660
7818
|
* @remarks
|
|
7661
7819
|
* Returns a specific item type, if available within Minecraft.
|
|
@@ -7677,7 +7835,7 @@ export class ItemTypes {
|
|
|
7677
7835
|
* event fires when an item is successfully used by a player.
|
|
7678
7836
|
*/
|
|
7679
7837
|
export class ItemUseAfterEvent {
|
|
7680
|
-
|
|
7838
|
+
private constructor();
|
|
7681
7839
|
/**
|
|
7682
7840
|
* @remarks
|
|
7683
7841
|
* The impacted item stack that is being used.
|
|
@@ -7696,16 +7854,18 @@ export class ItemUseAfterEvent {
|
|
|
7696
7854
|
* @beta
|
|
7697
7855
|
* Manages callbacks that are connected to an item use event.
|
|
7698
7856
|
*/
|
|
7857
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7699
7858
|
export class ItemUseAfterEventSignal extends IItemUseAfterEventSignal {
|
|
7700
|
-
|
|
7859
|
+
private constructor();
|
|
7701
7860
|
}
|
|
7702
7861
|
|
|
7703
7862
|
/**
|
|
7704
7863
|
* @beta
|
|
7705
7864
|
* Contains information related to an item being used.
|
|
7706
7865
|
*/
|
|
7866
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7707
7867
|
export class ItemUseBeforeEvent extends ItemUseAfterEvent {
|
|
7708
|
-
|
|
7868
|
+
private constructor();
|
|
7709
7869
|
/**
|
|
7710
7870
|
* @remarks
|
|
7711
7871
|
* If set to true, this will cancel the item use behavior.
|
|
@@ -7718,8 +7878,9 @@ export class ItemUseBeforeEvent extends ItemUseAfterEvent {
|
|
|
7718
7878
|
* @beta
|
|
7719
7879
|
* Manages callbacks that fire before an item is used.
|
|
7720
7880
|
*/
|
|
7881
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7721
7882
|
export class ItemUseBeforeEventSignal extends IItemUseBeforeEventSignal {
|
|
7722
|
-
|
|
7883
|
+
private constructor();
|
|
7723
7884
|
}
|
|
7724
7885
|
|
|
7725
7886
|
/**
|
|
@@ -7729,7 +7890,7 @@ export class ItemUseBeforeEventSignal extends IItemUseBeforeEventSignal {
|
|
|
7729
7890
|
* player.
|
|
7730
7891
|
*/
|
|
7731
7892
|
export class ItemUseOnAfterEvent {
|
|
7732
|
-
|
|
7893
|
+
private constructor();
|
|
7733
7894
|
/**
|
|
7734
7895
|
* @remarks
|
|
7735
7896
|
* The block that the item is used on.
|
|
@@ -7768,8 +7929,9 @@ export class ItemUseOnAfterEvent {
|
|
|
7768
7929
|
* Manages callbacks that are connected to an item being used
|
|
7769
7930
|
* on a block event.
|
|
7770
7931
|
*/
|
|
7932
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7771
7933
|
export class ItemUseOnAfterEventSignal extends IItemUseOnAfterEventSignal {
|
|
7772
|
-
|
|
7934
|
+
private constructor();
|
|
7773
7935
|
}
|
|
7774
7936
|
|
|
7775
7937
|
/**
|
|
@@ -7777,8 +7939,9 @@ export class ItemUseOnAfterEventSignal extends IItemUseOnAfterEventSignal {
|
|
|
7777
7939
|
* Contains information related to an item being used on a
|
|
7778
7940
|
* block.
|
|
7779
7941
|
*/
|
|
7942
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7780
7943
|
export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
|
|
7781
|
-
|
|
7944
|
+
private constructor();
|
|
7782
7945
|
/**
|
|
7783
7946
|
* @remarks
|
|
7784
7947
|
* If set to true, this will cancel the item use behavior.
|
|
@@ -7792,15 +7955,16 @@ export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
|
|
|
7792
7955
|
* Manages callbacks that fire before an item being used on a
|
|
7793
7956
|
* block event.
|
|
7794
7957
|
*/
|
|
7958
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7795
7959
|
export class ItemUseOnBeforeEventSignal extends IItemUseOnBeforeEventSignal {
|
|
7796
|
-
|
|
7960
|
+
private constructor();
|
|
7797
7961
|
}
|
|
7798
7962
|
|
|
7799
7963
|
/**
|
|
7800
7964
|
* @beta
|
|
7801
7965
|
*/
|
|
7802
7966
|
export class ITripWireTripAfterEventSignal {
|
|
7803
|
-
|
|
7967
|
+
private constructor();
|
|
7804
7968
|
/**
|
|
7805
7969
|
* @remarks
|
|
7806
7970
|
* This function can't be called in read-only mode.
|
|
@@ -7823,7 +7987,7 @@ export class ITripWireTripAfterEventSignal {
|
|
|
7823
7987
|
* scripting have exceeded a threshold.
|
|
7824
7988
|
*/
|
|
7825
7989
|
export class IWatchdogTerminateBeforeEventSignal {
|
|
7826
|
-
|
|
7990
|
+
private constructor();
|
|
7827
7991
|
/**
|
|
7828
7992
|
* @remarks
|
|
7829
7993
|
* This function can't be called in read-only mode.
|
|
@@ -7844,7 +8008,7 @@ export class IWatchdogTerminateBeforeEventSignal {
|
|
|
7844
8008
|
* An event that fires after the weather has changed.
|
|
7845
8009
|
*/
|
|
7846
8010
|
export class IWeatherChangeAfterEventSignal {
|
|
7847
|
-
|
|
8011
|
+
private constructor();
|
|
7848
8012
|
/**
|
|
7849
8013
|
* @remarks
|
|
7850
8014
|
* This function can't be called in read-only mode.
|
|
@@ -7866,7 +8030,7 @@ export class IWeatherChangeAfterEventSignal {
|
|
|
7866
8030
|
* loaded.
|
|
7867
8031
|
*/
|
|
7868
8032
|
export class IWorldInitializeAfterEventSignal {
|
|
7869
|
-
|
|
8033
|
+
private constructor();
|
|
7870
8034
|
/**
|
|
7871
8035
|
* @remarks
|
|
7872
8036
|
* This function can't be called in read-only mode.
|
|
@@ -7887,8 +8051,9 @@ export class IWorldInitializeAfterEventSignal {
|
|
|
7887
8051
|
* Contains information related to changes to a lever
|
|
7888
8052
|
* activating or deactivating.
|
|
7889
8053
|
*/
|
|
8054
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7890
8055
|
export class LeverActionAfterEvent extends BlockEvent {
|
|
7891
|
-
|
|
8056
|
+
private constructor();
|
|
7892
8057
|
/**
|
|
7893
8058
|
* @remarks
|
|
7894
8059
|
* True if the lever is activated (that is, transmitting
|
|
@@ -7909,8 +8074,9 @@ export class LeverActionAfterEvent extends BlockEvent {
|
|
|
7909
8074
|
* Manages callbacks that are connected to lever moves
|
|
7910
8075
|
* (activates or deactivates).
|
|
7911
8076
|
*/
|
|
8077
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7912
8078
|
export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
|
|
7913
|
-
|
|
8079
|
+
private constructor();
|
|
7914
8080
|
}
|
|
7915
8081
|
|
|
7916
8082
|
/**
|
|
@@ -7919,7 +8085,7 @@ export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
|
|
|
7919
8085
|
* messages from client to server.
|
|
7920
8086
|
*/
|
|
7921
8087
|
export class MessageReceiveAfterEvent {
|
|
7922
|
-
|
|
8088
|
+
private constructor();
|
|
7923
8089
|
readonly id: string;
|
|
7924
8090
|
readonly message: string;
|
|
7925
8091
|
readonly player: Player;
|
|
@@ -7931,7 +8097,7 @@ export class MessageReceiveAfterEvent {
|
|
|
7931
8097
|
* Education Edition block types.
|
|
7932
8098
|
*/
|
|
7933
8099
|
export class MinecraftBlockTypes {
|
|
7934
|
-
|
|
8100
|
+
private constructor();
|
|
7935
8101
|
/**
|
|
7936
8102
|
* @remarks
|
|
7937
8103
|
* Represents an acacia button within Minecraft.
|
|
@@ -12462,7 +12628,7 @@ export class MinecraftBlockTypes {
|
|
|
12462
12628
|
* A collection of default Minecraft dimension types.
|
|
12463
12629
|
*/
|
|
12464
12630
|
export class MinecraftDimensionTypes {
|
|
12465
|
-
|
|
12631
|
+
private constructor();
|
|
12466
12632
|
/**
|
|
12467
12633
|
* @remarks
|
|
12468
12634
|
* The Nether is a collection of biomes separate from the
|
|
@@ -12498,49 +12664,11 @@ export class MinecraftDimensionTypes {
|
|
|
12498
12664
|
static readonly theEnd = 'minecraft:the_end';
|
|
12499
12665
|
}
|
|
12500
12666
|
|
|
12501
|
-
/**
|
|
12502
|
-
* @beta
|
|
12503
|
-
*/
|
|
12504
|
-
export class MinecraftEffectTypes {
|
|
12505
|
-
protected constructor();
|
|
12506
|
-
static readonly absorption: EffectType;
|
|
12507
|
-
static readonly badOmen: EffectType;
|
|
12508
|
-
static readonly blindness: EffectType;
|
|
12509
|
-
static readonly conduitPower: EffectType;
|
|
12510
|
-
static readonly darkness: EffectType;
|
|
12511
|
-
static readonly empty: EffectType;
|
|
12512
|
-
static readonly fatalPoison: EffectType;
|
|
12513
|
-
static readonly fireResistance: EffectType;
|
|
12514
|
-
static readonly haste: EffectType;
|
|
12515
|
-
static readonly healthBoost: EffectType;
|
|
12516
|
-
static readonly hunger: EffectType;
|
|
12517
|
-
static readonly instantDamage: EffectType;
|
|
12518
|
-
static readonly instantHealth: EffectType;
|
|
12519
|
-
static readonly invisibility: EffectType;
|
|
12520
|
-
static readonly jumpBoost: EffectType;
|
|
12521
|
-
static readonly levitation: EffectType;
|
|
12522
|
-
static readonly miningFatigue: EffectType;
|
|
12523
|
-
static readonly nausea: EffectType;
|
|
12524
|
-
static readonly nightVision: EffectType;
|
|
12525
|
-
static readonly poison: EffectType;
|
|
12526
|
-
static readonly regeneration: EffectType;
|
|
12527
|
-
static readonly resistance: EffectType;
|
|
12528
|
-
static readonly saturation: EffectType;
|
|
12529
|
-
static readonly slowFalling: EffectType;
|
|
12530
|
-
static readonly slowness: EffectType;
|
|
12531
|
-
static readonly speed: EffectType;
|
|
12532
|
-
static readonly strength: EffectType;
|
|
12533
|
-
static readonly villageHero: EffectType;
|
|
12534
|
-
static readonly waterBreathing: EffectType;
|
|
12535
|
-
static readonly weakness: EffectType;
|
|
12536
|
-
static readonly wither: EffectType;
|
|
12537
|
-
}
|
|
12538
|
-
|
|
12539
12667
|
/**
|
|
12540
12668
|
* @beta
|
|
12541
12669
|
*/
|
|
12542
12670
|
export class MinecraftEntityTypes {
|
|
12543
|
-
|
|
12671
|
+
private constructor();
|
|
12544
12672
|
static readonly agent: EntityType;
|
|
12545
12673
|
static readonly allay: EntityType;
|
|
12546
12674
|
static readonly areaEffectCloud: EntityType;
|
|
@@ -12663,7 +12791,7 @@ export class MinecraftEntityTypes {
|
|
|
12663
12791
|
* Education Edition block types.
|
|
12664
12792
|
*/
|
|
12665
12793
|
export class MinecraftItemTypes {
|
|
12666
|
-
|
|
12794
|
+
private constructor();
|
|
12667
12795
|
static readonly acaciaBoat: ItemType;
|
|
12668
12796
|
/**
|
|
12669
12797
|
* @remarks
|
|
@@ -16462,7 +16590,7 @@ export class MolangVariableMap {
|
|
|
16462
16590
|
* navigation.
|
|
16463
16591
|
*/
|
|
16464
16592
|
export class NavigationResult {
|
|
16465
|
-
|
|
16593
|
+
private constructor();
|
|
16466
16594
|
/**
|
|
16467
16595
|
* @remarks
|
|
16468
16596
|
* Whether the navigation result contains a full path,
|
|
@@ -16483,8 +16611,9 @@ export class NavigationResult {
|
|
|
16483
16611
|
* Contains information related to changes to a piston
|
|
16484
16612
|
* expanding or retracting.
|
|
16485
16613
|
*/
|
|
16614
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16486
16615
|
export class PistonActivateAfterEvent extends BlockEvent {
|
|
16487
|
-
|
|
16616
|
+
private constructor();
|
|
16488
16617
|
/**
|
|
16489
16618
|
* @remarks
|
|
16490
16619
|
* True if the piston is the process of expanding.
|
|
@@ -16503,8 +16632,9 @@ export class PistonActivateAfterEvent extends BlockEvent {
|
|
|
16503
16632
|
* @beta
|
|
16504
16633
|
* Manages callbacks that are connected to piston activations.
|
|
16505
16634
|
*/
|
|
16635
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16506
16636
|
export class PistonActivateAfterEventSignal extends IPistonActivateAfterEventSignal {
|
|
16507
|
-
|
|
16637
|
+
private constructor();
|
|
16508
16638
|
}
|
|
16509
16639
|
|
|
16510
16640
|
/**
|
|
@@ -16512,8 +16642,9 @@ export class PistonActivateAfterEventSignal extends IPistonActivateAfterEventSig
|
|
|
16512
16642
|
* Contains information related to changes before a piston
|
|
16513
16643
|
* expands or retracts.
|
|
16514
16644
|
*/
|
|
16645
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16515
16646
|
export class PistonActivateBeforeEvent extends BlockEvent {
|
|
16516
|
-
|
|
16647
|
+
private constructor();
|
|
16517
16648
|
/**
|
|
16518
16649
|
* @remarks
|
|
16519
16650
|
* If this is set to true within an event handler, the piston
|
|
@@ -16540,15 +16671,17 @@ export class PistonActivateBeforeEvent extends BlockEvent {
|
|
|
16540
16671
|
* Manages callbacks that are connected to an event that fires
|
|
16541
16672
|
* before a piston is activated.
|
|
16542
16673
|
*/
|
|
16674
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16543
16675
|
export class PistonActivateBeforeEventSignal extends IPistonActivateBeforeEventSignal {
|
|
16544
|
-
|
|
16676
|
+
private constructor();
|
|
16545
16677
|
}
|
|
16546
16678
|
|
|
16547
16679
|
/**
|
|
16548
16680
|
* Represents a player within the world.
|
|
16549
16681
|
*/
|
|
16682
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16550
16683
|
export class Player extends Entity {
|
|
16551
|
-
|
|
16684
|
+
private constructor();
|
|
16552
16685
|
/**
|
|
16553
16686
|
* @beta
|
|
16554
16687
|
* @remarks
|
|
@@ -16597,6 +16730,7 @@ export class Player extends Entity {
|
|
|
16597
16730
|
* Contains methods for manipulating the on-screen display of a
|
|
16598
16731
|
* Player.
|
|
16599
16732
|
*
|
|
16733
|
+
* @throws This property can throw when used.
|
|
16600
16734
|
*/
|
|
16601
16735
|
readonly onScreenDisplay: ScreenDisplay;
|
|
16602
16736
|
/**
|
|
@@ -16608,15 +16742,6 @@ export class Player extends Entity {
|
|
|
16608
16742
|
*
|
|
16609
16743
|
*/
|
|
16610
16744
|
selectedSlot: number;
|
|
16611
|
-
/**
|
|
16612
|
-
* @beta
|
|
16613
|
-
* @remarks
|
|
16614
|
-
* If this player has an individual spawn point set, returns
|
|
16615
|
-
* the dimension that their spawn point is within.
|
|
16616
|
-
*
|
|
16617
|
-
* @throws This property can throw when used.
|
|
16618
|
-
*/
|
|
16619
|
-
readonly spawnDimension?: Dimension;
|
|
16620
16745
|
/**
|
|
16621
16746
|
* @beta
|
|
16622
16747
|
* @remarks
|
|
@@ -16664,17 +16789,6 @@ export class Player extends Entity {
|
|
|
16664
16789
|
* @throws This function can throw errors.
|
|
16665
16790
|
*/
|
|
16666
16791
|
addLevels(amount: number): number;
|
|
16667
|
-
/**
|
|
16668
|
-
* @beta
|
|
16669
|
-
* @remarks
|
|
16670
|
-
* Clears the spawn point that has been individually set for a
|
|
16671
|
-
* player.
|
|
16672
|
-
*
|
|
16673
|
-
* This function can't be called in read-only mode.
|
|
16674
|
-
*
|
|
16675
|
-
* @throws This function can throw errors.
|
|
16676
|
-
*/
|
|
16677
|
-
clearSpawn(): void;
|
|
16678
16792
|
/**
|
|
16679
16793
|
* @beta
|
|
16680
16794
|
* @remarks
|
|
@@ -16689,16 +16803,9 @@ export class Player extends Entity {
|
|
|
16689
16803
|
getItemCooldown(itemCategory: string): number;
|
|
16690
16804
|
/**
|
|
16691
16805
|
* @beta
|
|
16692
|
-
* @remarks
|
|
16693
|
-
* Returns an individualized spawn position, if set, for a
|
|
16694
|
-
* player.
|
|
16695
|
-
*
|
|
16696
|
-
* @returns
|
|
16697
|
-
* The individual spawn position, or undefined if there is no
|
|
16698
|
-
* specific spawn position set for a player.
|
|
16699
16806
|
* @throws This function can throw errors.
|
|
16700
16807
|
*/
|
|
16701
|
-
|
|
16808
|
+
getSpawnPoint(): DimensionLocation | undefined;
|
|
16702
16809
|
/**
|
|
16703
16810
|
* @beta
|
|
16704
16811
|
* @remarks
|
|
@@ -16803,20 +16910,11 @@ export class Player extends Entity {
|
|
|
16803
16910
|
/**
|
|
16804
16911
|
* @beta
|
|
16805
16912
|
* @remarks
|
|
16806
|
-
* Sets the individual spawn point of this player.
|
|
16807
|
-
*
|
|
16808
16913
|
* This function can't be called in read-only mode.
|
|
16809
16914
|
*
|
|
16810
|
-
* @param spawnPosition
|
|
16811
|
-
* Location of the spawn point.
|
|
16812
|
-
* @param spawnDimension
|
|
16813
|
-
* Dimension to place the players' individualized spawn point
|
|
16814
|
-
* within.
|
|
16815
|
-
* @returns
|
|
16816
|
-
* Returns undefined/void.
|
|
16817
16915
|
* @throws This function can throw errors.
|
|
16818
16916
|
*/
|
|
16819
|
-
|
|
16917
|
+
setSpawnPoint(spawnPoint?: DimensionLocation): void;
|
|
16820
16918
|
/**
|
|
16821
16919
|
* @beta
|
|
16822
16920
|
* @remarks
|
|
@@ -16842,7 +16940,7 @@ export class Player extends Entity {
|
|
|
16842
16940
|
* statements, Array.from(iterator), and more.
|
|
16843
16941
|
*/
|
|
16844
16942
|
export class PlayerIterator implements Iterable<Player> {
|
|
16845
|
-
|
|
16943
|
+
private constructor();
|
|
16846
16944
|
/**
|
|
16847
16945
|
* @remarks
|
|
16848
16946
|
* This function can't be called in read-only mode.
|
|
@@ -16869,7 +16967,7 @@ export class PlayerIterator implements Iterable<Player> {
|
|
|
16869
16967
|
* within the game.
|
|
16870
16968
|
*/
|
|
16871
16969
|
export class PlayerJoinAfterEvent {
|
|
16872
|
-
|
|
16970
|
+
private constructor();
|
|
16873
16971
|
/**
|
|
16874
16972
|
* @remarks
|
|
16875
16973
|
* Opaque string identifier of the player that joined the game.
|
|
@@ -16889,8 +16987,9 @@ export class PlayerJoinAfterEvent {
|
|
|
16889
16987
|
* Manages callbacks that are connected to a player joining the
|
|
16890
16988
|
* world.
|
|
16891
16989
|
*/
|
|
16990
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16892
16991
|
export class PlayerJoinAfterEventSignal extends IPlayerJoinAfterEventSignal {
|
|
16893
|
-
|
|
16992
|
+
private constructor();
|
|
16894
16993
|
}
|
|
16895
16994
|
|
|
16896
16995
|
/**
|
|
@@ -16899,7 +16998,7 @@ export class PlayerJoinAfterEventSignal extends IPlayerJoinAfterEventSignal {
|
|
|
16899
16998
|
* world.
|
|
16900
16999
|
*/
|
|
16901
17000
|
export class PlayerLeaveAfterEvent {
|
|
16902
|
-
|
|
17001
|
+
private constructor();
|
|
16903
17002
|
/**
|
|
16904
17003
|
* @remarks
|
|
16905
17004
|
* Opaque string identifier of the player that has left the
|
|
@@ -16920,8 +17019,9 @@ export class PlayerLeaveAfterEvent {
|
|
|
16920
17019
|
* Manages callbacks that are connected to a player leaving the
|
|
16921
17020
|
* world.
|
|
16922
17021
|
*/
|
|
17022
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16923
17023
|
export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
|
|
16924
|
-
|
|
17024
|
+
private constructor();
|
|
16925
17025
|
}
|
|
16926
17026
|
|
|
16927
17027
|
/**
|
|
@@ -16930,7 +17030,7 @@ export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
|
|
|
16930
17030
|
* spawning.
|
|
16931
17031
|
*/
|
|
16932
17032
|
export class PlayerSpawnAfterEvent {
|
|
16933
|
-
|
|
17033
|
+
private constructor();
|
|
16934
17034
|
/**
|
|
16935
17035
|
* @remarks
|
|
16936
17036
|
* If true, this is the initial spawn of a player after joining
|
|
@@ -16955,8 +17055,9 @@ export class PlayerSpawnAfterEvent {
|
|
|
16955
17055
|
* Registers an event when a player is spawned (or re-spawned
|
|
16956
17056
|
* after death) and fully ready within the world.
|
|
16957
17057
|
*/
|
|
17058
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16958
17059
|
export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal {
|
|
16959
|
-
|
|
17060
|
+
private constructor();
|
|
16960
17061
|
}
|
|
16961
17062
|
|
|
16962
17063
|
/**
|
|
@@ -16964,8 +17065,9 @@ export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal {
|
|
|
16964
17065
|
* Contains information related to changes to a pressure plate
|
|
16965
17066
|
* pop.
|
|
16966
17067
|
*/
|
|
17068
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16967
17069
|
export class PressurePlatePopAfterEvent extends BlockEvent {
|
|
16968
|
-
|
|
17070
|
+
private constructor();
|
|
16969
17071
|
/**
|
|
16970
17072
|
* @remarks
|
|
16971
17073
|
* The redstone power of the pressure plate before it was
|
|
@@ -16987,8 +17089,9 @@ export class PressurePlatePopAfterEvent extends BlockEvent {
|
|
|
16987
17089
|
* Manages callbacks that are connected to when a pressure
|
|
16988
17090
|
* plate is popped.
|
|
16989
17091
|
*/
|
|
17092
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16990
17093
|
export class PressurePlatePopAfterEventSignal extends IPressurePlatePopAfterEventSignal {
|
|
16991
|
-
|
|
17094
|
+
private constructor();
|
|
16992
17095
|
}
|
|
16993
17096
|
|
|
16994
17097
|
/**
|
|
@@ -16996,8 +17099,9 @@ export class PressurePlatePopAfterEventSignal extends IPressurePlatePopAfterEven
|
|
|
16996
17099
|
* Contains information related to changes to a pressure plate
|
|
16997
17100
|
* push.
|
|
16998
17101
|
*/
|
|
17102
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16999
17103
|
export class PressurePlatePushAfterEvent extends BlockEvent {
|
|
17000
|
-
|
|
17104
|
+
private constructor();
|
|
17001
17105
|
/**
|
|
17002
17106
|
* @remarks
|
|
17003
17107
|
* The redstone power of the pressure plate before it was
|
|
@@ -17025,8 +17129,9 @@ export class PressurePlatePushAfterEvent extends BlockEvent {
|
|
|
17025
17129
|
* Manages callbacks that are connected to when a pressure
|
|
17026
17130
|
* plate is pushed.
|
|
17027
17131
|
*/
|
|
17132
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17028
17133
|
export class PressurePlatePushAfterEventSignal extends IPressurePlatePushAfterEventSignal {
|
|
17029
|
-
|
|
17134
|
+
private constructor();
|
|
17030
17135
|
}
|
|
17031
17136
|
|
|
17032
17137
|
/**
|
|
@@ -17035,7 +17140,7 @@ export class PressurePlatePushAfterEventSignal extends IPressurePlatePushAfterEv
|
|
|
17035
17140
|
* entity or block.
|
|
17036
17141
|
*/
|
|
17037
17142
|
export class ProjectileHitAfterEvent {
|
|
17038
|
-
|
|
17143
|
+
private constructor();
|
|
17039
17144
|
/**
|
|
17040
17145
|
* @remarks
|
|
17041
17146
|
* Dimension where this projectile hit took place.
|
|
@@ -17091,8 +17196,9 @@ export class ProjectileHitAfterEvent {
|
|
|
17091
17196
|
* Manages callbacks that are connected to when a projectile
|
|
17092
17197
|
* hits an entity or block.
|
|
17093
17198
|
*/
|
|
17199
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17094
17200
|
export class ProjectileHitAfterEventSignal extends IProjectileHitAfterEventSignal {
|
|
17095
|
-
|
|
17201
|
+
private constructor();
|
|
17096
17202
|
}
|
|
17097
17203
|
|
|
17098
17204
|
/**
|
|
@@ -17102,7 +17208,7 @@ export class ProjectileHitAfterEventSignal extends IProjectileHitAfterEventSigna
|
|
|
17102
17208
|
* used and stored within Minecraft.
|
|
17103
17209
|
*/
|
|
17104
17210
|
export class PropertyRegistry {
|
|
17105
|
-
|
|
17211
|
+
private constructor();
|
|
17106
17212
|
/**
|
|
17107
17213
|
* @remarks
|
|
17108
17214
|
* Registers a dynamic property for a particular entity type
|
|
@@ -17132,7 +17238,7 @@ export class PropertyRegistry {
|
|
|
17132
17238
|
* Contains objectives and participants for the scoreboard.
|
|
17133
17239
|
*/
|
|
17134
17240
|
export class Scoreboard {
|
|
17135
|
-
|
|
17241
|
+
private constructor();
|
|
17136
17242
|
/**
|
|
17137
17243
|
* @remarks
|
|
17138
17244
|
* Adds a new objective to the scoreboard.
|
|
@@ -17150,7 +17256,7 @@ export class Scoreboard {
|
|
|
17150
17256
|
*
|
|
17151
17257
|
* @throws This function can throw errors.
|
|
17152
17258
|
*/
|
|
17153
|
-
clearObjectiveAtDisplaySlot(displaySlotId:
|
|
17259
|
+
clearObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjective;
|
|
17154
17260
|
/**
|
|
17155
17261
|
* @remarks
|
|
17156
17262
|
* Returns a specific objective (by id).
|
|
@@ -17167,7 +17273,7 @@ export class Scoreboard {
|
|
|
17167
17273
|
*
|
|
17168
17274
|
* @throws This function can throw errors.
|
|
17169
17275
|
*/
|
|
17170
|
-
getObjectiveAtDisplaySlot(displaySlotId:
|
|
17276
|
+
getObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjectiveDisplayOptions;
|
|
17171
17277
|
/**
|
|
17172
17278
|
* @remarks
|
|
17173
17279
|
* Returns all defined objectives.
|
|
@@ -17182,19 +17288,6 @@ export class Scoreboard {
|
|
|
17182
17288
|
* @throws This function can throw errors.
|
|
17183
17289
|
*/
|
|
17184
17290
|
getParticipants(): ScoreboardIdentity[];
|
|
17185
|
-
/**
|
|
17186
|
-
* @remarks
|
|
17187
|
-
* Returns a score given an objective and participant.
|
|
17188
|
-
*
|
|
17189
|
-
* @param objective
|
|
17190
|
-
* Objective to retrieve the score for.
|
|
17191
|
-
* @param participant
|
|
17192
|
-
* Participant to retrieve the score for.
|
|
17193
|
-
* @returns
|
|
17194
|
-
* Score value.
|
|
17195
|
-
* @throws This function can throw errors.
|
|
17196
|
-
*/
|
|
17197
|
-
getScore(objective: ScoreboardObjective, participant: ScoreboardIdentity): number;
|
|
17198
17291
|
/**
|
|
17199
17292
|
* @remarks
|
|
17200
17293
|
* Removes an objective from the scoreboard.
|
|
@@ -17214,22 +17307,9 @@ export class Scoreboard {
|
|
|
17214
17307
|
* @throws This function can throw errors.
|
|
17215
17308
|
*/
|
|
17216
17309
|
setObjectiveAtDisplaySlot(
|
|
17217
|
-
displaySlotId:
|
|
17310
|
+
displaySlotId: DisplaySlotId,
|
|
17218
17311
|
objectiveDisplaySetting: ScoreboardObjectiveDisplayOptions,
|
|
17219
17312
|
): ScoreboardObjective;
|
|
17220
|
-
/**
|
|
17221
|
-
* @remarks
|
|
17222
|
-
* Sets the score given a participant and objective.
|
|
17223
|
-
*
|
|
17224
|
-
* This function can't be called in read-only mode.
|
|
17225
|
-
*
|
|
17226
|
-
* @param objective
|
|
17227
|
-
* Objective to use for the scoreboard.
|
|
17228
|
-
* @param participant
|
|
17229
|
-
* Participant to apply the scoreboard value to.
|
|
17230
|
-
* @throws This function can throw errors.
|
|
17231
|
-
*/
|
|
17232
|
-
setScore(objective: ScoreboardObjective, participant: ScoreboardIdentity, score: number): boolean;
|
|
17233
17313
|
}
|
|
17234
17314
|
|
|
17235
17315
|
/**
|
|
@@ -17237,7 +17317,7 @@ export class Scoreboard {
|
|
|
17237
17317
|
* Contains an identity of the scoreboard item.
|
|
17238
17318
|
*/
|
|
17239
17319
|
export class ScoreboardIdentity {
|
|
17240
|
-
|
|
17320
|
+
private constructor();
|
|
17241
17321
|
/**
|
|
17242
17322
|
* @remarks
|
|
17243
17323
|
* Returns the player-visible name of this identity.
|
|
@@ -17264,44 +17344,7 @@ export class ScoreboardIdentity {
|
|
|
17264
17344
|
* @throws This function can throw errors.
|
|
17265
17345
|
*/
|
|
17266
17346
|
getEntity(): Entity;
|
|
17267
|
-
/**
|
|
17268
|
-
* @remarks
|
|
17269
|
-
* Gets the current score for this participant based on an
|
|
17270
|
-
* objective.
|
|
17271
|
-
*
|
|
17272
|
-
* @param objective
|
|
17273
|
-
* The objective to retrieve the score for.
|
|
17274
|
-
* @returns
|
|
17275
|
-
* Score value.
|
|
17276
|
-
* @throws This function can throw errors.
|
|
17277
|
-
*/
|
|
17278
|
-
getScore(objective: ScoreboardObjective): number;
|
|
17279
17347
|
isValid(): boolean;
|
|
17280
|
-
/**
|
|
17281
|
-
* @remarks
|
|
17282
|
-
* Removes this participant from an objective.
|
|
17283
|
-
*
|
|
17284
|
-
* This function can't be called in read-only mode.
|
|
17285
|
-
*
|
|
17286
|
-
* @param objective
|
|
17287
|
-
* The objective to remove this participant from.
|
|
17288
|
-
* @throws This function can throw errors.
|
|
17289
|
-
*/
|
|
17290
|
-
removeFromObjective(objective: ScoreboardObjective): boolean;
|
|
17291
|
-
/**
|
|
17292
|
-
* @remarks
|
|
17293
|
-
* Sets a score for this participant for a particular
|
|
17294
|
-
* objective.
|
|
17295
|
-
*
|
|
17296
|
-
* This function can't be called in read-only mode.
|
|
17297
|
-
*
|
|
17298
|
-
* @param objective
|
|
17299
|
-
* Objective to apply the score to.
|
|
17300
|
-
* @param score
|
|
17301
|
-
* Score value.
|
|
17302
|
-
* @throws This function can throw errors.
|
|
17303
|
-
*/
|
|
17304
|
-
setScore(objective: ScoreboardObjective, score: number): boolean;
|
|
17305
17348
|
}
|
|
17306
17349
|
|
|
17307
17350
|
/**
|
|
@@ -17309,7 +17352,7 @@ export class ScoreboardIdentity {
|
|
|
17309
17352
|
* Contains objectives and participants for the scoreboard.
|
|
17310
17353
|
*/
|
|
17311
17354
|
export class ScoreboardObjective {
|
|
17312
|
-
|
|
17355
|
+
private constructor();
|
|
17313
17356
|
/**
|
|
17314
17357
|
* @remarks
|
|
17315
17358
|
* Returns the player-visible name of this scoreboard
|
|
@@ -17340,7 +17383,7 @@ export class ScoreboardObjective {
|
|
|
17340
17383
|
* Identifier of the participant to retrieve a score for.
|
|
17341
17384
|
* @throws This function can throw errors.
|
|
17342
17385
|
*/
|
|
17343
|
-
getScore(participant: ScoreboardIdentity): number;
|
|
17386
|
+
getScore(participant: Entity | ScoreboardIdentity | string): number | undefined;
|
|
17344
17387
|
/**
|
|
17345
17388
|
* @remarks
|
|
17346
17389
|
* Returns specific scores for this objective for all
|
|
@@ -17349,6 +17392,14 @@ export class ScoreboardObjective {
|
|
|
17349
17392
|
* @throws This function can throw errors.
|
|
17350
17393
|
*/
|
|
17351
17394
|
getScores(): ScoreboardScoreInfo[];
|
|
17395
|
+
/**
|
|
17396
|
+
* @remarks
|
|
17397
|
+
* Returns if the specified identity is a participant of the
|
|
17398
|
+
* scoreboard objective.
|
|
17399
|
+
*
|
|
17400
|
+
* @throws This function can throw errors.
|
|
17401
|
+
*/
|
|
17402
|
+
hasParticipant(participant: Entity | ScoreboardIdentity | string): boolean;
|
|
17352
17403
|
isValid(): boolean;
|
|
17353
17404
|
/**
|
|
17354
17405
|
* @remarks
|
|
@@ -17361,7 +17412,7 @@ export class ScoreboardObjective {
|
|
|
17361
17412
|
* objective.
|
|
17362
17413
|
* @throws This function can throw errors.
|
|
17363
17414
|
*/
|
|
17364
|
-
removeParticipant(participant: ScoreboardIdentity): boolean;
|
|
17415
|
+
removeParticipant(participant: Entity | ScoreboardIdentity | string): boolean;
|
|
17365
17416
|
/**
|
|
17366
17417
|
* @remarks
|
|
17367
17418
|
* Sets a score for a participant.
|
|
@@ -17374,7 +17425,7 @@ export class ScoreboardObjective {
|
|
|
17374
17425
|
* New value of the score.
|
|
17375
17426
|
* @throws This function can throw errors.
|
|
17376
17427
|
*/
|
|
17377
|
-
setScore(participant: ScoreboardIdentity, score: number):
|
|
17428
|
+
setScore(participant: Entity | ScoreboardIdentity | string, score: number): void;
|
|
17378
17429
|
}
|
|
17379
17430
|
|
|
17380
17431
|
/**
|
|
@@ -17383,7 +17434,7 @@ export class ScoreboardObjective {
|
|
|
17383
17434
|
* respective score.
|
|
17384
17435
|
*/
|
|
17385
17436
|
export class ScoreboardScoreInfo {
|
|
17386
|
-
|
|
17437
|
+
private constructor();
|
|
17387
17438
|
/**
|
|
17388
17439
|
* @remarks
|
|
17389
17440
|
* This scoreboard participant for this score.
|
|
@@ -17404,7 +17455,7 @@ export class ScoreboardScoreInfo {
|
|
|
17404
17455
|
* showing up on the screen.
|
|
17405
17456
|
*/
|
|
17406
17457
|
export class ScreenDisplay {
|
|
17407
|
-
|
|
17458
|
+
private constructor();
|
|
17408
17459
|
isValid(): boolean;
|
|
17409
17460
|
/**
|
|
17410
17461
|
* @remarks
|
|
@@ -17446,7 +17497,7 @@ export class ScreenDisplay {
|
|
|
17446
17497
|
* invocation.
|
|
17447
17498
|
*/
|
|
17448
17499
|
export class ScriptEventCommandMessageAfterEvent {
|
|
17449
|
-
|
|
17500
|
+
private constructor();
|
|
17450
17501
|
/**
|
|
17451
17502
|
* @remarks
|
|
17452
17503
|
* Identifier of this ScriptEvent command message.
|
|
@@ -17494,8 +17545,9 @@ export class ScriptEventCommandMessageAfterEvent {
|
|
|
17494
17545
|
* Allows for registering an event handler that responds to
|
|
17495
17546
|
* inbound /scriptevent commands.
|
|
17496
17547
|
*/
|
|
17548
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17497
17549
|
export class ScriptEventCommandMessageAfterEventSignal extends IScriptEventCommandMessageAfterEventSignal {
|
|
17498
|
-
|
|
17550
|
+
private constructor();
|
|
17499
17551
|
}
|
|
17500
17552
|
|
|
17501
17553
|
/**
|
|
@@ -17504,7 +17556,7 @@ export class ScriptEventCommandMessageAfterEventSignal extends IScriptEventComma
|
|
|
17504
17556
|
* entity.
|
|
17505
17557
|
*/
|
|
17506
17558
|
export class Seat {
|
|
17507
|
-
|
|
17559
|
+
private constructor();
|
|
17508
17560
|
/**
|
|
17509
17561
|
* @remarks
|
|
17510
17562
|
* If specified, contains a forced rotation that the riders in
|
|
@@ -17540,15 +17592,16 @@ export class Seat {
|
|
|
17540
17592
|
* event is not currently fully implemented, and should not be
|
|
17541
17593
|
* used.
|
|
17542
17594
|
*/
|
|
17595
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17543
17596
|
export class ServerMessageAfterEventSignal extends IServerMessageAfterEventSignal {
|
|
17544
|
-
|
|
17597
|
+
private constructor();
|
|
17545
17598
|
}
|
|
17546
17599
|
|
|
17547
17600
|
/**
|
|
17548
17601
|
* A class that provides system-level events and functions.
|
|
17549
17602
|
*/
|
|
17550
17603
|
export class System {
|
|
17551
|
-
|
|
17604
|
+
private constructor();
|
|
17552
17605
|
/**
|
|
17553
17606
|
* @beta
|
|
17554
17607
|
*/
|
|
@@ -17622,7 +17675,7 @@ export class System {
|
|
|
17622
17675
|
* @beta
|
|
17623
17676
|
*/
|
|
17624
17677
|
export class SystemAfterEvents {
|
|
17625
|
-
|
|
17678
|
+
private constructor();
|
|
17626
17679
|
readonly scriptEventReceive: ScriptEventCommandMessageAfterEventSignal;
|
|
17627
17680
|
}
|
|
17628
17681
|
|
|
@@ -17630,7 +17683,7 @@ export class SystemAfterEvents {
|
|
|
17630
17683
|
* @beta
|
|
17631
17684
|
*/
|
|
17632
17685
|
export class SystemBeforeEvents {
|
|
17633
|
-
|
|
17686
|
+
private constructor();
|
|
17634
17687
|
readonly watchdogTerminate: WatchdogTerminateBeforeEventSignal;
|
|
17635
17688
|
}
|
|
17636
17689
|
|
|
@@ -17639,8 +17692,9 @@ export class SystemBeforeEvents {
|
|
|
17639
17692
|
* Contains information related to changes to a target block
|
|
17640
17693
|
* hit.
|
|
17641
17694
|
*/
|
|
17695
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17642
17696
|
export class TargetBlockHitAfterEvent extends BlockEvent {
|
|
17643
|
-
|
|
17697
|
+
private constructor();
|
|
17644
17698
|
/**
|
|
17645
17699
|
* @remarks
|
|
17646
17700
|
* The position where the source hit the block.
|
|
@@ -17672,8 +17726,9 @@ export class TargetBlockHitAfterEvent extends BlockEvent {
|
|
|
17672
17726
|
* Manages callbacks that are connected to when a target block
|
|
17673
17727
|
* is hit.
|
|
17674
17728
|
*/
|
|
17729
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17675
17730
|
export class TargetBlockHitAfterEventSignal extends ITargetBlockHitAfterEventSignal {
|
|
17676
|
-
|
|
17731
|
+
private constructor();
|
|
17677
17732
|
}
|
|
17678
17733
|
|
|
17679
17734
|
/**
|
|
@@ -17699,8 +17754,9 @@ export class Trigger {
|
|
|
17699
17754
|
* @beta
|
|
17700
17755
|
* Contains information related to changes to a trip wire trip.
|
|
17701
17756
|
*/
|
|
17757
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17702
17758
|
export class TripWireTripAfterEvent extends BlockEvent {
|
|
17703
|
-
|
|
17759
|
+
private constructor();
|
|
17704
17760
|
/**
|
|
17705
17761
|
* @remarks
|
|
17706
17762
|
* Whether or not the block has redstone power.
|
|
@@ -17720,8 +17776,9 @@ export class TripWireTripAfterEvent extends BlockEvent {
|
|
|
17720
17776
|
* Manages callbacks that are connected to when a trip wire is
|
|
17721
17777
|
* tripped.
|
|
17722
17778
|
*/
|
|
17779
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17723
17780
|
export class TripWireTripAfterEventSignal extends ITripWireTripAfterEventSignal {
|
|
17724
|
-
|
|
17781
|
+
private constructor();
|
|
17725
17782
|
}
|
|
17726
17783
|
|
|
17727
17784
|
/**
|
|
@@ -17908,7 +17965,7 @@ export class Vector {
|
|
|
17908
17965
|
* termination.
|
|
17909
17966
|
*/
|
|
17910
17967
|
export class WatchdogTerminateBeforeEvent {
|
|
17911
|
-
|
|
17968
|
+
private constructor();
|
|
17912
17969
|
/**
|
|
17913
17970
|
* @remarks
|
|
17914
17971
|
* If set to true, cancels the termination of the script
|
|
@@ -17933,8 +17990,9 @@ export class WatchdogTerminateBeforeEvent {
|
|
|
17933
17990
|
* be called when a script runtime is being terminated due to a
|
|
17934
17991
|
* violation of the performance watchdog system.
|
|
17935
17992
|
*/
|
|
17993
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17936
17994
|
export class WatchdogTerminateBeforeEventSignal extends IWatchdogTerminateBeforeEventSignal {
|
|
17937
|
-
|
|
17995
|
+
private constructor();
|
|
17938
17996
|
}
|
|
17939
17997
|
|
|
17940
17998
|
/**
|
|
@@ -17943,7 +18001,7 @@ export class WatchdogTerminateBeforeEventSignal extends IWatchdogTerminateBefore
|
|
|
17943
18001
|
* environment.
|
|
17944
18002
|
*/
|
|
17945
18003
|
export class WeatherChangeAfterEvent {
|
|
17946
|
-
|
|
18004
|
+
private constructor();
|
|
17947
18005
|
/**
|
|
17948
18006
|
* @remarks
|
|
17949
18007
|
* Dimension in which the weather has changed.
|
|
@@ -17968,8 +18026,9 @@ export class WeatherChangeAfterEvent {
|
|
|
17968
18026
|
* @beta
|
|
17969
18027
|
* Manages callbacks that are connected to weather changing.
|
|
17970
18028
|
*/
|
|
18029
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17971
18030
|
export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSignal {
|
|
17972
|
-
|
|
18031
|
+
private constructor();
|
|
17973
18032
|
}
|
|
17974
18033
|
|
|
17975
18034
|
/**
|
|
@@ -17977,7 +18036,7 @@ export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSigna
|
|
|
17977
18036
|
* dimensions and the environment of Minecraft.
|
|
17978
18037
|
*/
|
|
17979
18038
|
export class World {
|
|
17980
|
-
|
|
18039
|
+
private constructor();
|
|
17981
18040
|
/**
|
|
17982
18041
|
* @beta
|
|
17983
18042
|
* @remarks
|
|
@@ -18032,15 +18091,12 @@ export class World {
|
|
|
18032
18091
|
getAllPlayers(): Player[];
|
|
18033
18092
|
/**
|
|
18034
18093
|
* @beta
|
|
18035
|
-
* @remarks
|
|
18036
|
-
* Returns the default spawn position within the world where
|
|
18037
|
-
* players are spawned if they don't have a specific spawn
|
|
18038
|
-
* position set.
|
|
18039
|
-
*
|
|
18040
|
-
* @returns
|
|
18041
|
-
* Returns the default spawn position.
|
|
18042
18094
|
*/
|
|
18043
|
-
|
|
18095
|
+
getDay(): number;
|
|
18096
|
+
/**
|
|
18097
|
+
* @beta
|
|
18098
|
+
*/
|
|
18099
|
+
getDefaultSpawnLocation(): Vector3;
|
|
18044
18100
|
/**
|
|
18045
18101
|
* @remarks
|
|
18046
18102
|
* Returns a dimension object.
|
|
@@ -18091,11 +18147,8 @@ export class World {
|
|
|
18091
18147
|
getPlayers(options?: EntityQueryOptions): Player[];
|
|
18092
18148
|
/**
|
|
18093
18149
|
* @beta
|
|
18094
|
-
* @remarks
|
|
18095
|
-
* Sets the current game time of the day.
|
|
18096
|
-
*
|
|
18097
18150
|
*/
|
|
18098
|
-
|
|
18151
|
+
getTimeOfDay(): number;
|
|
18099
18152
|
/**
|
|
18100
18153
|
* @beta
|
|
18101
18154
|
* @remarks
|
|
@@ -18179,18 +18232,18 @@ export class World {
|
|
|
18179
18232
|
/**
|
|
18180
18233
|
* @beta
|
|
18181
18234
|
* @remarks
|
|
18182
|
-
*
|
|
18183
|
-
* world. Note that players can override this with their own
|
|
18184
|
-
* spawn position. Note also that the default spawn position
|
|
18185
|
-
* must be in the overworld dimension.
|
|
18235
|
+
* This function can't be called in read-only mode.
|
|
18186
18236
|
*
|
|
18237
|
+
*/
|
|
18238
|
+
setAbsoluteTime(absoluteTime: number): void;
|
|
18239
|
+
/**
|
|
18240
|
+
* @beta
|
|
18241
|
+
* @remarks
|
|
18187
18242
|
* This function can't be called in read-only mode.
|
|
18188
18243
|
*
|
|
18189
|
-
* @param spawnPosition
|
|
18190
|
-
* Location within the overworld where a player will spawn.
|
|
18191
18244
|
* @throws This function can throw errors.
|
|
18192
18245
|
*/
|
|
18193
|
-
|
|
18246
|
+
setDefaultSpawnLocation(spawnLocation: Vector3): void;
|
|
18194
18247
|
/**
|
|
18195
18248
|
* @beta
|
|
18196
18249
|
* @remarks
|
|
@@ -18206,12 +18259,11 @@ export class World {
|
|
|
18206
18259
|
/**
|
|
18207
18260
|
* @beta
|
|
18208
18261
|
* @remarks
|
|
18209
|
-
* Returns the current game time of the day.
|
|
18210
|
-
*
|
|
18211
18262
|
* This function can't be called in read-only mode.
|
|
18212
18263
|
*
|
|
18264
|
+
* @throws This function can throw errors.
|
|
18213
18265
|
*/
|
|
18214
|
-
|
|
18266
|
+
setTimeOfDay(timeOfDay: number | TimeOfDay): void;
|
|
18215
18267
|
/**
|
|
18216
18268
|
* @beta
|
|
18217
18269
|
* @remarks
|
|
@@ -18227,42 +18279,139 @@ export class World {
|
|
|
18227
18279
|
* @beta
|
|
18228
18280
|
*/
|
|
18229
18281
|
export class WorldAfterEvents {
|
|
18230
|
-
|
|
18282
|
+
private constructor();
|
|
18283
|
+
/**
|
|
18284
|
+
* @beta
|
|
18285
|
+
*/
|
|
18231
18286
|
readonly blockBreak: BlockBreakAfterEventSignal;
|
|
18287
|
+
/**
|
|
18288
|
+
* @beta
|
|
18289
|
+
*/
|
|
18232
18290
|
readonly blockExplode: BlockExplodeAfterEventSignal;
|
|
18291
|
+
/**
|
|
18292
|
+
* @beta
|
|
18293
|
+
*/
|
|
18233
18294
|
readonly blockPlace: BlockPlaceAfterEventSignal;
|
|
18234
18295
|
readonly buttonPush: ButtonPushAfterEventSignal;
|
|
18296
|
+
/**
|
|
18297
|
+
* @beta
|
|
18298
|
+
*/
|
|
18235
18299
|
readonly chatSend: ChatSendAfterEventSignal;
|
|
18300
|
+
/**
|
|
18301
|
+
* @beta
|
|
18302
|
+
*/
|
|
18236
18303
|
readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerAfterEventSignal;
|
|
18304
|
+
/**
|
|
18305
|
+
* @beta
|
|
18306
|
+
*/
|
|
18237
18307
|
readonly effectAdd: EffectAddAfterEventSignal;
|
|
18308
|
+
/**
|
|
18309
|
+
* @beta
|
|
18310
|
+
*/
|
|
18238
18311
|
readonly entityDie: EntityDieAfterEventSignal;
|
|
18312
|
+
/**
|
|
18313
|
+
* @beta
|
|
18314
|
+
*/
|
|
18239
18315
|
readonly entityHealthChanged: EntityHealthChangedAfterEventSignal;
|
|
18240
|
-
|
|
18316
|
+
/**
|
|
18317
|
+
* @beta
|
|
18318
|
+
*/
|
|
18319
|
+
readonly entityHitBlock: EntityHitBlockAfterEventSignal;
|
|
18320
|
+
/**
|
|
18321
|
+
* @beta
|
|
18322
|
+
*/
|
|
18323
|
+
readonly entityHitEntity: EntityHitEntityAfterEventSignal;
|
|
18324
|
+
/**
|
|
18325
|
+
* @beta
|
|
18326
|
+
*/
|
|
18241
18327
|
readonly entityHurt: EntityHurtAfterEventSignal;
|
|
18328
|
+
/**
|
|
18329
|
+
* @beta
|
|
18330
|
+
*/
|
|
18242
18331
|
readonly entityRemoved: EntityRemovedAfterEventSignal;
|
|
18332
|
+
/**
|
|
18333
|
+
* @beta
|
|
18334
|
+
*/
|
|
18243
18335
|
readonly entitySpawn: EntitySpawnAfterEventSignal;
|
|
18336
|
+
/**
|
|
18337
|
+
* @beta
|
|
18338
|
+
*/
|
|
18244
18339
|
readonly explosion: ExplosionAfterEventSignal;
|
|
18340
|
+
/**
|
|
18341
|
+
* @beta
|
|
18342
|
+
*/
|
|
18245
18343
|
readonly itemCompleteUse: ItemCompleteUseAfterEventSignal;
|
|
18344
|
+
/**
|
|
18345
|
+
* @beta
|
|
18346
|
+
*/
|
|
18246
18347
|
readonly itemDefinitionEvent: ItemDefinitionAfterEventSignal;
|
|
18348
|
+
/**
|
|
18349
|
+
* @beta
|
|
18350
|
+
*/
|
|
18247
18351
|
readonly itemReleaseUse: ItemReleaseUseAfterEventSignal;
|
|
18352
|
+
/**
|
|
18353
|
+
* @beta
|
|
18354
|
+
*/
|
|
18248
18355
|
readonly itemStartUse: ItemStartUseAfterEventSignal;
|
|
18356
|
+
/**
|
|
18357
|
+
* @beta
|
|
18358
|
+
*/
|
|
18249
18359
|
readonly itemStartUseOn: ItemStartUseOnAfterEventSignal;
|
|
18360
|
+
/**
|
|
18361
|
+
* @beta
|
|
18362
|
+
*/
|
|
18250
18363
|
readonly itemStopUse: ItemStopUseAfterEventSignal;
|
|
18364
|
+
/**
|
|
18365
|
+
* @beta
|
|
18366
|
+
*/
|
|
18251
18367
|
readonly itemStopUseOn: ItemStopUseOnAfterEventSignal;
|
|
18368
|
+
/**
|
|
18369
|
+
* @beta
|
|
18370
|
+
*/
|
|
18252
18371
|
readonly itemUse: ItemUseAfterEventSignal;
|
|
18372
|
+
/**
|
|
18373
|
+
* @beta
|
|
18374
|
+
*/
|
|
18253
18375
|
readonly itemUseOn: ItemUseOnAfterEventSignal;
|
|
18254
|
-
readonly
|
|
18376
|
+
readonly leverAction: LeverActionAfterEventSignal;
|
|
18377
|
+
/**
|
|
18378
|
+
* @beta
|
|
18379
|
+
*/
|
|
18255
18380
|
readonly messageReceive: ServerMessageAfterEventSignal;
|
|
18381
|
+
/**
|
|
18382
|
+
* @beta
|
|
18383
|
+
*/
|
|
18256
18384
|
readonly pistonActivate: PistonActivateAfterEventSignal;
|
|
18257
18385
|
readonly playerJoin: PlayerJoinAfterEventSignal;
|
|
18258
18386
|
readonly playerLeave: PlayerLeaveAfterEventSignal;
|
|
18259
18387
|
readonly playerSpawn: PlayerSpawnAfterEventSignal;
|
|
18388
|
+
/**
|
|
18389
|
+
* @beta
|
|
18390
|
+
*/
|
|
18260
18391
|
readonly pressurePlatePop: PressurePlatePopAfterEventSignal;
|
|
18392
|
+
/**
|
|
18393
|
+
* @beta
|
|
18394
|
+
*/
|
|
18261
18395
|
readonly pressurePlatePush: PressurePlatePushAfterEventSignal;
|
|
18396
|
+
/**
|
|
18397
|
+
* @beta
|
|
18398
|
+
*/
|
|
18262
18399
|
readonly projectileHit: ProjectileHitAfterEventSignal;
|
|
18400
|
+
/**
|
|
18401
|
+
* @beta
|
|
18402
|
+
*/
|
|
18263
18403
|
readonly targetBlockHit: TargetBlockHitAfterEventSignal;
|
|
18404
|
+
/**
|
|
18405
|
+
* @beta
|
|
18406
|
+
*/
|
|
18264
18407
|
readonly tripWireTrip: TripWireTripAfterEventSignal;
|
|
18408
|
+
/**
|
|
18409
|
+
* @beta
|
|
18410
|
+
*/
|
|
18265
18411
|
readonly weatherChange: WeatherChangeAfterEventSignal;
|
|
18412
|
+
/**
|
|
18413
|
+
* @beta
|
|
18414
|
+
*/
|
|
18266
18415
|
readonly worldInitialize: WorldInitializeAfterEventSignal;
|
|
18267
18416
|
}
|
|
18268
18417
|
|
|
@@ -18270,7 +18419,7 @@ export class WorldAfterEvents {
|
|
|
18270
18419
|
* @beta
|
|
18271
18420
|
*/
|
|
18272
18421
|
export class WorldBeforeEvents {
|
|
18273
|
-
|
|
18422
|
+
private constructor();
|
|
18274
18423
|
readonly chatSend: ChatSendBeforeEventSignal;
|
|
18275
18424
|
readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerBeforeEventSignal;
|
|
18276
18425
|
readonly explosion: ExplosionBeforeEventSignal;
|
|
@@ -18289,7 +18438,7 @@ export class WorldBeforeEvents {
|
|
|
18289
18438
|
* Initialize execution.
|
|
18290
18439
|
*/
|
|
18291
18440
|
export class WorldInitializeAfterEvent {
|
|
18292
|
-
|
|
18441
|
+
private constructor();
|
|
18293
18442
|
/**
|
|
18294
18443
|
* @remarks
|
|
18295
18444
|
* Contains methods for scripts to initialize and register
|
|
@@ -18320,8 +18469,9 @@ export class WorldInitializeAfterEvent {
|
|
|
18320
18469
|
* may run multiple times within a session in the case that the
|
|
18321
18470
|
* /reload command is used.
|
|
18322
18471
|
*/
|
|
18472
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
18323
18473
|
export class WorldInitializeAfterEventSignal extends IWorldInitializeAfterEventSignal {
|
|
18324
|
-
|
|
18474
|
+
private constructor();
|
|
18325
18475
|
}
|
|
18326
18476
|
|
|
18327
18477
|
/**
|
|
@@ -18364,6 +18514,32 @@ export interface BlockHitInformation {
|
|
|
18364
18514
|
faceLocation: Vector3;
|
|
18365
18515
|
}
|
|
18366
18516
|
|
|
18517
|
+
/**
|
|
18518
|
+
* @beta
|
|
18519
|
+
* Contains information for block raycast hit results.
|
|
18520
|
+
*/
|
|
18521
|
+
export interface BlockRaycastHit {
|
|
18522
|
+
/**
|
|
18523
|
+
* @remarks
|
|
18524
|
+
* Block that was hit.
|
|
18525
|
+
*
|
|
18526
|
+
*/
|
|
18527
|
+
block: Block;
|
|
18528
|
+
/**
|
|
18529
|
+
* @remarks
|
|
18530
|
+
* Face of the block that was hit.
|
|
18531
|
+
*
|
|
18532
|
+
*/
|
|
18533
|
+
face: Direction;
|
|
18534
|
+
/**
|
|
18535
|
+
* @remarks
|
|
18536
|
+
* Hit location relative to the bottom north-west corner of the
|
|
18537
|
+
* block.
|
|
18538
|
+
*
|
|
18539
|
+
*/
|
|
18540
|
+
faceLocation: Vector3;
|
|
18541
|
+
}
|
|
18542
|
+
|
|
18367
18543
|
/**
|
|
18368
18544
|
* @beta
|
|
18369
18545
|
* Contains additional options for configuring a block raycast
|
|
@@ -18535,6 +18711,16 @@ export interface CompoundBlockVolumeItem {
|
|
|
18535
18711
|
volume: BlockVolume;
|
|
18536
18712
|
}
|
|
18537
18713
|
|
|
18714
|
+
/**
|
|
18715
|
+
* @beta
|
|
18716
|
+
*/
|
|
18717
|
+
export interface DimensionLocation {
|
|
18718
|
+
dimension: Dimension;
|
|
18719
|
+
x: number;
|
|
18720
|
+
y: number;
|
|
18721
|
+
z: number;
|
|
18722
|
+
}
|
|
18723
|
+
|
|
18538
18724
|
/**
|
|
18539
18725
|
* @beta
|
|
18540
18726
|
* Additional options for when damage has been applied via a
|
|
@@ -18891,6 +19077,25 @@ export interface EntityQueryScoreOptions {
|
|
|
18891
19077
|
objective?: string;
|
|
18892
19078
|
}
|
|
18893
19079
|
|
|
19080
|
+
/**
|
|
19081
|
+
* @beta
|
|
19082
|
+
* Contains information for entity raycast hit results.
|
|
19083
|
+
*/
|
|
19084
|
+
export interface EntityRaycastHit {
|
|
19085
|
+
/**
|
|
19086
|
+
* @remarks
|
|
19087
|
+
* Distance from ray origin to entity bounds.
|
|
19088
|
+
*
|
|
19089
|
+
*/
|
|
19090
|
+
distance: number;
|
|
19091
|
+
/**
|
|
19092
|
+
* @remarks
|
|
19093
|
+
* Entity that was hit.
|
|
19094
|
+
*
|
|
19095
|
+
*/
|
|
19096
|
+
entity: Entity;
|
|
19097
|
+
}
|
|
19098
|
+
|
|
18894
19099
|
/**
|
|
18895
19100
|
* @beta
|
|
18896
19101
|
* Contains additional options for an entity raycast operation.
|
|
@@ -19267,22 +19472,25 @@ export interface WorldSoundOptions {
|
|
|
19267
19472
|
/**
|
|
19268
19473
|
* @beta
|
|
19269
19474
|
*/
|
|
19475
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
19270
19476
|
export class CommandError extends Error {
|
|
19271
|
-
|
|
19477
|
+
private constructor();
|
|
19272
19478
|
}
|
|
19273
19479
|
|
|
19274
19480
|
/**
|
|
19275
19481
|
* @beta
|
|
19276
19482
|
*/
|
|
19483
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
19277
19484
|
export class PositionInUnloadedChunkError extends Error {
|
|
19278
|
-
|
|
19485
|
+
private constructor();
|
|
19279
19486
|
}
|
|
19280
19487
|
|
|
19281
19488
|
/**
|
|
19282
19489
|
* @beta
|
|
19283
19490
|
*/
|
|
19491
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
19284
19492
|
export class PositionOutOfWorldBoundariesError extends Error {
|
|
19285
|
-
|
|
19493
|
+
private constructor();
|
|
19286
19494
|
}
|
|
19287
19495
|
|
|
19288
19496
|
/**
|