@minecraft/server 1.2.0-beta.1.19.80-preview.20 → 1.2.0-beta.1.19.80-preview.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +460 -674
- 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.2.0-internal.1.19.80-preview.
|
|
19
|
+
* "version": "1.2.0-internal.1.19.80-preview.23"
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -110,6 +110,9 @@ export enum DyeColor {
|
|
|
110
110
|
white = 'white',
|
|
111
111
|
yellow = 'yellow',
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* @beta
|
|
115
|
+
*/
|
|
113
116
|
export enum EntityDamageCause {
|
|
114
117
|
anvil = 'anvil',
|
|
115
118
|
blockExplosion = 'blockExplosion',
|
|
@@ -143,6 +146,17 @@ export enum EntityDamageCause {
|
|
|
143
146
|
'void' = 'void',
|
|
144
147
|
wither = 'wither',
|
|
145
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* @beta
|
|
151
|
+
*/
|
|
152
|
+
export enum EquipmentSlot {
|
|
153
|
+
chest = 'chest',
|
|
154
|
+
feet = 'feet',
|
|
155
|
+
head = 'head',
|
|
156
|
+
legs = 'legs',
|
|
157
|
+
mainhand = 'mainhand',
|
|
158
|
+
offhand = 'offhand',
|
|
159
|
+
}
|
|
146
160
|
/**
|
|
147
161
|
* @beta
|
|
148
162
|
* Represents the type of fluid for use within a fluid
|
|
@@ -203,11 +217,17 @@ export enum GameMode {
|
|
|
203
217
|
*/
|
|
204
218
|
survival = 'survival',
|
|
205
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* @beta
|
|
222
|
+
*/
|
|
206
223
|
export enum ItemLockMode {
|
|
207
224
|
inventory = 'inventory',
|
|
208
225
|
none = 'none',
|
|
209
226
|
slot = 'slot',
|
|
210
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* @beta
|
|
230
|
+
*/
|
|
211
231
|
export enum MessageSourceType {
|
|
212
232
|
clientScript = 'clientScript',
|
|
213
233
|
commandBlock = 'commandBlock',
|
|
@@ -258,6 +278,9 @@ export enum ScoreboardIdentityType {
|
|
|
258
278
|
*/
|
|
259
279
|
player = 'player',
|
|
260
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* @beta
|
|
283
|
+
*/
|
|
261
284
|
export enum TimeOfDay {
|
|
262
285
|
Day = 1000,
|
|
263
286
|
Noon = 6000,
|
|
@@ -288,205 +311,114 @@ export enum WatchdogTerminateReason {
|
|
|
288
311
|
}
|
|
289
312
|
/**
|
|
290
313
|
* @beta
|
|
291
|
-
* An event that fires as players enter chat messages.
|
|
292
314
|
*/
|
|
293
|
-
export class BeforeChatEvent {
|
|
315
|
+
export class BeforeChatEvent extends ChatEvent {
|
|
294
316
|
protected constructor();
|
|
295
|
-
/**
|
|
296
|
-
* If set to true in a beforeChat event handler, this message
|
|
297
|
-
* is not broadcast out.
|
|
298
|
-
*/
|
|
299
317
|
cancel: boolean;
|
|
300
|
-
/**
|
|
301
|
-
* Message that is being broadcast. In a beforeChat event
|
|
302
|
-
* handler, _message_ can be updated with edits before the
|
|
303
|
-
* message is displayed to players.
|
|
304
|
-
*/
|
|
305
|
-
message: string;
|
|
306
|
-
/**
|
|
307
|
-
* Player that sent the chat message.
|
|
308
|
-
*/
|
|
309
|
-
sender: Player;
|
|
310
|
-
/**
|
|
311
|
-
* If true, this message is directly targeted to one or more
|
|
312
|
-
* players (i.e., is not broadcast.)
|
|
313
|
-
*/
|
|
314
|
-
sendToTargets: boolean;
|
|
315
|
-
getTargets(): Player[];
|
|
316
318
|
setTargets(players: Player[]): void;
|
|
317
319
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
+
/**
|
|
321
|
+
* @beta
|
|
322
|
+
*/
|
|
323
|
+
export class BeforeChatEventSignal_deprecated extends IBeforeChatEventSignal_deprecated {
|
|
320
324
|
protected constructor();
|
|
321
325
|
}
|
|
322
326
|
/**
|
|
323
327
|
* @beta
|
|
324
|
-
* Contains information related to firing of a data driven
|
|
325
|
-
* entity event - for example, the minecraft:ageable_grow_up
|
|
326
|
-
* event on a chicken.
|
|
327
328
|
*/
|
|
328
329
|
export class BeforeDataDrivenEntityTriggerEvent {
|
|
329
330
|
protected constructor();
|
|
330
|
-
/**
|
|
331
|
-
* If set to true, this entity event is not triggered.
|
|
332
|
-
*/
|
|
333
331
|
cancel: boolean;
|
|
334
|
-
/**
|
|
335
|
-
* Entity that the event triggered on.
|
|
336
|
-
*/
|
|
337
332
|
readonly entity: Entity;
|
|
338
|
-
/**
|
|
339
|
-
* Name of the data driven event being triggered.
|
|
340
|
-
*/
|
|
341
333
|
readonly id: string;
|
|
342
334
|
getModifiers(): DefinitionModifier[];
|
|
343
335
|
setModifiers(modifiers: DefinitionModifier[]): void;
|
|
344
336
|
}
|
|
345
|
-
|
|
346
|
-
|
|
337
|
+
/**
|
|
338
|
+
* @beta
|
|
339
|
+
*/
|
|
340
|
+
export class BeforeDataDrivenEntityTriggerEventSignal_deprecated extends IBeforeDataDrivenEntityTriggerEventSignal_deprecated {
|
|
347
341
|
protected constructor();
|
|
348
342
|
}
|
|
349
343
|
/**
|
|
350
344
|
* @beta
|
|
351
|
-
* Contains information regarding an explosion that has
|
|
352
|
-
* happened.
|
|
353
345
|
*/
|
|
354
|
-
export class BeforeExplosionEvent {
|
|
346
|
+
export class BeforeExplosionEvent extends ExplosionEvent {
|
|
355
347
|
protected constructor();
|
|
356
|
-
/**
|
|
357
|
-
* If set to true, cancels the explosion event.
|
|
358
|
-
*/
|
|
359
348
|
cancel: boolean;
|
|
360
|
-
/**
|
|
361
|
-
* Dimension where the explosion has occurred.
|
|
362
|
-
*/
|
|
363
|
-
readonly dimension: Dimension;
|
|
364
|
-
/**
|
|
365
|
-
* Optional source of the explosion.
|
|
366
|
-
*/
|
|
367
|
-
readonly source: Entity;
|
|
368
|
-
getImpactedBlocks(): Vector3[];
|
|
369
349
|
setImpactedBlocks(blocks: Vector3[]): void;
|
|
370
350
|
}
|
|
371
|
-
|
|
372
|
-
|
|
351
|
+
/**
|
|
352
|
+
* @beta
|
|
353
|
+
*/
|
|
354
|
+
export class BeforeExplosionEventSignal_deprecated extends IBeforeExplosionEventSignal_deprecated {
|
|
373
355
|
protected constructor();
|
|
374
356
|
}
|
|
375
|
-
|
|
376
|
-
|
|
357
|
+
/**
|
|
358
|
+
* @beta
|
|
359
|
+
*/
|
|
360
|
+
export class BeforeItemDefinitionEventSignal_deprecated extends IBeforeItemDefinitionEventSignal_deprecated {
|
|
377
361
|
protected constructor();
|
|
378
362
|
}
|
|
379
363
|
/**
|
|
380
364
|
* @beta
|
|
381
|
-
* Contains information related to a triggering of a custom
|
|
382
|
-
* item definition change.
|
|
383
365
|
*/
|
|
384
|
-
export class BeforeItemDefinitionTriggeredEvent {
|
|
366
|
+
export class BeforeItemDefinitionTriggeredEvent extends ItemDefinitionTriggeredEvent {
|
|
385
367
|
protected constructor();
|
|
386
|
-
/**
|
|
387
|
-
* If set to true, will cancel the application of this item
|
|
388
|
-
* definition change.
|
|
389
|
-
*/
|
|
390
368
|
cancel: boolean;
|
|
391
|
-
/**
|
|
392
|
-
* Name of the data-driven item event that is triggering this
|
|
393
|
-
* change.
|
|
394
|
-
*/
|
|
395
|
-
readonly eventName: string;
|
|
396
|
-
/**
|
|
397
|
-
* The impacted item stack that is being used.
|
|
398
|
-
*/
|
|
399
|
-
item: ItemStack;
|
|
400
|
-
/**
|
|
401
|
-
* Returns the source entity that triggered this item event.
|
|
402
|
-
*/
|
|
403
|
-
readonly source: Entity;
|
|
404
369
|
}
|
|
405
370
|
/**
|
|
406
371
|
* @beta
|
|
407
|
-
* Contains information related to an item being used.
|
|
408
372
|
*/
|
|
409
|
-
export class BeforeItemUseEvent {
|
|
373
|
+
export class BeforeItemUseEvent extends ItemUseEvent {
|
|
410
374
|
protected constructor();
|
|
411
|
-
/**
|
|
412
|
-
* If set to true, this will cancel the item use behavior.
|
|
413
|
-
*/
|
|
414
375
|
cancel: boolean;
|
|
415
|
-
/**
|
|
416
|
-
* The impacted item stack that is being used.
|
|
417
|
-
*/
|
|
418
|
-
item: ItemStack;
|
|
419
|
-
/**
|
|
420
|
-
* Returns the source entity that triggered this item event.
|
|
421
|
-
*/
|
|
422
|
-
readonly source: Entity;
|
|
423
376
|
}
|
|
424
|
-
|
|
425
|
-
|
|
377
|
+
/**
|
|
378
|
+
* @beta
|
|
379
|
+
*/
|
|
380
|
+
export class BeforeItemUseEventSignal_deprecated extends IBeforeItemUseEventSignal_deprecated {
|
|
426
381
|
protected constructor();
|
|
427
382
|
}
|
|
428
383
|
/**
|
|
429
384
|
* @beta
|
|
430
|
-
* Contains information related to an item being used on a
|
|
431
|
-
* block.
|
|
432
385
|
*/
|
|
433
386
|
export class BeforeItemUseOnEvent extends ItemUseOnEvent {
|
|
434
387
|
protected constructor();
|
|
435
|
-
/**
|
|
436
|
-
* If set to true, this will cancel the item use behavior.
|
|
437
|
-
*/
|
|
438
388
|
cancel: boolean;
|
|
439
389
|
}
|
|
440
|
-
|
|
441
|
-
|
|
390
|
+
/**
|
|
391
|
+
* @beta
|
|
392
|
+
*/
|
|
393
|
+
export class BeforeItemUseOnEventSignal_deprecated extends IBeforeItemUseOnEventSignal_deprecated {
|
|
442
394
|
protected constructor();
|
|
443
395
|
}
|
|
444
396
|
/**
|
|
445
397
|
* @beta
|
|
446
|
-
* Contains information related to changes before a piston
|
|
447
|
-
* expands or retracts.
|
|
448
398
|
*/
|
|
449
399
|
export class BeforePistonActivateEvent extends BlockEvent {
|
|
450
400
|
protected constructor();
|
|
451
|
-
/**
|
|
452
|
-
* If this is set to true within an event handler, the piston
|
|
453
|
-
* activation is canceled.
|
|
454
|
-
*/
|
|
455
401
|
cancel: boolean;
|
|
456
|
-
/**
|
|
457
|
-
* True if the piston is the process of expanding.
|
|
458
|
-
*/
|
|
459
402
|
readonly isExpanding: boolean;
|
|
460
|
-
/**
|
|
461
|
-
* Contains additional properties and details of the piston.
|
|
462
|
-
*/
|
|
463
403
|
readonly piston: BlockPistonComponent;
|
|
464
404
|
}
|
|
465
|
-
|
|
466
|
-
|
|
405
|
+
/**
|
|
406
|
+
* @beta
|
|
407
|
+
*/
|
|
408
|
+
export class BeforePistonActivateEventSignal_deprecated extends IBeforePistonActivateEventSignal_deprecated {
|
|
467
409
|
protected constructor();
|
|
468
410
|
}
|
|
469
411
|
/**
|
|
470
412
|
* @beta
|
|
471
|
-
* Contains information related to a script watchdog
|
|
472
|
-
* termination.
|
|
473
413
|
*/
|
|
474
414
|
export class BeforeWatchdogTerminateEvent {
|
|
475
415
|
protected constructor();
|
|
476
|
-
/**
|
|
477
|
-
* If set to true, cancels the termination of the script
|
|
478
|
-
* runtime. Note that depending on server configuration
|
|
479
|
-
* settings, cancellation of the termination may not be
|
|
480
|
-
* allowed.
|
|
481
|
-
*/
|
|
482
416
|
cancel: boolean;
|
|
483
|
-
/**
|
|
484
|
-
* Contains the reason why a script runtime is to be
|
|
485
|
-
* terminated.
|
|
486
|
-
*/
|
|
487
417
|
readonly terminateReason: WatchdogTerminateReason;
|
|
488
418
|
}
|
|
489
|
-
|
|
419
|
+
/**
|
|
420
|
+
* @beta
|
|
421
|
+
*/
|
|
490
422
|
export class BeforeWatchdogTerminateEventSignal_deprecated extends IBeforeWatchdogTerminateEventSignal {
|
|
491
423
|
protected constructor();
|
|
492
424
|
}
|
|
@@ -575,6 +507,9 @@ export class Block {
|
|
|
575
507
|
* @throws This function can throw errors.
|
|
576
508
|
*/
|
|
577
509
|
getComponent(componentName: string): BlockComponent | undefined;
|
|
510
|
+
/**
|
|
511
|
+
* @beta
|
|
512
|
+
*/
|
|
578
513
|
getItemStack(amount?: number, withData?: boolean): ItemStack;
|
|
579
514
|
/**
|
|
580
515
|
* @beta
|
|
@@ -620,8 +555,20 @@ export class Block {
|
|
|
620
555
|
* ```
|
|
621
556
|
*/
|
|
622
557
|
hasTag(tag: string): boolean;
|
|
558
|
+
/**
|
|
559
|
+
* @beta
|
|
560
|
+
* @throws This function can throw errors.
|
|
561
|
+
*/
|
|
623
562
|
isAir(): boolean;
|
|
563
|
+
/**
|
|
564
|
+
* @beta
|
|
565
|
+
* @throws This function can throw errors.
|
|
566
|
+
*/
|
|
624
567
|
isLiquid(): boolean;
|
|
568
|
+
/**
|
|
569
|
+
* @beta
|
|
570
|
+
* @throws This function can throw errors.
|
|
571
|
+
*/
|
|
625
572
|
isSolid(): boolean;
|
|
626
573
|
/**
|
|
627
574
|
* @remarks
|
|
@@ -679,37 +626,26 @@ export class BlockAreaSize {
|
|
|
679
626
|
/**
|
|
680
627
|
* @remarks
|
|
681
628
|
* Creates a new BlockAreaSize object.
|
|
682
|
-
* @param x
|
|
683
|
-
* @param y
|
|
684
|
-
* @param z
|
|
685
629
|
*/
|
|
686
630
|
constructor(x: number, y: number, z: number);
|
|
687
631
|
/**
|
|
688
632
|
* @remarks
|
|
689
633
|
* Tests whether this block area size is equal to another
|
|
690
634
|
* BlockAreaSize object.
|
|
691
|
-
* @param other
|
|
692
635
|
*/
|
|
693
636
|
equals(other: BlockAreaSize): boolean;
|
|
694
637
|
}
|
|
695
638
|
/**
|
|
696
639
|
* @beta
|
|
697
|
-
* Contains information regarding an event where a player
|
|
698
|
-
* breaks a block.
|
|
699
640
|
*/
|
|
700
641
|
export class BlockBreakEvent extends BlockEvent {
|
|
701
642
|
protected constructor();
|
|
702
|
-
/**
|
|
703
|
-
* Returns permutation information about this block before it
|
|
704
|
-
* was broken.
|
|
705
|
-
*/
|
|
706
643
|
readonly brokenBlockPermutation: BlockPermutation;
|
|
707
|
-
/**
|
|
708
|
-
* Player that broke the block for this event.
|
|
709
|
-
*/
|
|
710
644
|
readonly player: Player;
|
|
711
645
|
}
|
|
712
|
-
|
|
646
|
+
/**
|
|
647
|
+
* @beta
|
|
648
|
+
*/
|
|
713
649
|
export class BlockBreakEventSignal_deprecated extends IBlockBreakEventSignal {
|
|
714
650
|
protected constructor();
|
|
715
651
|
}
|
|
@@ -740,17 +676,14 @@ export class BlockEvent {
|
|
|
740
676
|
}
|
|
741
677
|
/**
|
|
742
678
|
* @beta
|
|
743
|
-
* Contains information regarding an explosion that has
|
|
744
|
-
* occurred for a specific block.
|
|
745
679
|
*/
|
|
746
680
|
export class BlockExplodeEvent extends BlockEvent {
|
|
747
681
|
protected constructor();
|
|
748
|
-
/**
|
|
749
|
-
* Optional source of the explosion.
|
|
750
|
-
*/
|
|
751
682
|
readonly source: Entity;
|
|
752
683
|
}
|
|
753
|
-
|
|
684
|
+
/**
|
|
685
|
+
* @beta
|
|
686
|
+
*/
|
|
754
687
|
export class BlockExplodeEventSignal_deprecated extends IBlockExplodeEventSignal {
|
|
755
688
|
protected constructor();
|
|
756
689
|
}
|
|
@@ -777,7 +710,6 @@ export class BlockInventoryComponent extends BlockComponent {
|
|
|
777
710
|
* Represents a fluid container block that currently contains
|
|
778
711
|
* lava.
|
|
779
712
|
*/
|
|
780
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
781
713
|
export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
|
|
782
714
|
protected constructor();
|
|
783
715
|
/**
|
|
@@ -786,6 +718,9 @@ export class BlockLavaContainerComponent extends BlockLiquidContainerComponent {
|
|
|
786
718
|
*/
|
|
787
719
|
static readonly componentId = 'minecraft:lavaContainer';
|
|
788
720
|
}
|
|
721
|
+
/**
|
|
722
|
+
* @beta
|
|
723
|
+
*/
|
|
789
724
|
export class BlockLiquidContainerComponent extends BlockComponent {
|
|
790
725
|
protected constructor();
|
|
791
726
|
fillLevel: number;
|
|
@@ -821,12 +756,14 @@ export class BlockPermutation {
|
|
|
821
756
|
* permutation has.
|
|
822
757
|
*/
|
|
823
758
|
getAllProperties(): Record<string, boolean | number | string>;
|
|
759
|
+
/**
|
|
760
|
+
* @beta
|
|
761
|
+
*/
|
|
824
762
|
getItemStack(amount?: number): ItemStack;
|
|
825
763
|
/**
|
|
826
764
|
* @beta
|
|
827
765
|
* @remarks
|
|
828
766
|
* Gets a property for the permutation.
|
|
829
|
-
* @param propertyName
|
|
830
767
|
* @returns
|
|
831
768
|
* Returns the property if the permutation has it, else `null`.
|
|
832
769
|
*/
|
|
@@ -841,7 +778,6 @@ export class BlockPermutation {
|
|
|
841
778
|
* @beta
|
|
842
779
|
* @remarks
|
|
843
780
|
* Checks to see if the permutation has a specific tag.
|
|
844
|
-
* @param tag
|
|
845
781
|
* @returns
|
|
846
782
|
* Returns `true` if the permutation has the tag, else `false`.
|
|
847
783
|
* @example check_block_tags.js
|
|
@@ -860,6 +796,10 @@ export class BlockPermutation {
|
|
|
860
796
|
*/
|
|
861
797
|
hasTag(tag: string): boolean;
|
|
862
798
|
matches(blockName: string, properties?: Record<string, boolean | number | string>): boolean;
|
|
799
|
+
/**
|
|
800
|
+
* @beta
|
|
801
|
+
* @throws This function can throw errors.
|
|
802
|
+
*/
|
|
863
803
|
withProperty(name: string, value: boolean | number | string): BlockPermutation;
|
|
864
804
|
static resolve(blockName: string, properties?: Record<string, boolean | number | string>): BlockPermutation;
|
|
865
805
|
}
|
|
@@ -904,17 +844,14 @@ export class BlockPistonComponent extends BlockComponent {
|
|
|
904
844
|
}
|
|
905
845
|
/**
|
|
906
846
|
* @beta
|
|
907
|
-
* Contains information regarding an event where a player
|
|
908
|
-
* places a block.
|
|
909
847
|
*/
|
|
910
848
|
export class BlockPlaceEvent extends BlockEvent {
|
|
911
849
|
protected constructor();
|
|
912
|
-
/**
|
|
913
|
-
* Player that placed the block for this event.
|
|
914
|
-
*/
|
|
915
850
|
readonly player: Player;
|
|
916
851
|
}
|
|
917
|
-
|
|
852
|
+
/**
|
|
853
|
+
* @beta
|
|
854
|
+
*/
|
|
918
855
|
export class BlockPlaceEventSignal_deprecated extends IBlockPlaceEventSignal {
|
|
919
856
|
protected constructor();
|
|
920
857
|
}
|
|
@@ -944,16 +881,21 @@ export class BlockPotionContainerComponent extends BlockLiquidContainerComponent
|
|
|
944
881
|
* @beta
|
|
945
882
|
* Returns an enumeration of available block properties.
|
|
946
883
|
*/
|
|
947
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
948
884
|
export class BlockProperties {
|
|
949
885
|
protected constructor();
|
|
950
886
|
static get(propertyName: string): BlockPropertyType;
|
|
951
887
|
static getAll(): BlockPropertyType[];
|
|
952
888
|
}
|
|
889
|
+
/**
|
|
890
|
+
* @beta
|
|
891
|
+
*/
|
|
953
892
|
export class BlockProperty {
|
|
954
893
|
protected constructor();
|
|
955
894
|
readonly name: string;
|
|
956
895
|
}
|
|
896
|
+
/**
|
|
897
|
+
* @beta
|
|
898
|
+
*/
|
|
957
899
|
export class BlockPropertyType {
|
|
958
900
|
protected constructor();
|
|
959
901
|
readonly id: string;
|
|
@@ -987,7 +929,6 @@ export class BlockRecordPlayerComponent extends BlockComponent {
|
|
|
987
929
|
/**
|
|
988
930
|
* @remarks
|
|
989
931
|
* Sets and plays a record based on an item type.
|
|
990
|
-
* @param recordItemType
|
|
991
932
|
* @throws This function can throw errors.
|
|
992
933
|
*/
|
|
993
934
|
setRecord(recordItemType: ItemType): void;
|
|
@@ -1075,7 +1016,6 @@ export class BlockSignComponent extends BlockComponent {
|
|
|
1075
1016
|
* Represents a fluid container block that currently contains
|
|
1076
1017
|
* snow.
|
|
1077
1018
|
*/
|
|
1078
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
1079
1019
|
export class BlockSnowContainerComponent extends BlockLiquidContainerComponent {
|
|
1080
1020
|
protected constructor();
|
|
1081
1021
|
/**
|
|
@@ -1117,7 +1057,6 @@ export class BlockWaterContainerComponent extends BlockLiquidContainerComponent
|
|
|
1117
1057
|
/**
|
|
1118
1058
|
* @remarks
|
|
1119
1059
|
* Adds an item and colors the water based on a dye item type.
|
|
1120
|
-
* @param itemType
|
|
1121
1060
|
* @throws This function can throw errors.
|
|
1122
1061
|
*/
|
|
1123
1062
|
addDye(itemType: ItemType): void;
|
|
@@ -1126,43 +1065,30 @@ export class BlockWaterContainerComponent extends BlockLiquidContainerComponent
|
|
|
1126
1065
|
}
|
|
1127
1066
|
/**
|
|
1128
1067
|
* @beta
|
|
1129
|
-
* Contains information related to changes to a button push.
|
|
1130
1068
|
*/
|
|
1131
1069
|
export class ButtonPushEvent extends BlockEvent {
|
|
1132
1070
|
protected constructor();
|
|
1133
|
-
/**
|
|
1134
|
-
* Optional source that triggered the button push.
|
|
1135
|
-
*/
|
|
1136
1071
|
readonly source: Entity;
|
|
1137
1072
|
}
|
|
1138
|
-
|
|
1073
|
+
/**
|
|
1074
|
+
* @beta
|
|
1075
|
+
*/
|
|
1139
1076
|
export class ButtonPushEventSignal_deprecated extends IButtonPushEventSignal {
|
|
1140
1077
|
protected constructor();
|
|
1141
1078
|
}
|
|
1142
1079
|
/**
|
|
1143
1080
|
* @beta
|
|
1144
|
-
* An event that fires as players enter chat messages.
|
|
1145
1081
|
*/
|
|
1146
1082
|
export class ChatEvent {
|
|
1147
1083
|
protected constructor();
|
|
1148
|
-
/**
|
|
1149
|
-
* Message that is being broadcast. In a beforeChat event
|
|
1150
|
-
* handler, _message_ can be updated with edits before the
|
|
1151
|
-
* message is displayed to players.
|
|
1152
|
-
*/
|
|
1153
1084
|
message: string;
|
|
1154
|
-
/**
|
|
1155
|
-
* Player that sent the chat message.
|
|
1156
|
-
*/
|
|
1157
1085
|
sender: Player;
|
|
1158
|
-
/**
|
|
1159
|
-
* If true, this message is directly targeted to one or more
|
|
1160
|
-
* players (i.e., is not broadcast.)
|
|
1161
|
-
*/
|
|
1162
1086
|
sendToTargets: boolean;
|
|
1163
1087
|
getTargets(): Player[];
|
|
1164
1088
|
}
|
|
1165
|
-
|
|
1089
|
+
/**
|
|
1090
|
+
* @beta
|
|
1091
|
+
*/
|
|
1166
1092
|
export class ChatEventSignal_deprecated extends IChatEventSignal {
|
|
1167
1093
|
protected constructor();
|
|
1168
1094
|
}
|
|
@@ -1178,6 +1104,9 @@ export class CommandResult {
|
|
|
1178
1104
|
*/
|
|
1179
1105
|
readonly successCount: number;
|
|
1180
1106
|
}
|
|
1107
|
+
/**
|
|
1108
|
+
* @beta
|
|
1109
|
+
*/
|
|
1181
1110
|
export class Component {
|
|
1182
1111
|
protected constructor();
|
|
1183
1112
|
readonly typeId: string;
|
|
@@ -1429,6 +1358,8 @@ export class ContainerSlot {
|
|
|
1429
1358
|
* Throws if the slot's container is invalid.
|
|
1430
1359
|
*/
|
|
1431
1360
|
getLore(): string[];
|
|
1361
|
+
getTags(): string[];
|
|
1362
|
+
hasTag(tag: string): boolean;
|
|
1432
1363
|
/**
|
|
1433
1364
|
* @remarks
|
|
1434
1365
|
* Returns whether this item stack can be stacked with the
|
|
@@ -1436,7 +1367,6 @@ export class ContainerSlot {
|
|
|
1436
1367
|
* type and any custom data and properties associated with the
|
|
1437
1368
|
* item stacks. The amount of each item stack is not taken into
|
|
1438
1369
|
* consideration.
|
|
1439
|
-
* @param itemStack
|
|
1440
1370
|
* @throws
|
|
1441
1371
|
* Throws if the slot's container is invalid.
|
|
1442
1372
|
*/
|
|
@@ -1446,7 +1376,6 @@ export class ContainerSlot {
|
|
|
1446
1376
|
* The list of block types this item can break in Adventure
|
|
1447
1377
|
* mode. The block names are displayed in the item's tooltip.
|
|
1448
1378
|
* Setting the value to undefined will clear the list.
|
|
1449
|
-
* @param blockIdentifiers
|
|
1450
1379
|
* @throws
|
|
1451
1380
|
* Throws if the slot's container is invalid. Also throws if
|
|
1452
1381
|
* any of the provided block identifiers are invalid.
|
|
@@ -1458,7 +1387,6 @@ export class ContainerSlot {
|
|
|
1458
1387
|
* Adventure mode. This is only applicable to block items. The
|
|
1459
1388
|
* block names are displayed in the item's tooltip. Setting the
|
|
1460
1389
|
* value to undefined will clear the list.
|
|
1461
|
-
* @param blockIdentifiers
|
|
1462
1390
|
* @throws
|
|
1463
1391
|
* Throws if the slot's container is invalid. Also throws if
|
|
1464
1392
|
* any of the provided block identifiers are invalid.
|
|
@@ -1469,7 +1397,6 @@ export class ContainerSlot {
|
|
|
1469
1397
|
* @remarks
|
|
1470
1398
|
* Sets the lore value - a secondary display string - for an
|
|
1471
1399
|
* ItemStack.
|
|
1472
|
-
* @param loreList
|
|
1473
1400
|
* @throws
|
|
1474
1401
|
* Throws if the slot's container is invalid.
|
|
1475
1402
|
*/
|
|
@@ -1477,23 +1404,16 @@ export class ContainerSlot {
|
|
|
1477
1404
|
}
|
|
1478
1405
|
/**
|
|
1479
1406
|
* @beta
|
|
1480
|
-
* Contains information related to firing of a data driven
|
|
1481
|
-
* entity event - for example, the minecraft:ageable_grow_up
|
|
1482
|
-
* event on a chicken.
|
|
1483
1407
|
*/
|
|
1484
1408
|
export class DataDrivenEntityTriggerEvent {
|
|
1485
1409
|
protected constructor();
|
|
1486
|
-
/**
|
|
1487
|
-
* Entity that the event triggered on.
|
|
1488
|
-
*/
|
|
1489
1410
|
readonly entity: Entity;
|
|
1490
|
-
/**
|
|
1491
|
-
* Name of the data driven event being triggered.
|
|
1492
|
-
*/
|
|
1493
1411
|
readonly id: string;
|
|
1494
1412
|
getModifiers(): DefinitionModifier[];
|
|
1495
1413
|
}
|
|
1496
|
-
|
|
1414
|
+
/**
|
|
1415
|
+
* @beta
|
|
1416
|
+
*/
|
|
1497
1417
|
export class DataDrivenEntityTriggerEventSignal_deprecated extends IDataDrivenEntityTriggerEventSignal {
|
|
1498
1418
|
protected constructor();
|
|
1499
1419
|
}
|
|
@@ -1610,8 +1530,6 @@ export class Dimension {
|
|
|
1610
1530
|
* @remarks
|
|
1611
1531
|
* Gets the first block that intersects with a vector emanating
|
|
1612
1532
|
* from a location.
|
|
1613
|
-
* @param location
|
|
1614
|
-
* @param direction
|
|
1615
1533
|
* @param options
|
|
1616
1534
|
* Additional options for processing this raycast query.
|
|
1617
1535
|
* @throws This function can throw errors.
|
|
@@ -1664,8 +1582,6 @@ export class Dimension {
|
|
|
1664
1582
|
* @remarks
|
|
1665
1583
|
* Gets entities that intersect with a specified vector
|
|
1666
1584
|
* emanating from a location.
|
|
1667
|
-
* @param location
|
|
1668
|
-
* @param direction
|
|
1669
1585
|
* @param options
|
|
1670
1586
|
* Additional options for processing this raycast query.
|
|
1671
1587
|
* @throws This function can throw errors.
|
|
@@ -1684,6 +1600,10 @@ export class Dimension {
|
|
|
1684
1600
|
* @throws This function can throw errors.
|
|
1685
1601
|
*/
|
|
1686
1602
|
getPlayers(options?: EntityQueryOptions): Player[];
|
|
1603
|
+
/**
|
|
1604
|
+
* @beta
|
|
1605
|
+
* @throws This function can throw errors.
|
|
1606
|
+
*/
|
|
1687
1607
|
runCommand(commandString: string): CommandResult;
|
|
1688
1608
|
/**
|
|
1689
1609
|
* @remarks
|
|
@@ -1758,7 +1678,6 @@ export class Dimension {
|
|
|
1758
1678
|
* @remarks
|
|
1759
1679
|
* Creates a new item stack as an entity at the specified
|
|
1760
1680
|
* location.
|
|
1761
|
-
* @param item
|
|
1762
1681
|
* @param location
|
|
1763
1682
|
* The location at which to create the item stack.
|
|
1764
1683
|
* @returns
|
|
@@ -1828,22 +1747,18 @@ export class DynamicPropertiesDefinition {
|
|
|
1828
1747
|
/**
|
|
1829
1748
|
* @remarks
|
|
1830
1749
|
* Defines a boolean dynamic property.
|
|
1831
|
-
* @param identifier
|
|
1832
1750
|
* @throws This function can throw errors.
|
|
1833
1751
|
*/
|
|
1834
1752
|
defineBoolean(identifier: string): void;
|
|
1835
1753
|
/**
|
|
1836
1754
|
* @remarks
|
|
1837
1755
|
* Defines a number dynamic property.
|
|
1838
|
-
* @param identifier
|
|
1839
1756
|
* @throws This function can throw errors.
|
|
1840
1757
|
*/
|
|
1841
1758
|
defineNumber(identifier: string): void;
|
|
1842
1759
|
/**
|
|
1843
1760
|
* @remarks
|
|
1844
1761
|
* Defines a string dynamic property.
|
|
1845
|
-
* @param identifier
|
|
1846
|
-
* @param maxLength
|
|
1847
1762
|
* @throws This function can throw errors.
|
|
1848
1763
|
*/
|
|
1849
1764
|
defineString(identifier: string, maxLength: number): void;
|
|
@@ -1876,25 +1791,16 @@ export class Effect {
|
|
|
1876
1791
|
}
|
|
1877
1792
|
/**
|
|
1878
1793
|
* @beta
|
|
1879
|
-
* Contains information related to changes to an effect - like
|
|
1880
|
-
* poison - being added to an entity.
|
|
1881
1794
|
*/
|
|
1882
1795
|
export class EffectAddEvent {
|
|
1883
1796
|
protected constructor();
|
|
1884
|
-
/**
|
|
1885
|
-
* Additional properties and details of the effect.
|
|
1886
|
-
*/
|
|
1887
1797
|
effect: Effect;
|
|
1888
|
-
/**
|
|
1889
|
-
* Additional variant number for the effect.
|
|
1890
|
-
*/
|
|
1891
1798
|
effectState: number;
|
|
1892
|
-
/**
|
|
1893
|
-
* Entity that the effect is being added to.
|
|
1894
|
-
*/
|
|
1895
1799
|
entity: Entity;
|
|
1896
1800
|
}
|
|
1897
|
-
|
|
1801
|
+
/**
|
|
1802
|
+
* @beta
|
|
1803
|
+
*/
|
|
1898
1804
|
export class EffectAddEventSignal_deprecated extends IEffectAddEventSignal {
|
|
1899
1805
|
protected constructor();
|
|
1900
1806
|
}
|
|
@@ -1950,7 +1856,6 @@ export class EnchantmentList implements Iterable<Enchantment> {
|
|
|
1950
1856
|
/**
|
|
1951
1857
|
* @remarks
|
|
1952
1858
|
* Creates a new EnchantmentList.
|
|
1953
|
-
* @param enchantmentSlot
|
|
1954
1859
|
*/
|
|
1955
1860
|
constructor(enchantmentSlot: number);
|
|
1956
1861
|
[Symbol.iterator](): Iterator<Enchantment>;
|
|
@@ -1958,20 +1863,17 @@ export class EnchantmentList implements Iterable<Enchantment> {
|
|
|
1958
1863
|
* @remarks
|
|
1959
1864
|
* Attempts to add the enchantment to this collection. Returns
|
|
1960
1865
|
* true if successful.
|
|
1961
|
-
* @param enchantment
|
|
1962
1866
|
*/
|
|
1963
1867
|
addEnchantment(enchantment: Enchantment): boolean;
|
|
1964
1868
|
/**
|
|
1965
1869
|
* @remarks
|
|
1966
1870
|
* Returns whether or not the provided EnchantmentInstance can
|
|
1967
1871
|
* be added to this collection.
|
|
1968
|
-
* @param enchantment
|
|
1969
1872
|
*/
|
|
1970
1873
|
canAddEnchantment(enchantment: Enchantment): boolean;
|
|
1971
1874
|
/**
|
|
1972
1875
|
* @remarks
|
|
1973
1876
|
* Returns an enchantment associated with a type.
|
|
1974
|
-
* @param enchantmentType
|
|
1975
1877
|
*/
|
|
1976
1878
|
getEnchantment(enchantmentType: EnchantmentType): Enchantment;
|
|
1977
1879
|
/**
|
|
@@ -1979,7 +1881,6 @@ export class EnchantmentList implements Iterable<Enchantment> {
|
|
|
1979
1881
|
* If this collection has an EnchantmentInstance with type,
|
|
1980
1882
|
* returns the level of the enchantment. Returns 0 if not
|
|
1981
1883
|
* present.
|
|
1982
|
-
* @param enchantmentType
|
|
1983
1884
|
*/
|
|
1984
1885
|
hasEnchantment(enchantmentType: EnchantmentType): number;
|
|
1985
1886
|
next(): IteratorResult<Enchantment>;
|
|
@@ -1987,7 +1888,6 @@ export class EnchantmentList implements Iterable<Enchantment> {
|
|
|
1987
1888
|
* @remarks
|
|
1988
1889
|
* Removes an EnchantmentInstance with type from this
|
|
1989
1890
|
* collection if present.
|
|
1990
|
-
* @param enchantmentType
|
|
1991
1891
|
*/
|
|
1992
1892
|
removeEnchantment(enchantmentType: EnchantmentType): void;
|
|
1993
1893
|
}
|
|
@@ -1996,7 +1896,6 @@ export class EnchantmentList implements Iterable<Enchantment> {
|
|
|
1996
1896
|
* This enum represents the item slot or type that an
|
|
1997
1897
|
* enchantment can be applied to.
|
|
1998
1898
|
*/
|
|
1999
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2000
1899
|
export class EnchantmentSlot {
|
|
2001
1900
|
protected constructor();
|
|
2002
1901
|
static readonly all = -1;
|
|
@@ -2078,7 +1977,6 @@ export class Entity {
|
|
|
2078
1977
|
nameTag: string;
|
|
2079
1978
|
/**
|
|
2080
1979
|
* @beta
|
|
2081
|
-
* Returns a scoreboard identity that represents this entity.
|
|
2082
1980
|
* @throws This property can throw when used.
|
|
2083
1981
|
*/
|
|
2084
1982
|
readonly scoreboard: ScoreboardIdentity;
|
|
@@ -2105,7 +2003,6 @@ export class Entity {
|
|
|
2105
2003
|
* Amount of time, in ticks, for the effect to apply.
|
|
2106
2004
|
* @param amplifier
|
|
2107
2005
|
* Optional amplification of the effect to apply.
|
|
2108
|
-
* @param showParticles
|
|
2109
2006
|
* @throws This function can throw errors.
|
|
2110
2007
|
* @example addEffect.js
|
|
2111
2008
|
* ```typescript
|
|
@@ -2156,15 +2053,23 @@ export class Entity {
|
|
|
2156
2053
|
* Applies a set of damage to an entity.
|
|
2157
2054
|
* @param amount
|
|
2158
2055
|
* Amount of damage to apply.
|
|
2159
|
-
* @param source
|
|
2160
|
-
* Additional option about the source of damage, which may add
|
|
2161
|
-
* additional effects or spur additional behaviors on this
|
|
2162
|
-
* entity.
|
|
2163
2056
|
* @throws This function can throw errors.
|
|
2164
2057
|
*/
|
|
2165
2058
|
applyDamage(amount: number, source?: EntityDamageSource): boolean;
|
|
2059
|
+
/**
|
|
2060
|
+
* @beta
|
|
2061
|
+
* @throws This function can throw errors.
|
|
2062
|
+
*/
|
|
2166
2063
|
applyImpulse(vector: Vector3): void;
|
|
2064
|
+
/**
|
|
2065
|
+
* @beta
|
|
2066
|
+
* @throws This function can throw errors.
|
|
2067
|
+
*/
|
|
2167
2068
|
applyKnockback(directionX: number, directionZ: number, horizontalStrength: number, verticalStrength: number): void;
|
|
2069
|
+
/**
|
|
2070
|
+
* @beta
|
|
2071
|
+
* @throws This function can throw errors.
|
|
2072
|
+
*/
|
|
2168
2073
|
clearVelocity(): void;
|
|
2169
2074
|
/**
|
|
2170
2075
|
* @beta
|
|
@@ -2183,7 +2088,6 @@ export class Entity {
|
|
|
2183
2088
|
* @remarks
|
|
2184
2089
|
* Returns the first intersecting block from the direction that
|
|
2185
2090
|
* this entity is looking at.
|
|
2186
|
-
* @param options
|
|
2187
2091
|
* @throws This function can throw errors.
|
|
2188
2092
|
*/
|
|
2189
2093
|
getBlockFromViewDirection(options?: BlockRaycastOptions): Block;
|
|
@@ -2210,7 +2114,6 @@ export class Entity {
|
|
|
2210
2114
|
* @beta
|
|
2211
2115
|
* @remarks
|
|
2212
2116
|
* Returns a property value.
|
|
2213
|
-
* @param identifier
|
|
2214
2117
|
* @returns
|
|
2215
2118
|
* Returns the value for the property, or undefined if the
|
|
2216
2119
|
* property has not been set.
|
|
@@ -2222,7 +2125,6 @@ export class Entity {
|
|
|
2222
2125
|
* @remarks
|
|
2223
2126
|
* Returns the effect for the specified EffectType on the
|
|
2224
2127
|
* entity, or undefined if the effect is not present.
|
|
2225
|
-
* @param effectType
|
|
2226
2128
|
* @returns
|
|
2227
2129
|
* Effect object for the specified effect, or undefined if the
|
|
2228
2130
|
* effect is not present.
|
|
@@ -2243,11 +2145,18 @@ export class Entity {
|
|
|
2243
2145
|
* @remarks
|
|
2244
2146
|
* Returns a potential set of entities from the direction that
|
|
2245
2147
|
* this entity is looking at.
|
|
2246
|
-
* @param options
|
|
2247
2148
|
* @throws This function can throw errors.
|
|
2248
2149
|
*/
|
|
2249
2150
|
getEntitiesFromViewDirection(options?: EntityRaycastOptions): Entity[];
|
|
2151
|
+
/**
|
|
2152
|
+
* @beta
|
|
2153
|
+
* @throws This function can throw errors.
|
|
2154
|
+
*/
|
|
2250
2155
|
getHeadLocation(): Vector3;
|
|
2156
|
+
/**
|
|
2157
|
+
* @beta
|
|
2158
|
+
* @throws This function can throw errors.
|
|
2159
|
+
*/
|
|
2251
2160
|
getRotation(): XYRotation;
|
|
2252
2161
|
/**
|
|
2253
2162
|
* @beta
|
|
@@ -2256,7 +2165,15 @@ export class Entity {
|
|
|
2256
2165
|
* @throws This function can throw errors.
|
|
2257
2166
|
*/
|
|
2258
2167
|
getTags(): string[];
|
|
2168
|
+
/**
|
|
2169
|
+
* @beta
|
|
2170
|
+
* @throws This function can throw errors.
|
|
2171
|
+
*/
|
|
2259
2172
|
getVelocity(): Vector3;
|
|
2173
|
+
/**
|
|
2174
|
+
* @beta
|
|
2175
|
+
* @throws This function can throw errors.
|
|
2176
|
+
*/
|
|
2260
2177
|
getViewDirection(): Vector3;
|
|
2261
2178
|
/**
|
|
2262
2179
|
* @beta
|
|
@@ -2282,15 +2199,21 @@ export class Entity {
|
|
|
2282
2199
|
* @beta
|
|
2283
2200
|
* @remarks
|
|
2284
2201
|
* Kills this entity. The entity will drop loot as normal.
|
|
2202
|
+
* @returns
|
|
2203
|
+
* Returns true if entity can be killed (even if it is already
|
|
2204
|
+
* dead), otherwise it returns false.
|
|
2285
2205
|
* @throws This function can throw errors.
|
|
2286
2206
|
*/
|
|
2287
2207
|
kill(): void;
|
|
2208
|
+
/**
|
|
2209
|
+
* @beta
|
|
2210
|
+
* @throws This function can throw errors.
|
|
2211
|
+
*/
|
|
2288
2212
|
playAnimation(animationName: string, options?: PlayAnimationOptions): void;
|
|
2289
2213
|
/**
|
|
2290
2214
|
* @beta
|
|
2291
2215
|
* @remarks
|
|
2292
2216
|
* Removes a specified property.
|
|
2293
|
-
* @param identifier
|
|
2294
2217
|
* @throws This function can throw errors.
|
|
2295
2218
|
*/
|
|
2296
2219
|
removeDynamicProperty(identifier: string): boolean;
|
|
@@ -2303,6 +2226,10 @@ export class Entity {
|
|
|
2303
2226
|
* @throws This function can throw errors.
|
|
2304
2227
|
*/
|
|
2305
2228
|
removeTag(tag: string): boolean;
|
|
2229
|
+
/**
|
|
2230
|
+
* @beta
|
|
2231
|
+
* @throws This function can throw errors.
|
|
2232
|
+
*/
|
|
2306
2233
|
runCommand(commandString: string): CommandResult;
|
|
2307
2234
|
/**
|
|
2308
2235
|
* @remarks
|
|
@@ -2322,7 +2249,6 @@ export class Entity {
|
|
|
2322
2249
|
* @beta
|
|
2323
2250
|
* @remarks
|
|
2324
2251
|
* Sets a specified property to a value.
|
|
2325
|
-
* @param identifier
|
|
2326
2252
|
* @param value
|
|
2327
2253
|
* Data value of the property to set.
|
|
2328
2254
|
* @throws This function can throw errors.
|
|
@@ -2336,7 +2262,6 @@ export class Entity {
|
|
|
2336
2262
|
* present, the entity is on fire.
|
|
2337
2263
|
* @param seconds
|
|
2338
2264
|
* Length of time to set the entity on fire.
|
|
2339
|
-
* @param useEffects
|
|
2340
2265
|
* @throws This function can throw errors.
|
|
2341
2266
|
*/
|
|
2342
2267
|
setOnFire(seconds: number, useEffects?: boolean): boolean;
|
|
@@ -2344,8 +2269,6 @@ export class Entity {
|
|
|
2344
2269
|
* @beta
|
|
2345
2270
|
* @remarks
|
|
2346
2271
|
* Sets the main rotation of the entity.
|
|
2347
|
-
* @param degreesX
|
|
2348
|
-
* @param degreesY
|
|
2349
2272
|
* @throws This function can throw errors.
|
|
2350
2273
|
*/
|
|
2351
2274
|
setRotation(degreesX: number, degreesY: number): void;
|
|
@@ -2361,7 +2284,6 @@ export class Entity {
|
|
|
2361
2284
|
* X rotation of the entity after teleportation.
|
|
2362
2285
|
* @param yRotation
|
|
2363
2286
|
* Y rotation of the entity after teleportation.
|
|
2364
|
-
* @param keepVelocity
|
|
2365
2287
|
* @throws This function can throw errors.
|
|
2366
2288
|
*/
|
|
2367
2289
|
teleport(
|
|
@@ -2382,7 +2304,6 @@ export class Entity {
|
|
|
2382
2304
|
* Dimension to move the selected entity to.
|
|
2383
2305
|
* @param facingLocation
|
|
2384
2306
|
* Location that this entity will be facing.
|
|
2385
|
-
* @param keepVelocity
|
|
2386
2307
|
* @throws This function can throw errors.
|
|
2387
2308
|
*/
|
|
2388
2309
|
teleportFacing(location: Vector3, dimension: Dimension, facingLocation: Vector3, keepVelocity?: boolean): void;
|
|
@@ -2452,6 +2373,9 @@ export class EntityAgeableComponent extends EntityComponent {
|
|
|
2452
2373
|
getDropItems(): string[];
|
|
2453
2374
|
getFeedItems(): EntityDefinitionFeedItem[];
|
|
2454
2375
|
}
|
|
2376
|
+
/**
|
|
2377
|
+
* @beta
|
|
2378
|
+
*/
|
|
2455
2379
|
export class EntityAttributeComponent extends EntityComponent {
|
|
2456
2380
|
protected constructor();
|
|
2457
2381
|
readonly current: number;
|
|
@@ -2461,6 +2385,9 @@ export class EntityAttributeComponent extends EntityComponent {
|
|
|
2461
2385
|
resetToMinValue(): void;
|
|
2462
2386
|
setCurrent(value: number): boolean;
|
|
2463
2387
|
}
|
|
2388
|
+
/**
|
|
2389
|
+
* @beta
|
|
2390
|
+
*/
|
|
2464
2391
|
export class EntityBaseMovementComponent extends EntityComponent {
|
|
2465
2392
|
protected constructor();
|
|
2466
2393
|
readonly maxTurn: number;
|
|
@@ -2534,7 +2461,6 @@ export class EntityBreathableComponent extends EntityComponent {
|
|
|
2534
2461
|
* When added, this component signifies that the entity can
|
|
2535
2462
|
* climb up ladders.
|
|
2536
2463
|
*/
|
|
2537
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2538
2464
|
export class EntityCanClimbComponent extends EntityComponent {
|
|
2539
2465
|
protected constructor();
|
|
2540
2466
|
/**
|
|
@@ -2549,7 +2475,6 @@ export class EntityCanClimbComponent extends EntityComponent {
|
|
|
2549
2475
|
* fly, and the pathfinder won't be restricted to paths where a
|
|
2550
2476
|
* solid block is required underneath it.
|
|
2551
2477
|
*/
|
|
2552
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2553
2478
|
export class EntityCanFlyComponent extends EntityComponent {
|
|
2554
2479
|
protected constructor();
|
|
2555
2480
|
/**
|
|
@@ -2563,7 +2488,6 @@ export class EntityCanFlyComponent extends EntityComponent {
|
|
|
2563
2488
|
* When added, this component signifies that the entity can
|
|
2564
2489
|
* power jump like the horse does within Minecraft.
|
|
2565
2490
|
*/
|
|
2566
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2567
2491
|
export class EntityCanPowerJumpComponent extends EntityComponent {
|
|
2568
2492
|
protected constructor();
|
|
2569
2493
|
/**
|
|
@@ -2589,7 +2513,9 @@ export class EntityColorComponent extends EntityComponent {
|
|
|
2589
2513
|
*/
|
|
2590
2514
|
static readonly componentId = 'minecraft:color';
|
|
2591
2515
|
}
|
|
2592
|
-
|
|
2516
|
+
/**
|
|
2517
|
+
* @beta
|
|
2518
|
+
*/
|
|
2593
2519
|
export class EntityComponent extends Component {
|
|
2594
2520
|
protected constructor();
|
|
2595
2521
|
}
|
|
@@ -2613,21 +2539,35 @@ export class EntityDefinitionFeedItem {
|
|
|
2613
2539
|
*/
|
|
2614
2540
|
readonly item: string;
|
|
2615
2541
|
}
|
|
2542
|
+
/**
|
|
2543
|
+
* @beta
|
|
2544
|
+
*/
|
|
2616
2545
|
export class EntityDieEvent {
|
|
2617
2546
|
protected constructor();
|
|
2618
2547
|
readonly damageSource: EntityDamageSource;
|
|
2619
2548
|
readonly deadEntity: Entity;
|
|
2620
2549
|
}
|
|
2621
|
-
|
|
2550
|
+
/**
|
|
2551
|
+
* @beta
|
|
2552
|
+
*/
|
|
2622
2553
|
export class EntityDieEventSignal_deprecated extends IEntityDieEventSignal {
|
|
2623
2554
|
protected constructor();
|
|
2624
2555
|
}
|
|
2556
|
+
/**
|
|
2557
|
+
* @beta
|
|
2558
|
+
*/
|
|
2559
|
+
export class EntityEquipmentInventoryComponent extends EntityComponent {
|
|
2560
|
+
protected constructor();
|
|
2561
|
+
static readonly componentId = 'minecraft:equipment_inventory';
|
|
2562
|
+
getEquipment(equipmentSlot: EquipmentSlot): ItemStack | undefined;
|
|
2563
|
+
getEquipmentSlot(equipmentSlot: EquipmentSlot): ContainerSlot;
|
|
2564
|
+
setEquipment(equipmentSlot: EquipmentSlot, itemStack?: ItemStack): void;
|
|
2565
|
+
}
|
|
2625
2566
|
/**
|
|
2626
2567
|
* @beta
|
|
2627
2568
|
* When added, this component signifies that this entity
|
|
2628
2569
|
* doesn't take damage from fire.
|
|
2629
2570
|
*/
|
|
2630
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2631
2571
|
export class EntityFireImmuneComponent extends EntityComponent {
|
|
2632
2572
|
protected constructor();
|
|
2633
2573
|
/**
|
|
@@ -2641,7 +2581,6 @@ export class EntityFireImmuneComponent extends EntityComponent {
|
|
|
2641
2581
|
* When added, this component signifies that this entity can
|
|
2642
2582
|
* float in liquid blocks.
|
|
2643
2583
|
*/
|
|
2644
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2645
2584
|
export class EntityFloatsInLiquidComponent extends EntityComponent {
|
|
2646
2585
|
protected constructor();
|
|
2647
2586
|
/**
|
|
@@ -2730,7 +2669,6 @@ export class EntityHealableComponent extends EntityComponent {
|
|
|
2730
2669
|
* @beta
|
|
2731
2670
|
* Defines the health properties of an entity.
|
|
2732
2671
|
*/
|
|
2733
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2734
2672
|
export class EntityHealthComponent extends EntityAttributeComponent {
|
|
2735
2673
|
protected constructor();
|
|
2736
2674
|
/**
|
|
@@ -2741,56 +2679,31 @@ export class EntityHealthComponent extends EntityAttributeComponent {
|
|
|
2741
2679
|
}
|
|
2742
2680
|
/**
|
|
2743
2681
|
* @beta
|
|
2744
|
-
* Contains information related to an entity hitting (melee
|
|
2745
|
-
* attacking) another entity.
|
|
2746
2682
|
*/
|
|
2747
2683
|
export class EntityHitEvent {
|
|
2748
2684
|
protected constructor();
|
|
2749
|
-
/**
|
|
2750
|
-
* Entity that made a hit/melee attack.
|
|
2751
|
-
*/
|
|
2752
2685
|
readonly entity: Entity;
|
|
2753
|
-
/**
|
|
2754
|
-
* Block that was hit by the attack, or undefined if the hit
|
|
2755
|
-
* attack did not hit a block. If both hitEntity and hitBlock
|
|
2756
|
-
* are undefined, then the entity basically swiped into the
|
|
2757
|
-
* air.
|
|
2758
|
-
*/
|
|
2759
2686
|
readonly hitBlock?: Block;
|
|
2760
|
-
/**
|
|
2761
|
-
* Entity that was hit by the attack, or undefined if the hit
|
|
2762
|
-
* attack did not hit an entity. If both hitEntity and hitBlock
|
|
2763
|
-
* are undefined, then the entity basically swiped into the
|
|
2764
|
-
* air.
|
|
2765
|
-
*/
|
|
2766
2687
|
readonly hitEntity?: Entity;
|
|
2767
2688
|
}
|
|
2768
|
-
|
|
2689
|
+
/**
|
|
2690
|
+
* @beta
|
|
2691
|
+
*/
|
|
2769
2692
|
export class EntityHitEventSignal_deprecated extends IEntityHitEventSignal {
|
|
2770
2693
|
protected constructor();
|
|
2771
2694
|
}
|
|
2772
2695
|
/**
|
|
2773
2696
|
* @beta
|
|
2774
|
-
* Contains information related to an entity getting hurt by
|
|
2775
|
-
* another entity.
|
|
2776
2697
|
*/
|
|
2777
2698
|
export class EntityHurtEvent {
|
|
2778
2699
|
protected constructor();
|
|
2779
|
-
/**
|
|
2780
|
-
* Describes the amount of damage caused.
|
|
2781
|
-
*/
|
|
2782
2700
|
readonly damage: number;
|
|
2783
|
-
/**
|
|
2784
|
-
* Source information on the entity that may have applied this
|
|
2785
|
-
* damage.
|
|
2786
|
-
*/
|
|
2787
2701
|
readonly damageSource: EntityDamageSource;
|
|
2788
|
-
/**
|
|
2789
|
-
* Entity that was hurt.
|
|
2790
|
-
*/
|
|
2791
2702
|
readonly hurtEntity: Entity;
|
|
2792
2703
|
}
|
|
2793
|
-
|
|
2704
|
+
/**
|
|
2705
|
+
* @beta
|
|
2706
|
+
*/
|
|
2794
2707
|
export class EntityHurtEventSignal_deprecated extends IEntityHurtEventSignal {
|
|
2795
2708
|
protected constructor();
|
|
2796
2709
|
}
|
|
@@ -2849,7 +2762,6 @@ export class EntityInventoryComponent extends EntityComponent {
|
|
|
2849
2762
|
* When added, this component signifies that this entity is a
|
|
2850
2763
|
* baby.
|
|
2851
2764
|
*/
|
|
2852
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2853
2765
|
export class EntityIsBabyComponent extends EntityComponent {
|
|
2854
2766
|
protected constructor();
|
|
2855
2767
|
/**
|
|
@@ -2863,7 +2775,6 @@ export class EntityIsBabyComponent extends EntityComponent {
|
|
|
2863
2775
|
* When added, this component signifies that this entity is
|
|
2864
2776
|
* charged.
|
|
2865
2777
|
*/
|
|
2866
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2867
2778
|
export class EntityIsChargedComponent extends EntityComponent {
|
|
2868
2779
|
protected constructor();
|
|
2869
2780
|
/**
|
|
@@ -2877,7 +2788,6 @@ export class EntityIsChargedComponent extends EntityComponent {
|
|
|
2877
2788
|
* When added, this component signifies that this entity is
|
|
2878
2789
|
* currently carrying a chest.
|
|
2879
2790
|
*/
|
|
2880
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2881
2791
|
export class EntityIsChestedComponent extends EntityComponent {
|
|
2882
2792
|
protected constructor();
|
|
2883
2793
|
/**
|
|
@@ -2891,7 +2801,6 @@ export class EntityIsChestedComponent extends EntityComponent {
|
|
|
2891
2801
|
* When added, this component signifies that dyes can be used
|
|
2892
2802
|
* on this entity to change its color.
|
|
2893
2803
|
*/
|
|
2894
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2895
2804
|
export class EntityIsDyableComponent extends EntityComponent {
|
|
2896
2805
|
protected constructor();
|
|
2897
2806
|
/**
|
|
@@ -2905,7 +2814,6 @@ export class EntityIsDyableComponent extends EntityComponent {
|
|
|
2905
2814
|
* When added, this component signifies that this entity can
|
|
2906
2815
|
* hide from hostile mobs while invisible.
|
|
2907
2816
|
*/
|
|
2908
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2909
2817
|
export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
|
|
2910
2818
|
protected constructor();
|
|
2911
2819
|
/**
|
|
@@ -2919,7 +2827,6 @@ export class EntityIsHiddenWhenInvisibleComponent extends EntityComponent {
|
|
|
2919
2827
|
* When added, this component signifies that this entity this
|
|
2920
2828
|
* currently on fire.
|
|
2921
2829
|
*/
|
|
2922
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2923
2830
|
export class EntityIsIgnitedComponent extends EntityComponent {
|
|
2924
2831
|
protected constructor();
|
|
2925
2832
|
/**
|
|
@@ -2933,7 +2840,6 @@ export class EntityIsIgnitedComponent extends EntityComponent {
|
|
|
2933
2840
|
* When added, this component signifies that this entity is an
|
|
2934
2841
|
* illager captain.
|
|
2935
2842
|
*/
|
|
2936
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2937
2843
|
export class EntityIsIllagerCaptainComponent extends EntityComponent {
|
|
2938
2844
|
protected constructor();
|
|
2939
2845
|
/**
|
|
@@ -2947,7 +2853,6 @@ export class EntityIsIllagerCaptainComponent extends EntityComponent {
|
|
|
2947
2853
|
* When added, this component signifies that this entity is
|
|
2948
2854
|
* currently saddled.
|
|
2949
2855
|
*/
|
|
2950
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2951
2856
|
export class EntityIsSaddledComponent extends EntityComponent {
|
|
2952
2857
|
protected constructor();
|
|
2953
2858
|
/**
|
|
@@ -2961,7 +2866,6 @@ export class EntityIsSaddledComponent extends EntityComponent {
|
|
|
2961
2866
|
* When added, this component signifies that this entity is
|
|
2962
2867
|
* currently shaking.
|
|
2963
2868
|
*/
|
|
2964
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2965
2869
|
export class EntityIsShakingComponent extends EntityComponent {
|
|
2966
2870
|
protected constructor();
|
|
2967
2871
|
/**
|
|
@@ -2975,7 +2879,6 @@ export class EntityIsShakingComponent extends EntityComponent {
|
|
|
2975
2879
|
* When added, this component signifies that this entity is
|
|
2976
2880
|
* currently sheared.
|
|
2977
2881
|
*/
|
|
2978
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2979
2882
|
export class EntityIsShearedComponent extends EntityComponent {
|
|
2980
2883
|
protected constructor();
|
|
2981
2884
|
/**
|
|
@@ -2989,7 +2892,6 @@ export class EntityIsShearedComponent extends EntityComponent {
|
|
|
2989
2892
|
* When added, this component signifies that this entity can be
|
|
2990
2893
|
* stacked.
|
|
2991
2894
|
*/
|
|
2992
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
2993
2895
|
export class EntityIsStackableComponent extends EntityComponent {
|
|
2994
2896
|
protected constructor();
|
|
2995
2897
|
/**
|
|
@@ -3003,7 +2905,6 @@ export class EntityIsStackableComponent extends EntityComponent {
|
|
|
3003
2905
|
* When added, this component signifies that this entity is
|
|
3004
2906
|
* currently stunned.
|
|
3005
2907
|
*/
|
|
3006
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3007
2908
|
export class EntityIsStunnedComponent extends EntityComponent {
|
|
3008
2909
|
protected constructor();
|
|
3009
2910
|
/**
|
|
@@ -3017,7 +2918,6 @@ export class EntityIsStunnedComponent extends EntityComponent {
|
|
|
3017
2918
|
* When added, this component signifies that this entity is
|
|
3018
2919
|
* currently tamed.
|
|
3019
2920
|
*/
|
|
3020
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3021
2921
|
export class EntityIsTamedComponent extends EntityComponent {
|
|
3022
2922
|
protected constructor();
|
|
3023
2923
|
/**
|
|
@@ -3066,7 +2966,6 @@ export class EntityIterator implements Iterable<Entity> {
|
|
|
3066
2966
|
* @beta
|
|
3067
2967
|
* Defines the base movement speed in lava of this entity.
|
|
3068
2968
|
*/
|
|
3069
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3070
2969
|
export class EntityLavaMovementComponent extends EntityAttributeComponent {
|
|
3071
2970
|
protected constructor();
|
|
3072
2971
|
/**
|
|
@@ -3187,7 +3086,6 @@ export class EntityMovementBasicComponent extends EntityComponent {
|
|
|
3187
3086
|
* @beta
|
|
3188
3087
|
* Defines the general movement speed of this entity.
|
|
3189
3088
|
*/
|
|
3190
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3191
3089
|
export class EntityMovementComponent extends EntityAttributeComponent {
|
|
3192
3090
|
protected constructor();
|
|
3193
3091
|
/**
|
|
@@ -3200,7 +3098,6 @@ export class EntityMovementComponent extends EntityAttributeComponent {
|
|
|
3200
3098
|
* @beta
|
|
3201
3099
|
* When added, this move control causes the mob to fly.
|
|
3202
3100
|
*/
|
|
3203
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3204
3101
|
export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
|
|
3205
3102
|
protected constructor();
|
|
3206
3103
|
/**
|
|
@@ -3214,7 +3111,6 @@ export class EntityMovementFlyComponent extends EntityBaseMovementComponent {
|
|
|
3214
3111
|
* When added, this move control allows a mob to fly, swim,
|
|
3215
3112
|
* climb, etc.
|
|
3216
3113
|
*/
|
|
3217
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3218
3114
|
export class EntityMovementGenericComponent extends EntityBaseMovementComponent {
|
|
3219
3115
|
protected constructor();
|
|
3220
3116
|
/**
|
|
@@ -3249,7 +3145,6 @@ export class EntityMovementGlideComponent extends EntityBaseMovementComponent {
|
|
|
3249
3145
|
* @beta
|
|
3250
3146
|
* When added, this move control causes the mob to hover.
|
|
3251
3147
|
*/
|
|
3252
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3253
3148
|
export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
|
|
3254
3149
|
protected constructor();
|
|
3255
3150
|
/**
|
|
@@ -3263,7 +3158,6 @@ export class EntityMovementHoverComponent extends EntityBaseMovementComponent {
|
|
|
3263
3158
|
* Move control that causes the mob to jump as it moves with a
|
|
3264
3159
|
* specified delay between jumps.
|
|
3265
3160
|
*/
|
|
3266
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3267
3161
|
export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
|
|
3268
3162
|
protected constructor();
|
|
3269
3163
|
/**
|
|
@@ -3277,7 +3171,6 @@ export class EntityMovementJumpComponent extends EntityBaseMovementComponent {
|
|
|
3277
3171
|
* When added, this move control causes the mob to hop as it
|
|
3278
3172
|
* moves.
|
|
3279
3173
|
*/
|
|
3280
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3281
3174
|
export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
|
|
3282
3175
|
protected constructor();
|
|
3283
3176
|
/**
|
|
@@ -3314,7 +3207,6 @@ export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
|
|
|
3314
3207
|
* Allows this entity to generate paths that include vertical
|
|
3315
3208
|
* walls (for example, like Minecraft spiders do.)
|
|
3316
3209
|
*/
|
|
3317
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3318
3210
|
export class EntityNavigationClimbComponent extends EntityNavigationComponent {
|
|
3319
3211
|
protected constructor();
|
|
3320
3212
|
/**
|
|
@@ -3323,6 +3215,9 @@ export class EntityNavigationClimbComponent extends EntityNavigationComponent {
|
|
|
3323
3215
|
*/
|
|
3324
3216
|
static readonly componentId = 'minecraft:navigation.climb';
|
|
3325
3217
|
}
|
|
3218
|
+
/**
|
|
3219
|
+
* @beta
|
|
3220
|
+
*/
|
|
3326
3221
|
export class EntityNavigationComponent extends EntityComponent {
|
|
3327
3222
|
protected constructor();
|
|
3328
3223
|
readonly avoidDamageBlocks: boolean;
|
|
@@ -3350,7 +3245,6 @@ export class EntityNavigationComponent extends EntityComponent {
|
|
|
3350
3245
|
* Allows this entity to generate paths by flying around the
|
|
3351
3246
|
* air like the regular Ghast.
|
|
3352
3247
|
*/
|
|
3353
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3354
3248
|
export class EntityNavigationFloatComponent extends EntityNavigationComponent {
|
|
3355
3249
|
protected constructor();
|
|
3356
3250
|
/**
|
|
@@ -3364,7 +3258,6 @@ export class EntityNavigationFloatComponent extends EntityNavigationComponent {
|
|
|
3364
3258
|
* Allows this entity to generate paths in the air (for
|
|
3365
3259
|
* example, like Minecraft parrots do.)
|
|
3366
3260
|
*/
|
|
3367
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3368
3261
|
export class EntityNavigationFlyComponent extends EntityNavigationComponent {
|
|
3369
3262
|
protected constructor();
|
|
3370
3263
|
/**
|
|
@@ -3379,7 +3272,6 @@ export class EntityNavigationFlyComponent extends EntityNavigationComponent {
|
|
|
3379
3272
|
* flying and/or climbing around and jumping up and down a
|
|
3380
3273
|
* block.
|
|
3381
3274
|
*/
|
|
3382
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3383
3275
|
export class EntityNavigationGenericComponent extends EntityNavigationComponent {
|
|
3384
3276
|
protected constructor();
|
|
3385
3277
|
/**
|
|
@@ -3394,7 +3286,6 @@ export class EntityNavigationGenericComponent extends EntityNavigationComponent
|
|
|
3394
3286
|
* example, like the Minecraft Bees do.) Keeps them from
|
|
3395
3287
|
* falling out of the skies and doing predictive movement.
|
|
3396
3288
|
*/
|
|
3397
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3398
3289
|
export class EntityNavigationHoverComponent extends EntityNavigationComponent {
|
|
3399
3290
|
protected constructor();
|
|
3400
3291
|
/**
|
|
@@ -3408,7 +3299,6 @@ export class EntityNavigationHoverComponent extends EntityNavigationComponent {
|
|
|
3408
3299
|
* Allows this entity to generate paths by walking around and
|
|
3409
3300
|
* jumping up and down a block like regular mobs.
|
|
3410
3301
|
*/
|
|
3411
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3412
3302
|
export class EntityNavigationWalkComponent extends EntityNavigationComponent {
|
|
3413
3303
|
protected constructor();
|
|
3414
3304
|
/**
|
|
@@ -3595,17 +3485,14 @@ export class EntitySkinIdComponent extends EntityComponent {
|
|
|
3595
3485
|
}
|
|
3596
3486
|
/**
|
|
3597
3487
|
* @beta
|
|
3598
|
-
* Contains data related to an entity spawning within the
|
|
3599
|
-
* world.
|
|
3600
3488
|
*/
|
|
3601
3489
|
export class EntitySpawnEvent {
|
|
3602
3490
|
protected constructor();
|
|
3603
|
-
/**
|
|
3604
|
-
* Entity that was spawned.
|
|
3605
|
-
*/
|
|
3606
3491
|
entity: Entity;
|
|
3607
3492
|
}
|
|
3608
|
-
|
|
3493
|
+
/**
|
|
3494
|
+
* @beta
|
|
3495
|
+
*/
|
|
3609
3496
|
export class EntitySpawnEventSignal_deprecated extends IEntitySpawnEventSignal {
|
|
3610
3497
|
protected constructor();
|
|
3611
3498
|
}
|
|
@@ -3691,13 +3578,11 @@ export class EntityTypeIterator implements Iterable<EntityType> {
|
|
|
3691
3578
|
* Used for accessing all entity types currently available for
|
|
3692
3579
|
* use within the world.
|
|
3693
3580
|
*/
|
|
3694
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3695
3581
|
export class EntityTypes {
|
|
3696
3582
|
protected constructor();
|
|
3697
3583
|
/**
|
|
3698
3584
|
* @remarks
|
|
3699
3585
|
* Retrieves an entity type using a string-based identifier.
|
|
3700
|
-
* @param identifier
|
|
3701
3586
|
*/
|
|
3702
3587
|
static get(identifier: string): EntityType;
|
|
3703
3588
|
/**
|
|
@@ -3711,7 +3596,6 @@ export class EntityTypes {
|
|
|
3711
3596
|
* Defines the general movement speed underwater of this
|
|
3712
3597
|
* entity.
|
|
3713
3598
|
*/
|
|
3714
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3715
3599
|
export class EntityUnderwaterMovementComponent extends EntityAttributeComponent {
|
|
3716
3600
|
protected constructor();
|
|
3717
3601
|
/**
|
|
@@ -3744,7 +3628,6 @@ export class EntityVariantComponent extends EntityComponent {
|
|
|
3744
3628
|
* When added, this component signifies that this entity wants
|
|
3745
3629
|
* to become a jockey.
|
|
3746
3630
|
*/
|
|
3747
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
3748
3631
|
export class EntityWantsJockeyComponent extends EntityComponent {
|
|
3749
3632
|
protected constructor();
|
|
3750
3633
|
/**
|
|
@@ -3760,11 +3643,6 @@ export class EntityWantsJockeyComponent extends EntityComponent {
|
|
|
3760
3643
|
*/
|
|
3761
3644
|
export class Events {
|
|
3762
3645
|
protected constructor();
|
|
3763
|
-
/**
|
|
3764
|
-
* This event fires before a chat message is broadcast or
|
|
3765
|
-
* delivered. The event can be canceled, and the message can
|
|
3766
|
-
* also be updated.
|
|
3767
|
-
*/
|
|
3768
3646
|
readonly beforeChat: BeforeChatEventSignal_deprecated;
|
|
3769
3647
|
/**
|
|
3770
3648
|
* This event is fired before the triggering of an entity event
|
|
@@ -3816,10 +3694,6 @@ export class Events {
|
|
|
3816
3694
|
* This event fires when a button is pushed.
|
|
3817
3695
|
*/
|
|
3818
3696
|
readonly buttonPush: ButtonPushEventSignal_deprecated;
|
|
3819
|
-
/**
|
|
3820
|
-
* This event is triggered after a chat message has been
|
|
3821
|
-
* broadcast or sent to players.
|
|
3822
|
-
*/
|
|
3823
3697
|
readonly chat: ChatEventSignal_deprecated;
|
|
3824
3698
|
/**
|
|
3825
3699
|
* This event is fired when an entity event has been triggered
|
|
@@ -3941,22 +3815,16 @@ export class Events {
|
|
|
3941
3815
|
}
|
|
3942
3816
|
/**
|
|
3943
3817
|
* @beta
|
|
3944
|
-
* Contains information regarding an explosion that has
|
|
3945
|
-
* happened.
|
|
3946
3818
|
*/
|
|
3947
3819
|
export class ExplosionEvent {
|
|
3948
3820
|
protected constructor();
|
|
3949
|
-
/**
|
|
3950
|
-
* Dimension where the explosion has occurred.
|
|
3951
|
-
*/
|
|
3952
3821
|
readonly dimension: Dimension;
|
|
3953
|
-
/**
|
|
3954
|
-
* Optional source of the explosion.
|
|
3955
|
-
*/
|
|
3956
3822
|
readonly source: Entity;
|
|
3957
3823
|
getImpactedBlocks(): Vector3[];
|
|
3958
3824
|
}
|
|
3959
|
-
|
|
3825
|
+
/**
|
|
3826
|
+
* @beta
|
|
3827
|
+
*/
|
|
3960
3828
|
export class ExplosionEventSignal_deprecated extends IExplosionEventSignal {
|
|
3961
3829
|
protected constructor();
|
|
3962
3830
|
}
|
|
@@ -4013,7 +3881,6 @@ export class FeedItemEffect {
|
|
|
4013
3881
|
* @beta
|
|
4014
3882
|
* Represents a set of filters for when an event should occur.
|
|
4015
3883
|
*/
|
|
4016
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
4017
3884
|
export class FilterGroup {
|
|
4018
3885
|
protected constructor();
|
|
4019
3886
|
}
|
|
@@ -4021,7 +3888,6 @@ export class FilterGroup {
|
|
|
4021
3888
|
* @beta
|
|
4022
3889
|
* Represents constants related to fluid containers.
|
|
4023
3890
|
*/
|
|
4024
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
4025
3891
|
export class FluidContainer {
|
|
4026
3892
|
protected constructor();
|
|
4027
3893
|
/**
|
|
@@ -4035,12 +3901,18 @@ export class FluidContainer {
|
|
|
4035
3901
|
*/
|
|
4036
3902
|
static readonly minFillLevel = 0;
|
|
4037
3903
|
}
|
|
4038
|
-
|
|
3904
|
+
/**
|
|
3905
|
+
* @beta
|
|
3906
|
+
*/
|
|
3907
|
+
export class IBeforeChatEventSignal_deprecated {
|
|
4039
3908
|
protected constructor();
|
|
4040
3909
|
subscribe(callback: (arg: BeforeChatEvent) => void): (arg: BeforeChatEvent) => void;
|
|
4041
3910
|
unsubscribe(callback: (arg: BeforeChatEvent) => void): void;
|
|
4042
3911
|
}
|
|
4043
|
-
|
|
3912
|
+
/**
|
|
3913
|
+
* @beta
|
|
3914
|
+
*/
|
|
3915
|
+
export class IBeforeDataDrivenEntityTriggerEventSignal_deprecated {
|
|
4044
3916
|
protected constructor();
|
|
4045
3917
|
subscribe(
|
|
4046
3918
|
callback: (arg: BeforeDataDrivenEntityTriggerEvent) => void,
|
|
@@ -4048,63 +3920,99 @@ export class IBeforeDataDrivenEntityTriggerEventSignal {
|
|
|
4048
3920
|
): (arg: BeforeDataDrivenEntityTriggerEvent) => void;
|
|
4049
3921
|
unsubscribe(callback: (arg: BeforeDataDrivenEntityTriggerEvent) => void): void;
|
|
4050
3922
|
}
|
|
4051
|
-
|
|
3923
|
+
/**
|
|
3924
|
+
* @beta
|
|
3925
|
+
*/
|
|
3926
|
+
export class IBeforeExplosionEventSignal_deprecated {
|
|
4052
3927
|
protected constructor();
|
|
4053
3928
|
subscribe(callback: (arg: BeforeExplosionEvent) => void): (arg: BeforeExplosionEvent) => void;
|
|
4054
3929
|
unsubscribe(callback: (arg: BeforeExplosionEvent) => void): void;
|
|
4055
3930
|
}
|
|
4056
|
-
|
|
3931
|
+
/**
|
|
3932
|
+
* @beta
|
|
3933
|
+
*/
|
|
3934
|
+
export class IBeforeItemDefinitionEventSignal_deprecated {
|
|
4057
3935
|
protected constructor();
|
|
4058
3936
|
subscribe(
|
|
4059
3937
|
callback: (arg: BeforeItemDefinitionTriggeredEvent) => void,
|
|
4060
3938
|
): (arg: BeforeItemDefinitionTriggeredEvent) => void;
|
|
4061
3939
|
unsubscribe(callback: (arg: BeforeItemDefinitionTriggeredEvent) => void): void;
|
|
4062
3940
|
}
|
|
4063
|
-
|
|
3941
|
+
/**
|
|
3942
|
+
* @beta
|
|
3943
|
+
*/
|
|
3944
|
+
export class IBeforeItemUseEventSignal_deprecated {
|
|
4064
3945
|
protected constructor();
|
|
4065
3946
|
subscribe(callback: (arg: BeforeItemUseEvent) => void): (arg: BeforeItemUseEvent) => void;
|
|
4066
3947
|
unsubscribe(callback: (arg: BeforeItemUseEvent) => void): void;
|
|
4067
3948
|
}
|
|
4068
|
-
|
|
3949
|
+
/**
|
|
3950
|
+
* @beta
|
|
3951
|
+
*/
|
|
3952
|
+
export class IBeforeItemUseOnEventSignal_deprecated {
|
|
4069
3953
|
protected constructor();
|
|
4070
3954
|
subscribe(callback: (arg: BeforeItemUseOnEvent) => void): (arg: BeforeItemUseOnEvent) => void;
|
|
4071
3955
|
unsubscribe(callback: (arg: BeforeItemUseOnEvent) => void): void;
|
|
4072
3956
|
}
|
|
4073
|
-
|
|
3957
|
+
/**
|
|
3958
|
+
* @beta
|
|
3959
|
+
*/
|
|
3960
|
+
export class IBeforePistonActivateEventSignal_deprecated {
|
|
4074
3961
|
protected constructor();
|
|
4075
3962
|
subscribe(callback: (arg: BeforePistonActivateEvent) => void): (arg: BeforePistonActivateEvent) => void;
|
|
4076
3963
|
unsubscribe(callback: (arg: BeforePistonActivateEvent) => void): void;
|
|
4077
3964
|
}
|
|
3965
|
+
/**
|
|
3966
|
+
* @beta
|
|
3967
|
+
*/
|
|
4078
3968
|
export class IBeforeWatchdogTerminateEventSignal {
|
|
4079
3969
|
protected constructor();
|
|
4080
3970
|
subscribe(callback: (arg: BeforeWatchdogTerminateEvent) => void): (arg: BeforeWatchdogTerminateEvent) => void;
|
|
4081
3971
|
unsubscribe(callback: (arg: BeforeWatchdogTerminateEvent) => void): void;
|
|
4082
3972
|
}
|
|
3973
|
+
/**
|
|
3974
|
+
* @beta
|
|
3975
|
+
*/
|
|
4083
3976
|
export class IBlockBreakEventSignal {
|
|
4084
3977
|
protected constructor();
|
|
4085
3978
|
subscribe(callback: (arg: BlockBreakEvent) => void): (arg: BlockBreakEvent) => void;
|
|
4086
3979
|
unsubscribe(callback: (arg: BlockBreakEvent) => void): void;
|
|
4087
3980
|
}
|
|
3981
|
+
/**
|
|
3982
|
+
* @beta
|
|
3983
|
+
*/
|
|
4088
3984
|
export class IBlockExplodeEventSignal {
|
|
4089
3985
|
protected constructor();
|
|
4090
3986
|
subscribe(callback: (arg: BlockExplodeEvent) => void): (arg: BlockExplodeEvent) => void;
|
|
4091
3987
|
unsubscribe(callback: (arg: BlockExplodeEvent) => void): void;
|
|
4092
3988
|
}
|
|
3989
|
+
/**
|
|
3990
|
+
* @beta
|
|
3991
|
+
*/
|
|
4093
3992
|
export class IBlockPlaceEventSignal {
|
|
4094
3993
|
protected constructor();
|
|
4095
3994
|
subscribe(callback: (arg: BlockPlaceEvent) => void): (arg: BlockPlaceEvent) => void;
|
|
4096
3995
|
unsubscribe(callback: (arg: BlockPlaceEvent) => void): void;
|
|
4097
3996
|
}
|
|
3997
|
+
/**
|
|
3998
|
+
* @beta
|
|
3999
|
+
*/
|
|
4098
4000
|
export class IButtonPushEventSignal {
|
|
4099
4001
|
protected constructor();
|
|
4100
4002
|
subscribe(callback: (arg: ButtonPushEvent) => void): (arg: ButtonPushEvent) => void;
|
|
4101
4003
|
unsubscribe(callback: (arg: ButtonPushEvent) => void): void;
|
|
4102
4004
|
}
|
|
4005
|
+
/**
|
|
4006
|
+
* @beta
|
|
4007
|
+
*/
|
|
4103
4008
|
export class IChatEventSignal {
|
|
4104
4009
|
protected constructor();
|
|
4105
4010
|
subscribe(callback: (arg: ChatEvent) => void): (arg: ChatEvent) => void;
|
|
4106
4011
|
unsubscribe(callback: (arg: ChatEvent) => void): void;
|
|
4107
4012
|
}
|
|
4013
|
+
/**
|
|
4014
|
+
* @beta
|
|
4015
|
+
*/
|
|
4108
4016
|
export class IDataDrivenEntityTriggerEventSignal {
|
|
4109
4017
|
protected constructor();
|
|
4110
4018
|
subscribe(
|
|
@@ -4113,111 +4021,177 @@ export class IDataDrivenEntityTriggerEventSignal {
|
|
|
4113
4021
|
): (arg: DataDrivenEntityTriggerEvent) => void;
|
|
4114
4022
|
unsubscribe(callback: (arg: DataDrivenEntityTriggerEvent) => void): void;
|
|
4115
4023
|
}
|
|
4024
|
+
/**
|
|
4025
|
+
* @beta
|
|
4026
|
+
*/
|
|
4116
4027
|
export class IEffectAddEventSignal {
|
|
4117
4028
|
protected constructor();
|
|
4118
4029
|
subscribe(callback: (arg: EffectAddEvent) => void, options?: EntityEventOptions): (arg: EffectAddEvent) => void;
|
|
4119
4030
|
unsubscribe(callback: (arg: EffectAddEvent) => void): void;
|
|
4120
4031
|
}
|
|
4032
|
+
/**
|
|
4033
|
+
* @beta
|
|
4034
|
+
*/
|
|
4121
4035
|
export class IEntityDieEventSignal {
|
|
4122
4036
|
protected constructor();
|
|
4123
4037
|
subscribe(callback: (arg: EntityDieEvent) => void, options?: EntityEventOptions): (arg: EntityDieEvent) => void;
|
|
4124
4038
|
unsubscribe(callback: (arg: EntityDieEvent) => void): void;
|
|
4125
4039
|
}
|
|
4040
|
+
/**
|
|
4041
|
+
* @beta
|
|
4042
|
+
*/
|
|
4126
4043
|
export class IEntityHitEventSignal {
|
|
4127
4044
|
protected constructor();
|
|
4128
4045
|
subscribe(callback: (arg: EntityHitEvent) => void, options?: EntityEventOptions): (arg: EntityHitEvent) => void;
|
|
4129
4046
|
unsubscribe(callback: (arg: EntityHitEvent) => void): void;
|
|
4130
4047
|
}
|
|
4048
|
+
/**
|
|
4049
|
+
* @beta
|
|
4050
|
+
*/
|
|
4131
4051
|
export class IEntityHurtEventSignal {
|
|
4132
4052
|
protected constructor();
|
|
4133
4053
|
subscribe(callback: (arg: EntityHurtEvent) => void, options?: EntityEventOptions): (arg: EntityHurtEvent) => void;
|
|
4134
4054
|
unsubscribe(callback: (arg: EntityHurtEvent) => void): void;
|
|
4135
4055
|
}
|
|
4056
|
+
/**
|
|
4057
|
+
* @beta
|
|
4058
|
+
*/
|
|
4136
4059
|
export class IEntitySpawnEventSignal {
|
|
4137
4060
|
protected constructor();
|
|
4138
4061
|
subscribe(callback: (arg: EntitySpawnEvent) => void): (arg: EntitySpawnEvent) => void;
|
|
4139
4062
|
unsubscribe(callback: (arg: EntitySpawnEvent) => void): void;
|
|
4140
4063
|
}
|
|
4064
|
+
/**
|
|
4065
|
+
* @beta
|
|
4066
|
+
*/
|
|
4141
4067
|
export class IExplosionEventSignal {
|
|
4142
4068
|
protected constructor();
|
|
4143
4069
|
subscribe(callback: (arg: ExplosionEvent) => void): (arg: ExplosionEvent) => void;
|
|
4144
4070
|
unsubscribe(callback: (arg: ExplosionEvent) => void): void;
|
|
4145
4071
|
}
|
|
4072
|
+
/**
|
|
4073
|
+
* @beta
|
|
4074
|
+
*/
|
|
4146
4075
|
export class IItemCompleteChargeEventSignal {
|
|
4147
4076
|
protected constructor();
|
|
4148
4077
|
subscribe(callback: (arg: ItemCompleteChargeEvent) => void): (arg: ItemCompleteChargeEvent) => void;
|
|
4149
4078
|
unsubscribe(callback: (arg: ItemCompleteChargeEvent) => void): void;
|
|
4150
4079
|
}
|
|
4080
|
+
/**
|
|
4081
|
+
* @beta
|
|
4082
|
+
*/
|
|
4151
4083
|
export class IItemDefinitionEventSignal {
|
|
4152
4084
|
protected constructor();
|
|
4153
4085
|
subscribe(callback: (arg: ItemDefinitionTriggeredEvent) => void): (arg: ItemDefinitionTriggeredEvent) => void;
|
|
4154
4086
|
unsubscribe(callback: (arg: ItemDefinitionTriggeredEvent) => void): void;
|
|
4155
4087
|
}
|
|
4088
|
+
/**
|
|
4089
|
+
* @beta
|
|
4090
|
+
*/
|
|
4156
4091
|
export class IItemReleaseChargeEventSignal {
|
|
4157
4092
|
protected constructor();
|
|
4158
4093
|
subscribe(callback: (arg: ItemReleaseChargeEvent) => void): (arg: ItemReleaseChargeEvent) => void;
|
|
4159
4094
|
unsubscribe(callback: (arg: ItemReleaseChargeEvent) => void): void;
|
|
4160
4095
|
}
|
|
4096
|
+
/**
|
|
4097
|
+
* @beta
|
|
4098
|
+
*/
|
|
4161
4099
|
export class IItemStartChargeEventSignal {
|
|
4162
4100
|
protected constructor();
|
|
4163
4101
|
subscribe(callback: (arg: ItemStartChargeEvent) => void): (arg: ItemStartChargeEvent) => void;
|
|
4164
4102
|
unsubscribe(callback: (arg: ItemStartChargeEvent) => void): void;
|
|
4165
4103
|
}
|
|
4104
|
+
/**
|
|
4105
|
+
* @beta
|
|
4106
|
+
*/
|
|
4166
4107
|
export class IItemStartUseOnEventSignal {
|
|
4167
4108
|
protected constructor();
|
|
4168
4109
|
subscribe(callback: (arg: ItemStartUseOnEvent) => void): (arg: ItemStartUseOnEvent) => void;
|
|
4169
4110
|
unsubscribe(callback: (arg: ItemStartUseOnEvent) => void): void;
|
|
4170
4111
|
}
|
|
4112
|
+
/**
|
|
4113
|
+
* @beta
|
|
4114
|
+
*/
|
|
4171
4115
|
export class IItemStopChargeEventSignal {
|
|
4172
4116
|
protected constructor();
|
|
4173
4117
|
subscribe(callback: (arg: ItemStopChargeEvent) => void): (arg: ItemStopChargeEvent) => void;
|
|
4174
4118
|
unsubscribe(callback: (arg: ItemStopChargeEvent) => void): void;
|
|
4175
4119
|
}
|
|
4120
|
+
/**
|
|
4121
|
+
* @beta
|
|
4122
|
+
*/
|
|
4176
4123
|
export class IItemStopUseOnEventSignal {
|
|
4177
4124
|
protected constructor();
|
|
4178
4125
|
subscribe(callback: (arg: ItemStopUseOnEvent) => void): (arg: ItemStopUseOnEvent) => void;
|
|
4179
4126
|
unsubscribe(callback: (arg: ItemStopUseOnEvent) => void): void;
|
|
4180
4127
|
}
|
|
4128
|
+
/**
|
|
4129
|
+
* @beta
|
|
4130
|
+
*/
|
|
4181
4131
|
export class IItemUseEventSignal {
|
|
4182
4132
|
protected constructor();
|
|
4183
4133
|
subscribe(callback: (arg: ItemUseEvent) => void): (arg: ItemUseEvent) => void;
|
|
4184
4134
|
unsubscribe(callback: (arg: ItemUseEvent) => void): void;
|
|
4185
4135
|
}
|
|
4136
|
+
/**
|
|
4137
|
+
* @beta
|
|
4138
|
+
*/
|
|
4186
4139
|
export class IItemUseOnEventSignal {
|
|
4187
4140
|
protected constructor();
|
|
4188
4141
|
subscribe(callback: (arg: ItemUseOnEvent) => void): (arg: ItemUseOnEvent) => void;
|
|
4189
4142
|
unsubscribe(callback: (arg: ItemUseOnEvent) => void): void;
|
|
4190
4143
|
}
|
|
4144
|
+
/**
|
|
4145
|
+
* @beta
|
|
4146
|
+
*/
|
|
4191
4147
|
export class ILeverActionEventSignal {
|
|
4192
4148
|
protected constructor();
|
|
4193
4149
|
subscribe(callback: (arg: LeverActionEvent) => void): (arg: LeverActionEvent) => void;
|
|
4194
4150
|
unsubscribe(callback: (arg: LeverActionEvent) => void): void;
|
|
4195
4151
|
}
|
|
4152
|
+
/**
|
|
4153
|
+
* @beta
|
|
4154
|
+
*/
|
|
4196
4155
|
export class IPistonActivateEventSignal {
|
|
4197
4156
|
protected constructor();
|
|
4198
4157
|
subscribe(callback: (arg: PistonActivateEvent) => void): (arg: PistonActivateEvent) => void;
|
|
4199
4158
|
unsubscribe(callback: (arg: PistonActivateEvent) => void): void;
|
|
4200
4159
|
}
|
|
4160
|
+
/**
|
|
4161
|
+
* @beta
|
|
4162
|
+
*/
|
|
4201
4163
|
export class IPlayerJoinEventSignal {
|
|
4202
4164
|
protected constructor();
|
|
4203
4165
|
subscribe(callback: (arg: PlayerJoinEvent) => void): (arg: PlayerJoinEvent) => void;
|
|
4204
4166
|
unsubscribe(callback: (arg: PlayerJoinEvent) => void): void;
|
|
4205
4167
|
}
|
|
4168
|
+
/**
|
|
4169
|
+
* @beta
|
|
4170
|
+
*/
|
|
4206
4171
|
export class IPlayerLeaveEventSignal {
|
|
4207
4172
|
protected constructor();
|
|
4208
4173
|
subscribe(callback: (arg: PlayerLeaveEvent) => void): (arg: PlayerLeaveEvent) => void;
|
|
4209
4174
|
unsubscribe(callback: (arg: PlayerLeaveEvent) => void): void;
|
|
4210
4175
|
}
|
|
4176
|
+
/**
|
|
4177
|
+
* @beta
|
|
4178
|
+
*/
|
|
4211
4179
|
export class IPlayerSpawnEventSignal {
|
|
4212
4180
|
protected constructor();
|
|
4213
4181
|
subscribe(callback: (arg: PlayerSpawnEvent) => void): (arg: PlayerSpawnEvent) => void;
|
|
4214
4182
|
unsubscribe(callback: (arg: PlayerSpawnEvent) => void): void;
|
|
4215
4183
|
}
|
|
4184
|
+
/**
|
|
4185
|
+
* @beta
|
|
4186
|
+
*/
|
|
4216
4187
|
export class IProjectileHitEventSignal {
|
|
4217
4188
|
protected constructor();
|
|
4218
4189
|
subscribe(callback: (arg: ProjectileHitEvent) => void): (arg: ProjectileHitEvent) => void;
|
|
4219
4190
|
unsubscribe(callback: (arg: ProjectileHitEvent) => void): void;
|
|
4220
4191
|
}
|
|
4192
|
+
/**
|
|
4193
|
+
* @beta
|
|
4194
|
+
*/
|
|
4221
4195
|
export class IScriptEventCommandMessageSignal {
|
|
4222
4196
|
protected constructor();
|
|
4223
4197
|
subscribe(
|
|
@@ -4226,6 +4200,9 @@ export class IScriptEventCommandMessageSignal {
|
|
|
4226
4200
|
): (arg: ScriptEventCommandMessageEvent) => void;
|
|
4227
4201
|
unsubscribe(callback: (arg: ScriptEventCommandMessageEvent) => void): void;
|
|
4228
4202
|
}
|
|
4203
|
+
/**
|
|
4204
|
+
* @beta
|
|
4205
|
+
*/
|
|
4229
4206
|
export class IServerMessageSignal {
|
|
4230
4207
|
protected constructor();
|
|
4231
4208
|
subscribe(callback: (arg: MessageReceiveEvent) => void): (arg: MessageReceiveEvent) => void;
|
|
@@ -4233,30 +4210,22 @@ export class IServerMessageSignal {
|
|
|
4233
4210
|
}
|
|
4234
4211
|
/**
|
|
4235
4212
|
* @beta
|
|
4236
|
-
* Contains information related to a chargeable item completing
|
|
4237
|
-
* being charged.
|
|
4238
4213
|
*/
|
|
4239
4214
|
export class ItemCompleteChargeEvent {
|
|
4240
4215
|
protected constructor();
|
|
4241
|
-
/**
|
|
4242
|
-
* Returns the item stack that has completed charging.
|
|
4243
|
-
*/
|
|
4244
4216
|
readonly itemStack: ItemStack;
|
|
4245
|
-
|
|
4246
|
-
* Returns the source entity that triggered this item event.
|
|
4247
|
-
*/
|
|
4248
|
-
readonly source: Entity;
|
|
4249
|
-
/**
|
|
4250
|
-
* Returns the time, in ticks, for the remaining duration left
|
|
4251
|
-
* before the charge completes its cycle.
|
|
4252
|
-
*/
|
|
4217
|
+
readonly source: Entity;
|
|
4253
4218
|
readonly useDuration: number;
|
|
4254
4219
|
}
|
|
4255
|
-
|
|
4220
|
+
/**
|
|
4221
|
+
* @beta
|
|
4222
|
+
*/
|
|
4256
4223
|
export class ItemCompleteChargeEventSignal_deprecated extends IItemCompleteChargeEventSignal {
|
|
4257
4224
|
protected constructor();
|
|
4258
4225
|
}
|
|
4259
|
-
|
|
4226
|
+
/**
|
|
4227
|
+
* @beta
|
|
4228
|
+
*/
|
|
4260
4229
|
export class ItemComponent extends Component {
|
|
4261
4230
|
protected constructor();
|
|
4262
4231
|
}
|
|
@@ -4287,34 +4256,23 @@ export class ItemCooldownComponent extends ItemComponent {
|
|
|
4287
4256
|
/**
|
|
4288
4257
|
* @remarks
|
|
4289
4258
|
* Starts a new cooldown period for this item.
|
|
4290
|
-
* @param player
|
|
4291
4259
|
* @throws This function can throw errors.
|
|
4292
4260
|
*/
|
|
4293
4261
|
startCooldown(player: Player): void;
|
|
4294
4262
|
}
|
|
4295
|
-
|
|
4263
|
+
/**
|
|
4264
|
+
* @beta
|
|
4265
|
+
*/
|
|
4296
4266
|
export class ItemDefinitionEventSignal_deprecated extends IItemDefinitionEventSignal {
|
|
4297
4267
|
protected constructor();
|
|
4298
4268
|
}
|
|
4299
4269
|
/**
|
|
4300
4270
|
* @beta
|
|
4301
|
-
* Contains information related to a custom item having a data
|
|
4302
|
-
* definition change being triggered.
|
|
4303
4271
|
*/
|
|
4304
4272
|
export class ItemDefinitionTriggeredEvent {
|
|
4305
4273
|
protected constructor();
|
|
4306
|
-
/**
|
|
4307
|
-
* Name of the data-driven item event that is triggering this
|
|
4308
|
-
* change.
|
|
4309
|
-
*/
|
|
4310
4274
|
readonly eventName: string;
|
|
4311
|
-
/**
|
|
4312
|
-
* The impacted item stack that is being used.
|
|
4313
|
-
*/
|
|
4314
4275
|
item: ItemStack;
|
|
4315
|
-
/**
|
|
4316
|
-
* Returns the source entity that triggered this item event.
|
|
4317
|
-
*/
|
|
4318
4276
|
readonly source: Entity;
|
|
4319
4277
|
}
|
|
4320
4278
|
/**
|
|
@@ -4418,27 +4376,16 @@ export class ItemFoodComponent extends ItemComponent {
|
|
|
4418
4376
|
}
|
|
4419
4377
|
/**
|
|
4420
4378
|
* @beta
|
|
4421
|
-
* Contains information related to a chargeable item when the
|
|
4422
|
-
* player has finished using the item and released the build
|
|
4423
|
-
* action.
|
|
4424
4379
|
*/
|
|
4425
4380
|
export class ItemReleaseChargeEvent {
|
|
4426
4381
|
protected constructor();
|
|
4427
|
-
/**
|
|
4428
|
-
* Returns the item stack that triggered this item event.
|
|
4429
|
-
*/
|
|
4430
4382
|
readonly itemStack: ItemStack;
|
|
4431
|
-
/**
|
|
4432
|
-
* Returns the source entity that triggered this item event.
|
|
4433
|
-
*/
|
|
4434
4383
|
readonly source: Entity;
|
|
4435
|
-
/**
|
|
4436
|
-
* Returns the time, in ticks, for the remaining duration left
|
|
4437
|
-
* before the charge completes its cycle.
|
|
4438
|
-
*/
|
|
4439
4384
|
readonly useDuration: number;
|
|
4440
4385
|
}
|
|
4441
|
-
|
|
4386
|
+
/**
|
|
4387
|
+
* @beta
|
|
4388
|
+
*/
|
|
4442
4389
|
export class ItemReleaseChargeEventSignal_deprecated extends IItemReleaseChargeEventSignal {
|
|
4443
4390
|
protected constructor();
|
|
4444
4391
|
}
|
|
@@ -4447,7 +4394,6 @@ export class ItemReleaseChargeEventSignal_deprecated extends IItemReleaseChargeE
|
|
|
4447
4394
|
* Represents a collection of all of the available item types
|
|
4448
4395
|
* in Minecraft.
|
|
4449
4396
|
*/
|
|
4450
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
4451
4397
|
export class Items {
|
|
4452
4398
|
protected constructor();
|
|
4453
4399
|
/**
|
|
@@ -4568,6 +4514,7 @@ export class ItemStack {
|
|
|
4568
4514
|
* returns an empty array.
|
|
4569
4515
|
*/
|
|
4570
4516
|
getLore(): string[];
|
|
4517
|
+
getTags(): string[];
|
|
4571
4518
|
/**
|
|
4572
4519
|
* @remarks
|
|
4573
4520
|
* Returns true if the specified component is present on this
|
|
@@ -4578,6 +4525,7 @@ export class ItemStack {
|
|
|
4578
4525
|
* is assumed.
|
|
4579
4526
|
*/
|
|
4580
4527
|
hasComponent(componentId: string): boolean;
|
|
4528
|
+
hasTag(tag: string): boolean;
|
|
4581
4529
|
/**
|
|
4582
4530
|
* @remarks
|
|
4583
4531
|
* Returns whether this item stack can be stacked with the
|
|
@@ -4585,7 +4533,6 @@ export class ItemStack {
|
|
|
4585
4533
|
* type and any custom data and properties associated with the
|
|
4586
4534
|
* item stacks. The amount of each item stack is not taken into
|
|
4587
4535
|
* consideration.
|
|
4588
|
-
* @param itemStack
|
|
4589
4536
|
*/
|
|
4590
4537
|
isStackableWith(itemStack: ItemStack): boolean;
|
|
4591
4538
|
/**
|
|
@@ -4593,7 +4540,6 @@ export class ItemStack {
|
|
|
4593
4540
|
* The list of block types this item can break in Adventure
|
|
4594
4541
|
* mode. The block names are displayed in the item's tooltip.
|
|
4595
4542
|
* Setting the value to undefined will clear the list.
|
|
4596
|
-
* @param blockIdentifiers
|
|
4597
4543
|
* @throws
|
|
4598
4544
|
* Throws if any of the provided block identifiers are invalid.
|
|
4599
4545
|
* @example example.ts
|
|
@@ -4611,7 +4557,6 @@ export class ItemStack {
|
|
|
4611
4557
|
* Adventure mode. This is only applicable to block items. The
|
|
4612
4558
|
* block names are displayed in the item's tooltip. Setting the
|
|
4613
4559
|
* value to undefined will clear the list.
|
|
4614
|
-
* @param blockIdentifiers
|
|
4615
4560
|
* @throws
|
|
4616
4561
|
* Throws if any of the provided block identifiers are invalid.
|
|
4617
4562
|
* @example example.ts
|
|
@@ -4627,7 +4572,6 @@ export class ItemStack {
|
|
|
4627
4572
|
* @remarks
|
|
4628
4573
|
* Sets the lore value - a secondary display string - for an
|
|
4629
4574
|
* ItemStack.
|
|
4630
|
-
* @param loreList
|
|
4631
4575
|
* @example multilineLore.ts
|
|
4632
4576
|
* ```typescript
|
|
4633
4577
|
* // Set the lore of an item to multiple lines of text
|
|
@@ -4650,99 +4594,63 @@ export class ItemStack {
|
|
|
4650
4594
|
}
|
|
4651
4595
|
/**
|
|
4652
4596
|
* @beta
|
|
4653
|
-
* Contains information related to a chargeable item starting
|
|
4654
|
-
* to be charged.
|
|
4655
4597
|
*/
|
|
4656
4598
|
export class ItemStartChargeEvent {
|
|
4657
4599
|
protected constructor();
|
|
4658
|
-
/**
|
|
4659
|
-
* The impacted item stack that is starting to be charged.
|
|
4660
|
-
*/
|
|
4661
4600
|
readonly itemStack: ItemStack;
|
|
4662
|
-
/**
|
|
4663
|
-
* Returns the source entity that triggered this item event.
|
|
4664
|
-
*/
|
|
4665
4601
|
readonly source: Entity;
|
|
4666
|
-
/**
|
|
4667
|
-
* Returns the time, in ticks, for the remaining duration left
|
|
4668
|
-
* before the charge completes its cycle.
|
|
4669
|
-
*/
|
|
4670
4602
|
readonly useDuration: number;
|
|
4671
4603
|
}
|
|
4672
|
-
|
|
4604
|
+
/**
|
|
4605
|
+
* @beta
|
|
4606
|
+
*/
|
|
4673
4607
|
export class ItemStartChargeEventSignal_deprecated extends IItemStartChargeEventSignal {
|
|
4674
4608
|
protected constructor();
|
|
4675
4609
|
}
|
|
4676
4610
|
/**
|
|
4677
4611
|
* @beta
|
|
4678
|
-
* Contains information related to an item being used on a
|
|
4679
|
-
* block.
|
|
4680
4612
|
*/
|
|
4681
4613
|
export class ItemStartUseOnEvent {
|
|
4682
4614
|
protected constructor();
|
|
4683
|
-
/**
|
|
4684
|
-
* The face of the block that an item is being used on.
|
|
4685
|
-
*/
|
|
4686
4615
|
readonly blockFace: Direction;
|
|
4687
|
-
/**
|
|
4688
|
-
* The impacted item stack that is starting to be used.
|
|
4689
|
-
*/
|
|
4690
4616
|
item: ItemStack;
|
|
4691
|
-
/**
|
|
4692
|
-
* Returns the source entity that triggered this item event.
|
|
4693
|
-
*/
|
|
4694
4617
|
readonly source: Entity;
|
|
4695
4618
|
getBlockLocation(): Vector3;
|
|
4696
4619
|
getBuildBlockLocation(): Vector3;
|
|
4697
4620
|
}
|
|
4698
|
-
|
|
4621
|
+
/**
|
|
4622
|
+
* @beta
|
|
4623
|
+
*/
|
|
4699
4624
|
export class ItemStartUseOnEventSignal_deprecated extends IItemStartUseOnEventSignal {
|
|
4700
4625
|
protected constructor();
|
|
4701
4626
|
}
|
|
4702
4627
|
/**
|
|
4703
4628
|
* @beta
|
|
4704
|
-
* Contains information related to a chargeable item has
|
|
4705
|
-
* finished an items use cycle, or when the player has released
|
|
4706
|
-
* the use action with the item.
|
|
4707
4629
|
*/
|
|
4708
4630
|
export class ItemStopChargeEvent {
|
|
4709
4631
|
protected constructor();
|
|
4710
|
-
/**
|
|
4711
|
-
* The impacted item stack that is stopping being charged.
|
|
4712
|
-
*/
|
|
4713
4632
|
readonly itemStack: ItemStack;
|
|
4714
|
-
/**
|
|
4715
|
-
* Returns the source entity that triggered this item event.
|
|
4716
|
-
*/
|
|
4717
4633
|
readonly source: Entity;
|
|
4718
|
-
/**
|
|
4719
|
-
* Returns the time, in ticks, for the remaining duration left
|
|
4720
|
-
* before the charge completes its cycle.
|
|
4721
|
-
*/
|
|
4722
4634
|
readonly useDuration: number;
|
|
4723
4635
|
}
|
|
4724
|
-
|
|
4636
|
+
/**
|
|
4637
|
+
* @beta
|
|
4638
|
+
*/
|
|
4725
4639
|
export class ItemStopChargeEventSignal_deprecated extends IItemStopChargeEventSignal {
|
|
4726
4640
|
protected constructor();
|
|
4727
4641
|
}
|
|
4728
4642
|
/**
|
|
4729
4643
|
* @beta
|
|
4730
|
-
* Contains information related to an item that has stopped
|
|
4731
|
-
* being used on a block.
|
|
4732
4644
|
*/
|
|
4733
4645
|
export class ItemStopUseOnEvent {
|
|
4734
4646
|
protected constructor();
|
|
4735
|
-
/**
|
|
4736
|
-
* The impacted item stack that is being used on a block.
|
|
4737
|
-
*/
|
|
4738
4647
|
item: ItemStack;
|
|
4739
|
-
/**
|
|
4740
|
-
* Returns the source entity that triggered this item event.
|
|
4741
|
-
*/
|
|
4742
4648
|
readonly source: Entity;
|
|
4743
4649
|
getBlockLocation(): Vector3;
|
|
4744
4650
|
}
|
|
4745
|
-
|
|
4651
|
+
/**
|
|
4652
|
+
* @beta
|
|
4653
|
+
*/
|
|
4746
4654
|
export class ItemStopUseOnEventSignal_deprecated extends IItemStopUseOnEventSignal {
|
|
4747
4655
|
protected constructor();
|
|
4748
4656
|
}
|
|
@@ -4771,13 +4679,11 @@ export class ItemTypeIterator implements Iterable<ItemType> {
|
|
|
4771
4679
|
* @beta
|
|
4772
4680
|
* Returns the set of item types registered within Minecraft.
|
|
4773
4681
|
*/
|
|
4774
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
4775
4682
|
export class ItemTypes {
|
|
4776
4683
|
protected constructor();
|
|
4777
4684
|
/**
|
|
4778
4685
|
* @remarks
|
|
4779
4686
|
* Returns a specific item type, if available within Minecraft.
|
|
4780
|
-
* @param itemId
|
|
4781
4687
|
*/
|
|
4782
4688
|
static get(itemId: string): ItemType;
|
|
4783
4689
|
/**
|
|
@@ -4789,63 +4695,47 @@ export class ItemTypes {
|
|
|
4789
4695
|
}
|
|
4790
4696
|
/**
|
|
4791
4697
|
* @beta
|
|
4792
|
-
* Contains information related to an item being used.
|
|
4793
4698
|
*/
|
|
4794
4699
|
export class ItemUseEvent {
|
|
4795
4700
|
protected constructor();
|
|
4796
|
-
/**
|
|
4797
|
-
* The impacted item stack that is being used.
|
|
4798
|
-
*/
|
|
4799
4701
|
item: ItemStack;
|
|
4800
|
-
/**
|
|
4801
|
-
* Returns the source entity that triggered this item event.
|
|
4802
|
-
*/
|
|
4803
4702
|
readonly source: Entity;
|
|
4804
4703
|
}
|
|
4805
|
-
|
|
4704
|
+
/**
|
|
4705
|
+
* @beta
|
|
4706
|
+
*/
|
|
4806
4707
|
export class ItemUseEventSignal_deprecated extends IItemUseEventSignal {
|
|
4807
4708
|
protected constructor();
|
|
4808
4709
|
}
|
|
4809
4710
|
/**
|
|
4810
4711
|
* @beta
|
|
4811
|
-
* Contains information related to an item being used on a
|
|
4812
|
-
* block.
|
|
4813
4712
|
*/
|
|
4814
4713
|
export class ItemUseOnEvent {
|
|
4815
4714
|
protected constructor();
|
|
4816
|
-
/**
|
|
4817
|
-
* The face of the block that an item is being used on.
|
|
4818
|
-
*/
|
|
4819
4715
|
readonly blockFace: Direction;
|
|
4820
|
-
/**
|
|
4821
|
-
* X coordinate of the item-use impact location on the face of
|
|
4822
|
-
* the target block.
|
|
4823
|
-
*/
|
|
4824
4716
|
readonly faceLocationX: number;
|
|
4825
|
-
/**
|
|
4826
|
-
* Y coordinate of the item-use impact location on the face of
|
|
4827
|
-
* the target block.
|
|
4828
|
-
*/
|
|
4829
4717
|
readonly faceLocationY: number;
|
|
4830
|
-
/**
|
|
4831
|
-
* The impacted item stack that is being used on a block.
|
|
4832
|
-
*/
|
|
4833
4718
|
item: ItemStack;
|
|
4834
|
-
/**
|
|
4835
|
-
* Returns the source entity that triggered this item event.
|
|
4836
|
-
*/
|
|
4837
4719
|
readonly source: Entity;
|
|
4838
4720
|
getBlockLocation(): Vector3;
|
|
4839
4721
|
}
|
|
4840
|
-
|
|
4722
|
+
/**
|
|
4723
|
+
* @beta
|
|
4724
|
+
*/
|
|
4841
4725
|
export class ItemUseOnEventSignal_deprecated extends IItemUseOnEventSignal {
|
|
4842
4726
|
protected constructor();
|
|
4843
4727
|
}
|
|
4728
|
+
/**
|
|
4729
|
+
* @beta
|
|
4730
|
+
*/
|
|
4844
4731
|
export class IWeatherChangeEventSignal {
|
|
4845
4732
|
protected constructor();
|
|
4846
4733
|
subscribe(callback: (arg: WeatherChangeEvent) => void): (arg: WeatherChangeEvent) => void;
|
|
4847
4734
|
unsubscribe(callback: (arg: WeatherChangeEvent) => void): void;
|
|
4848
4735
|
}
|
|
4736
|
+
/**
|
|
4737
|
+
* @beta
|
|
4738
|
+
*/
|
|
4849
4739
|
export class IWorldInitializeEventSignal {
|
|
4850
4740
|
protected constructor();
|
|
4851
4741
|
subscribe(callback: (arg: WorldInitializeEvent) => void): (arg: WorldInitializeEvent) => void;
|
|
@@ -4853,29 +4743,20 @@ export class IWorldInitializeEventSignal {
|
|
|
4853
4743
|
}
|
|
4854
4744
|
/**
|
|
4855
4745
|
* @beta
|
|
4856
|
-
* Contains information related to changes to a lever
|
|
4857
|
-
* activating or deactivating.
|
|
4858
4746
|
*/
|
|
4859
4747
|
export class LeverActionEvent extends BlockEvent {
|
|
4860
4748
|
protected constructor();
|
|
4861
|
-
/**
|
|
4862
|
-
* True if the lever is activated (that is, transmitting
|
|
4863
|
-
* power).
|
|
4864
|
-
*/
|
|
4865
4749
|
readonly isPowered: boolean;
|
|
4866
|
-
/**
|
|
4867
|
-
* Optional player that triggered the lever activation.
|
|
4868
|
-
*/
|
|
4869
4750
|
readonly player: Player;
|
|
4870
4751
|
}
|
|
4871
|
-
|
|
4752
|
+
/**
|
|
4753
|
+
* @beta
|
|
4754
|
+
*/
|
|
4872
4755
|
export class LeverActionEventSignal_deprecated extends ILeverActionEventSignal {
|
|
4873
4756
|
protected constructor();
|
|
4874
4757
|
}
|
|
4875
4758
|
/**
|
|
4876
4759
|
* @beta
|
|
4877
|
-
* A specific currently-internal event used for passing
|
|
4878
|
-
* messages from client to server.
|
|
4879
4760
|
*/
|
|
4880
4761
|
export class MessageReceiveEvent {
|
|
4881
4762
|
protected constructor();
|
|
@@ -4889,7 +4770,6 @@ export class MessageReceiveEvent {
|
|
|
4889
4770
|
* Contains definitions of standard Minecraft and Minecraft
|
|
4890
4771
|
* Education Edition block types.
|
|
4891
4772
|
*/
|
|
4892
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
4893
4773
|
export class MinecraftBlockTypes {
|
|
4894
4774
|
protected constructor();
|
|
4895
4775
|
/**
|
|
@@ -4900,6 +4780,7 @@ export class MinecraftBlockTypes {
|
|
|
4900
4780
|
* Represents an acacia door within Minecraft.
|
|
4901
4781
|
*/
|
|
4902
4782
|
static readonly acaciaDoor: BlockType;
|
|
4783
|
+
static readonly acaciaFence: BlockType;
|
|
4903
4784
|
/**
|
|
4904
4785
|
* Represents an acacia fence gate within Minecraft.
|
|
4905
4786
|
*/
|
|
@@ -5049,6 +4930,7 @@ export class MinecraftBlockTypes {
|
|
|
5049
4930
|
* Represents a birch door within Minecraft.
|
|
5050
4931
|
*/
|
|
5051
4932
|
static readonly birchDoor: BlockType;
|
|
4933
|
+
static readonly birchFence: BlockType;
|
|
5052
4934
|
/**
|
|
5053
4935
|
* Represents a birch fence gate within Minecraft.
|
|
5054
4936
|
*/
|
|
@@ -5194,6 +5076,7 @@ export class MinecraftBlockTypes {
|
|
|
5194
5076
|
* Represents a calcite block within Minecraft.
|
|
5195
5077
|
*/
|
|
5196
5078
|
static readonly calcite: BlockType;
|
|
5079
|
+
static readonly calibratedSculkSensor: BlockType;
|
|
5197
5080
|
/**
|
|
5198
5081
|
* Represents a camera within Minecraft Education Edition. It
|
|
5199
5082
|
* is not available in Minecraft Bedrock Edition.
|
|
@@ -5554,6 +5437,7 @@ export class MinecraftBlockTypes {
|
|
|
5554
5437
|
* Represents a dark oak door within Minecraft.
|
|
5555
5438
|
*/
|
|
5556
5439
|
static readonly darkOakDoor: BlockType;
|
|
5440
|
+
static readonly darkOakFence: BlockType;
|
|
5557
5441
|
/**
|
|
5558
5442
|
* Represents a dark oak fence gate within Minecraft.
|
|
5559
5443
|
*/
|
|
@@ -6433,10 +6317,6 @@ export class MinecraftBlockTypes {
|
|
|
6433
6317
|
* Represents a farmland block within Minecraft.
|
|
6434
6318
|
*/
|
|
6435
6319
|
static readonly farmland: BlockType;
|
|
6436
|
-
/**
|
|
6437
|
-
* Represents a fence within Minecraft.
|
|
6438
|
-
*/
|
|
6439
|
-
static readonly fence: BlockType;
|
|
6440
6320
|
/**
|
|
6441
6321
|
* Represents a fence gate within Minecraft.
|
|
6442
6322
|
*/
|
|
@@ -6668,6 +6548,7 @@ export class MinecraftBlockTypes {
|
|
|
6668
6548
|
* Represents a jungle wood door within Minecraft.
|
|
6669
6549
|
*/
|
|
6670
6550
|
static readonly jungleDoor: BlockType;
|
|
6551
|
+
static readonly jungleFence: BlockType;
|
|
6671
6552
|
/**
|
|
6672
6553
|
* Represents a jungle wood fence gate within Minecraft.
|
|
6673
6554
|
*/
|
|
@@ -6968,6 +6849,7 @@ export class MinecraftBlockTypes {
|
|
|
6968
6849
|
* Represents a note block within Minecraft.
|
|
6969
6850
|
*/
|
|
6970
6851
|
static readonly noteblock: BlockType;
|
|
6852
|
+
static readonly oakFence: BlockType;
|
|
6971
6853
|
static readonly oakHangingSign: BlockType;
|
|
6972
6854
|
static readonly oakLog: BlockType;
|
|
6973
6855
|
/**
|
|
@@ -7475,6 +7357,7 @@ export class MinecraftBlockTypes {
|
|
|
7475
7357
|
* Represents a spruce wood door within Minecraft.
|
|
7476
7358
|
*/
|
|
7477
7359
|
static readonly spruceDoor: BlockType;
|
|
7360
|
+
static readonly spruceFence: BlockType;
|
|
7478
7361
|
/**
|
|
7479
7362
|
* Represents a spruce wood fence gate within Minecraft.
|
|
7480
7363
|
*/
|
|
@@ -7635,6 +7518,7 @@ export class MinecraftBlockTypes {
|
|
|
7635
7518
|
* Represents a structure void within Minecraft.
|
|
7636
7519
|
*/
|
|
7637
7520
|
static readonly structureVoid: BlockType;
|
|
7521
|
+
static readonly suspiciousGravel: BlockType;
|
|
7638
7522
|
static readonly suspiciousSand: BlockType;
|
|
7639
7523
|
/**
|
|
7640
7524
|
* Represents a sweet berry bush within Minecraft.
|
|
@@ -7994,7 +7878,6 @@ export class MinecraftBlockTypes {
|
|
|
7994
7878
|
/**
|
|
7995
7879
|
* @remarks
|
|
7996
7880
|
* Returns a specific Minecraft block type given a type id.
|
|
7997
|
-
* @param typeName
|
|
7998
7881
|
*/
|
|
7999
7882
|
static get(typeName: string): BlockType;
|
|
8000
7883
|
/**
|
|
@@ -8006,7 +7889,6 @@ export class MinecraftBlockTypes {
|
|
|
8006
7889
|
/**
|
|
8007
7890
|
* A collection of default Minecraft dimension types.
|
|
8008
7891
|
*/
|
|
8009
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
8010
7892
|
export class MinecraftDimensionTypes {
|
|
8011
7893
|
protected constructor();
|
|
8012
7894
|
/**
|
|
@@ -8041,7 +7923,6 @@ export class MinecraftDimensionTypes {
|
|
|
8041
7923
|
* @beta
|
|
8042
7924
|
* Returns available installed effect types within Minecraft.
|
|
8043
7925
|
*/
|
|
8044
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
8045
7926
|
export class MinecraftEffectTypes {
|
|
8046
7927
|
protected constructor();
|
|
8047
7928
|
static readonly absorption: EffectType;
|
|
@@ -8080,7 +7961,6 @@ export class MinecraftEffectTypes {
|
|
|
8080
7961
|
* @beta
|
|
8081
7962
|
* Describes a set of enchantment types.
|
|
8082
7963
|
*/
|
|
8083
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
8084
7964
|
export class MinecraftEnchantmentTypes {
|
|
8085
7965
|
protected constructor();
|
|
8086
7966
|
static readonly aquaAffinity: EnchantmentType;
|
|
@@ -8122,7 +8002,9 @@ export class MinecraftEnchantmentTypes {
|
|
|
8122
8002
|
static readonly unbreaking: EnchantmentType;
|
|
8123
8003
|
static readonly vanishing: EnchantmentType;
|
|
8124
8004
|
}
|
|
8125
|
-
|
|
8005
|
+
/**
|
|
8006
|
+
* @beta
|
|
8007
|
+
*/
|
|
8126
8008
|
export class MinecraftEntityTypes {
|
|
8127
8009
|
protected constructor();
|
|
8128
8010
|
static readonly agent: EntityType;
|
|
@@ -8243,7 +8125,6 @@ export class MinecraftEntityTypes {
|
|
|
8243
8125
|
* Contains definitions of standard Minecraft and Minecraft
|
|
8244
8126
|
* Education Edition block types.
|
|
8245
8127
|
*/
|
|
8246
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
8247
8128
|
export class MinecraftItemTypes {
|
|
8248
8129
|
protected constructor();
|
|
8249
8130
|
static readonly acaciaBoat: ItemType;
|
|
@@ -8258,6 +8139,7 @@ export class MinecraftItemTypes {
|
|
|
8258
8139
|
* Minecraft.
|
|
8259
8140
|
*/
|
|
8260
8141
|
static readonly acaciaDoor: ItemType;
|
|
8142
|
+
static readonly acaciaFence: ItemType;
|
|
8261
8143
|
/**
|
|
8262
8144
|
* Represents an item that can place an acacia fence gate
|
|
8263
8145
|
* within Minecraft.
|
|
@@ -8415,6 +8297,7 @@ export class MinecraftItemTypes {
|
|
|
8415
8297
|
* Minecraft.
|
|
8416
8298
|
*/
|
|
8417
8299
|
static readonly birchDoor: ItemType;
|
|
8300
|
+
static readonly birchFence: ItemType;
|
|
8418
8301
|
/**
|
|
8419
8302
|
* Represents an item that can place a birch fence gate within
|
|
8420
8303
|
* Minecraft.
|
|
@@ -8911,6 +8794,7 @@ export class MinecraftItemTypes {
|
|
|
8911
8794
|
* Minecraft.
|
|
8912
8795
|
*/
|
|
8913
8796
|
static readonly darkOakDoor: ItemType;
|
|
8797
|
+
static readonly darkOakFence: ItemType;
|
|
8914
8798
|
/**
|
|
8915
8799
|
* Represents an item that can place a dark oak fence gate
|
|
8916
8800
|
* within Minecraft.
|
|
@@ -9487,6 +9371,7 @@ export class MinecraftItemTypes {
|
|
|
9487
9371
|
* Minecraft.
|
|
9488
9372
|
*/
|
|
9489
9373
|
static readonly jungleDoor: ItemType;
|
|
9374
|
+
static readonly jungleFence: ItemType;
|
|
9490
9375
|
/**
|
|
9491
9376
|
* Represents an item that can place a jungle wood fence gate
|
|
9492
9377
|
* within Minecraft.
|
|
@@ -9831,6 +9716,7 @@ export class MinecraftItemTypes {
|
|
|
9831
9716
|
static readonly noteblock: ItemType;
|
|
9832
9717
|
static readonly oakBoat: ItemType;
|
|
9833
9718
|
static readonly oakChestBoat: ItemType;
|
|
9719
|
+
static readonly oakFence: ItemType;
|
|
9834
9720
|
static readonly oakLog: ItemType;
|
|
9835
9721
|
static readonly oakSign: ItemType;
|
|
9836
9722
|
/**
|
|
@@ -10394,6 +10280,7 @@ export class MinecraftItemTypes {
|
|
|
10394
10280
|
* Minecraft.
|
|
10395
10281
|
*/
|
|
10396
10282
|
static readonly spruceDoor: ItemType;
|
|
10283
|
+
static readonly spruceFence: ItemType;
|
|
10397
10284
|
/**
|
|
10398
10285
|
* Represents an item that can place a spruce wood fence gate
|
|
10399
10286
|
* within Minecraft.
|
|
@@ -10915,8 +10802,6 @@ export class MolangVariableMap {
|
|
|
10915
10802
|
* - `<variable_name>.r` - Red color value [0-1]
|
|
10916
10803
|
* - `<variable_name>.g` - Green color value [0-1]
|
|
10917
10804
|
* - `<variable_name>.b` - Blue color value [0-1]
|
|
10918
|
-
* @param variableName
|
|
10919
|
-
* @param color
|
|
10920
10805
|
*/
|
|
10921
10806
|
setColorRGB(variableName: string, color: Color): MolangVariableMap;
|
|
10922
10807
|
/**
|
|
@@ -10927,8 +10812,6 @@ export class MolangVariableMap {
|
|
|
10927
10812
|
* - `<variable_name>.b` - Blue color value [0-1]
|
|
10928
10813
|
* - `<variable_name>.a` - Alpha (transparency) color value
|
|
10929
10814
|
* [0-1]
|
|
10930
|
-
* @param variableName
|
|
10931
|
-
* @param color
|
|
10932
10815
|
*/
|
|
10933
10816
|
setColorRGBA(variableName: string, color: Color): MolangVariableMap;
|
|
10934
10817
|
/**
|
|
@@ -10941,9 +10824,6 @@ export class MolangVariableMap {
|
|
|
10941
10824
|
* Vector3} provided
|
|
10942
10825
|
* - `<variable_name>.direction_z` - Z value from the {@link
|
|
10943
10826
|
* Vector3} provided
|
|
10944
|
-
* @param variableName
|
|
10945
|
-
* @param speed
|
|
10946
|
-
* @param direction
|
|
10947
10827
|
*/
|
|
10948
10828
|
setSpeedAndDirection(variableName: string, speed: number, direction: Vector): MolangVariableMap;
|
|
10949
10829
|
/**
|
|
@@ -10955,8 +10835,6 @@ export class MolangVariableMap {
|
|
|
10955
10835
|
* provided
|
|
10956
10836
|
* - `<variable_name>.z` - Z value from the {@link Vector3}
|
|
10957
10837
|
* provided
|
|
10958
|
-
* @param variableName
|
|
10959
|
-
* @param vector
|
|
10960
10838
|
*/
|
|
10961
10839
|
setVector3(variableName: string, vector: Vector): MolangVariableMap;
|
|
10962
10840
|
}
|
|
@@ -10977,21 +10855,15 @@ export class NavigationResult {
|
|
|
10977
10855
|
}
|
|
10978
10856
|
/**
|
|
10979
10857
|
* @beta
|
|
10980
|
-
* Contains information related to changes to a piston
|
|
10981
|
-
* expanding or retracting.
|
|
10982
10858
|
*/
|
|
10983
10859
|
export class PistonActivateEvent extends BlockEvent {
|
|
10984
10860
|
protected constructor();
|
|
10985
|
-
/**
|
|
10986
|
-
* True if the piston is the process of expanding.
|
|
10987
|
-
*/
|
|
10988
10861
|
readonly isExpanding: boolean;
|
|
10989
|
-
/**
|
|
10990
|
-
* Contains additional properties and details of the piston.
|
|
10991
|
-
*/
|
|
10992
10862
|
readonly piston: BlockPistonComponent;
|
|
10993
10863
|
}
|
|
10994
|
-
|
|
10864
|
+
/**
|
|
10865
|
+
* @beta
|
|
10866
|
+
*/
|
|
10995
10867
|
export class PistonActivateEventSignal_deprecated extends IPistonActivateEventSignal {
|
|
10996
10868
|
protected constructor();
|
|
10997
10869
|
}
|
|
@@ -11000,6 +10872,10 @@ export class PistonActivateEventSignal_deprecated extends IPistonActivateEventSi
|
|
|
11000
10872
|
*/
|
|
11001
10873
|
export class Player extends Entity {
|
|
11002
10874
|
protected constructor();
|
|
10875
|
+
/**
|
|
10876
|
+
* @beta
|
|
10877
|
+
* @throws This property can throw when used.
|
|
10878
|
+
*/
|
|
11003
10879
|
readonly level: number;
|
|
11004
10880
|
/**
|
|
11005
10881
|
* Name of the player.
|
|
@@ -11017,8 +10893,20 @@ export class Player extends Entity {
|
|
|
11017
10893
|
* Manages the selected slot in the player's hotbar.
|
|
11018
10894
|
*/
|
|
11019
10895
|
selectedSlot: number;
|
|
10896
|
+
/**
|
|
10897
|
+
* @beta
|
|
10898
|
+
* @throws This property can throw when used.
|
|
10899
|
+
*/
|
|
11020
10900
|
readonly spawnDimension?: Dimension;
|
|
10901
|
+
/**
|
|
10902
|
+
* @beta
|
|
10903
|
+
* @throws This property can throw when used.
|
|
10904
|
+
*/
|
|
11021
10905
|
readonly totalXpNeededForNextLevel: number;
|
|
10906
|
+
/**
|
|
10907
|
+
* @beta
|
|
10908
|
+
* @throws This property can throw when used.
|
|
10909
|
+
*/
|
|
11022
10910
|
readonly xpEarnedAtCurrentLevel: number;
|
|
11023
10911
|
/**
|
|
11024
10912
|
* @beta
|
|
@@ -11044,6 +10932,10 @@ export class Player extends Entity {
|
|
|
11044
10932
|
* @throws This function can throw errors.
|
|
11045
10933
|
*/
|
|
11046
10934
|
addLevels(amount: number): number;
|
|
10935
|
+
/**
|
|
10936
|
+
* @beta
|
|
10937
|
+
* @throws This function can throw errors.
|
|
10938
|
+
*/
|
|
11047
10939
|
clearSpawn(): void;
|
|
11048
10940
|
/**
|
|
11049
10941
|
* @beta
|
|
@@ -11056,6 +10948,10 @@ export class Player extends Entity {
|
|
|
11056
10948
|
* @throws This function can throw errors.
|
|
11057
10949
|
*/
|
|
11058
10950
|
getItemCooldown(itemCategory: string): number;
|
|
10951
|
+
/**
|
|
10952
|
+
* @beta
|
|
10953
|
+
* @throws This function can throw errors.
|
|
10954
|
+
*/
|
|
11059
10955
|
getSpawnPosition(): Vector3 | undefined;
|
|
11060
10956
|
/**
|
|
11061
10957
|
* @beta
|
|
@@ -11087,8 +10983,6 @@ export class Player extends Entity {
|
|
|
11087
10983
|
* @remarks
|
|
11088
10984
|
* This is an internal-facing method for posting a system
|
|
11089
10985
|
* message to downstream clients.
|
|
11090
|
-
* @param id
|
|
11091
|
-
* @param value
|
|
11092
10986
|
* @throws This function can throw errors.
|
|
11093
10987
|
*/
|
|
11094
10988
|
postClientMessage(id: string, value: string): void;
|
|
@@ -11146,10 +11040,13 @@ export class Player extends Entity {
|
|
|
11146
11040
|
* @remarks
|
|
11147
11041
|
* Will change the specified players permissions, and whether
|
|
11148
11042
|
* they are operator or not.
|
|
11149
|
-
* @param isOp
|
|
11150
11043
|
* @throws This function can throw errors.
|
|
11151
11044
|
*/
|
|
11152
11045
|
setOp(isOp: boolean): void;
|
|
11046
|
+
/**
|
|
11047
|
+
* @beta
|
|
11048
|
+
* @throws This function can throw errors.
|
|
11049
|
+
*/
|
|
11153
11050
|
setSpawn(spawnPosition: Vector3, spawnDimension: Dimension): void;
|
|
11154
11051
|
/**
|
|
11155
11052
|
* @beta
|
|
@@ -11184,99 +11081,62 @@ export class PlayerIterator implements Iterable<Player> {
|
|
|
11184
11081
|
}
|
|
11185
11082
|
/**
|
|
11186
11083
|
* @beta
|
|
11187
|
-
* Contains information regarding a player that has joined.
|
|
11188
|
-
* See the playerSpawn event for more detailed information that
|
|
11189
|
-
* could be returned after the first time a player has spawned
|
|
11190
|
-
* within the game.
|
|
11191
11084
|
*/
|
|
11192
11085
|
export class PlayerJoinEvent {
|
|
11193
11086
|
protected constructor();
|
|
11194
|
-
/**
|
|
11195
|
-
* Opaque string identifier of the player that joined the game.
|
|
11196
|
-
*/
|
|
11197
11087
|
readonly playerId: string;
|
|
11198
|
-
/**
|
|
11199
|
-
* Name of the player that has joined.
|
|
11200
|
-
*/
|
|
11201
11088
|
readonly playerName: string;
|
|
11202
11089
|
}
|
|
11203
|
-
|
|
11090
|
+
/**
|
|
11091
|
+
* @beta
|
|
11092
|
+
*/
|
|
11204
11093
|
export class PlayerJoinEventSignal_deprecated extends IPlayerJoinEventSignal {
|
|
11205
11094
|
protected constructor();
|
|
11206
11095
|
}
|
|
11207
11096
|
/**
|
|
11208
11097
|
* @beta
|
|
11209
|
-
* Contains information regarding a player that has left the
|
|
11210
|
-
* world.
|
|
11211
11098
|
*/
|
|
11212
11099
|
export class PlayerLeaveEvent {
|
|
11213
11100
|
protected constructor();
|
|
11214
|
-
/**
|
|
11215
|
-
* Opaque string identifier of the player that has left the
|
|
11216
|
-
* event.
|
|
11217
|
-
*/
|
|
11218
11101
|
readonly playerId: string;
|
|
11219
|
-
/**
|
|
11220
|
-
* Player that has left the world.
|
|
11221
|
-
*/
|
|
11222
11102
|
readonly playerName: string;
|
|
11223
11103
|
}
|
|
11224
|
-
|
|
11104
|
+
/**
|
|
11105
|
+
* @beta
|
|
11106
|
+
*/
|
|
11225
11107
|
export class PlayerLeaveEventSignal_deprecated extends IPlayerLeaveEventSignal {
|
|
11226
11108
|
protected constructor();
|
|
11227
11109
|
}
|
|
11228
11110
|
/**
|
|
11229
11111
|
* @beta
|
|
11230
|
-
* An event that contains more information about a player
|
|
11231
|
-
* spawning.
|
|
11232
11112
|
*/
|
|
11233
11113
|
export class PlayerSpawnEvent {
|
|
11234
11114
|
protected constructor();
|
|
11235
|
-
/**
|
|
11236
|
-
* If true, this is the initial spawn of a player after joining
|
|
11237
|
-
* the game.
|
|
11238
|
-
*/
|
|
11239
11115
|
initialSpawn: boolean;
|
|
11240
|
-
/**
|
|
11241
|
-
* Object that represents the player that joined the game.
|
|
11242
|
-
*/
|
|
11243
11116
|
player: Player;
|
|
11244
11117
|
}
|
|
11245
|
-
|
|
11118
|
+
/**
|
|
11119
|
+
* @beta
|
|
11120
|
+
*/
|
|
11246
11121
|
export class PlayerSpawnEventSignal_deprecated extends IPlayerSpawnEventSignal {
|
|
11247
11122
|
protected constructor();
|
|
11248
11123
|
}
|
|
11249
11124
|
/**
|
|
11250
11125
|
* @beta
|
|
11251
|
-
* Contains information related to a projectile hitting an
|
|
11252
|
-
* entity or block.
|
|
11253
11126
|
*/
|
|
11254
11127
|
export class ProjectileHitEvent {
|
|
11255
11128
|
protected constructor();
|
|
11256
|
-
/**
|
|
11257
|
-
* Dimension where this projectile hit took place.
|
|
11258
|
-
*/
|
|
11259
11129
|
readonly dimension: Dimension;
|
|
11260
|
-
/**
|
|
11261
|
-
* Direction vector of the projectile as it hit a block/entity.
|
|
11262
|
-
*/
|
|
11263
11130
|
readonly hitVector: Vector;
|
|
11264
|
-
/**
|
|
11265
|
-
* Location where the projectile hit occurred.
|
|
11266
|
-
*/
|
|
11267
11131
|
readonly location: Vector3;
|
|
11268
|
-
/**
|
|
11269
|
-
* Entity for the projectile that hit a block/entity.
|
|
11270
|
-
*/
|
|
11271
11132
|
readonly projectile: Entity;
|
|
11272
|
-
/**
|
|
11273
|
-
* Optional source entity that fired the projectile.
|
|
11274
|
-
*/
|
|
11275
11133
|
readonly source: Entity;
|
|
11276
11134
|
getBlockHit(): BlockHitInformation | undefined;
|
|
11277
11135
|
getEntityHit(): EntityHitInformation | undefined;
|
|
11278
11136
|
}
|
|
11279
|
-
|
|
11137
|
+
/**
|
|
11138
|
+
* @beta
|
|
11139
|
+
*/
|
|
11280
11140
|
export class ProjectileHitEventSignal_deprecated extends IProjectileHitEventSignal {
|
|
11281
11141
|
protected constructor();
|
|
11282
11142
|
}
|
|
@@ -11292,8 +11152,6 @@ export class PropertyRegistry {
|
|
|
11292
11152
|
* @remarks
|
|
11293
11153
|
* Registers a dynamic property for a particular entity type
|
|
11294
11154
|
* (e.g., a minecraft:skeleton.).
|
|
11295
|
-
* @param propertiesDefinition
|
|
11296
|
-
* @param entityType
|
|
11297
11155
|
* @throws This function can throw errors.
|
|
11298
11156
|
*/
|
|
11299
11157
|
registerEntityTypeDynamicProperties(
|
|
@@ -11303,7 +11161,6 @@ export class PropertyRegistry {
|
|
|
11303
11161
|
/**
|
|
11304
11162
|
* @remarks
|
|
11305
11163
|
* Registers a globally available dynamic property for a world.
|
|
11306
|
-
* @param propertiesDefinition
|
|
11307
11164
|
* @throws This function can throw errors.
|
|
11308
11165
|
*/
|
|
11309
11166
|
registerWorldDynamicProperties(propertiesDefinition: DynamicPropertiesDefinition): void;
|
|
@@ -11317,15 +11174,12 @@ export class Scoreboard {
|
|
|
11317
11174
|
/**
|
|
11318
11175
|
* @remarks
|
|
11319
11176
|
* Adds a new objective to the scoreboard.
|
|
11320
|
-
* @param objectiveId
|
|
11321
|
-
* @param displayName
|
|
11322
11177
|
* @throws This function can throw errors.
|
|
11323
11178
|
*/
|
|
11324
11179
|
addObjective(objectiveId: string, displayName: string): ScoreboardObjective;
|
|
11325
11180
|
/**
|
|
11326
11181
|
* @remarks
|
|
11327
11182
|
* Clears the objective that occupies a display slot.
|
|
11328
|
-
* @param displaySlotId
|
|
11329
11183
|
* @throws This function can throw errors.
|
|
11330
11184
|
*/
|
|
11331
11185
|
clearObjectiveAtDisplaySlot(displaySlotId: string): ScoreboardObjective;
|
|
@@ -11341,7 +11195,6 @@ export class Scoreboard {
|
|
|
11341
11195
|
* @remarks
|
|
11342
11196
|
* Returns an objective that occupies the specified display
|
|
11343
11197
|
* slot.
|
|
11344
|
-
* @param displaySlotId
|
|
11345
11198
|
* @throws This function can throw errors.
|
|
11346
11199
|
*/
|
|
11347
11200
|
getObjectiveAtDisplaySlot(displaySlotId: string): ScoreboardObjectiveDisplayOptions;
|
|
@@ -11372,7 +11225,6 @@ export class Scoreboard {
|
|
|
11372
11225
|
/**
|
|
11373
11226
|
* @remarks
|
|
11374
11227
|
* Removes an objective from the scoreboard.
|
|
11375
|
-
* @param objectiveId
|
|
11376
11228
|
* @throws This function can throw errors.
|
|
11377
11229
|
*/
|
|
11378
11230
|
removeObjective(objectiveId: ScoreboardObjective | string): boolean;
|
|
@@ -11380,8 +11232,6 @@ export class Scoreboard {
|
|
|
11380
11232
|
* @remarks
|
|
11381
11233
|
* Sets an objective into a display slot with specified
|
|
11382
11234
|
* additional display settings.
|
|
11383
|
-
* @param displaySlotId
|
|
11384
|
-
* @param objectiveDisplaySetting
|
|
11385
11235
|
* @throws This function can throw errors.
|
|
11386
11236
|
*/
|
|
11387
11237
|
setObjectiveAtDisplaySlot(
|
|
@@ -11395,7 +11245,6 @@ export class Scoreboard {
|
|
|
11395
11245
|
* Objective to use for the scoreboard.
|
|
11396
11246
|
* @param participant
|
|
11397
11247
|
* Participant to apply the scoreboard value to.
|
|
11398
|
-
* @param score
|
|
11399
11248
|
* @throws This function can throw errors.
|
|
11400
11249
|
*/
|
|
11401
11250
|
setScore(objective: ScoreboardObjective, participant: ScoreboardIdentity, score: number): boolean;
|
|
@@ -11547,7 +11396,6 @@ export class ScreenDisplay {
|
|
|
11547
11396
|
* @remarks
|
|
11548
11397
|
* Set the action bar text - a piece of text that displays
|
|
11549
11398
|
* beneath the title and above the hot-bar.
|
|
11550
|
-
* @param text
|
|
11551
11399
|
* @throws This function can throw errors.
|
|
11552
11400
|
*/
|
|
11553
11401
|
setActionBar(text: string): void;
|
|
@@ -11556,8 +11404,6 @@ export class ScreenDisplay {
|
|
|
11556
11404
|
* Will cause a title to show up on the player's on screen
|
|
11557
11405
|
* display. You can optionally specify an additional subtitle
|
|
11558
11406
|
* as well as fade in, stay and fade out times.
|
|
11559
|
-
* @param title
|
|
11560
|
-
* @param options
|
|
11561
11407
|
* @throws This function can throw errors.
|
|
11562
11408
|
*/
|
|
11563
11409
|
setTitle(title: string, options?: TitleDisplayOptions): void;
|
|
@@ -11565,48 +11411,25 @@ export class ScreenDisplay {
|
|
|
11565
11411
|
* @remarks
|
|
11566
11412
|
* Updates the subtitle if the subtitle was previously
|
|
11567
11413
|
* displayed via the setTitle method.
|
|
11568
|
-
* @param subtitle
|
|
11569
11414
|
* @throws This function can throw errors.
|
|
11570
11415
|
*/
|
|
11571
11416
|
updateSubtitle(subtitle: string): void;
|
|
11572
11417
|
}
|
|
11573
11418
|
/**
|
|
11574
11419
|
* @beta
|
|
11575
|
-
* Returns additional data about a /scriptevent command
|
|
11576
|
-
* invocation.
|
|
11577
11420
|
*/
|
|
11578
11421
|
export class ScriptEventCommandMessageEvent {
|
|
11579
11422
|
protected constructor();
|
|
11580
|
-
/**
|
|
11581
|
-
* Identifier of this ScriptEvent command message.
|
|
11582
|
-
*/
|
|
11583
11423
|
readonly id: string;
|
|
11584
|
-
/**
|
|
11585
|
-
* If this command was initiated via an NPC, returns the entity
|
|
11586
|
-
* that initiated the NPC dialogue.
|
|
11587
|
-
*/
|
|
11588
11424
|
readonly initiator: Entity;
|
|
11589
|
-
/**
|
|
11590
|
-
* Optional additional data passed in with the script event
|
|
11591
|
-
* command.
|
|
11592
|
-
*/
|
|
11593
11425
|
readonly message: string;
|
|
11594
|
-
/**
|
|
11595
|
-
* Source block if this command was triggered via a block
|
|
11596
|
-
* (e.g., a commandblock.)
|
|
11597
|
-
*/
|
|
11598
11426
|
readonly sourceBlock: Block;
|
|
11599
|
-
/**
|
|
11600
|
-
* Source entity if this command was triggered by an entity
|
|
11601
|
-
* (e.g., a NPC).
|
|
11602
|
-
*/
|
|
11603
11427
|
readonly sourceEntity: Entity;
|
|
11604
|
-
/**
|
|
11605
|
-
* Returns the type of source that fired this command.
|
|
11606
|
-
*/
|
|
11607
11428
|
readonly sourceType: MessageSourceType;
|
|
11608
11429
|
}
|
|
11609
|
-
|
|
11430
|
+
/**
|
|
11431
|
+
* @beta
|
|
11432
|
+
*/
|
|
11610
11433
|
export class ScriptEventCommandMessageSignal_deprecated extends IScriptEventCommandMessageSignal {
|
|
11611
11434
|
protected constructor();
|
|
11612
11435
|
}
|
|
@@ -11637,7 +11460,9 @@ export class Seat {
|
|
|
11637
11460
|
*/
|
|
11638
11461
|
readonly position: Vector3;
|
|
11639
11462
|
}
|
|
11640
|
-
|
|
11463
|
+
/**
|
|
11464
|
+
* @beta
|
|
11465
|
+
*/
|
|
11641
11466
|
export class ServerMessageSignal_deprecated extends IServerMessageSignal {
|
|
11642
11467
|
protected constructor();
|
|
11643
11468
|
}
|
|
@@ -11662,7 +11487,6 @@ export class System {
|
|
|
11662
11487
|
* @remarks
|
|
11663
11488
|
* Cancels the execution of a function run that was previously
|
|
11664
11489
|
* scheduled via the `run` function.
|
|
11665
|
-
* @param runId
|
|
11666
11490
|
*/
|
|
11667
11491
|
clearRun(runId: number): void;
|
|
11668
11492
|
/**
|
|
@@ -11757,7 +11581,6 @@ export class Trigger {
|
|
|
11757
11581
|
/**
|
|
11758
11582
|
* @remarks
|
|
11759
11583
|
* Creates a new trigger.
|
|
11760
|
-
* @param eventName
|
|
11761
11584
|
*/
|
|
11762
11585
|
constructor(eventName: string);
|
|
11763
11586
|
}
|
|
@@ -11848,101 +11671,70 @@ export class Vector {
|
|
|
11848
11671
|
/**
|
|
11849
11672
|
* @remarks
|
|
11850
11673
|
* Returns the addition of these vectors.
|
|
11851
|
-
* @param a
|
|
11852
|
-
* @param b
|
|
11853
11674
|
*/
|
|
11854
11675
|
static add(a: Vector3, b: Vector3): Vector;
|
|
11855
11676
|
/**
|
|
11856
11677
|
* @remarks
|
|
11857
11678
|
* Returns the cross product of these two vectors.
|
|
11858
|
-
* @param a
|
|
11859
|
-
* @param b
|
|
11860
11679
|
*/
|
|
11861
11680
|
static cross(a: Vector3, b: Vector3): Vector;
|
|
11862
11681
|
/**
|
|
11863
11682
|
* @remarks
|
|
11864
11683
|
* Returns the distance between two vectors.
|
|
11865
|
-
* @param a
|
|
11866
|
-
* @param b
|
|
11867
11684
|
*/
|
|
11868
11685
|
static distance(a: Vector3, b: Vector3): number;
|
|
11869
11686
|
/**
|
|
11870
11687
|
* @remarks
|
|
11871
11688
|
* Returns the component-wise division of these vectors.
|
|
11872
|
-
* @param a
|
|
11873
|
-
* @param b
|
|
11874
11689
|
*/
|
|
11875
11690
|
static divide(a: Vector3, b: number | Vector3): Vector;
|
|
11876
11691
|
/**
|
|
11877
11692
|
* @remarks
|
|
11878
11693
|
* Returns the linear interpolation between a and b using t as
|
|
11879
11694
|
* the control.
|
|
11880
|
-
* @param a
|
|
11881
|
-
* @param b
|
|
11882
|
-
* @param t
|
|
11883
11695
|
*/
|
|
11884
11696
|
static lerp(a: Vector3, b: Vector3, t: number): Vector;
|
|
11885
11697
|
/**
|
|
11886
11698
|
* @remarks
|
|
11887
11699
|
* Returns a vector that is made from the largest components of
|
|
11888
11700
|
* two vectors.
|
|
11889
|
-
* @param a
|
|
11890
|
-
* @param b
|
|
11891
11701
|
*/
|
|
11892
11702
|
static max(a: Vector3, b: Vector3): Vector;
|
|
11893
11703
|
/**
|
|
11894
11704
|
* @remarks
|
|
11895
11705
|
* Returns a vector that is made from the smallest components
|
|
11896
11706
|
* of two vectors.
|
|
11897
|
-
* @param a
|
|
11898
|
-
* @param b
|
|
11899
11707
|
*/
|
|
11900
11708
|
static min(a: Vector3, b: Vector3): Vector;
|
|
11901
11709
|
/**
|
|
11902
11710
|
* @remarks
|
|
11903
11711
|
* Returns the component-wise product of these vectors.
|
|
11904
|
-
* @param a
|
|
11905
|
-
* @param b
|
|
11906
11712
|
*/
|
|
11907
11713
|
static multiply(a: Vector3, b: number | Vector3): Vector;
|
|
11908
11714
|
/**
|
|
11909
11715
|
* @remarks
|
|
11910
11716
|
* Returns the spherical linear interpolation between a and b
|
|
11911
11717
|
* using s as the control.
|
|
11912
|
-
* @param a
|
|
11913
|
-
* @param b
|
|
11914
|
-
* @param s
|
|
11915
11718
|
*/
|
|
11916
11719
|
static slerp(a: Vector3, b: Vector3, s: number): Vector;
|
|
11917
11720
|
/**
|
|
11918
11721
|
* @remarks
|
|
11919
11722
|
* Returns the subtraction of these vectors.
|
|
11920
|
-
* @param a
|
|
11921
|
-
* @param b
|
|
11922
11723
|
*/
|
|
11923
11724
|
static subtract(a: Vector3, b: Vector3): Vector;
|
|
11924
11725
|
}
|
|
11925
11726
|
/**
|
|
11926
11727
|
* @beta
|
|
11927
|
-
* Contains information related to changes in weather in the
|
|
11928
|
-
* environment.
|
|
11929
11728
|
*/
|
|
11930
11729
|
export class WeatherChangeEvent {
|
|
11931
11730
|
protected constructor();
|
|
11932
|
-
/**
|
|
11933
|
-
* Dimension in which the weather has changed.
|
|
11934
|
-
*/
|
|
11935
11731
|
readonly dimension: string;
|
|
11936
|
-
/**
|
|
11937
|
-
* Whether it is lightning after the change in weather.
|
|
11938
|
-
*/
|
|
11939
11732
|
readonly lightning: boolean;
|
|
11940
|
-
/**
|
|
11941
|
-
* Whether it is raining after the change in weather.
|
|
11942
|
-
*/
|
|
11943
11733
|
readonly raining: boolean;
|
|
11944
11734
|
}
|
|
11945
|
-
|
|
11735
|
+
/**
|
|
11736
|
+
* @beta
|
|
11737
|
+
*/
|
|
11946
11738
|
export class WeatherChangeEventSignal_deprecated extends IWeatherChangeEventSignal {
|
|
11947
11739
|
protected constructor();
|
|
11948
11740
|
}
|
|
@@ -11969,8 +11761,6 @@ export class World {
|
|
|
11969
11761
|
* @remarks
|
|
11970
11762
|
* A method that is internal-only, used for broadcasting
|
|
11971
11763
|
* specific messages between client and server.
|
|
11972
|
-
* @param id
|
|
11973
|
-
* @param value
|
|
11974
11764
|
*/
|
|
11975
11765
|
broadcastClientMessage(id: string, value: string): void;
|
|
11976
11766
|
/**
|
|
@@ -11985,11 +11775,13 @@ export class World {
|
|
|
11985
11775
|
* @throws This function can throw errors.
|
|
11986
11776
|
*/
|
|
11987
11777
|
getAllPlayers(): Player[];
|
|
11778
|
+
/**
|
|
11779
|
+
* @beta
|
|
11780
|
+
*/
|
|
11988
11781
|
getDefaultSpawnPosition(): Vector3;
|
|
11989
11782
|
/**
|
|
11990
11783
|
* @remarks
|
|
11991
11784
|
* Returns a dimension object.
|
|
11992
|
-
* @param dimensionId
|
|
11993
11785
|
* @returns
|
|
11994
11786
|
* The requested dimension
|
|
11995
11787
|
* @throws
|
|
@@ -12000,7 +11792,6 @@ export class World {
|
|
|
12000
11792
|
* @beta
|
|
12001
11793
|
* @remarks
|
|
12002
11794
|
* Returns a property value.
|
|
12003
|
-
* @param identifier
|
|
12004
11795
|
* @returns
|
|
12005
11796
|
* Returns the value for the property, or undefined if the
|
|
12006
11797
|
* property has not been set.
|
|
@@ -12042,16 +11833,12 @@ export class World {
|
|
|
12042
11833
|
* @beta
|
|
12043
11834
|
* @remarks
|
|
12044
11835
|
* Plays a particular music track for all players.
|
|
12045
|
-
* @param trackID
|
|
12046
|
-
* @param musicOptions
|
|
12047
11836
|
*/
|
|
12048
11837
|
playMusic(trackID: string, musicOptions?: MusicOptions): void;
|
|
12049
11838
|
/**
|
|
12050
11839
|
* @beta
|
|
12051
11840
|
* @remarks
|
|
12052
11841
|
* Plays a sound for all players.
|
|
12053
|
-
* @param soundID
|
|
12054
|
-
* @param soundOptions
|
|
12055
11842
|
*/
|
|
12056
11843
|
playSound(soundID: string, soundOptions?: SoundOptions): void;
|
|
12057
11844
|
/**
|
|
@@ -12059,15 +11846,12 @@ export class World {
|
|
|
12059
11846
|
* @remarks
|
|
12060
11847
|
* Queues an additional music track for players. If a track is
|
|
12061
11848
|
* not playing, a music track will play.
|
|
12062
|
-
* @param trackID
|
|
12063
|
-
* @param musicOptions
|
|
12064
11849
|
*/
|
|
12065
11850
|
queueMusic(trackID: string, musicOptions?: MusicOptions): void;
|
|
12066
11851
|
/**
|
|
12067
11852
|
* @beta
|
|
12068
11853
|
* @remarks
|
|
12069
11854
|
* Removes a specified property.
|
|
12070
|
-
* @param identifier
|
|
12071
11855
|
* @throws This function can throw errors.
|
|
12072
11856
|
*/
|
|
12073
11857
|
removeDynamicProperty(identifier: string): boolean;
|
|
@@ -12113,12 +11897,15 @@ export class World {
|
|
|
12113
11897
|
* ```
|
|
12114
11898
|
*/
|
|
12115
11899
|
sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
|
|
11900
|
+
/**
|
|
11901
|
+
* @beta
|
|
11902
|
+
* @throws This function can throw errors.
|
|
11903
|
+
*/
|
|
12116
11904
|
setDefaultSpawn(spawnPosition: Vector3): void;
|
|
12117
11905
|
/**
|
|
12118
11906
|
* @beta
|
|
12119
11907
|
* @remarks
|
|
12120
11908
|
* Sets a specified property to a value.
|
|
12121
|
-
* @param identifier
|
|
12122
11909
|
* @param value
|
|
12123
11910
|
* Data value of the property to set.
|
|
12124
11911
|
* @throws This function can throw errors.
|
|
@@ -12128,7 +11915,6 @@ export class World {
|
|
|
12128
11915
|
* @beta
|
|
12129
11916
|
* @remarks
|
|
12130
11917
|
* Returns the current game time of the day.
|
|
12131
|
-
* @param timeOfDay
|
|
12132
11918
|
*/
|
|
12133
11919
|
setTime(timeOfDay: number): void;
|
|
12134
11920
|
/**
|
|
@@ -12140,36 +11926,14 @@ export class World {
|
|
|
12140
11926
|
}
|
|
12141
11927
|
/**
|
|
12142
11928
|
* @beta
|
|
12143
|
-
* Contains information and methods that can be used at the
|
|
12144
|
-
* initialization of the scripting environment for a World.
|
|
12145
|
-
* Also, use the supplied propertyRegistry object to register
|
|
12146
|
-
* any dynamic properties, within the scope of the World
|
|
12147
|
-
* Initialize execution.
|
|
12148
11929
|
*/
|
|
12149
11930
|
export class WorldInitializeEvent {
|
|
12150
11931
|
protected constructor();
|
|
12151
|
-
/**
|
|
12152
|
-
* Contains methods for scripts to initialize and register
|
|
12153
|
-
* dynamic properties they may wish to use within a world.
|
|
12154
|
-
* @example propertyRegistration.js
|
|
12155
|
-
* ```typescript
|
|
12156
|
-
* import { DynamicPropertiesDefinition, MinecraftEntityTypes, world } from "@minecraft/server";
|
|
12157
|
-
*
|
|
12158
|
-
* world.events.worldInitialize.subscribe((e) => {
|
|
12159
|
-
* let def = new DynamicPropertiesDefinition();
|
|
12160
|
-
*
|
|
12161
|
-
* def.defineNumber("rpgStrength");
|
|
12162
|
-
* def.defineString("rpgRole", 16);
|
|
12163
|
-
* def.defineBoolean("rpgIsHero");
|
|
12164
|
-
*
|
|
12165
|
-
* e.propertyRegistry.registerEntityTypeDynamicProperties(def, MinecraftEntityTypes.skeleton);
|
|
12166
|
-
* });
|
|
12167
|
-
*
|
|
12168
|
-
* ```
|
|
12169
|
-
*/
|
|
12170
11932
|
readonly propertyRegistry: PropertyRegistry;
|
|
12171
11933
|
}
|
|
12172
|
-
|
|
11934
|
+
/**
|
|
11935
|
+
* @beta
|
|
11936
|
+
*/
|
|
12173
11937
|
export class WorldInitializeEventSignal_deprecated extends IWorldInitializeEventSignal {
|
|
12174
11938
|
protected constructor();
|
|
12175
11939
|
}
|
|
@@ -12189,6 +11953,9 @@ export class XYRotation {
|
|
|
12189
11953
|
*/
|
|
12190
11954
|
y: number;
|
|
12191
11955
|
}
|
|
11956
|
+
/**
|
|
11957
|
+
* @beta
|
|
11958
|
+
*/
|
|
12192
11959
|
export interface BlockFillOptions {
|
|
12193
11960
|
matchingBlock?: BlockPermutation;
|
|
12194
11961
|
}
|
|
@@ -12261,6 +12028,9 @@ export interface Color {
|
|
|
12261
12028
|
*/
|
|
12262
12029
|
red: number;
|
|
12263
12030
|
}
|
|
12031
|
+
/**
|
|
12032
|
+
* @beta
|
|
12033
|
+
*/
|
|
12264
12034
|
export interface EntityDamageSource {
|
|
12265
12035
|
cause: EntityDamageCause;
|
|
12266
12036
|
damagingEntity?: Entity;
|
|
@@ -12435,6 +12205,7 @@ export interface EntityQueryOptions {
|
|
|
12435
12205
|
*/
|
|
12436
12206
|
type?: string;
|
|
12437
12207
|
/**
|
|
12208
|
+
* @beta
|
|
12438
12209
|
* In conjunction with location, specified a cuboid volume of
|
|
12439
12210
|
* entities to include.
|
|
12440
12211
|
*/
|
|
@@ -12535,12 +12306,18 @@ export interface NumberRange {
|
|
|
12535
12306
|
*/
|
|
12536
12307
|
min: number;
|
|
12537
12308
|
}
|
|
12309
|
+
/**
|
|
12310
|
+
* @beta
|
|
12311
|
+
*/
|
|
12538
12312
|
export interface PlayAnimationOptions {
|
|
12539
12313
|
blendOutTime?: number;
|
|
12540
12314
|
controller?: string;
|
|
12541
12315
|
nextState?: string;
|
|
12542
12316
|
stopExpression?: string;
|
|
12543
12317
|
}
|
|
12318
|
+
/**
|
|
12319
|
+
* @beta
|
|
12320
|
+
*/
|
|
12544
12321
|
export interface RawMessage {
|
|
12545
12322
|
rawtext?: RawMessage[];
|
|
12546
12323
|
score?: RawMessageScore;
|
|
@@ -12548,6 +12325,9 @@ export interface RawMessage {
|
|
|
12548
12325
|
translate?: string;
|
|
12549
12326
|
with?: string[] | RawMessage;
|
|
12550
12327
|
}
|
|
12328
|
+
/**
|
|
12329
|
+
* @beta
|
|
12330
|
+
*/
|
|
12551
12331
|
export interface RawMessageScore {
|
|
12552
12332
|
name?: string;
|
|
12553
12333
|
objective?: string;
|
|
@@ -12578,6 +12358,9 @@ export interface ScoreboardObjectiveDisplayOptions {
|
|
|
12578
12358
|
*/
|
|
12579
12359
|
sortOrder?: ObjectiveSortOrder;
|
|
12580
12360
|
}
|
|
12361
|
+
/**
|
|
12362
|
+
* @beta
|
|
12363
|
+
*/
|
|
12581
12364
|
export interface ScriptEventMessageFilterOptions {
|
|
12582
12365
|
namespaces: string[];
|
|
12583
12366
|
}
|
|
@@ -12641,6 +12424,9 @@ export interface Vector3 {
|
|
|
12641
12424
|
*/
|
|
12642
12425
|
z: number;
|
|
12643
12426
|
}
|
|
12427
|
+
/**
|
|
12428
|
+
* @beta
|
|
12429
|
+
*/
|
|
12644
12430
|
export const TicksPerDay = 24000;
|
|
12645
12431
|
/**
|
|
12646
12432
|
* @beta
|