@minecraft/server 1.3.0-beta.1.20.0-preview.21 → 1.3.0-beta.1.20.0-preview.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +592 -415
- 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.3.0-internal.1.20.0-preview.
|
|
19
|
+
* "version": "1.3.0-internal.1.20.0-preview.22"
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -29,6 +29,7 @@ export enum BlockVolumeIntersection {
|
|
|
29
29
|
Contains = 1,
|
|
30
30
|
Intersects = 2,
|
|
31
31
|
}
|
|
32
|
+
|
|
32
33
|
/**
|
|
33
34
|
* @beta
|
|
34
35
|
*/
|
|
@@ -36,6 +37,7 @@ export enum CompoundBlockVolumeAction {
|
|
|
36
37
|
Add = 0,
|
|
37
38
|
Subtract = 1,
|
|
38
39
|
}
|
|
40
|
+
|
|
39
41
|
/**
|
|
40
42
|
* @beta
|
|
41
43
|
* Represents a direction for expressing relative position or
|
|
@@ -91,6 +93,7 @@ export enum Direction {
|
|
|
91
93
|
*/
|
|
92
94
|
west = 'west',
|
|
93
95
|
}
|
|
96
|
+
|
|
94
97
|
/**
|
|
95
98
|
* @beta
|
|
96
99
|
* An enumeration for the locations where scoreboard objectives
|
|
@@ -121,6 +124,7 @@ export enum DisplaySlotId {
|
|
|
121
124
|
*/
|
|
122
125
|
sidebar = 'sidebar',
|
|
123
126
|
}
|
|
127
|
+
|
|
124
128
|
/**
|
|
125
129
|
* @beta
|
|
126
130
|
* All the dye types supported by scripting
|
|
@@ -143,6 +147,7 @@ export enum DyeColor {
|
|
|
143
147
|
white = 'white',
|
|
144
148
|
yellow = 'yellow',
|
|
145
149
|
}
|
|
150
|
+
|
|
146
151
|
/**
|
|
147
152
|
* @beta
|
|
148
153
|
*/
|
|
@@ -179,6 +184,7 @@ export enum EntityDamageCause {
|
|
|
179
184
|
'void' = 'void',
|
|
180
185
|
wither = 'wither',
|
|
181
186
|
}
|
|
187
|
+
|
|
182
188
|
/**
|
|
183
189
|
* @beta
|
|
184
190
|
*/
|
|
@@ -186,6 +192,7 @@ export enum EntityLifetimeState {
|
|
|
186
192
|
loaded = 'loaded',
|
|
187
193
|
unloaded = 'unloaded',
|
|
188
194
|
}
|
|
195
|
+
|
|
189
196
|
/**
|
|
190
197
|
* @beta
|
|
191
198
|
*/
|
|
@@ -197,6 +204,7 @@ export enum EquipmentSlot {
|
|
|
197
204
|
mainhand = 'mainhand',
|
|
198
205
|
offhand = 'offhand',
|
|
199
206
|
}
|
|
207
|
+
|
|
200
208
|
/**
|
|
201
209
|
* @beta
|
|
202
210
|
* Represents the type of fluid for use within a fluid
|
|
@@ -232,6 +240,7 @@ export enum FluidType {
|
|
|
232
240
|
*/
|
|
233
241
|
water = 'water',
|
|
234
242
|
}
|
|
243
|
+
|
|
235
244
|
/**
|
|
236
245
|
* @beta
|
|
237
246
|
* Represents a game mode for the current world experience.
|
|
@@ -271,6 +280,7 @@ export enum GameMode {
|
|
|
271
280
|
*/
|
|
272
281
|
survival = 'survival',
|
|
273
282
|
}
|
|
283
|
+
|
|
274
284
|
/**
|
|
275
285
|
* @beta
|
|
276
286
|
*/
|
|
@@ -279,6 +289,7 @@ export enum ItemLockMode {
|
|
|
279
289
|
none = 'none',
|
|
280
290
|
slot = 'slot',
|
|
281
291
|
}
|
|
292
|
+
|
|
282
293
|
/**
|
|
283
294
|
* @beta
|
|
284
295
|
*/
|
|
@@ -290,6 +301,7 @@ export enum MessageSourceType {
|
|
|
290
301
|
serverCommand = 'serverCommand',
|
|
291
302
|
serverScript = 'serverScript',
|
|
292
303
|
}
|
|
304
|
+
|
|
293
305
|
/**
|
|
294
306
|
* @beta
|
|
295
307
|
* Used for specifying a sort order for how to display an
|
|
@@ -313,6 +325,7 @@ export enum ObjectiveSortOrder {
|
|
|
313
325
|
*/
|
|
314
326
|
descending = 1,
|
|
315
327
|
}
|
|
328
|
+
|
|
316
329
|
/**
|
|
317
330
|
* @beta
|
|
318
331
|
* Contains objectives and participants for the scoreboard.
|
|
@@ -342,6 +355,28 @@ export enum ScoreboardIdentityType {
|
|
|
342
355
|
*/
|
|
343
356
|
player = 'player',
|
|
344
357
|
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* @beta
|
|
361
|
+
* Represents a side of a sign.
|
|
362
|
+
*/
|
|
363
|
+
export enum SignSide {
|
|
364
|
+
/**
|
|
365
|
+
* @beta
|
|
366
|
+
* @remarks
|
|
367
|
+
* The back of the sign.
|
|
368
|
+
*
|
|
369
|
+
*/
|
|
370
|
+
back = 'back',
|
|
371
|
+
/**
|
|
372
|
+
* @beta
|
|
373
|
+
* @remarks
|
|
374
|
+
* The front of the sign.
|
|
375
|
+
*
|
|
376
|
+
*/
|
|
377
|
+
front = 'front',
|
|
378
|
+
}
|
|
379
|
+
|
|
345
380
|
/**
|
|
346
381
|
* @beta
|
|
347
382
|
*/
|
|
@@ -353,6 +388,7 @@ export enum TimeOfDay {
|
|
|
353
388
|
Midnight = 18000,
|
|
354
389
|
Sunrise = 23000,
|
|
355
390
|
}
|
|
391
|
+
|
|
356
392
|
/**
|
|
357
393
|
* @beta
|
|
358
394
|
* An enumeration with the reason that a watchdog is deciding
|
|
@@ -377,6 +413,53 @@ export enum WatchdogTerminateReason {
|
|
|
377
413
|
*/
|
|
378
414
|
stackOverflow = 'stackOverflow',
|
|
379
415
|
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @beta
|
|
419
|
+
*/
|
|
420
|
+
export enum WeatherType {
|
|
421
|
+
clear = 'clear',
|
|
422
|
+
rain = 'rain',
|
|
423
|
+
thunder = 'thunder',
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @beta
|
|
428
|
+
*/
|
|
429
|
+
export class AfterEvents {
|
|
430
|
+
protected constructor();
|
|
431
|
+
readonly blockBreak: BlockBreakAfterEventSignal;
|
|
432
|
+
readonly blockExplode: BlockExplodeAfterEventSignal;
|
|
433
|
+
readonly blockPlace: BlockPlaceAfterEventSignal;
|
|
434
|
+
readonly buttonPush: ButtonPushAfterEventSignal;
|
|
435
|
+
readonly chatSend: ChatSendAfterEventSignal;
|
|
436
|
+
readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerAfterEventSignal;
|
|
437
|
+
readonly effectAdd: EffectAddAfterEventSignal;
|
|
438
|
+
readonly entityDie: EntityDieAfterEventSignal;
|
|
439
|
+
readonly entityHit: EntityHitAfterEventSignal;
|
|
440
|
+
readonly entityHurt: EntityHurtAfterEventSignal;
|
|
441
|
+
readonly entitySpawn: EntitySpawnAfterEventSignal;
|
|
442
|
+
readonly explosion: ExplosionAfterEventSignal;
|
|
443
|
+
readonly itemCompleteCharge: ItemCompleteChargeAfterEventSignal;
|
|
444
|
+
readonly itemDefinitionEvent: ItemDefinitionAfterEventSignal;
|
|
445
|
+
readonly itemReleaseCharge: ItemReleaseChargeAfterEventSignal;
|
|
446
|
+
readonly itemStartCharge: ItemStartChargeAfterEventSignal;
|
|
447
|
+
readonly itemStartUseOn: ItemStartUseOnAfterEventSignal;
|
|
448
|
+
readonly itemStopCharge: ItemStopChargeAfterEventSignal;
|
|
449
|
+
readonly itemStopUseOn: ItemStopUseOnAfterEventSignal;
|
|
450
|
+
readonly itemUse: ItemUseAfterEventSignal;
|
|
451
|
+
readonly itemUseOn: ItemUseOnAfterEventSignal;
|
|
452
|
+
readonly leverActivate: LeverActionAfterEventSignal;
|
|
453
|
+
readonly messageReceive: ServerMessageAfterEventSignal;
|
|
454
|
+
readonly pistonActivate: PistonActivateAfterEventSignal;
|
|
455
|
+
readonly playerJoin: PlayerJoinAfterEventSignal;
|
|
456
|
+
readonly playerLeave: PlayerLeaveAfterEventSignal;
|
|
457
|
+
readonly playerSpawn: PlayerSpawnAfterEventSignal;
|
|
458
|
+
readonly projectileHit: ProjectileHitAfterEventSignal;
|
|
459
|
+
readonly weatherChange: WeatherChangeAfterEventSignal;
|
|
460
|
+
readonly worldInitialize: WorldInitializeAfterEventSignal;
|
|
461
|
+
}
|
|
462
|
+
|
|
380
463
|
/**
|
|
381
464
|
* @beta
|
|
382
465
|
*/
|
|
@@ -390,6 +473,7 @@ export class BeforeEvents {
|
|
|
390
473
|
readonly itemUseOn: ItemUseOnBeforeEventSignal;
|
|
391
474
|
readonly pistonActivate: PistonActivateBeforeEventSignal;
|
|
392
475
|
}
|
|
476
|
+
|
|
393
477
|
/**
|
|
394
478
|
* @beta
|
|
395
479
|
* Represents a block in a dimension. A block represents a
|
|
@@ -509,6 +593,7 @@ export class Block {
|
|
|
509
593
|
* @param withData
|
|
510
594
|
* Whether additional data facets of the item stack are
|
|
511
595
|
* included.
|
|
596
|
+
* @throws This function can throw errors.
|
|
512
597
|
*/
|
|
513
598
|
getItemStack(amount?: number, withData?: boolean): ItemStack;
|
|
514
599
|
/**
|
|
@@ -631,6 +716,7 @@ export class Block {
|
|
|
631
716
|
*/
|
|
632
717
|
trySetPermutation(permutation: BlockPermutation): boolean;
|
|
633
718
|
}
|
|
719
|
+
|
|
634
720
|
/**
|
|
635
721
|
* @beta
|
|
636
722
|
* Holds information for expressing the net size of a volume of
|
|
@@ -669,6 +755,7 @@ export class BlockAreaSize {
|
|
|
669
755
|
*/
|
|
670
756
|
equals(other: BlockAreaSize): boolean;
|
|
671
757
|
}
|
|
758
|
+
|
|
672
759
|
/**
|
|
673
760
|
* @beta
|
|
674
761
|
* Contains information regarding an event where a player
|
|
@@ -690,14 +777,16 @@ export class BlockBreakAfterEvent extends BlockEvent {
|
|
|
690
777
|
*/
|
|
691
778
|
readonly player: Player;
|
|
692
779
|
}
|
|
780
|
+
|
|
693
781
|
/**
|
|
694
782
|
* @beta
|
|
695
783
|
* Manages callbacks that are connected to when a block is
|
|
696
784
|
* broken.
|
|
697
785
|
*/
|
|
698
|
-
export class
|
|
786
|
+
export class BlockBreakAfterEventSignal extends IBlockBreakAfterEventSignal {
|
|
699
787
|
protected constructor();
|
|
700
788
|
}
|
|
789
|
+
|
|
701
790
|
/**
|
|
702
791
|
* @beta
|
|
703
792
|
* Base type for components associated with blocks.
|
|
@@ -711,6 +800,7 @@ export class BlockComponent extends Component {
|
|
|
711
800
|
*/
|
|
712
801
|
readonly block: Block;
|
|
713
802
|
}
|
|
803
|
+
|
|
714
804
|
/**
|
|
715
805
|
* @beta
|
|
716
806
|
* Contains information regarding an event that impacts a
|
|
@@ -732,6 +822,7 @@ export class BlockEvent {
|
|
|
732
822
|
*/
|
|
733
823
|
readonly dimension: Dimension;
|
|
734
824
|
}
|
|
825
|
+
|
|
735
826
|
/**
|
|
736
827
|
* @beta
|
|
737
828
|
* Contains information regarding an explosion that has
|
|
@@ -745,16 +836,18 @@ export class BlockExplodeAfterEvent extends BlockEvent {
|
|
|
745
836
|
* Optional source of the explosion.
|
|
746
837
|
*
|
|
747
838
|
*/
|
|
748
|
-
readonly source
|
|
839
|
+
readonly source?: Entity;
|
|
749
840
|
}
|
|
841
|
+
|
|
750
842
|
/**
|
|
751
843
|
* @beta
|
|
752
844
|
* Manages callbacks that are connected to when an explosion
|
|
753
845
|
* occurs, as it impacts individual blocks.
|
|
754
846
|
*/
|
|
755
|
-
export class
|
|
847
|
+
export class BlockExplodeAfterEventSignal extends IBlockExplodeAfterEventSignal {
|
|
756
848
|
protected constructor();
|
|
757
849
|
}
|
|
850
|
+
|
|
758
851
|
/**
|
|
759
852
|
* @beta
|
|
760
853
|
* Represents the inventory of a block in the world. Used with
|
|
@@ -770,6 +863,7 @@ export class BlockInventoryComponent extends BlockComponent {
|
|
|
770
863
|
*/
|
|
771
864
|
readonly container: Container;
|
|
772
865
|
/**
|
|
866
|
+
* @beta
|
|
773
867
|
* @remarks
|
|
774
868
|
* Identifier of this component. Should always be
|
|
775
869
|
* minecraft:inventory.
|
|
@@ -777,6 +871,7 @@ export class BlockInventoryComponent extends BlockComponent {
|
|
|
777
871
|
*/
|
|
778
872
|
static readonly componentId = 'minecraft:inventory';
|
|
779
873
|
}
|
|
874
|
+
|
|
780
875
|
/**
|
|
781
876
|
* @beta
|
|
782
877
|
* Represents a fluid container block that currently contains
|
|
@@ -792,6 +887,7 @@ export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
|
|
|
792
887
|
*/
|
|
793
888
|
static readonly componentId = 'minecraft:lavaContainer';
|
|
794
889
|
}
|
|
890
|
+
|
|
795
891
|
/**
|
|
796
892
|
* @beta
|
|
797
893
|
*/
|
|
@@ -804,6 +900,7 @@ export class BlockLiquidContainerComponent extends BlockComponent {
|
|
|
804
900
|
*/
|
|
805
901
|
fillLevel: number;
|
|
806
902
|
}
|
|
903
|
+
|
|
807
904
|
/**
|
|
808
905
|
* @beta
|
|
809
906
|
*/
|
|
@@ -822,6 +919,7 @@ export class BlockLocationIterator implements Iterable<Vector3> {
|
|
|
822
919
|
*/
|
|
823
920
|
next(): IteratorResult<Vector3>;
|
|
824
921
|
}
|
|
922
|
+
|
|
825
923
|
/**
|
|
826
924
|
* @beta
|
|
827
925
|
* Contains the combination of type {@link BlockType} and
|
|
@@ -938,6 +1036,7 @@ export class BlockPermutation {
|
|
|
938
1036
|
*/
|
|
939
1037
|
static resolve(blockName: string, states?: Record<string, boolean | number | string>): BlockPermutation;
|
|
940
1038
|
}
|
|
1039
|
+
|
|
941
1040
|
/**
|
|
942
1041
|
* @beta
|
|
943
1042
|
* When present, this block has piston-like behavior. Contains
|
|
@@ -996,6 +1095,7 @@ export class BlockPistonComponent extends BlockComponent {
|
|
|
996
1095
|
*/
|
|
997
1096
|
getAttachedBlocks(): Vector3[];
|
|
998
1097
|
}
|
|
1098
|
+
|
|
999
1099
|
/**
|
|
1000
1100
|
* @beta
|
|
1001
1101
|
* Contains information regarding an event where a player
|
|
@@ -1010,14 +1110,16 @@ export class BlockPlaceAfterEvent extends BlockEvent {
|
|
|
1010
1110
|
*/
|
|
1011
1111
|
readonly player: Player;
|
|
1012
1112
|
}
|
|
1113
|
+
|
|
1013
1114
|
/**
|
|
1014
1115
|
* @beta
|
|
1015
1116
|
* Manages callbacks that are connected to when a block is
|
|
1016
1117
|
* placed.
|
|
1017
1118
|
*/
|
|
1018
|
-
export class
|
|
1119
|
+
export class BlockPlaceAfterEventSignal extends IBlockPlaceAfterEventSignal {
|
|
1019
1120
|
protected constructor();
|
|
1020
1121
|
}
|
|
1122
|
+
|
|
1021
1123
|
/**
|
|
1022
1124
|
* @beta
|
|
1023
1125
|
* Represents a fluid container block that currently contains a
|
|
@@ -1042,13 +1144,7 @@ export class BlockPotionContainerComponent extends BlockLiquidContainerComponent
|
|
|
1042
1144
|
*/
|
|
1043
1145
|
setPotionType(itemStack: ItemStack): void;
|
|
1044
1146
|
}
|
|
1045
|
-
|
|
1046
|
-
* @beta
|
|
1047
|
-
*/
|
|
1048
|
-
export class BlockProperty {
|
|
1049
|
-
protected constructor();
|
|
1050
|
-
readonly name: string;
|
|
1051
|
-
}
|
|
1147
|
+
|
|
1052
1148
|
/**
|
|
1053
1149
|
* @beta
|
|
1054
1150
|
* Represents a block that can play a record.
|
|
@@ -1090,12 +1186,22 @@ export class BlockRecordPlayerComponent extends BlockComponent {
|
|
|
1090
1186
|
*/
|
|
1091
1187
|
setRecord(recordItemType: ItemType): void;
|
|
1092
1188
|
}
|
|
1189
|
+
|
|
1093
1190
|
/**
|
|
1094
1191
|
* @beta
|
|
1095
1192
|
* Represents a block that can display text on it.
|
|
1096
1193
|
*/
|
|
1097
1194
|
export class BlockSignComponent extends BlockComponent {
|
|
1098
1195
|
protected constructor();
|
|
1196
|
+
/**
|
|
1197
|
+
* @remarks
|
|
1198
|
+
* Whether or not players can edit the sign. This happens if a
|
|
1199
|
+
* sign has had a honeycomb used on it or `setWaxed` was called
|
|
1200
|
+
* on the sign.
|
|
1201
|
+
*
|
|
1202
|
+
* @throws This property can throw when used.
|
|
1203
|
+
*/
|
|
1204
|
+
readonly isWaxed: boolean;
|
|
1099
1205
|
/**
|
|
1100
1206
|
* @remarks
|
|
1101
1207
|
* Identifier of this component. Should always be
|
|
@@ -1109,25 +1215,36 @@ export class BlockSignComponent extends BlockComponent {
|
|
|
1109
1215
|
* a RawMessage or a RawText object, otherwise returns
|
|
1110
1216
|
* undefined.
|
|
1111
1217
|
*
|
|
1218
|
+
* @param side
|
|
1219
|
+
* The side of the sign to read the message from. If not
|
|
1220
|
+
* provided, this will return the message from the front side
|
|
1221
|
+
* of the sign.
|
|
1112
1222
|
* @throws This function can throw errors.
|
|
1113
1223
|
*/
|
|
1114
|
-
getRawText(): RawText | undefined;
|
|
1224
|
+
getRawText(side?: SignSide): RawText | undefined;
|
|
1115
1225
|
/**
|
|
1116
1226
|
* @remarks
|
|
1117
1227
|
* Returns the text of the sign if `setText` was called with a
|
|
1118
1228
|
* string, otherwise returns undefined.
|
|
1119
1229
|
*
|
|
1230
|
+
* @param side
|
|
1231
|
+
* The side of the sign to read the message from. If not
|
|
1232
|
+
* provided, this will return the message from the front side
|
|
1233
|
+
* of the sign.
|
|
1120
1234
|
* @throws This function can throw errors.
|
|
1121
1235
|
*/
|
|
1122
|
-
getText(): string | undefined;
|
|
1236
|
+
getText(side?: SignSide): string | undefined;
|
|
1123
1237
|
/**
|
|
1124
1238
|
* @remarks
|
|
1125
1239
|
* Gets the dye that is on the text or undefined if the sign
|
|
1126
1240
|
* has not been dyed.
|
|
1127
1241
|
*
|
|
1242
|
+
* @param side
|
|
1243
|
+
* The side of the sign to read the dye from. If not provided,
|
|
1244
|
+
* this will return the dye on the front side of the sign.
|
|
1128
1245
|
* @throws This function can throw errors.
|
|
1129
1246
|
*/
|
|
1130
|
-
getTextDyeColor(): DyeColor | undefined;
|
|
1247
|
+
getTextDyeColor(side?: SignSide): DyeColor | undefined;
|
|
1131
1248
|
/**
|
|
1132
1249
|
* @remarks
|
|
1133
1250
|
* Sets the text of the sign component.
|
|
@@ -1140,6 +1257,10 @@ export class BlockSignComponent extends BlockComponent {
|
|
|
1140
1257
|
* then calling `getRawText` will return a RawText. If set to a
|
|
1141
1258
|
* RawText, then calling `getRawText` will return the same
|
|
1142
1259
|
* object that was passed in.
|
|
1260
|
+
* @param side
|
|
1261
|
+
* The side of the sign the message will be set on. If not
|
|
1262
|
+
* provided, the message will be set on the front side of the
|
|
1263
|
+
* sign.
|
|
1143
1264
|
* @throws This function can throw errors.
|
|
1144
1265
|
* @example SetRawMessage.ts
|
|
1145
1266
|
* ```typescript
|
|
@@ -1166,7 +1287,7 @@ export class BlockSignComponent extends BlockComponent {
|
|
|
1166
1287
|
* sign.getText(); // 'Hello'
|
|
1167
1288
|
* ```
|
|
1168
1289
|
*/
|
|
1169
|
-
setText(message: RawMessage | RawText | string): void;
|
|
1290
|
+
setText(message: RawMessage | RawText | string, side?: SignSide): void;
|
|
1170
1291
|
/**
|
|
1171
1292
|
* @remarks
|
|
1172
1293
|
* Sets the dye color of the text.
|
|
@@ -1176,10 +1297,24 @@ export class BlockSignComponent extends BlockComponent {
|
|
|
1176
1297
|
* @param color
|
|
1177
1298
|
* The dye color to apply to the sign or undefined to clear the
|
|
1178
1299
|
* dye on the sign.
|
|
1300
|
+
* @param side
|
|
1301
|
+
* The side of the sign the color will be set on. If not
|
|
1302
|
+
* provided, the color will be set on the front side of the
|
|
1303
|
+
* sign.
|
|
1304
|
+
* @throws This function can throw errors.
|
|
1305
|
+
*/
|
|
1306
|
+
setTextDyeColor(color?: DyeColor, side?: SignSide): void;
|
|
1307
|
+
/**
|
|
1308
|
+
* @remarks
|
|
1309
|
+
* Makes it so players cannot edit this sign.
|
|
1310
|
+
*
|
|
1311
|
+
* This function can't be called in read-only mode.
|
|
1312
|
+
*
|
|
1179
1313
|
* @throws This function can throw errors.
|
|
1180
1314
|
*/
|
|
1181
|
-
|
|
1315
|
+
setWaxed(): void;
|
|
1182
1316
|
}
|
|
1317
|
+
|
|
1183
1318
|
/**
|
|
1184
1319
|
* @beta
|
|
1185
1320
|
* Represents a fluid container block that currently contains
|
|
@@ -1195,6 +1330,7 @@ export class BlockSnowContainerComponent extends BlockLiquidContainerComponent {
|
|
|
1195
1330
|
*/
|
|
1196
1331
|
static readonly componentId = 'minecraft:snowContainer';
|
|
1197
1332
|
}
|
|
1333
|
+
|
|
1198
1334
|
/**
|
|
1199
1335
|
* @beta
|
|
1200
1336
|
* Enumerates all {@link BlockStateType}s.
|
|
@@ -1214,6 +1350,7 @@ export class BlockStates {
|
|
|
1214
1350
|
*/
|
|
1215
1351
|
static getAll(): BlockStateType[];
|
|
1216
1352
|
}
|
|
1353
|
+
|
|
1217
1354
|
/**
|
|
1218
1355
|
* @beta
|
|
1219
1356
|
* Represents a configurable state value of a block instance.
|
|
@@ -1235,6 +1372,7 @@ export class BlockStateType {
|
|
|
1235
1372
|
*/
|
|
1236
1373
|
readonly validValues: (boolean | number | string)[];
|
|
1237
1374
|
}
|
|
1375
|
+
|
|
1238
1376
|
/**
|
|
1239
1377
|
* @beta
|
|
1240
1378
|
* The type (or template) of a block. Does not contain
|
|
@@ -1257,6 +1395,7 @@ export class BlockType {
|
|
|
1257
1395
|
*/
|
|
1258
1396
|
readonly id: string;
|
|
1259
1397
|
}
|
|
1398
|
+
|
|
1260
1399
|
/**
|
|
1261
1400
|
* @beta
|
|
1262
1401
|
*/
|
|
@@ -1335,6 +1474,7 @@ export class BlockVolumeUtils {
|
|
|
1335
1474
|
*/
|
|
1336
1475
|
static translate(volume: BlockVolume, delta: Vector3): BlockVolume;
|
|
1337
1476
|
}
|
|
1477
|
+
|
|
1338
1478
|
/**
|
|
1339
1479
|
* @beta
|
|
1340
1480
|
* Represents a fluid container block that currently contains
|
|
@@ -1377,6 +1517,7 @@ export class BlockWaterContainerComponent extends BlockLiquidContainerComponent
|
|
|
1377
1517
|
*/
|
|
1378
1518
|
setCustomColor(color: Color): void;
|
|
1379
1519
|
}
|
|
1520
|
+
|
|
1380
1521
|
/**
|
|
1381
1522
|
* @beta
|
|
1382
1523
|
*/
|
|
@@ -1450,6 +1591,7 @@ export class BoundingBoxUtils {
|
|
|
1450
1591
|
*/
|
|
1451
1592
|
static translate(box: BoundingBox, delta: Vector3): BoundingBox;
|
|
1452
1593
|
}
|
|
1594
|
+
|
|
1453
1595
|
/**
|
|
1454
1596
|
* @beta
|
|
1455
1597
|
* Contains information related to changes to a button push.
|
|
@@ -1463,14 +1605,16 @@ export class ButtonPushAfterEvent extends BlockEvent {
|
|
|
1463
1605
|
*/
|
|
1464
1606
|
readonly source: Entity;
|
|
1465
1607
|
}
|
|
1608
|
+
|
|
1466
1609
|
/**
|
|
1467
1610
|
* @beta
|
|
1468
1611
|
* Manages callbacks that are connected to when a button is
|
|
1469
1612
|
* pushed.
|
|
1470
1613
|
*/
|
|
1471
|
-
export class
|
|
1614
|
+
export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal {
|
|
1472
1615
|
protected constructor();
|
|
1473
1616
|
}
|
|
1617
|
+
|
|
1474
1618
|
/**
|
|
1475
1619
|
* @beta
|
|
1476
1620
|
* An event that fires as players enter chat messages.
|
|
@@ -1500,14 +1644,16 @@ export class ChatSendAfterEvent {
|
|
|
1500
1644
|
sendToTargets: boolean;
|
|
1501
1645
|
getTargets(): Player[];
|
|
1502
1646
|
}
|
|
1647
|
+
|
|
1503
1648
|
/**
|
|
1504
1649
|
* @beta
|
|
1505
1650
|
* Manages callbacks that are connected to chat messages being
|
|
1506
1651
|
* sent.
|
|
1507
1652
|
*/
|
|
1508
|
-
export class
|
|
1653
|
+
export class ChatSendAfterEventSignal extends IChatSendAfterEventSignal {
|
|
1509
1654
|
protected constructor();
|
|
1510
1655
|
}
|
|
1656
|
+
|
|
1511
1657
|
/**
|
|
1512
1658
|
* @beta
|
|
1513
1659
|
* An event that fires as players enter chat messages.
|
|
@@ -1523,6 +1669,7 @@ export class ChatSendBeforeEvent extends ChatSendAfterEvent {
|
|
|
1523
1669
|
cancel: boolean;
|
|
1524
1670
|
setTargets(players: Player[]): void;
|
|
1525
1671
|
}
|
|
1672
|
+
|
|
1526
1673
|
/**
|
|
1527
1674
|
* @beta
|
|
1528
1675
|
* Manages callbacks that are connected to an event that fires
|
|
@@ -1531,6 +1678,7 @@ export class ChatSendBeforeEvent extends ChatSendAfterEvent {
|
|
|
1531
1678
|
export class ChatSendBeforeEventSignal extends IChatSendBeforeEventSignal {
|
|
1532
1679
|
protected constructor();
|
|
1533
1680
|
}
|
|
1681
|
+
|
|
1534
1682
|
/**
|
|
1535
1683
|
* Contains return data on the result of a command execution.
|
|
1536
1684
|
*/
|
|
@@ -1545,6 +1693,7 @@ export class CommandResult {
|
|
|
1545
1693
|
*/
|
|
1546
1694
|
readonly successCount: number;
|
|
1547
1695
|
}
|
|
1696
|
+
|
|
1548
1697
|
/**
|
|
1549
1698
|
* @beta
|
|
1550
1699
|
*/
|
|
@@ -1552,6 +1701,7 @@ export class Component {
|
|
|
1552
1701
|
protected constructor();
|
|
1553
1702
|
readonly typeId: string;
|
|
1554
1703
|
}
|
|
1704
|
+
|
|
1555
1705
|
/**
|
|
1556
1706
|
* @beta
|
|
1557
1707
|
*/
|
|
@@ -1625,6 +1775,7 @@ export class CompoundBlockVolume {
|
|
|
1625
1775
|
*/
|
|
1626
1776
|
translate(delta: Vector3): void;
|
|
1627
1777
|
}
|
|
1778
|
+
|
|
1628
1779
|
/**
|
|
1629
1780
|
* @beta
|
|
1630
1781
|
* Represents a container that can hold sets of items. Used
|
|
@@ -1699,6 +1850,7 @@ export class Container {
|
|
|
1699
1850
|
*/
|
|
1700
1851
|
getItem(slot: number): ItemStack | undefined;
|
|
1701
1852
|
/**
|
|
1853
|
+
* @beta
|
|
1702
1854
|
* @remarks
|
|
1703
1855
|
* Returns a container slot. This acts as a reference to a slot
|
|
1704
1856
|
* at the given index for this container.
|
|
@@ -1808,6 +1960,7 @@ export class Container {
|
|
|
1808
1960
|
*/
|
|
1809
1961
|
transferItem(fromSlot: number, toContainer: Container): ItemStack;
|
|
1810
1962
|
}
|
|
1963
|
+
|
|
1811
1964
|
/**
|
|
1812
1965
|
* @beta
|
|
1813
1966
|
* Represents a slot within a broader container (e.g., entity
|
|
@@ -1984,6 +2137,7 @@ export class ContainerSlot {
|
|
|
1984
2137
|
*/
|
|
1985
2138
|
setLore(loreList?: string[]): void;
|
|
1986
2139
|
}
|
|
2140
|
+
|
|
1987
2141
|
/**
|
|
1988
2142
|
* @beta
|
|
1989
2143
|
* Contains information related to firing of a data driven
|
|
@@ -2011,15 +2165,17 @@ export class DataDrivenEntityTriggerAfterEvent {
|
|
|
2011
2165
|
*/
|
|
2012
2166
|
getModifiers(): DefinitionModifier[];
|
|
2013
2167
|
}
|
|
2168
|
+
|
|
2014
2169
|
/**
|
|
2015
2170
|
* @beta
|
|
2016
2171
|
* Contains event registration related to firing of a data
|
|
2017
2172
|
* driven entity event - for example, the
|
|
2018
2173
|
* minecraft:ageable_grow_up event on a chicken.
|
|
2019
2174
|
*/
|
|
2020
|
-
export class
|
|
2175
|
+
export class DataDrivenEntityTriggerAfterEventSignal extends IDataDrivenEntityTriggerAfterEventSignal {
|
|
2021
2176
|
protected constructor();
|
|
2022
2177
|
}
|
|
2178
|
+
|
|
2023
2179
|
/**
|
|
2024
2180
|
* @beta
|
|
2025
2181
|
* Contains information related to firing of a data driven
|
|
@@ -2049,6 +2205,7 @@ export class DataDrivenEntityTriggerBeforeEvent {
|
|
|
2049
2205
|
getModifiers(): DefinitionModifier[];
|
|
2050
2206
|
setModifiers(modifiers: DefinitionModifier[]): void;
|
|
2051
2207
|
}
|
|
2208
|
+
|
|
2052
2209
|
/**
|
|
2053
2210
|
* @beta
|
|
2054
2211
|
* Contains information related to firing of a data driven
|
|
@@ -2058,6 +2215,7 @@ export class DataDrivenEntityTriggerBeforeEvent {
|
|
|
2058
2215
|
export class DataDrivenEntityTriggerBeforeEventSignal extends IDataDrivenEntityTriggerBeforeEventSignal {
|
|
2059
2216
|
protected constructor();
|
|
2060
2217
|
}
|
|
2218
|
+
|
|
2061
2219
|
/**
|
|
2062
2220
|
* @beta
|
|
2063
2221
|
* Contains a set of updates to the component definition state
|
|
@@ -2107,6 +2265,7 @@ export class DefinitionModifier {
|
|
|
2107
2265
|
*/
|
|
2108
2266
|
setTriggers(newTriggers: Trigger[]): void;
|
|
2109
2267
|
}
|
|
2268
|
+
|
|
2110
2269
|
/**
|
|
2111
2270
|
* A class that represents a particular dimension (e.g., The
|
|
2112
2271
|
* End) within a world.
|
|
@@ -2210,7 +2369,7 @@ export class Dimension {
|
|
|
2210
2369
|
* Block at the specified location.
|
|
2211
2370
|
* @throws This function can throw errors.
|
|
2212
2371
|
*/
|
|
2213
|
-
getBlock(location: Vector3): Block;
|
|
2372
|
+
getBlock(location: Vector3): Block | undefined;
|
|
2214
2373
|
/**
|
|
2215
2374
|
* @beta
|
|
2216
2375
|
* @remarks
|
|
@@ -2315,6 +2474,13 @@ export class Dimension {
|
|
|
2315
2474
|
* @throws This function can throw errors.
|
|
2316
2475
|
*/
|
|
2317
2476
|
runCommandAsync(commandString: string): Promise<CommandResult>;
|
|
2477
|
+
/**
|
|
2478
|
+
* @beta
|
|
2479
|
+
* @remarks
|
|
2480
|
+
* This function can't be called in read-only mode.
|
|
2481
|
+
*
|
|
2482
|
+
*/
|
|
2483
|
+
setWeather(weatherType: WeatherType): void;
|
|
2318
2484
|
/**
|
|
2319
2485
|
* @beta
|
|
2320
2486
|
* @remarks
|
|
@@ -2425,32 +2591,11 @@ export class Dimension {
|
|
|
2425
2591
|
* adjusted for this particle emitter.
|
|
2426
2592
|
* @returns
|
|
2427
2593
|
* Newly created entity at the specified location.
|
|
2594
|
+
* @throws This function can throw errors.
|
|
2428
2595
|
*/
|
|
2429
2596
|
spawnParticle(effectName: string, location: Vector3, molangVariables: MolangVariableMap): void;
|
|
2430
2597
|
}
|
|
2431
|
-
|
|
2432
|
-
* @beta
|
|
2433
|
-
* For block properties that take a direction, provides a
|
|
2434
|
-
* structured way to specify the direction of a block property.
|
|
2435
|
-
*/
|
|
2436
|
-
export class DirectionBlockProperty extends BlockProperty {
|
|
2437
|
-
protected constructor();
|
|
2438
|
-
/**
|
|
2439
|
-
* @remarks
|
|
2440
|
-
* Value of the block property.
|
|
2441
|
-
*
|
|
2442
|
-
* This property can't be edited in read-only mode.
|
|
2443
|
-
*
|
|
2444
|
-
*/
|
|
2445
|
-
value: Direction;
|
|
2446
|
-
/**
|
|
2447
|
-
* @remarks
|
|
2448
|
-
* Returns a set of acceptable potential values for the
|
|
2449
|
-
* direction-based block property.
|
|
2450
|
-
*
|
|
2451
|
-
*/
|
|
2452
|
-
getValidValues(): Direction[];
|
|
2453
|
-
}
|
|
2598
|
+
|
|
2454
2599
|
/**
|
|
2455
2600
|
* @beta
|
|
2456
2601
|
* Class used in conjunction with {@link PropertyRegistry} to
|
|
@@ -2464,22 +2609,23 @@ export class DynamicPropertiesDefinition {
|
|
|
2464
2609
|
*
|
|
2465
2610
|
* @throws This function can throw errors.
|
|
2466
2611
|
*/
|
|
2467
|
-
defineBoolean(identifier: string):
|
|
2612
|
+
defineBoolean(identifier: string): DynamicPropertiesDefinition;
|
|
2468
2613
|
/**
|
|
2469
2614
|
* @remarks
|
|
2470
2615
|
* Defines a number dynamic property.
|
|
2471
2616
|
*
|
|
2472
2617
|
* @throws This function can throw errors.
|
|
2473
2618
|
*/
|
|
2474
|
-
defineNumber(identifier: string):
|
|
2619
|
+
defineNumber(identifier: string): DynamicPropertiesDefinition;
|
|
2475
2620
|
/**
|
|
2476
2621
|
* @remarks
|
|
2477
2622
|
* Defines a string dynamic property.
|
|
2478
2623
|
*
|
|
2479
2624
|
* @throws This function can throw errors.
|
|
2480
2625
|
*/
|
|
2481
|
-
defineString(identifier: string, maxLength: number):
|
|
2626
|
+
defineString(identifier: string, maxLength: number): DynamicPropertiesDefinition;
|
|
2482
2627
|
}
|
|
2628
|
+
|
|
2483
2629
|
/**
|
|
2484
2630
|
* @beta
|
|
2485
2631
|
* Represents an effect - like poison - that has been added to
|
|
@@ -2512,6 +2658,7 @@ export class Effect {
|
|
|
2512
2658
|
*/
|
|
2513
2659
|
readonly duration: number;
|
|
2514
2660
|
}
|
|
2661
|
+
|
|
2515
2662
|
/**
|
|
2516
2663
|
* @beta
|
|
2517
2664
|
* Contains information related to changes to an effect - like
|
|
@@ -2544,14 +2691,16 @@ export class EffectAddAfterEvent {
|
|
|
2544
2691
|
*/
|
|
2545
2692
|
entity: Entity;
|
|
2546
2693
|
}
|
|
2694
|
+
|
|
2547
2695
|
/**
|
|
2548
2696
|
* @beta
|
|
2549
2697
|
* Manages callbacks that are connected to when an effect is
|
|
2550
2698
|
* added to an entity.
|
|
2551
2699
|
*/
|
|
2552
|
-
export class
|
|
2700
|
+
export class EffectAddAfterEventSignal extends IEffectAddAfterEventSignal {
|
|
2553
2701
|
protected constructor();
|
|
2554
2702
|
}
|
|
2703
|
+
|
|
2555
2704
|
/**
|
|
2556
2705
|
* @beta
|
|
2557
2706
|
* Represents a type of effect - like poison - that can be
|
|
@@ -2568,6 +2717,7 @@ export class EffectType {
|
|
|
2568
2717
|
*/
|
|
2569
2718
|
getName(): string;
|
|
2570
2719
|
}
|
|
2720
|
+
|
|
2571
2721
|
/**
|
|
2572
2722
|
* @beta
|
|
2573
2723
|
* This class represents a specific leveled enchantment that is
|
|
@@ -2596,9 +2746,11 @@ export class Enchantment {
|
|
|
2596
2746
|
* Type of the enchantment.
|
|
2597
2747
|
* @param level
|
|
2598
2748
|
* Level of the enchantment.
|
|
2749
|
+
* @throws This function can throw errors.
|
|
2599
2750
|
*/
|
|
2600
|
-
constructor(enchantmentType: EnchantmentType, level?: number);
|
|
2751
|
+
constructor(enchantmentType: EnchantmentType | string, level?: number);
|
|
2601
2752
|
}
|
|
2753
|
+
|
|
2602
2754
|
/**
|
|
2603
2755
|
* @beta
|
|
2604
2756
|
* This class represents a collection of enchantments that can
|
|
@@ -2647,16 +2799,18 @@ export class EnchantmentList implements Iterable<Enchantment> {
|
|
|
2647
2799
|
*
|
|
2648
2800
|
* This function can't be called in read-only mode.
|
|
2649
2801
|
*
|
|
2802
|
+
* @throws This function can throw errors.
|
|
2650
2803
|
*/
|
|
2651
|
-
getEnchantment(enchantmentType: EnchantmentType): Enchantment;
|
|
2804
|
+
getEnchantment(enchantmentType: EnchantmentType | string): Enchantment | undefined;
|
|
2652
2805
|
/**
|
|
2653
2806
|
* @remarks
|
|
2654
2807
|
* If this collection has an EnchantmentInstance with type,
|
|
2655
2808
|
* returns the level of the enchantment. Returns 0 if not
|
|
2656
2809
|
* present.
|
|
2657
2810
|
*
|
|
2811
|
+
* @throws This function can throw errors.
|
|
2658
2812
|
*/
|
|
2659
|
-
hasEnchantment(enchantmentType: EnchantmentType): number;
|
|
2813
|
+
hasEnchantment(enchantmentType: EnchantmentType | string): number;
|
|
2660
2814
|
/**
|
|
2661
2815
|
* @remarks
|
|
2662
2816
|
* This function can't be called in read-only mode.
|
|
@@ -2670,9 +2824,11 @@ export class EnchantmentList implements Iterable<Enchantment> {
|
|
|
2670
2824
|
*
|
|
2671
2825
|
* This function can't be called in read-only mode.
|
|
2672
2826
|
*
|
|
2827
|
+
* @throws This function can throw errors.
|
|
2673
2828
|
*/
|
|
2674
|
-
removeEnchantment(enchantmentType: EnchantmentType): void;
|
|
2829
|
+
removeEnchantment(enchantmentType: EnchantmentType | string): void;
|
|
2675
2830
|
}
|
|
2831
|
+
|
|
2676
2832
|
/**
|
|
2677
2833
|
* @beta
|
|
2678
2834
|
* This enum represents the item slot or type that an
|
|
@@ -2705,6 +2861,7 @@ export class EnchantmentSlot {
|
|
|
2705
2861
|
static readonly spear = 32768;
|
|
2706
2862
|
static readonly sword = 16;
|
|
2707
2863
|
}
|
|
2864
|
+
|
|
2708
2865
|
/**
|
|
2709
2866
|
* @beta
|
|
2710
2867
|
* Contains information on a type of enchantment.
|
|
@@ -2724,6 +2881,15 @@ export class EnchantmentType {
|
|
|
2724
2881
|
*/
|
|
2725
2882
|
readonly maxLevel: number;
|
|
2726
2883
|
}
|
|
2884
|
+
|
|
2885
|
+
/**
|
|
2886
|
+
* @beta
|
|
2887
|
+
*/
|
|
2888
|
+
export class EnchantmentTypes {
|
|
2889
|
+
protected constructor();
|
|
2890
|
+
static get(enchantmentId: string): EnchantmentType;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2727
2893
|
/**
|
|
2728
2894
|
* Represents the state of an entity (a mob, the player, or
|
|
2729
2895
|
* other moving objects like minecarts) in the world.
|
|
@@ -3208,6 +3374,7 @@ export class Entity {
|
|
|
3208
3374
|
*/
|
|
3209
3375
|
tryTeleport(location: Vector3, teleportOptions?: TeleportOptions): boolean;
|
|
3210
3376
|
}
|
|
3377
|
+
|
|
3211
3378
|
/**
|
|
3212
3379
|
* @beta
|
|
3213
3380
|
* When added, this component makes the entity spawn with a
|
|
@@ -3239,6 +3406,7 @@ export class EntityAddRiderComponent extends EntityComponent {
|
|
|
3239
3406
|
*/
|
|
3240
3407
|
static readonly componentId = 'minecraft:addrider';
|
|
3241
3408
|
}
|
|
3409
|
+
|
|
3242
3410
|
/**
|
|
3243
3411
|
* @beta
|
|
3244
3412
|
* Adds a timer for the entity to grow up. It can be
|
|
@@ -3286,6 +3454,7 @@ export class EntityAgeableComponent extends EntityComponent {
|
|
|
3286
3454
|
*/
|
|
3287
3455
|
getFeedItems(): EntityDefinitionFeedItem[];
|
|
3288
3456
|
}
|
|
3457
|
+
|
|
3289
3458
|
/**
|
|
3290
3459
|
* @beta
|
|
3291
3460
|
*/
|
|
@@ -3322,6 +3491,7 @@ export class EntityAttributeComponent extends EntityComponent {
|
|
|
3322
3491
|
*/
|
|
3323
3492
|
setCurrent(value: number): boolean;
|
|
3324
3493
|
}
|
|
3494
|
+
|
|
3325
3495
|
/**
|
|
3326
3496
|
* @beta
|
|
3327
3497
|
* Base class for a family of entity movement events.
|
|
@@ -3330,6 +3500,7 @@ export class EntityBaseMovementComponent extends EntityComponent {
|
|
|
3330
3500
|
protected constructor();
|
|
3331
3501
|
readonly maxTurn: number;
|
|
3332
3502
|
}
|
|
3503
|
+
|
|
3333
3504
|
/**
|
|
3334
3505
|
* @beta
|
|
3335
3506
|
* Defines what blocks this entity can breathe in and gives
|
|
@@ -3426,6 +3597,7 @@ export class EntityBreathableComponent extends EntityComponent {
|
|
|
3426
3597
|
*/
|
|
3427
3598
|
setAirSupply(value: number): void;
|
|
3428
3599
|
}
|
|
3600
|
+
|
|
3429
3601
|
/**
|
|
3430
3602
|
* @beta
|
|
3431
3603
|
* When added, this component signifies that the entity can
|
|
@@ -3441,6 +3613,7 @@ export class EntityCanClimbComponent extends EntityComponent {
|
|
|
3441
3613
|
*/
|
|
3442
3614
|
static readonly componentId = 'minecraft:can_climb';
|
|
3443
3615
|
}
|
|
3616
|
+
|
|
3444
3617
|
/**
|
|
3445
3618
|
* @beta
|
|
3446
3619
|
* When added, this component signifies that the entity can
|
|
@@ -3457,6 +3630,7 @@ export class EntityCanFlyComponent extends EntityComponent {
|
|
|
3457
3630
|
*/
|
|
3458
3631
|
static readonly componentId = 'minecraft:can_fly';
|
|
3459
3632
|
}
|
|
3633
|
+
|
|
3460
3634
|
/**
|
|
3461
3635
|
* @beta
|
|
3462
3636
|
* When added, this component signifies that the entity can
|
|
@@ -3472,6 +3646,7 @@ export class EntityCanPowerJumpComponent extends EntityComponent {
|
|
|
3472
3646
|
*/
|
|
3473
3647
|
static readonly componentId = 'minecraft:can_power_jump';
|
|
3474
3648
|
}
|
|
3649
|
+
|
|
3475
3650
|
/**
|
|
3476
3651
|
* @beta
|
|
3477
3652
|
* Defines the entity's color. Only works on certain entities
|
|
@@ -3495,6 +3670,7 @@ export class EntityColorComponent extends EntityComponent {
|
|
|
3495
3670
|
*/
|
|
3496
3671
|
static readonly componentId = 'minecraft:color';
|
|
3497
3672
|
}
|
|
3673
|
+
|
|
3498
3674
|
/**
|
|
3499
3675
|
* @beta
|
|
3500
3676
|
* Base class for downstream entity components.
|
|
@@ -3508,6 +3684,7 @@ export class EntityComponent extends Component {
|
|
|
3508
3684
|
*/
|
|
3509
3685
|
readonly entity: Entity;
|
|
3510
3686
|
}
|
|
3687
|
+
|
|
3511
3688
|
/**
|
|
3512
3689
|
* @beta
|
|
3513
3690
|
* As part of the Ageable component, represents a set of items
|
|
@@ -3532,6 +3709,7 @@ export class EntityDefinitionFeedItem {
|
|
|
3532
3709
|
*/
|
|
3533
3710
|
readonly item: string;
|
|
3534
3711
|
}
|
|
3712
|
+
|
|
3535
3713
|
/**
|
|
3536
3714
|
* @beta
|
|
3537
3715
|
*/
|
|
@@ -3540,12 +3718,14 @@ export class EntityDieAfterEvent {
|
|
|
3540
3718
|
readonly damageSource: EntityDamageSource;
|
|
3541
3719
|
readonly deadEntity: Entity;
|
|
3542
3720
|
}
|
|
3721
|
+
|
|
3543
3722
|
/**
|
|
3544
3723
|
* @beta
|
|
3545
3724
|
*/
|
|
3546
|
-
export class
|
|
3725
|
+
export class EntityDieAfterEventSignal extends IEntityDieAfterEventSignal {
|
|
3547
3726
|
protected constructor();
|
|
3548
3727
|
}
|
|
3728
|
+
|
|
3549
3729
|
/**
|
|
3550
3730
|
* @beta
|
|
3551
3731
|
*/
|
|
@@ -3574,6 +3754,7 @@ export class EntityEquipmentInventoryComponent extends EntityComponent {
|
|
|
3574
3754
|
*/
|
|
3575
3755
|
setEquipment(equipmentSlot: EquipmentSlot, itemStack?: ItemStack): void;
|
|
3576
3756
|
}
|
|
3757
|
+
|
|
3577
3758
|
/**
|
|
3578
3759
|
* @beta
|
|
3579
3760
|
* When added, this component signifies that this entity
|
|
@@ -3589,6 +3770,7 @@ export class EntityFireImmuneComponent extends EntityComponent {
|
|
|
3589
3770
|
*/
|
|
3590
3771
|
static readonly componentId = 'minecraft:fire_immune';
|
|
3591
3772
|
}
|
|
3773
|
+
|
|
3592
3774
|
/**
|
|
3593
3775
|
* @beta
|
|
3594
3776
|
* When added, this component signifies that this entity can
|
|
@@ -3604,6 +3786,7 @@ export class EntityFloatsInLiquidComponent extends EntityComponent {
|
|
|
3604
3786
|
*/
|
|
3605
3787
|
static readonly componentId = 'minecraft:floats_in_liquid';
|
|
3606
3788
|
}
|
|
3789
|
+
|
|
3607
3790
|
/**
|
|
3608
3791
|
* @beta
|
|
3609
3792
|
* Represents the flying speed of an entity.
|
|
@@ -3626,6 +3809,7 @@ export class EntityFlyingSpeedComponent extends EntityComponent {
|
|
|
3626
3809
|
*/
|
|
3627
3810
|
static readonly componentId = 'minecraft:flying_speed';
|
|
3628
3811
|
}
|
|
3812
|
+
|
|
3629
3813
|
/**
|
|
3630
3814
|
* @beta
|
|
3631
3815
|
* Defines how much friction affects this entity.
|
|
@@ -3650,6 +3834,7 @@ export class EntityFrictionModifierComponent extends EntityComponent {
|
|
|
3650
3834
|
*/
|
|
3651
3835
|
static readonly componentId = 'minecraft:friction_modifier';
|
|
3652
3836
|
}
|
|
3837
|
+
|
|
3653
3838
|
/**
|
|
3654
3839
|
* @beta
|
|
3655
3840
|
* Sets the offset from the ground that the entity is actually
|
|
@@ -3674,6 +3859,7 @@ export class EntityGroundOffsetComponent extends EntityComponent {
|
|
|
3674
3859
|
*/
|
|
3675
3860
|
static readonly componentId = 'minecraft:ground_offset';
|
|
3676
3861
|
}
|
|
3862
|
+
|
|
3677
3863
|
/**
|
|
3678
3864
|
* @beta
|
|
3679
3865
|
* Defines the interactions with this entity for healing it.
|
|
@@ -3710,6 +3896,7 @@ export class EntityHealableComponent extends EntityComponent {
|
|
|
3710
3896
|
*/
|
|
3711
3897
|
getFeedItems(): FeedItem[];
|
|
3712
3898
|
}
|
|
3899
|
+
|
|
3713
3900
|
/**
|
|
3714
3901
|
* @beta
|
|
3715
3902
|
* Defines the health properties of an entity.
|
|
@@ -3724,6 +3911,7 @@ export class EntityHealthComponent extends EntityAttributeComponent {
|
|
|
3724
3911
|
*/
|
|
3725
3912
|
static readonly componentId = 'minecraft:health';
|
|
3726
3913
|
}
|
|
3914
|
+
|
|
3727
3915
|
/**
|
|
3728
3916
|
* @beta
|
|
3729
3917
|
* Contains information related to an entity hitting (melee
|
|
@@ -3756,14 +3944,16 @@ export class EntityHitAfterEvent {
|
|
|
3756
3944
|
*/
|
|
3757
3945
|
readonly hitEntity?: Entity;
|
|
3758
3946
|
}
|
|
3947
|
+
|
|
3759
3948
|
/**
|
|
3760
3949
|
* @beta
|
|
3761
3950
|
* Manages callbacks that are connected to when an entity makes
|
|
3762
3951
|
* a melee attack on another entity.
|
|
3763
3952
|
*/
|
|
3764
|
-
export class
|
|
3953
|
+
export class EntityHitAfterEventSignal extends IEntityHitAfterEventSignal {
|
|
3765
3954
|
protected constructor();
|
|
3766
3955
|
}
|
|
3956
|
+
|
|
3767
3957
|
/**
|
|
3768
3958
|
* @beta
|
|
3769
3959
|
* Contains information related to an entity getting hurt by
|
|
@@ -3791,14 +3981,16 @@ export class EntityHurtAfterEvent {
|
|
|
3791
3981
|
*/
|
|
3792
3982
|
readonly hurtEntity: Entity;
|
|
3793
3983
|
}
|
|
3984
|
+
|
|
3794
3985
|
/**
|
|
3795
3986
|
* @beta
|
|
3796
3987
|
* Manages callbacks that are connected to when an entity is
|
|
3797
3988
|
* hurt.
|
|
3798
3989
|
*/
|
|
3799
|
-
export class
|
|
3990
|
+
export class EntityHurtAfterEventSignal extends IEntityHurtAfterEventSignal {
|
|
3800
3991
|
protected constructor();
|
|
3801
3992
|
}
|
|
3993
|
+
|
|
3802
3994
|
/**
|
|
3803
3995
|
* @beta
|
|
3804
3996
|
* Defines this entity's inventory properties.
|
|
@@ -3858,6 +4050,7 @@ export class EntityInventoryComponent extends EntityComponent {
|
|
|
3858
4050
|
*/
|
|
3859
4051
|
readonly restrictToOwner: boolean;
|
|
3860
4052
|
/**
|
|
4053
|
+
* @beta
|
|
3861
4054
|
* @remarks
|
|
3862
4055
|
* Identifier of this component. Should always be
|
|
3863
4056
|
* minecraft:inventory.
|
|
@@ -3865,6 +4058,7 @@ export class EntityInventoryComponent extends EntityComponent {
|
|
|
3865
4058
|
*/
|
|
3866
4059
|
static readonly componentId = 'minecraft:inventory';
|
|
3867
4060
|
}
|
|
4061
|
+
|
|
3868
4062
|
/**
|
|
3869
4063
|
* @beta
|
|
3870
4064
|
* When added, this component signifies that this entity is a
|
|
@@ -3880,6 +4074,7 @@ export class EntityIsBabyComponent extends EntityComponent {
|
|
|
3880
4074
|
*/
|
|
3881
4075
|
static readonly componentId = 'minecraft:is_baby';
|
|
3882
4076
|
}
|
|
4077
|
+
|
|
3883
4078
|
/**
|
|
3884
4079
|
* @beta
|
|
3885
4080
|
* When added, this component signifies that this entity is
|
|
@@ -3895,6 +4090,7 @@ export class EntityIsChargedComponent extends EntityComponent {
|
|
|
3895
4090
|
*/
|
|
3896
4091
|
static readonly componentId = 'minecraft:is_charged';
|
|
3897
4092
|
}
|
|
4093
|
+
|
|
3898
4094
|
/**
|
|
3899
4095
|
* @beta
|
|
3900
4096
|
* When added, this component signifies that this entity is
|
|
@@ -3910,6 +4106,7 @@ export class EntityIsChestedComponent extends EntityComponent {
|
|
|
3910
4106
|
*/
|
|
3911
4107
|
static readonly componentId = 'minecraft:is_chested';
|
|
3912
4108
|
}
|
|
4109
|
+
|
|
3913
4110
|
/**
|
|
3914
4111
|
* @beta
|
|
3915
4112
|
* When added, this component signifies that dyes can be used
|
|
@@ -3925,6 +4122,7 @@ export class EntityIsDyableComponent extends EntityComponent {
|
|
|
3925
4122
|
*/
|
|
3926
4123
|
static readonly componentId = 'minecraft:is_dyeable';
|
|
3927
4124
|
}
|
|
4125
|
+
|
|
3928
4126
|
/**
|
|
3929
4127
|
* @beta
|
|
3930
4128
|
* When added, this component signifies that this entity can
|
|
@@ -3940,6 +4138,7 @@ export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
|
|
|
3940
4138
|
*/
|
|
3941
4139
|
static readonly componentId = 'minecraft:is_hidden_when_invisible';
|
|
3942
4140
|
}
|
|
4141
|
+
|
|
3943
4142
|
/**
|
|
3944
4143
|
* @beta
|
|
3945
4144
|
* When added, this component signifies that this entity this
|
|
@@ -3955,6 +4154,7 @@ export class EntityIsIgnitedComponent extends EntityComponent {
|
|
|
3955
4154
|
*/
|
|
3956
4155
|
static readonly componentId = 'minecraft:is_ignited';
|
|
3957
4156
|
}
|
|
4157
|
+
|
|
3958
4158
|
/**
|
|
3959
4159
|
* @beta
|
|
3960
4160
|
* When added, this component signifies that this entity is an
|
|
@@ -3970,6 +4170,7 @@ export class EntityIsIllagerCaptainComponent extends EntityComponent {
|
|
|
3970
4170
|
*/
|
|
3971
4171
|
static readonly componentId = 'minecraft:is_illager_captain';
|
|
3972
4172
|
}
|
|
4173
|
+
|
|
3973
4174
|
/**
|
|
3974
4175
|
* @beta
|
|
3975
4176
|
* When added, this component signifies that this entity is
|
|
@@ -3985,6 +4186,7 @@ export class EntityIsSaddledComponent extends EntityComponent {
|
|
|
3985
4186
|
*/
|
|
3986
4187
|
static readonly componentId = 'minecraft:is_saddled';
|
|
3987
4188
|
}
|
|
4189
|
+
|
|
3988
4190
|
/**
|
|
3989
4191
|
* @beta
|
|
3990
4192
|
* When added, this component signifies that this entity is
|
|
@@ -4000,6 +4202,7 @@ export class EntityIsShakingComponent extends EntityComponent {
|
|
|
4000
4202
|
*/
|
|
4001
4203
|
static readonly componentId = 'minecraft:is_shaking';
|
|
4002
4204
|
}
|
|
4205
|
+
|
|
4003
4206
|
/**
|
|
4004
4207
|
* @beta
|
|
4005
4208
|
* When added, this component signifies that this entity is
|
|
@@ -4015,6 +4218,7 @@ export class EntityIsShearedComponent extends EntityComponent {
|
|
|
4015
4218
|
*/
|
|
4016
4219
|
static readonly componentId = 'minecraft:is_sheared';
|
|
4017
4220
|
}
|
|
4221
|
+
|
|
4018
4222
|
/**
|
|
4019
4223
|
* @beta
|
|
4020
4224
|
* When added, this component signifies that this entity can be
|
|
@@ -4030,6 +4234,7 @@ export class EntityIsStackableComponent extends EntityComponent {
|
|
|
4030
4234
|
*/
|
|
4031
4235
|
static readonly componentId = 'minecraft:is_stackable';
|
|
4032
4236
|
}
|
|
4237
|
+
|
|
4033
4238
|
/**
|
|
4034
4239
|
* @beta
|
|
4035
4240
|
* When added, this component signifies that this entity is
|
|
@@ -4045,6 +4250,7 @@ export class EntityIsStunnedComponent extends EntityComponent {
|
|
|
4045
4250
|
*/
|
|
4046
4251
|
static readonly componentId = 'minecraft:is_stunned';
|
|
4047
4252
|
}
|
|
4253
|
+
|
|
4048
4254
|
/**
|
|
4049
4255
|
* @beta
|
|
4050
4256
|
* When added, this component signifies that this entity is
|
|
@@ -4060,6 +4266,7 @@ export class EntityIsTamedComponent extends EntityComponent {
|
|
|
4060
4266
|
*/
|
|
4061
4267
|
static readonly componentId = 'minecraft:is_tamed';
|
|
4062
4268
|
}
|
|
4269
|
+
|
|
4063
4270
|
/**
|
|
4064
4271
|
* @beta
|
|
4065
4272
|
* If added onto the entity, this indicates that the entity
|
|
@@ -4077,12 +4284,14 @@ export class EntityItemComponent extends EntityComponent {
|
|
|
4077
4284
|
*/
|
|
4078
4285
|
readonly itemStack: ItemStack;
|
|
4079
4286
|
/**
|
|
4287
|
+
* @beta
|
|
4080
4288
|
* @remarks
|
|
4081
4289
|
* Identifier of this component.
|
|
4082
4290
|
*
|
|
4083
4291
|
*/
|
|
4084
4292
|
static readonly componentId = 'minecraft:item';
|
|
4085
4293
|
}
|
|
4294
|
+
|
|
4086
4295
|
/**
|
|
4087
4296
|
* @beta
|
|
4088
4297
|
* This type is usable for iterating over a set of entities.
|
|
@@ -4108,6 +4317,7 @@ export class EntityIterator implements Iterable<Entity> {
|
|
|
4108
4317
|
*/
|
|
4109
4318
|
next(): IteratorResult<Entity>;
|
|
4110
4319
|
}
|
|
4320
|
+
|
|
4111
4321
|
/**
|
|
4112
4322
|
* @beta
|
|
4113
4323
|
* Defines the base movement speed in lava of this entity.
|
|
@@ -4122,6 +4332,7 @@ export class EntityLavaMovementComponent extends EntityAttributeComponent {
|
|
|
4122
4332
|
*/
|
|
4123
4333
|
static readonly componentId = 'minecraft:lava_movement';
|
|
4124
4334
|
}
|
|
4335
|
+
|
|
4125
4336
|
/**
|
|
4126
4337
|
* @beta
|
|
4127
4338
|
* Allows this entity to be leashed and defines the conditions
|
|
@@ -4166,6 +4377,7 @@ export class EntityLeashableComponent extends EntityComponent {
|
|
|
4166
4377
|
*/
|
|
4167
4378
|
unleash(): void;
|
|
4168
4379
|
}
|
|
4380
|
+
|
|
4169
4381
|
/**
|
|
4170
4382
|
* @beta
|
|
4171
4383
|
* Additional variant value. Can be used to further
|
|
@@ -4190,6 +4402,7 @@ export class EntityMarkVariantComponent extends EntityComponent {
|
|
|
4190
4402
|
*/
|
|
4191
4403
|
static readonly componentId = 'minecraft:mark_variant';
|
|
4192
4404
|
}
|
|
4405
|
+
|
|
4193
4406
|
/**
|
|
4194
4407
|
* @beta
|
|
4195
4408
|
* Contains options for taming a rideable entity based on the
|
|
@@ -4216,6 +4429,7 @@ export class EntityMountTamingComponent extends EntityComponent {
|
|
|
4216
4429
|
*/
|
|
4217
4430
|
setTamed(showParticles: boolean): void;
|
|
4218
4431
|
}
|
|
4432
|
+
|
|
4219
4433
|
/**
|
|
4220
4434
|
* @beta
|
|
4221
4435
|
* When added, this movement control allows the mob to swim in
|
|
@@ -4238,6 +4452,7 @@ export class EntityMovementAmphibiousComponent extends EntityComponent {
|
|
|
4238
4452
|
*/
|
|
4239
4453
|
static readonly componentId = 'minecraft:movement.amphibious';
|
|
4240
4454
|
}
|
|
4455
|
+
|
|
4241
4456
|
/**
|
|
4242
4457
|
* @beta
|
|
4243
4458
|
* This component accents the movement of an entity.
|
|
@@ -4259,6 +4474,7 @@ export class EntityMovementBasicComponent extends EntityComponent {
|
|
|
4259
4474
|
*/
|
|
4260
4475
|
static readonly componentId = 'minecraft:movement.basic';
|
|
4261
4476
|
}
|
|
4477
|
+
|
|
4262
4478
|
/**
|
|
4263
4479
|
* @beta
|
|
4264
4480
|
* Defines the general movement speed of this entity.
|
|
@@ -4273,6 +4489,7 @@ export class EntityMovementComponent extends EntityAttributeComponent {
|
|
|
4273
4489
|
*/
|
|
4274
4490
|
static readonly componentId = 'minecraft:movement';
|
|
4275
4491
|
}
|
|
4492
|
+
|
|
4276
4493
|
/**
|
|
4277
4494
|
* @beta
|
|
4278
4495
|
* When added, this move control causes the mob to fly.
|
|
@@ -4287,6 +4504,7 @@ export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
|
|
|
4287
4504
|
*/
|
|
4288
4505
|
static readonly componentId = 'minecraft:movement.fly';
|
|
4289
4506
|
}
|
|
4507
|
+
|
|
4290
4508
|
/**
|
|
4291
4509
|
* @beta
|
|
4292
4510
|
* When added, this move control allows a mob to fly, swim,
|
|
@@ -4302,6 +4520,7 @@ export class EntityMovementGenericComponent extends EntityBaseMovementComponent
|
|
|
4302
4520
|
*/
|
|
4303
4521
|
static readonly componentId = 'minecraft:movement.generic';
|
|
4304
4522
|
}
|
|
4523
|
+
|
|
4305
4524
|
/**
|
|
4306
4525
|
* @beta
|
|
4307
4526
|
* When added, this movement control allows the mob to glide.
|
|
@@ -4330,6 +4549,7 @@ export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
|
|
|
4330
4549
|
*/
|
|
4331
4550
|
static readonly componentId = 'minecraft:movement.glide';
|
|
4332
4551
|
}
|
|
4552
|
+
|
|
4333
4553
|
/**
|
|
4334
4554
|
* @beta
|
|
4335
4555
|
* When added, this move control causes the mob to hover.
|
|
@@ -4344,6 +4564,7 @@ export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
|
|
|
4344
4564
|
*/
|
|
4345
4565
|
static readonly componentId = 'minecraft:movement.hover';
|
|
4346
4566
|
}
|
|
4567
|
+
|
|
4347
4568
|
/**
|
|
4348
4569
|
* @beta
|
|
4349
4570
|
* Move control that causes the mob to jump as it moves with a
|
|
@@ -4359,6 +4580,7 @@ export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
|
|
|
4359
4580
|
*/
|
|
4360
4581
|
static readonly componentId = 'minecraft:movement.jump';
|
|
4361
4582
|
}
|
|
4583
|
+
|
|
4362
4584
|
/**
|
|
4363
4585
|
* @beta
|
|
4364
4586
|
* When added, this move control causes the mob to hop as it
|
|
@@ -4374,6 +4596,7 @@ export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
|
|
|
4374
4596
|
*/
|
|
4375
4597
|
static readonly componentId = 'minecraft:movement.skip';
|
|
4376
4598
|
}
|
|
4599
|
+
|
|
4377
4600
|
/**
|
|
4378
4601
|
* @beta
|
|
4379
4602
|
* When added, this move control causes the mob to sway side to
|
|
@@ -4403,6 +4626,7 @@ export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
|
|
|
4403
4626
|
*/
|
|
4404
4627
|
static readonly componentId = 'minecraft:movement.sway';
|
|
4405
4628
|
}
|
|
4629
|
+
|
|
4406
4630
|
/**
|
|
4407
4631
|
* @beta
|
|
4408
4632
|
* Allows this entity to generate paths that include vertical
|
|
@@ -4418,6 +4642,7 @@ export class EntityNavigationClimbComponent extends EntityNavigationComponent {
|
|
|
4418
4642
|
*/
|
|
4419
4643
|
static readonly componentId = 'minecraft:navigation.climb';
|
|
4420
4644
|
}
|
|
4645
|
+
|
|
4421
4646
|
/**
|
|
4422
4647
|
* @beta
|
|
4423
4648
|
* Allows this entity to generate paths that include vertical
|
|
@@ -4574,6 +4799,7 @@ export class EntityNavigationComponent extends EntityComponent {
|
|
|
4574
4799
|
*/
|
|
4575
4800
|
readonly isAmphibious: boolean;
|
|
4576
4801
|
}
|
|
4802
|
+
|
|
4577
4803
|
/**
|
|
4578
4804
|
* @beta
|
|
4579
4805
|
* Allows this entity to generate paths by flying around the
|
|
@@ -4589,6 +4815,7 @@ export class EntityNavigationFloatComponent extends EntityNavigationComponent {
|
|
|
4589
4815
|
*/
|
|
4590
4816
|
static readonly componentId = 'minecraft:navigation.float';
|
|
4591
4817
|
}
|
|
4818
|
+
|
|
4592
4819
|
/**
|
|
4593
4820
|
* @beta
|
|
4594
4821
|
* Allows this entity to generate paths in the air (for
|
|
@@ -4604,6 +4831,7 @@ export class EntityNavigationFlyComponent extends EntityNavigationComponent {
|
|
|
4604
4831
|
*/
|
|
4605
4832
|
static readonly componentId = 'minecraft:navigation.fly';
|
|
4606
4833
|
}
|
|
4834
|
+
|
|
4607
4835
|
/**
|
|
4608
4836
|
* @beta
|
|
4609
4837
|
* Allows this entity to generate paths by walking, swimming,
|
|
@@ -4620,6 +4848,7 @@ export class EntityNavigationGenericComponent extends EntityNavigationComponent
|
|
|
4620
4848
|
*/
|
|
4621
4849
|
static readonly componentId = 'minecraft:navigation.generic';
|
|
4622
4850
|
}
|
|
4851
|
+
|
|
4623
4852
|
/**
|
|
4624
4853
|
* @beta
|
|
4625
4854
|
* Allows this entity to generate paths in the air (for
|
|
@@ -4636,6 +4865,7 @@ export class EntityNavigationHoverComponent extends EntityNavigationComponent {
|
|
|
4636
4865
|
*/
|
|
4637
4866
|
static readonly componentId = 'minecraft:navigation.hover';
|
|
4638
4867
|
}
|
|
4868
|
+
|
|
4639
4869
|
/**
|
|
4640
4870
|
* @beta
|
|
4641
4871
|
* Allows this entity to generate paths by walking around and
|
|
@@ -4651,6 +4881,7 @@ export class EntityNavigationWalkComponent extends EntityNavigationComponent {
|
|
|
4651
4881
|
*/
|
|
4652
4882
|
static readonly componentId = 'minecraft:navigation.walk';
|
|
4653
4883
|
}
|
|
4884
|
+
|
|
4654
4885
|
/**
|
|
4655
4886
|
* @beta
|
|
4656
4887
|
* When present on an entity, this entity is on fire.
|
|
@@ -4665,6 +4896,7 @@ export class EntityOnFireComponent extends EntityComponent {
|
|
|
4665
4896
|
readonly onFireTicksRemaining: number;
|
|
4666
4897
|
static readonly componentId = 'minecraft:onfire';
|
|
4667
4898
|
}
|
|
4899
|
+
|
|
4668
4900
|
/**
|
|
4669
4901
|
* @beta
|
|
4670
4902
|
* Sets the distance through which the entity can push through.
|
|
@@ -4687,6 +4919,7 @@ export class EntityPushThroughComponent extends EntityComponent {
|
|
|
4687
4919
|
*/
|
|
4688
4920
|
static readonly componentId = 'minecraft:push_through';
|
|
4689
4921
|
}
|
|
4922
|
+
|
|
4690
4923
|
/**
|
|
4691
4924
|
* @beta
|
|
4692
4925
|
* When added, this component adds the capability that an
|
|
@@ -4807,6 +5040,7 @@ export class EntityRideableComponent extends EntityComponent {
|
|
|
4807
5040
|
*/
|
|
4808
5041
|
getSeats(): Seat[];
|
|
4809
5042
|
}
|
|
5043
|
+
|
|
4810
5044
|
/**
|
|
4811
5045
|
* @beta
|
|
4812
5046
|
* This component is added to any entity when it is riding
|
|
@@ -4829,6 +5063,7 @@ export class EntityRidingComponent extends EntityComponent {
|
|
|
4829
5063
|
*/
|
|
4830
5064
|
static readonly componentId = 'minecraft:riding';
|
|
4831
5065
|
}
|
|
5066
|
+
|
|
4832
5067
|
/**
|
|
4833
5068
|
* @beta
|
|
4834
5069
|
* Sets the entity's visual size.
|
|
@@ -4853,6 +5088,7 @@ export class EntityScaleComponent extends EntityComponent {
|
|
|
4853
5088
|
*/
|
|
4854
5089
|
static readonly componentId = 'minecraft:scale';
|
|
4855
5090
|
}
|
|
5091
|
+
|
|
4856
5092
|
/**
|
|
4857
5093
|
* @beta
|
|
4858
5094
|
* Skin Id value. Can be used to differentiate skins, such as
|
|
@@ -4877,6 +5113,7 @@ export class EntitySkinIdComponent extends EntityComponent {
|
|
|
4877
5113
|
*/
|
|
4878
5114
|
static readonly componentId = 'minecraft:skin_id';
|
|
4879
5115
|
}
|
|
5116
|
+
|
|
4880
5117
|
/**
|
|
4881
5118
|
* @beta
|
|
4882
5119
|
* Contains data related to an entity spawning within the
|
|
@@ -4893,12 +5130,16 @@ export class EntitySpawnAfterEvent {
|
|
|
4893
5130
|
*/
|
|
4894
5131
|
entity: Entity;
|
|
4895
5132
|
}
|
|
5133
|
+
|
|
4896
5134
|
/**
|
|
4897
5135
|
* @beta
|
|
5136
|
+
* Registers a script-based event handler for handling what
|
|
5137
|
+
* happens when an entity spawns.
|
|
4898
5138
|
*/
|
|
4899
|
-
export class
|
|
5139
|
+
export class EntitySpawnAfterEventSignal extends IEntitySpawnAfterEventSignal {
|
|
4900
5140
|
protected constructor();
|
|
4901
5141
|
}
|
|
5142
|
+
|
|
4902
5143
|
/**
|
|
4903
5144
|
* @beta
|
|
4904
5145
|
* Defines the entity's strength to carry items.
|
|
@@ -4929,6 +5170,7 @@ export class EntityStrengthComponent extends EntityComponent {
|
|
|
4929
5170
|
*/
|
|
4930
5171
|
static readonly componentId = 'minecraft:strength';
|
|
4931
5172
|
}
|
|
5173
|
+
|
|
4932
5174
|
/**
|
|
4933
5175
|
* @beta
|
|
4934
5176
|
* Defines the rules for an entity to be tamed by the player.
|
|
@@ -4943,13 +5185,6 @@ export class EntityTameableComponent extends EntityComponent {
|
|
|
4943
5185
|
* @throws This property can throw when used.
|
|
4944
5186
|
*/
|
|
4945
5187
|
readonly probability: number;
|
|
4946
|
-
/**
|
|
4947
|
-
* @remarks
|
|
4948
|
-
* Event to run when this entity becomes tamed.
|
|
4949
|
-
*
|
|
4950
|
-
* @throws This property can throw when used.
|
|
4951
|
-
*/
|
|
4952
|
-
readonly tameEvent: Trigger;
|
|
4953
5188
|
/**
|
|
4954
5189
|
* @remarks
|
|
4955
5190
|
* Identifier of this component. Should always be
|
|
@@ -4976,6 +5211,7 @@ export class EntityTameableComponent extends EntityComponent {
|
|
|
4976
5211
|
*/
|
|
4977
5212
|
tame(): boolean;
|
|
4978
5213
|
}
|
|
5214
|
+
|
|
4979
5215
|
/**
|
|
4980
5216
|
* @beta
|
|
4981
5217
|
* Represents information about a type of entity.
|
|
@@ -4990,6 +5226,7 @@ export class EntityType {
|
|
|
4990
5226
|
*/
|
|
4991
5227
|
readonly id: string;
|
|
4992
5228
|
}
|
|
5229
|
+
|
|
4993
5230
|
/**
|
|
4994
5231
|
* @beta
|
|
4995
5232
|
* An iterator that loops through available entity types.
|
|
@@ -5009,294 +5246,84 @@ export class EntityTypeIterator implements Iterable<EntityType> {
|
|
|
5009
5246
|
*/
|
|
5010
5247
|
next(): IteratorResult<EntityType>;
|
|
5011
5248
|
}
|
|
5249
|
+
|
|
5012
5250
|
/**
|
|
5013
5251
|
* @beta
|
|
5014
5252
|
* Used for accessing all entity types currently available for
|
|
5015
5253
|
* use within the world.
|
|
5016
5254
|
*/
|
|
5017
5255
|
export class EntityTypes {
|
|
5018
|
-
protected constructor();
|
|
5019
|
-
/**
|
|
5020
|
-
* @remarks
|
|
5021
|
-
* Retrieves an entity type using a string-based identifier.
|
|
5022
|
-
*
|
|
5023
|
-
*/
|
|
5024
|
-
static get(identifier: string): EntityType;
|
|
5025
|
-
/**
|
|
5026
|
-
* @remarks
|
|
5027
|
-
* Retrieves an iterator of all entity types within this world.
|
|
5028
|
-
*
|
|
5029
|
-
*/
|
|
5030
|
-
static getAll(): EntityTypeIterator;
|
|
5031
|
-
}
|
|
5032
|
-
/**
|
|
5033
|
-
* @beta
|
|
5034
|
-
* Defines the general movement speed underwater of this
|
|
5035
|
-
* entity.
|
|
5036
|
-
*/
|
|
5037
|
-
export class EntityUnderwaterMovementComponent extends EntityAttributeComponent {
|
|
5038
|
-
protected constructor();
|
|
5039
|
-
/**
|
|
5040
|
-
* @remarks
|
|
5041
|
-
* Identifier of this component. Should always be
|
|
5042
|
-
* minecraft:underwater_movement.
|
|
5043
|
-
*
|
|
5044
|
-
*/
|
|
5045
|
-
static readonly componentId = 'minecraft:underwater_movement';
|
|
5046
|
-
}
|
|
5047
|
-
/**
|
|
5048
|
-
* @beta
|
|
5049
|
-
* Used to differentiate the component group of a variant of an
|
|
5050
|
-
* entity from others. (e.g. ocelot, villager).
|
|
5051
|
-
*/
|
|
5052
|
-
export class EntityVariantComponent extends EntityComponent {
|
|
5053
|
-
protected constructor();
|
|
5054
|
-
/**
|
|
5055
|
-
* @remarks
|
|
5056
|
-
* The identifier of the variant. By convention, 0 is the
|
|
5057
|
-
* identifier of the base entity.
|
|
5058
|
-
*
|
|
5059
|
-
* @throws This property can throw when used.
|
|
5060
|
-
*/
|
|
5061
|
-
readonly value: number;
|
|
5062
|
-
/**
|
|
5063
|
-
* @remarks
|
|
5064
|
-
* Identifier of this component. Should always be
|
|
5065
|
-
* minecraft:variant.
|
|
5066
|
-
*
|
|
5067
|
-
*/
|
|
5068
|
-
static readonly componentId = 'minecraft:variant';
|
|
5069
|
-
}
|
|
5070
|
-
/**
|
|
5071
|
-
* @beta
|
|
5072
|
-
* When added, this component signifies that this entity wants
|
|
5073
|
-
* to become a jockey.
|
|
5074
|
-
*/
|
|
5075
|
-
export class EntityWantsJockeyComponent extends EntityComponent {
|
|
5076
|
-
protected constructor();
|
|
5077
|
-
/**
|
|
5078
|
-
* @remarks
|
|
5079
|
-
* Identifier of this component. Should always be
|
|
5080
|
-
* minecraft:wants_jockey.
|
|
5081
|
-
*
|
|
5082
|
-
*/
|
|
5083
|
-
static readonly componentId = 'minecraft:wants_jockey';
|
|
5084
|
-
}
|
|
5085
|
-
/**
|
|
5086
|
-
* @beta
|
|
5087
|
-
* Contains a set of events that are available across the scope
|
|
5088
|
-
* of the World.
|
|
5089
|
-
*/
|
|
5090
|
-
export class Events {
|
|
5091
|
-
protected constructor();
|
|
5092
|
-
/**
|
|
5093
|
-
* @remarks
|
|
5094
|
-
* This event fires for a block that is broken by a player.
|
|
5095
|
-
*
|
|
5096
|
-
*/
|
|
5097
|
-
readonly blockBreak: BlockBreakAfterEventSignal_deprecated;
|
|
5098
|
-
/**
|
|
5099
|
-
* @remarks
|
|
5100
|
-
* This event fires for each BlockLocation destroyed by an
|
|
5101
|
-
* explosion. It is fired after the blocks have already been
|
|
5102
|
-
* destroyed.
|
|
5103
|
-
*
|
|
5104
|
-
*/
|
|
5105
|
-
readonly blockExplode: BlockExplodeAfterEventSignal_deprecated;
|
|
5106
|
-
/**
|
|
5107
|
-
* @remarks
|
|
5108
|
-
* This event fires for a block that is placed by a player.
|
|
5109
|
-
*
|
|
5110
|
-
*/
|
|
5111
|
-
readonly blockPlace: BlockPlaceAfterEventSignal_deprecated;
|
|
5112
|
-
/**
|
|
5113
|
-
* @remarks
|
|
5114
|
-
* This event fires when a button is pushed.
|
|
5115
|
-
*
|
|
5116
|
-
*/
|
|
5117
|
-
readonly buttonPush: ButtonPushAfterEventSignal_deprecated;
|
|
5118
|
-
/**
|
|
5119
|
-
* @remarks
|
|
5120
|
-
* This event is triggered after a chat message has been
|
|
5121
|
-
* broadcast or sent to players.
|
|
5122
|
-
*
|
|
5123
|
-
*/
|
|
5124
|
-
readonly chatSend: ChatSendAfterEventSignal_deprecated;
|
|
5125
|
-
/**
|
|
5126
|
-
* @remarks
|
|
5127
|
-
* This event is fired when an entity event has been triggered
|
|
5128
|
-
* that will update the component definition state of an
|
|
5129
|
-
* entity.
|
|
5130
|
-
*
|
|
5131
|
-
*/
|
|
5132
|
-
readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerAfterEventSignal_deprecated;
|
|
5133
|
-
/**
|
|
5134
|
-
* @remarks
|
|
5135
|
-
* This event fires when an effect, like poisoning, is added to
|
|
5136
|
-
* an entity.
|
|
5137
|
-
*
|
|
5138
|
-
*/
|
|
5139
|
-
readonly effectAdd: EffectAddAfterEventSignal_deprecated;
|
|
5140
|
-
/**
|
|
5141
|
-
* @remarks
|
|
5142
|
-
* This event fires when an entity dies.
|
|
5143
|
-
*
|
|
5144
|
-
*/
|
|
5145
|
-
readonly entityDie: EntityDieAfterEventSignal_deprecated;
|
|
5146
|
-
/**
|
|
5147
|
-
* @remarks
|
|
5148
|
-
* This event fires when an entity hits (makes a melee attack)
|
|
5149
|
-
* and potentially impacts another entity or block.
|
|
5150
|
-
*
|
|
5151
|
-
*/
|
|
5152
|
-
readonly entityHit: EntityHitAfterEventSignal_deprecated;
|
|
5153
|
-
/**
|
|
5154
|
-
* @remarks
|
|
5155
|
-
* This event fires when an entity is hurt (takes damage).
|
|
5156
|
-
*
|
|
5157
|
-
*/
|
|
5158
|
-
readonly entityHurt: EntityHurtAfterEventSignal_deprecated;
|
|
5159
|
-
/**
|
|
5160
|
-
* @remarks
|
|
5161
|
-
* This event fires when an entity is spawned.
|
|
5162
|
-
*
|
|
5163
|
-
*/
|
|
5164
|
-
readonly entitySpawn: EntitySpawnEventSignalAfterEventSignal_deprecated;
|
|
5165
|
-
/**
|
|
5166
|
-
* @remarks
|
|
5167
|
-
* This event is fired after an explosion occurs.
|
|
5168
|
-
*
|
|
5169
|
-
*/
|
|
5170
|
-
readonly explosion: ExplosionAfterEventSignal_deprecated;
|
|
5171
|
-
/**
|
|
5172
|
-
* @remarks
|
|
5173
|
-
* This event fires when a chargeable item completes charging.
|
|
5174
|
-
*
|
|
5175
|
-
*/
|
|
5176
|
-
readonly itemCompleteCharge: ItemCompleteChargeAfterEventSignal_deprecated;
|
|
5177
|
-
/**
|
|
5178
|
-
* @remarks
|
|
5179
|
-
* For custom items, this event is triggered when the
|
|
5180
|
-
* fundamental set of defined components for the item change.
|
|
5181
|
-
* Note that this event is only fired for custom data-driven
|
|
5182
|
-
* items.
|
|
5183
|
-
*
|
|
5184
|
-
*/
|
|
5185
|
-
readonly itemDefinitionEvent: ItemDefinitionAfterEventSignal_deprecated;
|
|
5186
|
-
/**
|
|
5187
|
-
* @remarks
|
|
5188
|
-
* This event fires when a chargeable item is released from
|
|
5189
|
-
* charging.
|
|
5190
|
-
*
|
|
5191
|
-
*/
|
|
5192
|
-
readonly itemReleaseCharge: ItemReleaseChargeAfterEventSignal_deprecated;
|
|
5193
|
-
/**
|
|
5194
|
-
* @remarks
|
|
5195
|
-
* This event fires when a chargeable item starts charging.
|
|
5196
|
-
*
|
|
5197
|
-
*/
|
|
5198
|
-
readonly itemStartCharge: StartChargeAfterEventSignal_deprecated;
|
|
5199
|
-
/**
|
|
5200
|
-
* @remarks
|
|
5201
|
-
* This event fires when a player successfully uses an item or
|
|
5202
|
-
* places a block by pressing the Use Item / Place Block
|
|
5203
|
-
* button. If multiple blocks are placed, this event will only
|
|
5204
|
-
* occur once at the beginning of the block placement. Note:
|
|
5205
|
-
* This event cannot be used with Hoe or Axe items.
|
|
5206
|
-
*
|
|
5207
|
-
*/
|
|
5208
|
-
readonly itemStartUseOn: ItemStartUseOnAfterEventSignal_deprecated;
|
|
5209
|
-
/**
|
|
5210
|
-
* @remarks
|
|
5211
|
-
* This event fires when a chargeable item stops charging.
|
|
5212
|
-
*
|
|
5213
|
-
*/
|
|
5214
|
-
readonly itemStopCharge: ItemStopChargeAfterEventSignal_deprecated;
|
|
5215
|
-
/**
|
|
5216
|
-
* @remarks
|
|
5217
|
-
* This event fires when a player releases the Use Item / Place
|
|
5218
|
-
* Block button after successfully using an item. Note: This
|
|
5219
|
-
* event cannot be used with Hoe or Axe items.
|
|
5220
|
-
*
|
|
5221
|
-
*/
|
|
5222
|
-
readonly itemStopUseOn: ItemStopUseOnAfterEventSignal_deprecated;
|
|
5223
|
-
/**
|
|
5224
|
-
* @remarks
|
|
5225
|
-
* This event fires when an item is successfully used by a
|
|
5226
|
-
* player.
|
|
5227
|
-
*
|
|
5228
|
-
*/
|
|
5229
|
-
readonly itemUse: ItemUseAfterEventSignal_deprecated;
|
|
5230
|
-
/**
|
|
5231
|
-
* @remarks
|
|
5232
|
-
* This event fires when an item is used on a block by a
|
|
5233
|
-
* player.
|
|
5234
|
-
*
|
|
5235
|
-
*/
|
|
5236
|
-
readonly itemUseOn: ItemUseOnAfterEventSignal_deprecated;
|
|
5237
|
-
/**
|
|
5238
|
-
* @remarks
|
|
5239
|
-
* This event fires when a lever activates or is deactivated.
|
|
5240
|
-
*
|
|
5241
|
-
*/
|
|
5242
|
-
readonly leverActivate: LeverActionAfterEventSignal_deprecated;
|
|
5243
|
-
/**
|
|
5244
|
-
* @remarks
|
|
5245
|
-
* This event is an internal implementation detail, and is
|
|
5246
|
-
* otherwise not currently functional.
|
|
5247
|
-
*
|
|
5248
|
-
*/
|
|
5249
|
-
readonly messageReceive: ServerMessageAfterEventSignal_deprecated;
|
|
5250
|
-
/**
|
|
5251
|
-
* @remarks
|
|
5252
|
-
* This event fires when a piston expands or retracts.
|
|
5253
|
-
*
|
|
5254
|
-
*/
|
|
5255
|
-
readonly pistonActivate: PistonActivateAfterEventSignal_deprecated;
|
|
5256
|
+
protected constructor();
|
|
5256
5257
|
/**
|
|
5257
5258
|
* @remarks
|
|
5258
|
-
*
|
|
5259
|
-
* playerSpawn for another related event you can trap for when
|
|
5260
|
-
* a player is spawned the first time within a world.
|
|
5259
|
+
* Retrieves an entity type using a string-based identifier.
|
|
5261
5260
|
*
|
|
5262
5261
|
*/
|
|
5263
|
-
|
|
5262
|
+
static get(identifier: string): EntityType;
|
|
5264
5263
|
/**
|
|
5265
5264
|
* @remarks
|
|
5266
|
-
*
|
|
5265
|
+
* Retrieves an iterator of all entity types within this world.
|
|
5267
5266
|
*
|
|
5268
5267
|
*/
|
|
5269
|
-
|
|
5268
|
+
static getAll(): EntityTypeIterator;
|
|
5269
|
+
}
|
|
5270
|
+
|
|
5271
|
+
/**
|
|
5272
|
+
* @beta
|
|
5273
|
+
* Defines the general movement speed underwater of this
|
|
5274
|
+
* entity.
|
|
5275
|
+
*/
|
|
5276
|
+
export class EntityUnderwaterMovementComponent extends EntityAttributeComponent {
|
|
5277
|
+
protected constructor();
|
|
5270
5278
|
/**
|
|
5271
5279
|
* @remarks
|
|
5272
|
-
*
|
|
5273
|
-
*
|
|
5274
|
-
* the player is spawning right after join vs. a respawn.
|
|
5280
|
+
* Identifier of this component. Should always be
|
|
5281
|
+
* minecraft:underwater_movement.
|
|
5275
5282
|
*
|
|
5276
5283
|
*/
|
|
5277
|
-
readonly
|
|
5284
|
+
static readonly componentId = 'minecraft:underwater_movement';
|
|
5285
|
+
}
|
|
5286
|
+
|
|
5287
|
+
/**
|
|
5288
|
+
* @beta
|
|
5289
|
+
* Used to differentiate the component group of a variant of an
|
|
5290
|
+
* entity from others. (e.g. ocelot, villager).
|
|
5291
|
+
*/
|
|
5292
|
+
export class EntityVariantComponent extends EntityComponent {
|
|
5293
|
+
protected constructor();
|
|
5278
5294
|
/**
|
|
5279
5295
|
* @remarks
|
|
5280
|
-
*
|
|
5296
|
+
* The identifier of the variant. By convention, 0 is the
|
|
5297
|
+
* identifier of the base entity.
|
|
5281
5298
|
*
|
|
5299
|
+
* @throws This property can throw when used.
|
|
5282
5300
|
*/
|
|
5283
|
-
readonly
|
|
5301
|
+
readonly value: number;
|
|
5284
5302
|
/**
|
|
5285
5303
|
* @remarks
|
|
5286
|
-
*
|
|
5287
|
-
*
|
|
5304
|
+
* Identifier of this component. Should always be
|
|
5305
|
+
* minecraft:variant.
|
|
5288
5306
|
*
|
|
5289
5307
|
*/
|
|
5290
|
-
readonly
|
|
5308
|
+
static readonly componentId = 'minecraft:variant';
|
|
5309
|
+
}
|
|
5310
|
+
|
|
5311
|
+
/**
|
|
5312
|
+
* @beta
|
|
5313
|
+
* When added, this component signifies that this entity wants
|
|
5314
|
+
* to become a jockey.
|
|
5315
|
+
*/
|
|
5316
|
+
export class EntityWantsJockeyComponent extends EntityComponent {
|
|
5317
|
+
protected constructor();
|
|
5291
5318
|
/**
|
|
5292
5319
|
* @remarks
|
|
5293
|
-
*
|
|
5294
|
-
*
|
|
5295
|
-
* within the scope of a world Initialize event.
|
|
5320
|
+
* Identifier of this component. Should always be
|
|
5321
|
+
* minecraft:wants_jockey.
|
|
5296
5322
|
*
|
|
5297
5323
|
*/
|
|
5298
|
-
readonly
|
|
5324
|
+
static readonly componentId = 'minecraft:wants_jockey';
|
|
5299
5325
|
}
|
|
5326
|
+
|
|
5300
5327
|
/**
|
|
5301
5328
|
* @beta
|
|
5302
5329
|
* Contains information regarding an explosion that has
|
|
@@ -5315,17 +5342,19 @@ export class ExplosionAfterEvent {
|
|
|
5315
5342
|
* Optional source of the explosion.
|
|
5316
5343
|
*
|
|
5317
5344
|
*/
|
|
5318
|
-
readonly source
|
|
5345
|
+
readonly source?: Entity;
|
|
5319
5346
|
getImpactedBlocks(): Vector3[];
|
|
5320
5347
|
}
|
|
5348
|
+
|
|
5321
5349
|
/**
|
|
5322
5350
|
* @beta
|
|
5323
5351
|
* Manages callbacks that are connected to when an explosion
|
|
5324
5352
|
* occurs.
|
|
5325
5353
|
*/
|
|
5326
|
-
export class
|
|
5354
|
+
export class ExplosionAfterEventSignal extends IExplosionAfterEventSignal {
|
|
5327
5355
|
protected constructor();
|
|
5328
5356
|
}
|
|
5357
|
+
|
|
5329
5358
|
/**
|
|
5330
5359
|
* @beta
|
|
5331
5360
|
* Contains information regarding an explosion that has
|
|
@@ -5341,6 +5370,7 @@ export class ExplosionBeforeEvent extends ExplosionAfterEvent {
|
|
|
5341
5370
|
cancel: boolean;
|
|
5342
5371
|
setImpactedBlocks(blocks: Vector3[]): void;
|
|
5343
5372
|
}
|
|
5373
|
+
|
|
5344
5374
|
/**
|
|
5345
5375
|
* @beta
|
|
5346
5376
|
* Manages callbacks that are connected to before an explosion
|
|
@@ -5349,6 +5379,7 @@ export class ExplosionBeforeEvent extends ExplosionAfterEvent {
|
|
|
5349
5379
|
export class ExplosionBeforeEventSignal extends IExplosionBeforeEventSignal {
|
|
5350
5380
|
protected constructor();
|
|
5351
5381
|
}
|
|
5382
|
+
|
|
5352
5383
|
/**
|
|
5353
5384
|
* @beta
|
|
5354
5385
|
* As part of the Healable component, represents a specific
|
|
@@ -5380,6 +5411,7 @@ export class FeedItem {
|
|
|
5380
5411
|
*/
|
|
5381
5412
|
getEffects(): FeedItemEffect[];
|
|
5382
5413
|
}
|
|
5414
|
+
|
|
5383
5415
|
/**
|
|
5384
5416
|
* @beta
|
|
5385
5417
|
* Represents an effect that is applied as a result of a food
|
|
@@ -5416,6 +5448,7 @@ export class FeedItemEffect {
|
|
|
5416
5448
|
*/
|
|
5417
5449
|
readonly name: string;
|
|
5418
5450
|
}
|
|
5451
|
+
|
|
5419
5452
|
/**
|
|
5420
5453
|
* @beta
|
|
5421
5454
|
* Represents a set of filters for when an event should occur.
|
|
@@ -5423,6 +5456,7 @@ export class FeedItemEffect {
|
|
|
5423
5456
|
export class FilterGroup {
|
|
5424
5457
|
protected constructor();
|
|
5425
5458
|
}
|
|
5459
|
+
|
|
5426
5460
|
/**
|
|
5427
5461
|
* @beta
|
|
5428
5462
|
* Represents constants related to fluid containers.
|
|
@@ -5444,6 +5478,7 @@ export class FluidContainer {
|
|
|
5444
5478
|
*/
|
|
5445
5479
|
static readonly minFillLevel = 0;
|
|
5446
5480
|
}
|
|
5481
|
+
|
|
5447
5482
|
/**
|
|
5448
5483
|
* @beta
|
|
5449
5484
|
*/
|
|
@@ -5463,6 +5498,7 @@ export class IBlockBreakAfterEventSignal {
|
|
|
5463
5498
|
*/
|
|
5464
5499
|
unsubscribe(callback: (arg: BlockBreakAfterEvent) => void): void;
|
|
5465
5500
|
}
|
|
5501
|
+
|
|
5466
5502
|
/**
|
|
5467
5503
|
* @beta
|
|
5468
5504
|
*/
|
|
@@ -5482,6 +5518,7 @@ export class IBlockExplodeAfterEventSignal {
|
|
|
5482
5518
|
*/
|
|
5483
5519
|
unsubscribe(callback: (arg: BlockExplodeAfterEvent) => void): void;
|
|
5484
5520
|
}
|
|
5521
|
+
|
|
5485
5522
|
/**
|
|
5486
5523
|
* @beta
|
|
5487
5524
|
*/
|
|
@@ -5501,6 +5538,7 @@ export class IBlockPlaceAfterEventSignal {
|
|
|
5501
5538
|
*/
|
|
5502
5539
|
unsubscribe(callback: (arg: BlockPlaceAfterEvent) => void): void;
|
|
5503
5540
|
}
|
|
5541
|
+
|
|
5504
5542
|
/**
|
|
5505
5543
|
* @beta
|
|
5506
5544
|
*/
|
|
@@ -5520,6 +5558,7 @@ export class IButtonPushAfterEventSignal {
|
|
|
5520
5558
|
*/
|
|
5521
5559
|
unsubscribe(callback: (arg: ButtonPushAfterEvent) => void): void;
|
|
5522
5560
|
}
|
|
5561
|
+
|
|
5523
5562
|
/**
|
|
5524
5563
|
* @beta
|
|
5525
5564
|
*/
|
|
@@ -5539,6 +5578,7 @@ export class IChatSendAfterEventSignal {
|
|
|
5539
5578
|
*/
|
|
5540
5579
|
unsubscribe(callback: (arg: ChatSendAfterEvent) => void): void;
|
|
5541
5580
|
}
|
|
5581
|
+
|
|
5542
5582
|
/**
|
|
5543
5583
|
* @beta
|
|
5544
5584
|
*/
|
|
@@ -5558,6 +5598,7 @@ export class IChatSendBeforeEventSignal {
|
|
|
5558
5598
|
*/
|
|
5559
5599
|
unsubscribe(callback: (arg: ChatSendBeforeEvent) => void): void;
|
|
5560
5600
|
}
|
|
5601
|
+
|
|
5561
5602
|
/**
|
|
5562
5603
|
* @beta
|
|
5563
5604
|
*/
|
|
@@ -5580,6 +5621,7 @@ export class IDataDrivenEntityTriggerAfterEventSignal {
|
|
|
5580
5621
|
*/
|
|
5581
5622
|
unsubscribe(callback: (arg: DataDrivenEntityTriggerAfterEvent) => void): void;
|
|
5582
5623
|
}
|
|
5624
|
+
|
|
5583
5625
|
/**
|
|
5584
5626
|
* @beta
|
|
5585
5627
|
*/
|
|
@@ -5602,6 +5644,7 @@ export class IDataDrivenEntityTriggerBeforeEventSignal {
|
|
|
5602
5644
|
*/
|
|
5603
5645
|
unsubscribe(callback: (arg: DataDrivenEntityTriggerBeforeEvent) => void): void;
|
|
5604
5646
|
}
|
|
5647
|
+
|
|
5605
5648
|
/**
|
|
5606
5649
|
* @beta
|
|
5607
5650
|
*/
|
|
@@ -5624,6 +5667,7 @@ export class IEffectAddAfterEventSignal {
|
|
|
5624
5667
|
*/
|
|
5625
5668
|
unsubscribe(callback: (arg: EffectAddAfterEvent) => void): void;
|
|
5626
5669
|
}
|
|
5670
|
+
|
|
5627
5671
|
/**
|
|
5628
5672
|
* @beta
|
|
5629
5673
|
*/
|
|
@@ -5646,6 +5690,7 @@ export class IEntityDieAfterEventSignal {
|
|
|
5646
5690
|
*/
|
|
5647
5691
|
unsubscribe(callback: (arg: EntityDieAfterEvent) => void): void;
|
|
5648
5692
|
}
|
|
5693
|
+
|
|
5649
5694
|
/**
|
|
5650
5695
|
* @beta
|
|
5651
5696
|
*/
|
|
@@ -5668,6 +5713,7 @@ export class IEntityHitAfterEventSignal {
|
|
|
5668
5713
|
*/
|
|
5669
5714
|
unsubscribe(callback: (arg: EntityHitAfterEvent) => void): void;
|
|
5670
5715
|
}
|
|
5716
|
+
|
|
5671
5717
|
/**
|
|
5672
5718
|
* @beta
|
|
5673
5719
|
*/
|
|
@@ -5690,6 +5736,7 @@ export class IEntityHurtAfterEventSignal {
|
|
|
5690
5736
|
*/
|
|
5691
5737
|
unsubscribe(callback: (arg: EntityHurtAfterEvent) => void): void;
|
|
5692
5738
|
}
|
|
5739
|
+
|
|
5693
5740
|
/**
|
|
5694
5741
|
* @beta
|
|
5695
5742
|
*/
|
|
@@ -5709,6 +5756,7 @@ export class IEntitySpawnAfterEventSignal {
|
|
|
5709
5756
|
*/
|
|
5710
5757
|
unsubscribe(callback: (arg: EntitySpawnAfterEvent) => void): void;
|
|
5711
5758
|
}
|
|
5759
|
+
|
|
5712
5760
|
/**
|
|
5713
5761
|
* @beta
|
|
5714
5762
|
*/
|
|
@@ -5728,6 +5776,7 @@ export class IExplosionAfterEventSignal {
|
|
|
5728
5776
|
*/
|
|
5729
5777
|
unsubscribe(callback: (arg: ExplosionAfterEvent) => void): void;
|
|
5730
5778
|
}
|
|
5779
|
+
|
|
5731
5780
|
/**
|
|
5732
5781
|
* @beta
|
|
5733
5782
|
*/
|
|
@@ -5747,6 +5796,7 @@ export class IExplosionBeforeEventSignal {
|
|
|
5747
5796
|
*/
|
|
5748
5797
|
unsubscribe(callback: (arg: ExplosionBeforeEvent) => void): void;
|
|
5749
5798
|
}
|
|
5799
|
+
|
|
5750
5800
|
/**
|
|
5751
5801
|
* @beta
|
|
5752
5802
|
*/
|
|
@@ -5766,6 +5816,7 @@ export class IItemCompleteChargeAfterEventSignal {
|
|
|
5766
5816
|
*/
|
|
5767
5817
|
unsubscribe(callback: (arg: ItemCompleteChargeAfterEvent) => void): void;
|
|
5768
5818
|
}
|
|
5819
|
+
|
|
5769
5820
|
/**
|
|
5770
5821
|
* @beta
|
|
5771
5822
|
*/
|
|
@@ -5787,6 +5838,7 @@ export class IItemDefinitionAfterEventSignal {
|
|
|
5787
5838
|
*/
|
|
5788
5839
|
unsubscribe(callback: (arg: ItemDefinitionTriggeredAfterEvent) => void): void;
|
|
5789
5840
|
}
|
|
5841
|
+
|
|
5790
5842
|
/**
|
|
5791
5843
|
* @beta
|
|
5792
5844
|
*/
|
|
@@ -5808,6 +5860,7 @@ export class IItemDefinitionBeforeEventSignal {
|
|
|
5808
5860
|
*/
|
|
5809
5861
|
unsubscribe(callback: (arg: ItemDefinitionTriggeredBeforeEvent) => void): void;
|
|
5810
5862
|
}
|
|
5863
|
+
|
|
5811
5864
|
/**
|
|
5812
5865
|
* @beta
|
|
5813
5866
|
*/
|
|
@@ -5827,6 +5880,7 @@ export class IItemReleaseChargeAfterEventSignal {
|
|
|
5827
5880
|
*/
|
|
5828
5881
|
unsubscribe(callback: (arg: ItemReleaseChargeAfterEvent) => void): void;
|
|
5829
5882
|
}
|
|
5883
|
+
|
|
5830
5884
|
/**
|
|
5831
5885
|
* @beta
|
|
5832
5886
|
*/
|
|
@@ -5846,6 +5900,7 @@ export class IItemStartChargeAfterEventSignal {
|
|
|
5846
5900
|
*/
|
|
5847
5901
|
unsubscribe(callback: (arg: ItemStartChargeAfterEvent) => void): void;
|
|
5848
5902
|
}
|
|
5903
|
+
|
|
5849
5904
|
/**
|
|
5850
5905
|
* @beta
|
|
5851
5906
|
*/
|
|
@@ -5865,6 +5920,7 @@ export class IItemStartUseOnAfterEventSignal {
|
|
|
5865
5920
|
*/
|
|
5866
5921
|
unsubscribe(callback: (arg: ItemStartUseOnAfterEvent) => void): void;
|
|
5867
5922
|
}
|
|
5923
|
+
|
|
5868
5924
|
/**
|
|
5869
5925
|
* @beta
|
|
5870
5926
|
*/
|
|
@@ -5884,6 +5940,7 @@ export class IItemStopChargeAfterEventSignal {
|
|
|
5884
5940
|
*/
|
|
5885
5941
|
unsubscribe(callback: (arg: ItemStopChargeAfterEvent) => void): void;
|
|
5886
5942
|
}
|
|
5943
|
+
|
|
5887
5944
|
/**
|
|
5888
5945
|
* @beta
|
|
5889
5946
|
*/
|
|
@@ -5903,6 +5960,7 @@ export class IItemStopUseOnAfterEventSignal {
|
|
|
5903
5960
|
*/
|
|
5904
5961
|
unsubscribe(callback: (arg: ItemStopUseOnAfterEvent) => void): void;
|
|
5905
5962
|
}
|
|
5963
|
+
|
|
5906
5964
|
/**
|
|
5907
5965
|
* @beta
|
|
5908
5966
|
*/
|
|
@@ -5922,6 +5980,7 @@ export class IItemUseAfterEventSignal {
|
|
|
5922
5980
|
*/
|
|
5923
5981
|
unsubscribe(callback: (arg: ItemUseAfterEvent) => void): void;
|
|
5924
5982
|
}
|
|
5983
|
+
|
|
5925
5984
|
/**
|
|
5926
5985
|
* @beta
|
|
5927
5986
|
*/
|
|
@@ -5941,6 +6000,7 @@ export class IItemUseBeforeEventSignal {
|
|
|
5941
6000
|
*/
|
|
5942
6001
|
unsubscribe(callback: (arg: ItemUseBeforeEvent) => void): void;
|
|
5943
6002
|
}
|
|
6003
|
+
|
|
5944
6004
|
/**
|
|
5945
6005
|
* @beta
|
|
5946
6006
|
*/
|
|
@@ -5960,6 +6020,7 @@ export class IItemUseOnAfterEventSignal {
|
|
|
5960
6020
|
*/
|
|
5961
6021
|
unsubscribe(callback: (arg: ItemUseOnAfterEvent) => void): void;
|
|
5962
6022
|
}
|
|
6023
|
+
|
|
5963
6024
|
/**
|
|
5964
6025
|
* @beta
|
|
5965
6026
|
*/
|
|
@@ -5979,6 +6040,7 @@ export class IItemUseOnBeforeEventSignal {
|
|
|
5979
6040
|
*/
|
|
5980
6041
|
unsubscribe(callback: (arg: ItemUseOnBeforeEvent) => void): void;
|
|
5981
6042
|
}
|
|
6043
|
+
|
|
5982
6044
|
/**
|
|
5983
6045
|
* @beta
|
|
5984
6046
|
*/
|
|
@@ -5998,6 +6060,7 @@ export class ILeverActionAfterEventSignal {
|
|
|
5998
6060
|
*/
|
|
5999
6061
|
unsubscribe(callback: (arg: LeverActionAfterEvent) => void): void;
|
|
6000
6062
|
}
|
|
6063
|
+
|
|
6001
6064
|
/**
|
|
6002
6065
|
* @beta
|
|
6003
6066
|
*/
|
|
@@ -6017,6 +6080,7 @@ export class IPistonActivateAfterEventSignal {
|
|
|
6017
6080
|
*/
|
|
6018
6081
|
unsubscribe(callback: (arg: PistonActivateAfterEvent) => void): void;
|
|
6019
6082
|
}
|
|
6083
|
+
|
|
6020
6084
|
/**
|
|
6021
6085
|
* @beta
|
|
6022
6086
|
*/
|
|
@@ -6036,6 +6100,7 @@ export class IPistonActivateBeforeEventSignal {
|
|
|
6036
6100
|
*/
|
|
6037
6101
|
unsubscribe(callback: (arg: PistonActivateBeforeEvent) => void): void;
|
|
6038
6102
|
}
|
|
6103
|
+
|
|
6039
6104
|
/**
|
|
6040
6105
|
* @beta
|
|
6041
6106
|
*/
|
|
@@ -6055,6 +6120,7 @@ export class IPlayerJoinAfterEventSignal {
|
|
|
6055
6120
|
*/
|
|
6056
6121
|
unsubscribe(callback: (arg: PlayerJoinAfterEvent) => void): void;
|
|
6057
6122
|
}
|
|
6123
|
+
|
|
6058
6124
|
/**
|
|
6059
6125
|
* @beta
|
|
6060
6126
|
*/
|
|
@@ -6074,6 +6140,7 @@ export class IPlayerLeaveAfterEventSignal {
|
|
|
6074
6140
|
*/
|
|
6075
6141
|
unsubscribe(callback: (arg: PlayerLeaveAfterEvent) => void): void;
|
|
6076
6142
|
}
|
|
6143
|
+
|
|
6077
6144
|
/**
|
|
6078
6145
|
* @beta
|
|
6079
6146
|
*/
|
|
@@ -6093,6 +6160,7 @@ export class IPlayerSpawnAfterEventSignal {
|
|
|
6093
6160
|
*/
|
|
6094
6161
|
unsubscribe(callback: (arg: PlayerSpawnAfterEvent) => void): void;
|
|
6095
6162
|
}
|
|
6163
|
+
|
|
6096
6164
|
/**
|
|
6097
6165
|
* @beta
|
|
6098
6166
|
*/
|
|
@@ -6112,6 +6180,7 @@ export class IProjectileHitAfterEventSignal {
|
|
|
6112
6180
|
*/
|
|
6113
6181
|
unsubscribe(callback: (arg: ProjectileHitAfterEvent) => void): void;
|
|
6114
6182
|
}
|
|
6183
|
+
|
|
6115
6184
|
/**
|
|
6116
6185
|
* @beta
|
|
6117
6186
|
*/
|
|
@@ -6134,6 +6203,7 @@ export class IScriptEventCommandMessageAfterEventSignal {
|
|
|
6134
6203
|
*/
|
|
6135
6204
|
unsubscribe(callback: (arg: ScriptEventCommandMessageAfterEvent) => void): void;
|
|
6136
6205
|
}
|
|
6206
|
+
|
|
6137
6207
|
/**
|
|
6138
6208
|
* @beta
|
|
6139
6209
|
*/
|
|
@@ -6153,6 +6223,7 @@ export class IServerMessageAfterEventSignal {
|
|
|
6153
6223
|
*/
|
|
6154
6224
|
unsubscribe(callback: (arg: MessageReceiveAfterEvent) => void): void;
|
|
6155
6225
|
}
|
|
6226
|
+
|
|
6156
6227
|
/**
|
|
6157
6228
|
* @beta
|
|
6158
6229
|
* Contains information related to a chargeable item completing
|
|
@@ -6180,14 +6251,16 @@ export class ItemCompleteChargeAfterEvent {
|
|
|
6180
6251
|
*/
|
|
6181
6252
|
readonly useDuration: number;
|
|
6182
6253
|
}
|
|
6254
|
+
|
|
6183
6255
|
/**
|
|
6184
6256
|
* @beta
|
|
6185
6257
|
* Manages callbacks that are connected to the completion of
|
|
6186
6258
|
* charging for a chargeable item.
|
|
6187
6259
|
*/
|
|
6188
|
-
export class
|
|
6260
|
+
export class ItemCompleteChargeAfterEventSignal extends IItemCompleteChargeAfterEventSignal {
|
|
6189
6261
|
protected constructor();
|
|
6190
6262
|
}
|
|
6263
|
+
|
|
6191
6264
|
/**
|
|
6192
6265
|
* @beta
|
|
6193
6266
|
* Base class for item components.
|
|
@@ -6195,6 +6268,7 @@ export class ItemCompleteChargeAfterEventSignal_deprecated extends IItemComplete
|
|
|
6195
6268
|
export class ItemComponent extends Component {
|
|
6196
6269
|
protected constructor();
|
|
6197
6270
|
}
|
|
6271
|
+
|
|
6198
6272
|
/**
|
|
6199
6273
|
* @beta
|
|
6200
6274
|
* When present on an item, this item has a cooldown effect
|
|
@@ -6235,14 +6309,16 @@ export class ItemCooldownComponent extends ItemComponent {
|
|
|
6235
6309
|
*/
|
|
6236
6310
|
startCooldown(player: Player): void;
|
|
6237
6311
|
}
|
|
6312
|
+
|
|
6238
6313
|
/**
|
|
6239
6314
|
* @beta
|
|
6240
6315
|
* Manages callbacks that are connected to an item's definition
|
|
6241
6316
|
* and components changing.
|
|
6242
6317
|
*/
|
|
6243
|
-
export class
|
|
6318
|
+
export class ItemDefinitionAfterEventSignal extends IItemDefinitionAfterEventSignal {
|
|
6244
6319
|
protected constructor();
|
|
6245
6320
|
}
|
|
6321
|
+
|
|
6246
6322
|
/**
|
|
6247
6323
|
* @beta
|
|
6248
6324
|
* Manages callbacks that are connected to an item's definition
|
|
@@ -6251,6 +6327,7 @@ export class ItemDefinitionAfterEventSignal_deprecated extends IItemDefinitionAf
|
|
|
6251
6327
|
export class ItemDefinitionBeforeEventSignal extends IItemDefinitionBeforeEventSignal {
|
|
6252
6328
|
protected constructor();
|
|
6253
6329
|
}
|
|
6330
|
+
|
|
6254
6331
|
/**
|
|
6255
6332
|
* @beta
|
|
6256
6333
|
* Contains information related to a custom item having a data
|
|
@@ -6273,6 +6350,7 @@ export class ItemDefinitionTriggeredAfterEvent {
|
|
|
6273
6350
|
*/
|
|
6274
6351
|
readonly source: Entity;
|
|
6275
6352
|
}
|
|
6353
|
+
|
|
6276
6354
|
/**
|
|
6277
6355
|
* @beta
|
|
6278
6356
|
* Contains information related to a triggering of a custom
|
|
@@ -6288,6 +6366,7 @@ export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredA
|
|
|
6288
6366
|
*/
|
|
6289
6367
|
cancel: boolean;
|
|
6290
6368
|
}
|
|
6369
|
+
|
|
6291
6370
|
/**
|
|
6292
6371
|
* @beta
|
|
6293
6372
|
* When present on an item, this item can take damage in the
|
|
@@ -6344,6 +6423,7 @@ export class ItemDurabilityComponent extends ItemComponent {
|
|
|
6344
6423
|
*/
|
|
6345
6424
|
getDamageRange(): NumberRange;
|
|
6346
6425
|
}
|
|
6426
|
+
|
|
6347
6427
|
/**
|
|
6348
6428
|
* @beta
|
|
6349
6429
|
* When present on an item, this item has applied enchantment
|
|
@@ -6377,6 +6457,7 @@ export class ItemEnchantsComponent extends ItemComponent {
|
|
|
6377
6457
|
*/
|
|
6378
6458
|
removeAllEnchantments(): void;
|
|
6379
6459
|
}
|
|
6460
|
+
|
|
6380
6461
|
/**
|
|
6381
6462
|
* @beta
|
|
6382
6463
|
* When present on an item, this item is consumable by
|
|
@@ -6426,6 +6507,7 @@ export class ItemFoodComponent extends ItemComponent {
|
|
|
6426
6507
|
*/
|
|
6427
6508
|
static readonly componentId = 'minecraft:food';
|
|
6428
6509
|
}
|
|
6510
|
+
|
|
6429
6511
|
/**
|
|
6430
6512
|
* @beta
|
|
6431
6513
|
* Contains information related to a chargeable item when the
|
|
@@ -6454,14 +6536,16 @@ export class ItemReleaseChargeAfterEvent {
|
|
|
6454
6536
|
*/
|
|
6455
6537
|
readonly useDuration: number;
|
|
6456
6538
|
}
|
|
6539
|
+
|
|
6457
6540
|
/**
|
|
6458
6541
|
* @beta
|
|
6459
6542
|
* Manages callbacks that are connected to the releasing of
|
|
6460
6543
|
* charging for a chargeable item.
|
|
6461
6544
|
*/
|
|
6462
|
-
export class
|
|
6545
|
+
export class ItemReleaseChargeAfterEventSignal extends IItemReleaseChargeAfterEventSignal {
|
|
6463
6546
|
protected constructor();
|
|
6464
6547
|
}
|
|
6548
|
+
|
|
6465
6549
|
/**
|
|
6466
6550
|
* @beta
|
|
6467
6551
|
* Defines a collection of items.
|
|
@@ -6558,6 +6642,7 @@ export class ItemStack {
|
|
|
6558
6642
|
*/
|
|
6559
6643
|
constructor(itemType: ItemType | string, amount?: number);
|
|
6560
6644
|
/**
|
|
6645
|
+
* @beta
|
|
6561
6646
|
* @remarks
|
|
6562
6647
|
* Creates an exact copy of the item stack, including any
|
|
6563
6648
|
* custom data or properties.
|
|
@@ -6592,6 +6677,7 @@ export class ItemStack {
|
|
|
6592
6677
|
*/
|
|
6593
6678
|
getComponents(): ItemComponent[];
|
|
6594
6679
|
/**
|
|
6680
|
+
* @beta
|
|
6595
6681
|
* @remarks
|
|
6596
6682
|
* Returns the lore value - a secondary display string - for an
|
|
6597
6683
|
* ItemStack.
|
|
@@ -6601,6 +6687,9 @@ export class ItemStack {
|
|
|
6601
6687
|
* returns an empty array.
|
|
6602
6688
|
*/
|
|
6603
6689
|
getLore(): string[];
|
|
6690
|
+
/**
|
|
6691
|
+
* @beta
|
|
6692
|
+
*/
|
|
6604
6693
|
getTags(): string[];
|
|
6605
6694
|
/**
|
|
6606
6695
|
* @remarks
|
|
@@ -6613,6 +6702,9 @@ export class ItemStack {
|
|
|
6613
6702
|
* is assumed.
|
|
6614
6703
|
*/
|
|
6615
6704
|
hasComponent(componentId: string): boolean;
|
|
6705
|
+
/**
|
|
6706
|
+
* @beta
|
|
6707
|
+
*/
|
|
6616
6708
|
hasTag(tag: string): boolean;
|
|
6617
6709
|
/**
|
|
6618
6710
|
* @remarks
|
|
@@ -6625,6 +6717,7 @@ export class ItemStack {
|
|
|
6625
6717
|
*/
|
|
6626
6718
|
isStackableWith(itemStack: ItemStack): boolean;
|
|
6627
6719
|
/**
|
|
6720
|
+
* @beta
|
|
6628
6721
|
* @remarks
|
|
6629
6722
|
* The list of block types this item can break in Adventure
|
|
6630
6723
|
* mode. The block names are displayed in the item's tooltip.
|
|
@@ -6644,6 +6737,7 @@ export class ItemStack {
|
|
|
6644
6737
|
*/
|
|
6645
6738
|
setCanDestroy(blockIdentifiers?: string[]): void;
|
|
6646
6739
|
/**
|
|
6740
|
+
* @beta
|
|
6647
6741
|
* @remarks
|
|
6648
6742
|
* The list of block types this item can be placed on in
|
|
6649
6743
|
* Adventure mode. This is only applicable to block items. The
|
|
@@ -6664,6 +6758,7 @@ export class ItemStack {
|
|
|
6664
6758
|
*/
|
|
6665
6759
|
setCanPlaceOn(blockIdentifiers?: string[]): void;
|
|
6666
6760
|
/**
|
|
6761
|
+
* @beta
|
|
6667
6762
|
* @remarks
|
|
6668
6763
|
* Sets the lore value - a secondary display string - for an
|
|
6669
6764
|
* ItemStack.
|
|
@@ -6680,6 +6775,7 @@ export class ItemStack {
|
|
|
6680
6775
|
*/
|
|
6681
6776
|
setLore(loreList?: string[]): void;
|
|
6682
6777
|
/**
|
|
6778
|
+
* @beta
|
|
6683
6779
|
* @remarks
|
|
6684
6780
|
* Triggers an item type event. For custom items, a number of
|
|
6685
6781
|
* events are defined in an items' definition for key item
|
|
@@ -6693,6 +6789,7 @@ export class ItemStack {
|
|
|
6693
6789
|
*/
|
|
6694
6790
|
triggerEvent(eventName: string): void;
|
|
6695
6791
|
}
|
|
6792
|
+
|
|
6696
6793
|
/**
|
|
6697
6794
|
* @beta
|
|
6698
6795
|
* Contains information related to a chargeable item starting
|
|
@@ -6720,6 +6817,16 @@ export class ItemStartChargeAfterEvent {
|
|
|
6720
6817
|
*/
|
|
6721
6818
|
readonly useDuration: number;
|
|
6722
6819
|
}
|
|
6820
|
+
|
|
6821
|
+
/**
|
|
6822
|
+
* @beta
|
|
6823
|
+
* Manages callbacks that are connected to the start of
|
|
6824
|
+
* charging for a chargeable item.
|
|
6825
|
+
*/
|
|
6826
|
+
export class ItemStartChargeAfterEventSignal extends IItemStartChargeAfterEventSignal {
|
|
6827
|
+
protected constructor();
|
|
6828
|
+
}
|
|
6829
|
+
|
|
6723
6830
|
/**
|
|
6724
6831
|
* @beta
|
|
6725
6832
|
* Contains information related to an item being used on a
|
|
@@ -6755,14 +6862,16 @@ export class ItemStartUseOnAfterEvent {
|
|
|
6755
6862
|
*/
|
|
6756
6863
|
readonly source: Entity;
|
|
6757
6864
|
}
|
|
6865
|
+
|
|
6758
6866
|
/**
|
|
6759
6867
|
* @beta
|
|
6760
6868
|
* Manages callbacks that are connected to an item starting
|
|
6761
6869
|
* being used on a block event.
|
|
6762
6870
|
*/
|
|
6763
|
-
export class
|
|
6871
|
+
export class ItemStartUseOnAfterEventSignal extends IItemStartUseOnAfterEventSignal {
|
|
6764
6872
|
protected constructor();
|
|
6765
6873
|
}
|
|
6874
|
+
|
|
6766
6875
|
/**
|
|
6767
6876
|
* @beta
|
|
6768
6877
|
* Contains information related to a chargeable item has
|
|
@@ -6791,15 +6900,17 @@ export class ItemStopChargeAfterEvent {
|
|
|
6791
6900
|
*/
|
|
6792
6901
|
readonly useDuration: number;
|
|
6793
6902
|
}
|
|
6903
|
+
|
|
6794
6904
|
/**
|
|
6795
6905
|
* @beta
|
|
6796
6906
|
* Manages callbacks that are connected to the stopping of
|
|
6797
6907
|
* charging for an item that has a registered
|
|
6798
6908
|
* minecraft:chargeable component.
|
|
6799
6909
|
*/
|
|
6800
|
-
export class
|
|
6910
|
+
export class ItemStopChargeAfterEventSignal extends IItemStopChargeAfterEventSignal {
|
|
6801
6911
|
protected constructor();
|
|
6802
6912
|
}
|
|
6913
|
+
|
|
6803
6914
|
/**
|
|
6804
6915
|
* @beta
|
|
6805
6916
|
* Contains information related to an item that has stopped
|
|
@@ -6831,14 +6942,16 @@ export class ItemStopUseOnAfterEvent {
|
|
|
6831
6942
|
*/
|
|
6832
6943
|
readonly source: Entity;
|
|
6833
6944
|
}
|
|
6945
|
+
|
|
6834
6946
|
/**
|
|
6835
6947
|
* @beta
|
|
6836
6948
|
* Manages callbacks that are connected to an item stops used
|
|
6837
6949
|
* on a block event.
|
|
6838
6950
|
*/
|
|
6839
|
-
export class
|
|
6951
|
+
export class ItemStopUseOnAfterEventSignal extends IItemStopUseOnAfterEventSignal {
|
|
6840
6952
|
protected constructor();
|
|
6841
6953
|
}
|
|
6954
|
+
|
|
6842
6955
|
/**
|
|
6843
6956
|
* @beta
|
|
6844
6957
|
* Represents the type of an item - for example, Wool.
|
|
@@ -6853,6 +6966,7 @@ export class ItemType {
|
|
|
6853
6966
|
*/
|
|
6854
6967
|
readonly id: string;
|
|
6855
6968
|
}
|
|
6969
|
+
|
|
6856
6970
|
/**
|
|
6857
6971
|
* @beta
|
|
6858
6972
|
* An iterator over a set of available item types.
|
|
@@ -6872,6 +6986,7 @@ export class ItemTypeIterator implements Iterable<ItemType> {
|
|
|
6872
6986
|
*/
|
|
6873
6987
|
next(): IteratorResult<ItemType>;
|
|
6874
6988
|
}
|
|
6989
|
+
|
|
6875
6990
|
/**
|
|
6876
6991
|
* @beta
|
|
6877
6992
|
* Returns the set of item types registered within Minecraft.
|
|
@@ -6892,6 +7007,7 @@ export class ItemTypes {
|
|
|
6892
7007
|
*/
|
|
6893
7008
|
static getAll(): ItemTypeIterator;
|
|
6894
7009
|
}
|
|
7010
|
+
|
|
6895
7011
|
/**
|
|
6896
7012
|
* @beta
|
|
6897
7013
|
* Contains information related to an item being used. This
|
|
@@ -6907,13 +7023,15 @@ export class ItemUseAfterEvent {
|
|
|
6907
7023
|
*/
|
|
6908
7024
|
readonly source: Entity;
|
|
6909
7025
|
}
|
|
7026
|
+
|
|
6910
7027
|
/**
|
|
6911
7028
|
* @beta
|
|
6912
7029
|
* Manages callbacks that are connected to an item use event.
|
|
6913
7030
|
*/
|
|
6914
|
-
export class
|
|
7031
|
+
export class ItemUseAfterEventSignal extends IItemUseAfterEventSignal {
|
|
6915
7032
|
protected constructor();
|
|
6916
7033
|
}
|
|
7034
|
+
|
|
6917
7035
|
/**
|
|
6918
7036
|
* @beta
|
|
6919
7037
|
* Contains information related to an item being used.
|
|
@@ -6927,6 +7045,7 @@ export class ItemUseBeforeEvent extends ItemUseAfterEvent {
|
|
|
6927
7045
|
*/
|
|
6928
7046
|
cancel: boolean;
|
|
6929
7047
|
}
|
|
7048
|
+
|
|
6930
7049
|
/**
|
|
6931
7050
|
* @beta
|
|
6932
7051
|
* Manages callbacks that fire before an item is used.
|
|
@@ -6934,6 +7053,7 @@ export class ItemUseBeforeEvent extends ItemUseAfterEvent {
|
|
|
6934
7053
|
export class ItemUseBeforeEventSignal extends IItemUseBeforeEventSignal {
|
|
6935
7054
|
protected constructor();
|
|
6936
7055
|
}
|
|
7056
|
+
|
|
6937
7057
|
/**
|
|
6938
7058
|
* @beta
|
|
6939
7059
|
* Contains information related to an item being used on a
|
|
@@ -6969,14 +7089,16 @@ export class ItemUseOnAfterEvent {
|
|
|
6969
7089
|
*/
|
|
6970
7090
|
readonly source: Entity;
|
|
6971
7091
|
}
|
|
7092
|
+
|
|
6972
7093
|
/**
|
|
6973
7094
|
* @beta
|
|
6974
7095
|
* Manages callbacks that are connected to an item being used
|
|
6975
7096
|
* on a block event.
|
|
6976
7097
|
*/
|
|
6977
|
-
export class
|
|
7098
|
+
export class ItemUseOnAfterEventSignal extends IItemUseOnAfterEventSignal {
|
|
6978
7099
|
protected constructor();
|
|
6979
7100
|
}
|
|
7101
|
+
|
|
6980
7102
|
/**
|
|
6981
7103
|
* @beta
|
|
6982
7104
|
* Contains information related to an item being used on a
|
|
@@ -6991,6 +7113,7 @@ export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
|
|
|
6991
7113
|
*/
|
|
6992
7114
|
cancel: boolean;
|
|
6993
7115
|
}
|
|
7116
|
+
|
|
6994
7117
|
/**
|
|
6995
7118
|
* @beta
|
|
6996
7119
|
* Manages callbacks that fire before an item being used on a
|
|
@@ -6999,6 +7122,7 @@ export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent {
|
|
|
6999
7122
|
export class ItemUseOnBeforeEventSignal extends IItemUseOnBeforeEventSignal {
|
|
7000
7123
|
protected constructor();
|
|
7001
7124
|
}
|
|
7125
|
+
|
|
7002
7126
|
/**
|
|
7003
7127
|
* @beta
|
|
7004
7128
|
*/
|
|
@@ -7018,6 +7142,7 @@ export class IWatchdogTerminateBeforeEventSignal {
|
|
|
7018
7142
|
*/
|
|
7019
7143
|
unsubscribe(callback: (arg: WatchdogTerminateBeforeEvent) => void): void;
|
|
7020
7144
|
}
|
|
7145
|
+
|
|
7021
7146
|
/**
|
|
7022
7147
|
* @beta
|
|
7023
7148
|
*/
|
|
@@ -7037,6 +7162,7 @@ export class IWeatherChangeAfterEventSignal {
|
|
|
7037
7162
|
*/
|
|
7038
7163
|
unsubscribe(callback: (arg: WeatherChangeAfterEvent) => void): void;
|
|
7039
7164
|
}
|
|
7165
|
+
|
|
7040
7166
|
/**
|
|
7041
7167
|
* @beta
|
|
7042
7168
|
*/
|
|
@@ -7056,6 +7182,7 @@ export class IWorldInitializeAfterEventSignal {
|
|
|
7056
7182
|
*/
|
|
7057
7183
|
unsubscribe(callback: (arg: WorldInitializeAfterEvent) => void): void;
|
|
7058
7184
|
}
|
|
7185
|
+
|
|
7059
7186
|
/**
|
|
7060
7187
|
* @beta
|
|
7061
7188
|
* Contains information related to changes to a lever
|
|
@@ -7077,14 +7204,16 @@ export class LeverActionAfterEvent extends BlockEvent {
|
|
|
7077
7204
|
*/
|
|
7078
7205
|
readonly player: Player;
|
|
7079
7206
|
}
|
|
7207
|
+
|
|
7080
7208
|
/**
|
|
7081
7209
|
* @beta
|
|
7082
7210
|
* Manages callbacks that are connected to lever moves
|
|
7083
7211
|
* (activates or deactivates).
|
|
7084
7212
|
*/
|
|
7085
|
-
export class
|
|
7213
|
+
export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
|
|
7086
7214
|
protected constructor();
|
|
7087
7215
|
}
|
|
7216
|
+
|
|
7088
7217
|
/**
|
|
7089
7218
|
* @beta
|
|
7090
7219
|
* A specific currently-internal event used for passing
|
|
@@ -7097,6 +7226,7 @@ export class MessageReceiveAfterEvent {
|
|
|
7097
7226
|
readonly player: Player;
|
|
7098
7227
|
readonly sourceType: MessageSourceType;
|
|
7099
7228
|
}
|
|
7229
|
+
|
|
7100
7230
|
/**
|
|
7101
7231
|
* @beta
|
|
7102
7232
|
* Contains definitions of standard Minecraft and Minecraft
|
|
@@ -11609,6 +11739,7 @@ export class MinecraftBlockTypes {
|
|
|
11609
11739
|
*/
|
|
11610
11740
|
static getAllBlockTypes(): BlockType[];
|
|
11611
11741
|
}
|
|
11742
|
+
|
|
11612
11743
|
/**
|
|
11613
11744
|
* A collection of default Minecraft dimension types.
|
|
11614
11745
|
*/
|
|
@@ -11648,6 +11779,7 @@ export class MinecraftDimensionTypes {
|
|
|
11648
11779
|
*/
|
|
11649
11780
|
static readonly theEnd = 'minecraft:the_end';
|
|
11650
11781
|
}
|
|
11782
|
+
|
|
11651
11783
|
/**
|
|
11652
11784
|
* @beta
|
|
11653
11785
|
* Returns available installed effect types within Minecraft.
|
|
@@ -11686,51 +11818,7 @@ export class MinecraftEffectTypes {
|
|
|
11686
11818
|
static readonly weakness: EffectType;
|
|
11687
11819
|
static readonly wither: EffectType;
|
|
11688
11820
|
}
|
|
11689
|
-
|
|
11690
|
-
* @beta
|
|
11691
|
-
* Describes a set of enchantment types.
|
|
11692
|
-
*/
|
|
11693
|
-
export class MinecraftEnchantmentTypes {
|
|
11694
|
-
protected constructor();
|
|
11695
|
-
static readonly aquaAffinity: EnchantmentType;
|
|
11696
|
-
static readonly baneOfArthropods: EnchantmentType;
|
|
11697
|
-
static readonly binding: EnchantmentType;
|
|
11698
|
-
static readonly blastProtection: EnchantmentType;
|
|
11699
|
-
static readonly channeling: EnchantmentType;
|
|
11700
|
-
static readonly depthStrider: EnchantmentType;
|
|
11701
|
-
static readonly efficiency: EnchantmentType;
|
|
11702
|
-
static readonly featherFalling: EnchantmentType;
|
|
11703
|
-
static readonly fireAspect: EnchantmentType;
|
|
11704
|
-
static readonly fireProtection: EnchantmentType;
|
|
11705
|
-
static readonly flame: EnchantmentType;
|
|
11706
|
-
static readonly fortune: EnchantmentType;
|
|
11707
|
-
static readonly frostWalker: EnchantmentType;
|
|
11708
|
-
static readonly impaling: EnchantmentType;
|
|
11709
|
-
static readonly infinity: EnchantmentType;
|
|
11710
|
-
static readonly knockback: EnchantmentType;
|
|
11711
|
-
static readonly looting: EnchantmentType;
|
|
11712
|
-
static readonly loyalty: EnchantmentType;
|
|
11713
|
-
static readonly luckOfTheSea: EnchantmentType;
|
|
11714
|
-
static readonly lure: EnchantmentType;
|
|
11715
|
-
static readonly mending: EnchantmentType;
|
|
11716
|
-
static readonly multishot: EnchantmentType;
|
|
11717
|
-
static readonly piercing: EnchantmentType;
|
|
11718
|
-
static readonly power: EnchantmentType;
|
|
11719
|
-
static readonly projectileProtection: EnchantmentType;
|
|
11720
|
-
static readonly protection: EnchantmentType;
|
|
11721
|
-
static readonly punch: EnchantmentType;
|
|
11722
|
-
static readonly quickCharge: EnchantmentType;
|
|
11723
|
-
static readonly respiration: EnchantmentType;
|
|
11724
|
-
static readonly riptide: EnchantmentType;
|
|
11725
|
-
static readonly sharpness: EnchantmentType;
|
|
11726
|
-
static readonly silkTouch: EnchantmentType;
|
|
11727
|
-
static readonly smite: EnchantmentType;
|
|
11728
|
-
static readonly soulSpeed: EnchantmentType;
|
|
11729
|
-
static readonly swiftSneak: EnchantmentType;
|
|
11730
|
-
static readonly thorns: EnchantmentType;
|
|
11731
|
-
static readonly unbreaking: EnchantmentType;
|
|
11732
|
-
static readonly vanishing: EnchantmentType;
|
|
11733
|
-
}
|
|
11821
|
+
|
|
11734
11822
|
/**
|
|
11735
11823
|
* @beta
|
|
11736
11824
|
*/
|
|
@@ -11851,6 +11939,7 @@ export class MinecraftEntityTypes {
|
|
|
11851
11939
|
static readonly zombieVillager: EntityType;
|
|
11852
11940
|
static readonly zombieVillagerV2: EntityType;
|
|
11853
11941
|
}
|
|
11942
|
+
|
|
11854
11943
|
/**
|
|
11855
11944
|
* @beta
|
|
11856
11945
|
* Contains definitions of standard Minecraft and Minecraft
|
|
@@ -11956,7 +12045,7 @@ export class MinecraftItemTypes {
|
|
|
11956
12045
|
*
|
|
11957
12046
|
*/
|
|
11958
12047
|
static readonly andesiteStairs: ItemType;
|
|
11959
|
-
static readonly
|
|
12048
|
+
static readonly anglerPotterySherd: ItemType;
|
|
11960
12049
|
/**
|
|
11961
12050
|
* @remarks
|
|
11962
12051
|
* Represents an item that can place an anvil within Minecraft.
|
|
@@ -11964,9 +12053,9 @@ export class MinecraftItemTypes {
|
|
|
11964
12053
|
*/
|
|
11965
12054
|
static readonly anvil: ItemType;
|
|
11966
12055
|
static readonly apple: ItemType;
|
|
11967
|
-
static readonly
|
|
12056
|
+
static readonly archerPotterySherd: ItemType;
|
|
11968
12057
|
static readonly armorStand: ItemType;
|
|
11969
|
-
static readonly
|
|
12058
|
+
static readonly armsUpPotterySherd: ItemType;
|
|
11970
12059
|
static readonly arrow: ItemType;
|
|
11971
12060
|
static readonly axolotlBucket: ItemType;
|
|
11972
12061
|
static readonly axolotlSpawnEgg: ItemType;
|
|
@@ -12193,7 +12282,7 @@ export class MinecraftItemTypes {
|
|
|
12193
12282
|
*/
|
|
12194
12283
|
static readonly blackstoneWall: ItemType;
|
|
12195
12284
|
static readonly blackWool: ItemType;
|
|
12196
|
-
static readonly
|
|
12285
|
+
static readonly bladePotterySherd: ItemType;
|
|
12197
12286
|
/**
|
|
12198
12287
|
* @remarks
|
|
12199
12288
|
* Represents an item that can place a blast furnace within
|
|
@@ -12258,7 +12347,7 @@ export class MinecraftItemTypes {
|
|
|
12258
12347
|
static readonly bowl: ItemType;
|
|
12259
12348
|
static readonly brainCoral: ItemType;
|
|
12260
12349
|
static readonly bread: ItemType;
|
|
12261
|
-
static readonly
|
|
12350
|
+
static readonly brewerPotterySherd: ItemType;
|
|
12262
12351
|
/**
|
|
12263
12352
|
* @remarks
|
|
12264
12353
|
* Represents an item that can place a brewing stand within
|
|
@@ -12321,7 +12410,7 @@ export class MinecraftItemTypes {
|
|
|
12321
12410
|
*
|
|
12322
12411
|
*/
|
|
12323
12412
|
static readonly buddingAmethyst: ItemType;
|
|
12324
|
-
static readonly
|
|
12413
|
+
static readonly burnPotterySherd: ItemType;
|
|
12325
12414
|
/**
|
|
12326
12415
|
* @remarks
|
|
12327
12416
|
* Represents an item that can place a cactus within Minecraft.
|
|
@@ -12803,7 +12892,7 @@ export class MinecraftItemTypes {
|
|
|
12803
12892
|
*/
|
|
12804
12893
|
static readonly cyanGlazedTerracotta: ItemType;
|
|
12805
12894
|
static readonly cyanWool: ItemType;
|
|
12806
|
-
static readonly
|
|
12895
|
+
static readonly dangerPotterySherd: ItemType;
|
|
12807
12896
|
static readonly darkOakBoat: ItemType;
|
|
12808
12897
|
/**
|
|
12809
12898
|
* @remarks
|
|
@@ -13193,7 +13282,7 @@ export class MinecraftItemTypes {
|
|
|
13193
13282
|
static readonly endStone: ItemType;
|
|
13194
13283
|
static readonly evokerSpawnEgg: ItemType;
|
|
13195
13284
|
static readonly experienceBottle: ItemType;
|
|
13196
|
-
static readonly
|
|
13285
|
+
static readonly explorerPotterySherd: ItemType;
|
|
13197
13286
|
/**
|
|
13198
13287
|
* @remarks
|
|
13199
13288
|
* Represents an item that can place a block of exposed copper
|
|
@@ -13283,7 +13372,7 @@ export class MinecraftItemTypes {
|
|
|
13283
13372
|
*
|
|
13284
13373
|
*/
|
|
13285
13374
|
static readonly frame: ItemType;
|
|
13286
|
-
static readonly
|
|
13375
|
+
static readonly friendPotterySherd: ItemType;
|
|
13287
13376
|
static readonly frogSpawn: ItemType;
|
|
13288
13377
|
static readonly frogSpawnEgg: ItemType;
|
|
13289
13378
|
/**
|
|
@@ -13479,9 +13568,9 @@ export class MinecraftItemTypes {
|
|
|
13479
13568
|
*
|
|
13480
13569
|
*/
|
|
13481
13570
|
static readonly hayBlock: ItemType;
|
|
13482
|
-
static readonly
|
|
13571
|
+
static readonly heartbreakPotterySherd: ItemType;
|
|
13483
13572
|
static readonly heartOfTheSea: ItemType;
|
|
13484
|
-
static readonly
|
|
13573
|
+
static readonly heartPotterySherd: ItemType;
|
|
13485
13574
|
/**
|
|
13486
13575
|
* @remarks
|
|
13487
13576
|
* Represents an item that can place a heavy weighted pressure
|
|
@@ -13516,7 +13605,7 @@ export class MinecraftItemTypes {
|
|
|
13516
13605
|
static readonly hornCoral: ItemType;
|
|
13517
13606
|
static readonly horseSpawnEgg: ItemType;
|
|
13518
13607
|
static readonly hostArmorTrimSmithingTemplate: ItemType;
|
|
13519
|
-
static readonly
|
|
13608
|
+
static readonly howlPotterySherd: ItemType;
|
|
13520
13609
|
static readonly huskSpawnEgg: ItemType;
|
|
13521
13610
|
/**
|
|
13522
13611
|
* @remarks
|
|
@@ -13885,7 +13974,7 @@ export class MinecraftItemTypes {
|
|
|
13885
13974
|
static readonly melonSlice: ItemType;
|
|
13886
13975
|
static readonly milkBucket: ItemType;
|
|
13887
13976
|
static readonly minecart: ItemType;
|
|
13888
|
-
static readonly
|
|
13977
|
+
static readonly minerPotterySherd: ItemType;
|
|
13889
13978
|
/**
|
|
13890
13979
|
* @remarks
|
|
13891
13980
|
* Represents an item that can place a mob spawner within
|
|
@@ -13937,7 +14026,7 @@ export class MinecraftItemTypes {
|
|
|
13937
14026
|
*
|
|
13938
14027
|
*/
|
|
13939
14028
|
static readonly mossyStoneBrickStairs: ItemType;
|
|
13940
|
-
static readonly
|
|
14029
|
+
static readonly mournerPotterySherd: ItemType;
|
|
13941
14030
|
static readonly mud: ItemType;
|
|
13942
14031
|
static readonly mudBricks: ItemType;
|
|
13943
14032
|
static readonly mudBrickSlab: ItemType;
|
|
@@ -13957,6 +14046,7 @@ export class MinecraftItemTypes {
|
|
|
13957
14046
|
static readonly musicDiscMellohi: ItemType;
|
|
13958
14047
|
static readonly musicDiscOtherside: ItemType;
|
|
13959
14048
|
static readonly musicDiscPigstep: ItemType;
|
|
14049
|
+
static readonly musicDiscRelic: ItemType;
|
|
13960
14050
|
static readonly musicDiscStal: ItemType;
|
|
13961
14051
|
static readonly musicDiscStrad: ItemType;
|
|
13962
14052
|
static readonly musicDiscWait: ItemType;
|
|
@@ -14193,7 +14283,7 @@ export class MinecraftItemTypes {
|
|
|
14193
14283
|
*
|
|
14194
14284
|
*/
|
|
14195
14285
|
static readonly planks: ItemType;
|
|
14196
|
-
static readonly
|
|
14286
|
+
static readonly plentyPotterySherd: ItemType;
|
|
14197
14287
|
/**
|
|
14198
14288
|
* @remarks
|
|
14199
14289
|
* Represents podzol within Minecraft.
|
|
@@ -14362,7 +14452,7 @@ export class MinecraftItemTypes {
|
|
|
14362
14452
|
*
|
|
14363
14453
|
*/
|
|
14364
14454
|
static readonly prismarineStairs: ItemType;
|
|
14365
|
-
static readonly
|
|
14455
|
+
static readonly prizePotterySherd: ItemType;
|
|
14366
14456
|
static readonly pufferfish: ItemType;
|
|
14367
14457
|
static readonly pufferfishBucket: ItemType;
|
|
14368
14458
|
static readonly pufferfishSpawnEgg: ItemType;
|
|
@@ -14654,10 +14744,10 @@ export class MinecraftItemTypes {
|
|
|
14654
14744
|
static readonly seaPickle: ItemType;
|
|
14655
14745
|
static readonly sentryArmorTrimSmithingTemplate: ItemType;
|
|
14656
14746
|
static readonly shaperArmorTrimSmithingTemplate: ItemType;
|
|
14657
|
-
static readonly
|
|
14747
|
+
static readonly sheafPotterySherd: ItemType;
|
|
14658
14748
|
static readonly shears: ItemType;
|
|
14659
14749
|
static readonly sheepSpawnEgg: ItemType;
|
|
14660
|
-
static readonly
|
|
14750
|
+
static readonly shelterPotterySherd: ItemType;
|
|
14661
14751
|
static readonly shield: ItemType;
|
|
14662
14752
|
/**
|
|
14663
14753
|
* @remarks
|
|
@@ -14693,7 +14783,7 @@ export class MinecraftItemTypes {
|
|
|
14693
14783
|
*/
|
|
14694
14784
|
static readonly skull: ItemType;
|
|
14695
14785
|
static readonly skullBannerPattern: ItemType;
|
|
14696
|
-
static readonly
|
|
14786
|
+
static readonly skullPotterySherd: ItemType;
|
|
14697
14787
|
/**
|
|
14698
14788
|
* @remarks
|
|
14699
14789
|
* Represents slime within Minecraft.
|
|
@@ -14766,7 +14856,7 @@ export class MinecraftItemTypes {
|
|
|
14766
14856
|
static readonly smoothStone: ItemType;
|
|
14767
14857
|
static readonly snifferEgg: ItemType;
|
|
14768
14858
|
static readonly snifferSpawnEgg: ItemType;
|
|
14769
|
-
static readonly
|
|
14859
|
+
static readonly snortPotterySherd: ItemType;
|
|
14770
14860
|
static readonly snoutArmorTrimSmithingTemplate: ItemType;
|
|
14771
14861
|
/**
|
|
14772
14862
|
* @remarks
|
|
@@ -15562,6 +15652,7 @@ export class MinecraftItemTypes {
|
|
|
15562
15652
|
static readonly zombieSpawnEgg: ItemType;
|
|
15563
15653
|
static readonly zombieVillagerSpawnEgg: ItemType;
|
|
15564
15654
|
}
|
|
15655
|
+
|
|
15565
15656
|
/**
|
|
15566
15657
|
* @beta
|
|
15567
15658
|
* Contains a set of additional variable values for further
|
|
@@ -15614,6 +15705,7 @@ export class MolangVariableMap {
|
|
|
15614
15705
|
*/
|
|
15615
15706
|
setVector3(variableName: string, vector: Vector3): MolangVariableMap;
|
|
15616
15707
|
}
|
|
15708
|
+
|
|
15617
15709
|
/**
|
|
15618
15710
|
* @beta
|
|
15619
15711
|
* Contains data resulting from a navigation operation,
|
|
@@ -15636,6 +15728,7 @@ export class NavigationResult {
|
|
|
15636
15728
|
*/
|
|
15637
15729
|
getPath(): Vector3[];
|
|
15638
15730
|
}
|
|
15731
|
+
|
|
15639
15732
|
/**
|
|
15640
15733
|
* @beta
|
|
15641
15734
|
* Contains information related to changes to a piston
|
|
@@ -15656,13 +15749,15 @@ export class PistonActivateAfterEvent extends BlockEvent {
|
|
|
15656
15749
|
*/
|
|
15657
15750
|
readonly piston: BlockPistonComponent;
|
|
15658
15751
|
}
|
|
15752
|
+
|
|
15659
15753
|
/**
|
|
15660
15754
|
* @beta
|
|
15661
15755
|
* Manages callbacks that are connected to piston activations.
|
|
15662
15756
|
*/
|
|
15663
|
-
export class
|
|
15757
|
+
export class PistonActivateAfterEventSignal extends IPistonActivateAfterEventSignal {
|
|
15664
15758
|
protected constructor();
|
|
15665
15759
|
}
|
|
15760
|
+
|
|
15666
15761
|
/**
|
|
15667
15762
|
* @beta
|
|
15668
15763
|
* Contains information related to changes before a piston
|
|
@@ -15690,6 +15785,7 @@ export class PistonActivateBeforeEvent extends BlockEvent {
|
|
|
15690
15785
|
*/
|
|
15691
15786
|
readonly piston: BlockPistonComponent;
|
|
15692
15787
|
}
|
|
15788
|
+
|
|
15693
15789
|
/**
|
|
15694
15790
|
* @beta
|
|
15695
15791
|
* Manages callbacks that are connected to an event that fires
|
|
@@ -15698,6 +15794,7 @@ export class PistonActivateBeforeEvent extends BlockEvent {
|
|
|
15698
15794
|
export class PistonActivateBeforeEventSignal extends IPistonActivateBeforeEventSignal {
|
|
15699
15795
|
protected constructor();
|
|
15700
15796
|
}
|
|
15797
|
+
|
|
15701
15798
|
/**
|
|
15702
15799
|
* Represents a player within the world.
|
|
15703
15800
|
*/
|
|
@@ -15966,6 +16063,7 @@ export class Player extends Entity {
|
|
|
15966
16063
|
*/
|
|
15967
16064
|
startItemCooldown(itemCategory: string, tickDuration: number): void;
|
|
15968
16065
|
}
|
|
16066
|
+
|
|
15969
16067
|
/**
|
|
15970
16068
|
* @beta
|
|
15971
16069
|
* This type is usable for iterating over a set of players.
|
|
@@ -15991,6 +16089,7 @@ export class PlayerIterator implements Iterable<Player> {
|
|
|
15991
16089
|
*/
|
|
15992
16090
|
next(): IteratorResult<Player>;
|
|
15993
16091
|
}
|
|
16092
|
+
|
|
15994
16093
|
/**
|
|
15995
16094
|
* @beta
|
|
15996
16095
|
* Contains information regarding a player that has joined.
|
|
@@ -16013,14 +16112,16 @@ export class PlayerJoinAfterEvent {
|
|
|
16013
16112
|
*/
|
|
16014
16113
|
readonly playerName: string;
|
|
16015
16114
|
}
|
|
16115
|
+
|
|
16016
16116
|
/**
|
|
16017
16117
|
* @beta
|
|
16018
16118
|
* Manages callbacks that are connected to a player joining the
|
|
16019
16119
|
* world.
|
|
16020
16120
|
*/
|
|
16021
|
-
export class
|
|
16121
|
+
export class PlayerJoinAfterEventSignal extends IPlayerJoinAfterEventSignal {
|
|
16022
16122
|
protected constructor();
|
|
16023
16123
|
}
|
|
16124
|
+
|
|
16024
16125
|
/**
|
|
16025
16126
|
* @beta
|
|
16026
16127
|
* Contains information regarding a player that has left the
|
|
@@ -16042,14 +16143,16 @@ export class PlayerLeaveAfterEvent {
|
|
|
16042
16143
|
*/
|
|
16043
16144
|
readonly playerName: string;
|
|
16044
16145
|
}
|
|
16146
|
+
|
|
16045
16147
|
/**
|
|
16046
16148
|
* @beta
|
|
16047
16149
|
* Manages callbacks that are connected to a player leaving the
|
|
16048
16150
|
* world.
|
|
16049
16151
|
*/
|
|
16050
|
-
export class
|
|
16152
|
+
export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
|
|
16051
16153
|
protected constructor();
|
|
16052
16154
|
}
|
|
16155
|
+
|
|
16053
16156
|
/**
|
|
16054
16157
|
* @beta
|
|
16055
16158
|
* An event that contains more information about a player
|
|
@@ -16075,14 +16178,16 @@ export class PlayerSpawnAfterEvent {
|
|
|
16075
16178
|
*/
|
|
16076
16179
|
player: Player;
|
|
16077
16180
|
}
|
|
16181
|
+
|
|
16078
16182
|
/**
|
|
16079
16183
|
* @beta
|
|
16080
16184
|
* Registers an event when a player is spawned (or re-spawned
|
|
16081
16185
|
* after death) and fully ready within the world.
|
|
16082
16186
|
*/
|
|
16083
|
-
export class
|
|
16187
|
+
export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal {
|
|
16084
16188
|
protected constructor();
|
|
16085
16189
|
}
|
|
16190
|
+
|
|
16086
16191
|
/**
|
|
16087
16192
|
* @beta
|
|
16088
16193
|
* Contains information related to a projectile hitting an
|
|
@@ -16133,14 +16238,16 @@ export class ProjectileHitAfterEvent {
|
|
|
16133
16238
|
*/
|
|
16134
16239
|
getEntityHit(): EntityHitInformation | undefined;
|
|
16135
16240
|
}
|
|
16241
|
+
|
|
16136
16242
|
/**
|
|
16137
16243
|
* @beta
|
|
16138
16244
|
* Manages callbacks that are connected to when a projectile
|
|
16139
16245
|
* hits an entity or block.
|
|
16140
16246
|
*/
|
|
16141
|
-
export class
|
|
16247
|
+
export class ProjectileHitAfterEventSignal extends IProjectileHitAfterEventSignal {
|
|
16142
16248
|
protected constructor();
|
|
16143
16249
|
}
|
|
16250
|
+
|
|
16144
16251
|
/**
|
|
16145
16252
|
* @beta
|
|
16146
16253
|
* Provides methods that should be used within the World
|
|
@@ -16172,6 +16279,7 @@ export class PropertyRegistry {
|
|
|
16172
16279
|
*/
|
|
16173
16280
|
registerWorldDynamicProperties(propertiesDefinition: DynamicPropertiesDefinition): void;
|
|
16174
16281
|
}
|
|
16282
|
+
|
|
16175
16283
|
/**
|
|
16176
16284
|
* @beta
|
|
16177
16285
|
* Contains objectives and participants for the scoreboard.
|
|
@@ -16276,6 +16384,7 @@ export class Scoreboard {
|
|
|
16276
16384
|
*/
|
|
16277
16385
|
setScore(objective: ScoreboardObjective, participant: ScoreboardIdentity, score: number): boolean;
|
|
16278
16386
|
}
|
|
16387
|
+
|
|
16279
16388
|
/**
|
|
16280
16389
|
* @beta
|
|
16281
16390
|
* Contains an identity of the scoreboard item.
|
|
@@ -16346,6 +16455,7 @@ export class ScoreboardIdentity {
|
|
|
16346
16455
|
*/
|
|
16347
16456
|
setScore(objective: ScoreboardObjective, score: number): boolean;
|
|
16348
16457
|
}
|
|
16458
|
+
|
|
16349
16459
|
/**
|
|
16350
16460
|
* @beta
|
|
16351
16461
|
* Contains objectives and participants for the scoreboard.
|
|
@@ -16417,6 +16527,7 @@ export class ScoreboardObjective {
|
|
|
16417
16527
|
*/
|
|
16418
16528
|
setScore(participant: ScoreboardIdentity, score: number): boolean;
|
|
16419
16529
|
}
|
|
16530
|
+
|
|
16420
16531
|
/**
|
|
16421
16532
|
* @beta
|
|
16422
16533
|
* Contains a pair of a scoreboard participant and its
|
|
@@ -16437,6 +16548,7 @@ export class ScoreboardScoreInfo {
|
|
|
16437
16548
|
*/
|
|
16438
16549
|
readonly score: number;
|
|
16439
16550
|
}
|
|
16551
|
+
|
|
16440
16552
|
/**
|
|
16441
16553
|
* @beta
|
|
16442
16554
|
* Contains information about user interface elements that are
|
|
@@ -16485,6 +16597,7 @@ export class ScreenDisplay {
|
|
|
16485
16597
|
*/
|
|
16486
16598
|
updateSubtitle(subtitle: string): void;
|
|
16487
16599
|
}
|
|
16600
|
+
|
|
16488
16601
|
/**
|
|
16489
16602
|
* @beta
|
|
16490
16603
|
* Returns additional data about a /scriptevent command
|
|
@@ -16533,6 +16646,7 @@ export class ScriptEventCommandMessageAfterEvent {
|
|
|
16533
16646
|
*/
|
|
16534
16647
|
readonly sourceType: MessageSourceType;
|
|
16535
16648
|
}
|
|
16649
|
+
|
|
16536
16650
|
/**
|
|
16537
16651
|
* @beta
|
|
16538
16652
|
* Allows for registering an event handler that responds to
|
|
@@ -16541,6 +16655,7 @@ export class ScriptEventCommandMessageAfterEvent {
|
|
|
16541
16655
|
export class ScriptEventCommandMessageAfterEventSignal extends IScriptEventCommandMessageAfterEventSignal {
|
|
16542
16656
|
protected constructor();
|
|
16543
16657
|
}
|
|
16658
|
+
|
|
16544
16659
|
/**
|
|
16545
16660
|
* @beta
|
|
16546
16661
|
* Describes a particular seating position on this rideable
|
|
@@ -16576,21 +16691,17 @@ export class Seat {
|
|
|
16576
16691
|
*/
|
|
16577
16692
|
readonly position: Vector3;
|
|
16578
16693
|
}
|
|
16694
|
+
|
|
16579
16695
|
/**
|
|
16580
16696
|
* @beta
|
|
16581
16697
|
* Manages callbacks that are message passing to a server. This
|
|
16582
16698
|
* event is not currently fully implemented, and should not be
|
|
16583
16699
|
* used.
|
|
16584
16700
|
*/
|
|
16585
|
-
export class
|
|
16586
|
-
protected constructor();
|
|
16587
|
-
}
|
|
16588
|
-
/**
|
|
16589
|
-
* @beta
|
|
16590
|
-
*/
|
|
16591
|
-
export class StartChargeAfterEventSignal_deprecated extends IItemStartChargeAfterEventSignal {
|
|
16701
|
+
export class ServerMessageAfterEventSignal extends IServerMessageAfterEventSignal {
|
|
16592
16702
|
protected constructor();
|
|
16593
16703
|
}
|
|
16704
|
+
|
|
16594
16705
|
/**
|
|
16595
16706
|
* A class that provides system-level events and functions.
|
|
16596
16707
|
*/
|
|
@@ -16664,6 +16775,7 @@ export class System {
|
|
|
16664
16775
|
*/
|
|
16665
16776
|
runTimeout(callback: () => void, tickDelay?: number): number;
|
|
16666
16777
|
}
|
|
16778
|
+
|
|
16667
16779
|
/**
|
|
16668
16780
|
* @beta
|
|
16669
16781
|
* Contains a set of events that are available across the scope
|
|
@@ -16690,6 +16802,7 @@ export class SystemEvents {
|
|
|
16690
16802
|
*/
|
|
16691
16803
|
readonly scriptEventReceive: ScriptEventCommandMessageAfterEventSignal;
|
|
16692
16804
|
}
|
|
16805
|
+
|
|
16693
16806
|
/**
|
|
16694
16807
|
* @beta
|
|
16695
16808
|
* Represents a trigger for firing an event.
|
|
@@ -16708,6 +16821,7 @@ export class Trigger {
|
|
|
16708
16821
|
*/
|
|
16709
16822
|
constructor(eventName: string);
|
|
16710
16823
|
}
|
|
16824
|
+
|
|
16711
16825
|
/**
|
|
16712
16826
|
* @beta
|
|
16713
16827
|
* Contains a description of a vector.
|
|
@@ -16884,6 +16998,7 @@ export class Vector {
|
|
|
16884
16998
|
*/
|
|
16885
16999
|
static subtract(a: Vector3, b: Vector3): Vector;
|
|
16886
17000
|
}
|
|
17001
|
+
|
|
16887
17002
|
/**
|
|
16888
17003
|
* @beta
|
|
16889
17004
|
* Contains information related to a script watchdog
|
|
@@ -16908,6 +17023,7 @@ export class WatchdogTerminateBeforeEvent {
|
|
|
16908
17023
|
*/
|
|
16909
17024
|
readonly terminateReason: WatchdogTerminateReason;
|
|
16910
17025
|
}
|
|
17026
|
+
|
|
16911
17027
|
/**
|
|
16912
17028
|
* @beta
|
|
16913
17029
|
* Manages callbacks that are connected to a callback that will
|
|
@@ -16917,6 +17033,7 @@ export class WatchdogTerminateBeforeEvent {
|
|
|
16917
17033
|
export class WatchdogTerminateBeforeEventSignal extends IWatchdogTerminateBeforeEventSignal {
|
|
16918
17034
|
protected constructor();
|
|
16919
17035
|
}
|
|
17036
|
+
|
|
16920
17037
|
/**
|
|
16921
17038
|
* @beta
|
|
16922
17039
|
* Contains information related to changes in weather in the
|
|
@@ -16943,13 +17060,15 @@ export class WeatherChangeAfterEvent {
|
|
|
16943
17060
|
*/
|
|
16944
17061
|
readonly raining: boolean;
|
|
16945
17062
|
}
|
|
17063
|
+
|
|
16946
17064
|
/**
|
|
16947
17065
|
* @beta
|
|
16948
17066
|
* Manages callbacks that are connected to weather changing.
|
|
16949
17067
|
*/
|
|
16950
|
-
export class
|
|
17068
|
+
export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSignal {
|
|
16951
17069
|
protected constructor();
|
|
16952
17070
|
}
|
|
17071
|
+
|
|
16953
17072
|
/**
|
|
16954
17073
|
* A class that wraps the state of a world - a set of
|
|
16955
17074
|
* dimensions and the environment of Minecraft.
|
|
@@ -16961,19 +17080,21 @@ export class World {
|
|
|
16961
17080
|
* @remarks
|
|
16962
17081
|
* Contains a set of events that are applicable to the entirety
|
|
16963
17082
|
* of the world.
|
|
16964
|
-
* Event callbacks are called
|
|
16965
|
-
* Event callbacks are executed in read-
|
|
17083
|
+
* Event callbacks are called in a deferred manner.
|
|
17084
|
+
* Event callbacks are executed in read-write mode.
|
|
16966
17085
|
*
|
|
16967
17086
|
*/
|
|
16968
|
-
readonly
|
|
17087
|
+
readonly afterEvents: AfterEvents;
|
|
16969
17088
|
/**
|
|
16970
17089
|
* @beta
|
|
16971
17090
|
* @remarks
|
|
16972
17091
|
* Contains a set of events that are applicable to the entirety
|
|
16973
17092
|
* of the world.
|
|
17093
|
+
* Event callbacks are called immediately.
|
|
17094
|
+
* Event callbacks are executed in read-only mode.
|
|
16974
17095
|
*
|
|
16975
17096
|
*/
|
|
16976
|
-
readonly
|
|
17097
|
+
readonly beforeEvents: BeforeEvents;
|
|
16977
17098
|
/**
|
|
16978
17099
|
* @beta
|
|
16979
17100
|
* @remarks
|
|
@@ -17202,6 +17323,7 @@ export class World {
|
|
|
17202
17323
|
*/
|
|
17203
17324
|
stopMusic(): void;
|
|
17204
17325
|
}
|
|
17326
|
+
|
|
17205
17327
|
/**
|
|
17206
17328
|
* @beta
|
|
17207
17329
|
* Contains information and methods that can be used at the
|
|
@@ -17221,7 +17343,7 @@ export class WorldInitializeAfterEvent {
|
|
|
17221
17343
|
* ```typescript
|
|
17222
17344
|
* import { DynamicPropertiesDefinition, MinecraftEntityTypes, world } from "@minecraft/server";
|
|
17223
17345
|
*
|
|
17224
|
-
* world.
|
|
17346
|
+
* world.afterEvents.worldInitialize.subscribe((e) => {
|
|
17225
17347
|
* let def = new DynamicPropertiesDefinition();
|
|
17226
17348
|
*
|
|
17227
17349
|
* def.defineNumber("rpgStrength");
|
|
@@ -17235,18 +17357,21 @@ export class WorldInitializeAfterEvent {
|
|
|
17235
17357
|
*/
|
|
17236
17358
|
readonly propertyRegistry: PropertyRegistry;
|
|
17237
17359
|
}
|
|
17360
|
+
|
|
17238
17361
|
/**
|
|
17239
17362
|
* @beta
|
|
17240
17363
|
*/
|
|
17241
|
-
export class
|
|
17364
|
+
export class WorldInitializeAfterEventSignal extends IWorldInitializeAfterEventSignal {
|
|
17242
17365
|
protected constructor();
|
|
17243
17366
|
}
|
|
17367
|
+
|
|
17244
17368
|
/**
|
|
17245
17369
|
* @beta
|
|
17246
17370
|
*/
|
|
17247
17371
|
export interface BlockFillOptions {
|
|
17248
17372
|
matchingBlock?: BlockPermutation;
|
|
17249
17373
|
}
|
|
17374
|
+
|
|
17250
17375
|
/**
|
|
17251
17376
|
* @beta
|
|
17252
17377
|
* Contains more information for events where a block is hit.
|
|
@@ -17272,6 +17397,7 @@ export interface BlockHitInformation {
|
|
|
17272
17397
|
*/
|
|
17273
17398
|
faceLocation: Vector3;
|
|
17274
17399
|
}
|
|
17400
|
+
|
|
17275
17401
|
/**
|
|
17276
17402
|
* @beta
|
|
17277
17403
|
* Contains additional options for configuring a block raycast
|
|
@@ -17299,6 +17425,7 @@ export interface BlockRaycastOptions {
|
|
|
17299
17425
|
*/
|
|
17300
17426
|
maxDistance?: number;
|
|
17301
17427
|
}
|
|
17428
|
+
|
|
17302
17429
|
/**
|
|
17303
17430
|
* @beta
|
|
17304
17431
|
*/
|
|
@@ -17306,6 +17433,7 @@ export interface BlockVolume {
|
|
|
17306
17433
|
from: Vector3;
|
|
17307
17434
|
to: Vector3;
|
|
17308
17435
|
}
|
|
17436
|
+
|
|
17309
17437
|
/**
|
|
17310
17438
|
* @beta
|
|
17311
17439
|
*/
|
|
@@ -17313,6 +17441,7 @@ export interface BoundingBox {
|
|
|
17313
17441
|
max: Vector3;
|
|
17314
17442
|
min: Vector3;
|
|
17315
17443
|
}
|
|
17444
|
+
|
|
17316
17445
|
/**
|
|
17317
17446
|
* @beta
|
|
17318
17447
|
* Represents a fully customizable color within Minecraft.
|
|
@@ -17347,6 +17476,7 @@ export interface Color {
|
|
|
17347
17476
|
*/
|
|
17348
17477
|
red: number;
|
|
17349
17478
|
}
|
|
17479
|
+
|
|
17350
17480
|
/**
|
|
17351
17481
|
* @beta
|
|
17352
17482
|
*/
|
|
@@ -17354,6 +17484,7 @@ export interface CompoundBlockVolumeItem {
|
|
|
17354
17484
|
action: CompoundBlockVolumeAction;
|
|
17355
17485
|
volume: BlockVolume;
|
|
17356
17486
|
}
|
|
17487
|
+
|
|
17357
17488
|
/**
|
|
17358
17489
|
* @beta
|
|
17359
17490
|
*/
|
|
@@ -17361,6 +17492,7 @@ export interface EntityApplyDamageByProjectileOptions {
|
|
|
17361
17492
|
damagingEntity?: Entity;
|
|
17362
17493
|
damagingProjectile: Entity;
|
|
17363
17494
|
}
|
|
17495
|
+
|
|
17364
17496
|
/**
|
|
17365
17497
|
* @beta
|
|
17366
17498
|
*/
|
|
@@ -17368,6 +17500,7 @@ export interface EntityApplyDamageOptions {
|
|
|
17368
17500
|
cause: EntityDamageCause;
|
|
17369
17501
|
damagingEntity?: Entity;
|
|
17370
17502
|
}
|
|
17503
|
+
|
|
17371
17504
|
/**
|
|
17372
17505
|
* @beta
|
|
17373
17506
|
*/
|
|
@@ -17376,6 +17509,7 @@ export interface EntityDamageSource {
|
|
|
17376
17509
|
damagingEntity?: Entity;
|
|
17377
17510
|
damagingProjectile?: Entity;
|
|
17378
17511
|
}
|
|
17512
|
+
|
|
17379
17513
|
/**
|
|
17380
17514
|
* @beta
|
|
17381
17515
|
* Specifies additional filters that are used in registering a
|
|
@@ -17405,6 +17539,7 @@ export interface EntityDataDrivenTriggerEventOptions {
|
|
|
17405
17539
|
*/
|
|
17406
17540
|
eventTypes?: string[];
|
|
17407
17541
|
}
|
|
17542
|
+
|
|
17408
17543
|
/**
|
|
17409
17544
|
* @beta
|
|
17410
17545
|
* Contains optional parameters for registering an entity
|
|
@@ -17426,6 +17561,7 @@ export interface EntityEventOptions {
|
|
|
17426
17561
|
*/
|
|
17427
17562
|
entityTypes?: string[];
|
|
17428
17563
|
}
|
|
17564
|
+
|
|
17429
17565
|
/**
|
|
17430
17566
|
* @beta
|
|
17431
17567
|
* Contains additional information about an entity that was
|
|
@@ -17439,6 +17575,7 @@ export interface EntityHitInformation {
|
|
|
17439
17575
|
*/
|
|
17440
17576
|
entity: Entity;
|
|
17441
17577
|
}
|
|
17578
|
+
|
|
17442
17579
|
/**
|
|
17443
17580
|
* @beta
|
|
17444
17581
|
* Contains options for selecting entities within an area.
|
|
@@ -17609,6 +17746,7 @@ export interface EntityQueryOptions {
|
|
|
17609
17746
|
*/
|
|
17610
17747
|
volume?: BlockAreaSize;
|
|
17611
17748
|
}
|
|
17749
|
+
|
|
17612
17750
|
/**
|
|
17613
17751
|
* @beta
|
|
17614
17752
|
* Contains additional options for filtering players based on
|
|
@@ -17643,6 +17781,7 @@ export interface EntityQueryScoreOptions {
|
|
|
17643
17781
|
*/
|
|
17644
17782
|
objective?: string;
|
|
17645
17783
|
}
|
|
17784
|
+
|
|
17646
17785
|
/**
|
|
17647
17786
|
* @beta
|
|
17648
17787
|
* Contains additional options for an entity raycast operation.
|
|
@@ -17655,6 +17794,7 @@ export interface EntityRaycastOptions {
|
|
|
17655
17794
|
*/
|
|
17656
17795
|
maxDistance?: number;
|
|
17657
17796
|
}
|
|
17797
|
+
|
|
17658
17798
|
/**
|
|
17659
17799
|
* @beta
|
|
17660
17800
|
* Additional configuration options for the {@link
|
|
@@ -17688,6 +17828,7 @@ export interface ExplosionOptions {
|
|
|
17688
17828
|
*/
|
|
17689
17829
|
source?: Entity;
|
|
17690
17830
|
}
|
|
17831
|
+
|
|
17691
17832
|
/**
|
|
17692
17833
|
* @beta
|
|
17693
17834
|
* Additional configuration options for {@link
|
|
@@ -17713,6 +17854,7 @@ export interface MusicOptions {
|
|
|
17713
17854
|
*/
|
|
17714
17855
|
volume?: number;
|
|
17715
17856
|
}
|
|
17857
|
+
|
|
17716
17858
|
/**
|
|
17717
17859
|
* @beta
|
|
17718
17860
|
* Represents a min/max structure for expressing a potential
|
|
@@ -17732,6 +17874,7 @@ export interface NumberRange {
|
|
|
17732
17874
|
*/
|
|
17733
17875
|
min: number;
|
|
17734
17876
|
}
|
|
17877
|
+
|
|
17735
17878
|
/**
|
|
17736
17879
|
* @beta
|
|
17737
17880
|
*/
|
|
@@ -17741,6 +17884,7 @@ export interface PlayAnimationOptions {
|
|
|
17741
17884
|
nextState?: string;
|
|
17742
17885
|
stopExpression?: string;
|
|
17743
17886
|
}
|
|
17887
|
+
|
|
17744
17888
|
/**
|
|
17745
17889
|
* @beta
|
|
17746
17890
|
*/
|
|
@@ -17749,6 +17893,7 @@ export interface PlayerSoundOptions {
|
|
|
17749
17893
|
pitch?: number;
|
|
17750
17894
|
volume?: number;
|
|
17751
17895
|
}
|
|
17896
|
+
|
|
17752
17897
|
/**
|
|
17753
17898
|
* @beta
|
|
17754
17899
|
*/
|
|
@@ -17759,6 +17904,7 @@ export interface RawMessage {
|
|
|
17759
17904
|
translate?: string;
|
|
17760
17905
|
with?: string[] | RawMessage;
|
|
17761
17906
|
}
|
|
17907
|
+
|
|
17762
17908
|
/**
|
|
17763
17909
|
* @beta
|
|
17764
17910
|
*/
|
|
@@ -17766,6 +17912,7 @@ export interface RawMessageScore {
|
|
|
17766
17912
|
name?: string;
|
|
17767
17913
|
objective?: string;
|
|
17768
17914
|
}
|
|
17915
|
+
|
|
17769
17916
|
/**
|
|
17770
17917
|
* @beta
|
|
17771
17918
|
* A `RawMessage` with only the `rawtext` property. When a
|
|
@@ -17777,6 +17924,7 @@ export interface RawMessageScore {
|
|
|
17777
17924
|
export interface RawText {
|
|
17778
17925
|
rawtext?: RawMessage[];
|
|
17779
17926
|
}
|
|
17927
|
+
|
|
17780
17928
|
/**
|
|
17781
17929
|
* @beta
|
|
17782
17930
|
* Contains additional options for how a scoreboard should be
|
|
@@ -17796,12 +17944,14 @@ export interface ScoreboardObjectiveDisplayOptions {
|
|
|
17796
17944
|
*/
|
|
17797
17945
|
sortOrder?: ObjectiveSortOrder;
|
|
17798
17946
|
}
|
|
17947
|
+
|
|
17799
17948
|
/**
|
|
17800
17949
|
* @beta
|
|
17801
17950
|
*/
|
|
17802
17951
|
export interface ScriptEventMessageFilterOptions {
|
|
17803
17952
|
namespaces: string[];
|
|
17804
17953
|
}
|
|
17954
|
+
|
|
17805
17955
|
/**
|
|
17806
17956
|
* @beta
|
|
17807
17957
|
*/
|
|
@@ -17812,6 +17962,7 @@ export interface TeleportOptions {
|
|
|
17812
17962
|
keepVelocity?: boolean;
|
|
17813
17963
|
rotation?: Vector2;
|
|
17814
17964
|
}
|
|
17965
|
+
|
|
17815
17966
|
/**
|
|
17816
17967
|
* @beta
|
|
17817
17968
|
* Contains additional options for displaying a title and
|
|
@@ -17843,6 +17994,7 @@ export interface TitleDisplayOptions {
|
|
|
17843
17994
|
*/
|
|
17844
17995
|
subtitle?: string;
|
|
17845
17996
|
}
|
|
17997
|
+
|
|
17846
17998
|
/**
|
|
17847
17999
|
* @beta
|
|
17848
18000
|
*/
|
|
@@ -17850,6 +18002,7 @@ export interface Vector2 {
|
|
|
17850
18002
|
x: number;
|
|
17851
18003
|
y: number;
|
|
17852
18004
|
}
|
|
18005
|
+
|
|
17853
18006
|
/**
|
|
17854
18007
|
* @beta
|
|
17855
18008
|
* Contains a description of a vector.
|
|
@@ -17874,6 +18027,7 @@ export interface Vector3 {
|
|
|
17874
18027
|
*/
|
|
17875
18028
|
z: number;
|
|
17876
18029
|
}
|
|
18030
|
+
|
|
17877
18031
|
/**
|
|
17878
18032
|
* @beta
|
|
17879
18033
|
*/
|
|
@@ -17881,6 +18035,29 @@ export interface WorldSoundOptions {
|
|
|
17881
18035
|
pitch?: number;
|
|
17882
18036
|
volume?: number;
|
|
17883
18037
|
}
|
|
18038
|
+
|
|
18039
|
+
/**
|
|
18040
|
+
* @beta
|
|
18041
|
+
* The error type thrown when a command fails.
|
|
18042
|
+
*/
|
|
18043
|
+
export class CommandError extends Error {
|
|
18044
|
+
protected constructor();
|
|
18045
|
+
}
|
|
18046
|
+
|
|
18047
|
+
/**
|
|
18048
|
+
* @beta
|
|
18049
|
+
*/
|
|
18050
|
+
export class PositionInUnloadedChunkError extends Error {
|
|
18051
|
+
protected constructor();
|
|
18052
|
+
}
|
|
18053
|
+
|
|
18054
|
+
/**
|
|
18055
|
+
* @beta
|
|
18056
|
+
*/
|
|
18057
|
+
export class PositionOutOfWorldBoundariesError extends Error {
|
|
18058
|
+
protected constructor();
|
|
18059
|
+
}
|
|
18060
|
+
|
|
17884
18061
|
/**
|
|
17885
18062
|
* @beta
|
|
17886
18063
|
*/
|