@minecraft/server 1.13.0-rc.1.21.30-preview.21 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/index.d.ts +6 -154
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
4
4
|
|
|
5
|
-
## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
|
|
6
|
-
|
|
7
5
|
See full documentation for this module here:
|
|
8
6
|
|
|
9
7
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
|
package/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
***************************************************************************** */
|
|
9
9
|
/**
|
|
10
|
-
* @preview
|
|
11
10
|
* @packageDocumentation
|
|
12
11
|
* Contains many types related to manipulating a Minecraft
|
|
13
12
|
* world, including entities, blocks, dimensions, and more.
|
|
@@ -79,9 +78,6 @@ export enum BlockPistonState {
|
|
|
79
78
|
Retracting = 'Retracting',
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
/**
|
|
83
|
-
* @rc
|
|
84
|
-
*/
|
|
85
81
|
export enum CustomComponentNameErrorReason {
|
|
86
82
|
NoNamespace = 1,
|
|
87
83
|
DisallowedNamespace = 2,
|
|
@@ -325,7 +321,6 @@ export enum EntityComponentTypes {
|
|
|
325
321
|
*/
|
|
326
322
|
AddRider = 'minecraft:addrider',
|
|
327
323
|
/**
|
|
328
|
-
* @rc
|
|
329
324
|
* @remarks
|
|
330
325
|
* Adds a timer for the entity to grow up. It can be
|
|
331
326
|
* accelerated by giving the entity the items it likes as
|
|
@@ -530,14 +525,12 @@ export enum EntityComponentTypes {
|
|
|
530
525
|
*/
|
|
531
526
|
Item = 'minecraft:item',
|
|
532
527
|
/**
|
|
533
|
-
* @rc
|
|
534
528
|
* @remarks
|
|
535
529
|
* Defines the base movement speed in lava of this entity.
|
|
536
530
|
*
|
|
537
531
|
*/
|
|
538
532
|
LavaMovement = 'minecraft:lava_movement',
|
|
539
533
|
/**
|
|
540
|
-
* @rc
|
|
541
534
|
* @remarks
|
|
542
535
|
* Allows this entity to be leashed and defines the conditions
|
|
543
536
|
* and events for this entity when is leashed.
|
|
@@ -553,7 +546,6 @@ export enum EntityComponentTypes {
|
|
|
553
546
|
*/
|
|
554
547
|
MarkVariant = 'minecraft:mark_variant',
|
|
555
548
|
/**
|
|
556
|
-
* @rc
|
|
557
549
|
* @remarks
|
|
558
550
|
* Defines the general movement speed of this entity.
|
|
559
551
|
*
|
|
@@ -586,7 +578,6 @@ export enum EntityComponentTypes {
|
|
|
586
578
|
*/
|
|
587
579
|
MovementGeneric = 'minecraft:movement.generic',
|
|
588
580
|
/**
|
|
589
|
-
* @rc
|
|
590
581
|
* @remarks
|
|
591
582
|
* When added, this movement control allows the mob to glide.
|
|
592
583
|
*
|
|
@@ -613,7 +604,6 @@ export enum EntityComponentTypes {
|
|
|
613
604
|
*/
|
|
614
605
|
MovementSkip = 'minecraft:movement.skip',
|
|
615
606
|
/**
|
|
616
|
-
* @rc
|
|
617
607
|
* @remarks
|
|
618
608
|
* When added, this move control causes the mob to sway side to
|
|
619
609
|
* side giving the impression it is swimming.
|
|
@@ -713,14 +703,6 @@ export enum EntityComponentTypes {
|
|
|
713
703
|
*/
|
|
714
704
|
SkinId = 'minecraft:skin_id',
|
|
715
705
|
/**
|
|
716
|
-
* @rc
|
|
717
|
-
* @remarks
|
|
718
|
-
* Defines the entity's strength to carry items.
|
|
719
|
-
*
|
|
720
|
-
*/
|
|
721
|
-
Strength = 'minecraft:strength',
|
|
722
|
-
/**
|
|
723
|
-
* @rc
|
|
724
706
|
* @remarks
|
|
725
707
|
* Defines the rules for an entity to be tamed by the player.
|
|
726
708
|
*
|
|
@@ -740,7 +722,6 @@ export enum EntityComponentTypes {
|
|
|
740
722
|
*/
|
|
741
723
|
TypeFamily = 'minecraft:type_family',
|
|
742
724
|
/**
|
|
743
|
-
* @rc
|
|
744
725
|
* @remarks
|
|
745
726
|
* Defines the general movement speed underwater of this
|
|
746
727
|
* entity.
|
|
@@ -1373,7 +1354,6 @@ export enum GameRule {
|
|
|
1373
1354
|
*/
|
|
1374
1355
|
ShowCoordinates = 'showCoordinates',
|
|
1375
1356
|
/**
|
|
1376
|
-
* @rc
|
|
1377
1357
|
* @remarks
|
|
1378
1358
|
* Controls whether the days a player has played is displayed.
|
|
1379
1359
|
*
|
|
@@ -1461,7 +1441,6 @@ export enum HudVisibility {
|
|
|
1461
1441
|
}
|
|
1462
1442
|
|
|
1463
1443
|
/**
|
|
1464
|
-
* @rc
|
|
1465
1444
|
* Input permission categories. Used by
|
|
1466
1445
|
* @minecraft/server.PlayerInputPermissionCategoryChangeAfterEvent
|
|
1467
1446
|
* to specify which category was changed.
|
|
@@ -2365,7 +2344,6 @@ export class BlockComponent extends Component {
|
|
|
2365
2344
|
}
|
|
2366
2345
|
|
|
2367
2346
|
/**
|
|
2368
|
-
* @rc
|
|
2369
2347
|
* Contains information regarding an entity falling onto a
|
|
2370
2348
|
* specific block.
|
|
2371
2349
|
*/
|
|
@@ -2387,7 +2365,6 @@ export class BlockComponentEntityFallOnEvent extends BlockEvent {
|
|
|
2387
2365
|
}
|
|
2388
2366
|
|
|
2389
2367
|
/**
|
|
2390
|
-
* @rc
|
|
2391
2368
|
* Contains information regarding a specific block that was
|
|
2392
2369
|
* placed.
|
|
2393
2370
|
*/
|
|
@@ -2403,7 +2380,6 @@ export class BlockComponentOnPlaceEvent extends BlockEvent {
|
|
|
2403
2380
|
}
|
|
2404
2381
|
|
|
2405
2382
|
/**
|
|
2406
|
-
* @rc
|
|
2407
2383
|
* Contains information regarding a specific block being
|
|
2408
2384
|
* destroyed.
|
|
2409
2385
|
*/
|
|
@@ -2426,7 +2402,6 @@ export class BlockComponentPlayerDestroyEvent extends BlockEvent {
|
|
|
2426
2402
|
}
|
|
2427
2403
|
|
|
2428
2404
|
/**
|
|
2429
|
-
* @rc
|
|
2430
2405
|
* Contains information regarding a specific block being
|
|
2431
2406
|
* interacted with.
|
|
2432
2407
|
*/
|
|
@@ -2455,7 +2430,6 @@ export class BlockComponentPlayerInteractEvent extends BlockEvent {
|
|
|
2455
2430
|
}
|
|
2456
2431
|
|
|
2457
2432
|
/**
|
|
2458
|
-
* @rc
|
|
2459
2433
|
* Contains information regarding an event before a player
|
|
2460
2434
|
* places a block.
|
|
2461
2435
|
*/
|
|
@@ -2491,7 +2465,6 @@ export class BlockComponentPlayerPlaceBeforeEvent extends BlockEvent {
|
|
|
2491
2465
|
}
|
|
2492
2466
|
|
|
2493
2467
|
/**
|
|
2494
|
-
* @rc
|
|
2495
2468
|
* Contains information regarding a specific block randomly
|
|
2496
2469
|
* ticking.
|
|
2497
2470
|
*/
|
|
@@ -2500,9 +2473,6 @@ export class BlockComponentRandomTickEvent extends BlockEvent {
|
|
|
2500
2473
|
private constructor();
|
|
2501
2474
|
}
|
|
2502
2475
|
|
|
2503
|
-
/**
|
|
2504
|
-
* @rc
|
|
2505
|
-
*/
|
|
2506
2476
|
export class BlockComponentRegistry {
|
|
2507
2477
|
private constructor();
|
|
2508
2478
|
/**
|
|
@@ -2526,7 +2496,6 @@ export class BlockComponentRegistry {
|
|
|
2526
2496
|
}
|
|
2527
2497
|
|
|
2528
2498
|
/**
|
|
2529
|
-
* @rc
|
|
2530
2499
|
* Contains information regarding an entity stepping off a
|
|
2531
2500
|
* specific block.
|
|
2532
2501
|
*/
|
|
@@ -2542,7 +2511,6 @@ export class BlockComponentStepOffEvent extends BlockEvent {
|
|
|
2542
2511
|
}
|
|
2543
2512
|
|
|
2544
2513
|
/**
|
|
2545
|
-
* @rc
|
|
2546
2514
|
* Contains information regarding an entity stepping onto a
|
|
2547
2515
|
* specific block.
|
|
2548
2516
|
*/
|
|
@@ -2558,7 +2526,6 @@ export class BlockComponentStepOnEvent extends BlockEvent {
|
|
|
2558
2526
|
}
|
|
2559
2527
|
|
|
2560
2528
|
/**
|
|
2561
|
-
* @rc
|
|
2562
2529
|
* Contains information regarding a specific block ticking.
|
|
2563
2530
|
*/
|
|
2564
2531
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -2588,7 +2555,6 @@ export class BlockEvent {
|
|
|
2588
2555
|
}
|
|
2589
2556
|
|
|
2590
2557
|
/**
|
|
2591
|
-
* @rc
|
|
2592
2558
|
* Contains information regarding an explosion that has
|
|
2593
2559
|
* occurred for a specific block.
|
|
2594
2560
|
*/
|
|
@@ -2610,7 +2576,6 @@ export class BlockExplodeAfterEvent extends BlockEvent {
|
|
|
2610
2576
|
}
|
|
2611
2577
|
|
|
2612
2578
|
/**
|
|
2613
|
-
* @rc
|
|
2614
2579
|
* Manages callbacks that are connected to when an explosion
|
|
2615
2580
|
* occurs, as it impacts individual blocks.
|
|
2616
2581
|
*/
|
|
@@ -2743,14 +2708,12 @@ export class BlockPermutation {
|
|
|
2743
2708
|
*/
|
|
2744
2709
|
getState(stateName: string): boolean | number | string | undefined;
|
|
2745
2710
|
/**
|
|
2746
|
-
* @rc
|
|
2747
2711
|
* @remarks
|
|
2748
2712
|
* Creates a copy of the permutation.
|
|
2749
2713
|
*
|
|
2750
2714
|
*/
|
|
2751
2715
|
getTags(): string[];
|
|
2752
2716
|
/**
|
|
2753
|
-
* @rc
|
|
2754
2717
|
* @remarks
|
|
2755
2718
|
* Checks to see if the permutation has a specific tag.
|
|
2756
2719
|
*
|
|
@@ -4270,17 +4233,9 @@ export class Dimension {
|
|
|
4270
4233
|
*/
|
|
4271
4234
|
getPlayers(options?: EntityQueryOptions): Player[];
|
|
4272
4235
|
/**
|
|
4273
|
-
* @rc
|
|
4274
4236
|
* @remarks
|
|
4275
|
-
* Returns the highest block at the given XZ location.
|
|
4276
|
-
*
|
|
4277
4237
|
* This function can't be called in read-only mode.
|
|
4278
4238
|
*
|
|
4279
|
-
* @param locationXZ
|
|
4280
|
-
* Location to retrieve the topmost block for.
|
|
4281
|
-
* @param minHeight
|
|
4282
|
-
* The Y height to begin the search from. Defaults to the
|
|
4283
|
-
* maximum dimension height.
|
|
4284
4239
|
* @throws This function can throw errors.
|
|
4285
4240
|
*/
|
|
4286
4241
|
getTopmostBlock(locationXZ: VectorXZ, minHeight?: number): Block | undefined;
|
|
@@ -4382,7 +4337,6 @@ export class Dimension {
|
|
|
4382
4337
|
*/
|
|
4383
4338
|
runCommandAsync(commandString: string): Promise<CommandResult>;
|
|
4384
4339
|
/**
|
|
4385
|
-
* @rc
|
|
4386
4340
|
* @remarks
|
|
4387
4341
|
* Sets a block in the world using a BlockPermutation.
|
|
4388
4342
|
* BlockPermutations are blocks with a particular state.
|
|
@@ -4403,7 +4357,6 @@ export class Dimension {
|
|
|
4403
4357
|
*/
|
|
4404
4358
|
setBlockPermutation(location: Vector3, permutation: BlockPermutation): void;
|
|
4405
4359
|
/**
|
|
4406
|
-
* @rc
|
|
4407
4360
|
* @remarks
|
|
4408
4361
|
* Sets a block at a given location within the dimension.
|
|
4409
4362
|
*
|
|
@@ -4789,8 +4742,6 @@ export class EffectTypes {
|
|
|
4789
4742
|
*
|
|
4790
4743
|
* This function can't be called in read-only mode.
|
|
4791
4744
|
*
|
|
4792
|
-
* @param identifier
|
|
4793
|
-
* The identifier for the effect.
|
|
4794
4745
|
* @returns
|
|
4795
4746
|
* Effect type for the given identifier or undefined if the
|
|
4796
4747
|
* effect does not exist.
|
|
@@ -4849,7 +4800,6 @@ export class EnchantmentTypes {
|
|
|
4849
4800
|
*/
|
|
4850
4801
|
static get(enchantmentId: string): EnchantmentType | undefined;
|
|
4851
4802
|
/**
|
|
4852
|
-
* @rc
|
|
4853
4803
|
* @remarks
|
|
4854
4804
|
* Returns a collection of all available enchantment types.
|
|
4855
4805
|
*
|
|
@@ -5816,7 +5766,6 @@ export class EntityAddRiderComponent extends EntityComponent {
|
|
|
5816
5766
|
}
|
|
5817
5767
|
|
|
5818
5768
|
/**
|
|
5819
|
-
* @rc
|
|
5820
5769
|
* Adds a timer for the entity to grow up. It can be
|
|
5821
5770
|
* accelerated by giving the entity the items it likes as
|
|
5822
5771
|
* defined by feedItems.
|
|
@@ -6045,7 +5994,6 @@ export class EntityComponent extends Component {
|
|
|
6045
5994
|
}
|
|
6046
5995
|
|
|
6047
5996
|
/**
|
|
6048
|
-
* @rc
|
|
6049
5997
|
* As part of the Ageable component, represents a set of items
|
|
6050
5998
|
* that can be fed to an entity and the rate at which that
|
|
6051
5999
|
* causes them to grow.
|
|
@@ -6418,7 +6366,6 @@ export class EntityHitBlockAfterEvent {
|
|
|
6418
6366
|
*/
|
|
6419
6367
|
readonly hitBlock: Block;
|
|
6420
6368
|
/**
|
|
6421
|
-
* @rc
|
|
6422
6369
|
* @remarks
|
|
6423
6370
|
* Block permutation that was hit by the attack.
|
|
6424
6371
|
*
|
|
@@ -6793,7 +6740,6 @@ export class EntityItemComponent extends EntityComponent {
|
|
|
6793
6740
|
}
|
|
6794
6741
|
|
|
6795
6742
|
/**
|
|
6796
|
-
* @rc
|
|
6797
6743
|
* Defines the base movement speed in lava of this entity.
|
|
6798
6744
|
*/
|
|
6799
6745
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6803,7 +6749,6 @@ export class EntityLavaMovementComponent extends EntityAttributeComponent {
|
|
|
6803
6749
|
}
|
|
6804
6750
|
|
|
6805
6751
|
/**
|
|
6806
|
-
* @rc
|
|
6807
6752
|
* Allows the entity to be leashed. Defines the conditions and
|
|
6808
6753
|
* events for when an entity is leashed.
|
|
6809
6754
|
*/
|
|
@@ -6974,7 +6919,6 @@ export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
|
|
|
6974
6919
|
}
|
|
6975
6920
|
|
|
6976
6921
|
/**
|
|
6977
|
-
* @rc
|
|
6978
6922
|
* Defines the general movement speed of this entity.
|
|
6979
6923
|
*/
|
|
6980
6924
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7003,7 +6947,6 @@ export class EntityMovementGenericComponent extends EntityBaseMovementComponent
|
|
|
7003
6947
|
}
|
|
7004
6948
|
|
|
7005
6949
|
/**
|
|
7006
|
-
* @rc
|
|
7007
6950
|
* When added, this movement control allows the mob to glide.
|
|
7008
6951
|
*/
|
|
7009
6952
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7056,7 +6999,6 @@ export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
|
|
|
7056
6999
|
}
|
|
7057
7000
|
|
|
7058
7001
|
/**
|
|
7059
|
-
* @rc
|
|
7060
7002
|
* When added, this move control causes the mob to sway side to
|
|
7061
7003
|
* side giving the impression it is swimming.
|
|
7062
7004
|
*/
|
|
@@ -7878,35 +7820,6 @@ export class EntitySpawnAfterEventSignal {
|
|
|
7878
7820
|
}
|
|
7879
7821
|
|
|
7880
7822
|
/**
|
|
7881
|
-
* @rc
|
|
7882
|
-
* Defines the entity's ability to carry items. An entity with
|
|
7883
|
-
* a higher strength would have higher potential carry capacity
|
|
7884
|
-
* and more item slots.
|
|
7885
|
-
*/
|
|
7886
|
-
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7887
|
-
export class EntityStrengthComponent extends EntityComponent {
|
|
7888
|
-
private constructor();
|
|
7889
|
-
/**
|
|
7890
|
-
* @remarks
|
|
7891
|
-
* Maximum strength of this entity, as defined in the entity
|
|
7892
|
-
* type definition.
|
|
7893
|
-
*
|
|
7894
|
-
* @throws This property can throw when used.
|
|
7895
|
-
*/
|
|
7896
|
-
readonly max: number;
|
|
7897
|
-
/**
|
|
7898
|
-
* @remarks
|
|
7899
|
-
* Current value of the strength component that has been set
|
|
7900
|
-
* for entities.
|
|
7901
|
-
*
|
|
7902
|
-
* @throws This property can throw when used.
|
|
7903
|
-
*/
|
|
7904
|
-
readonly value: number;
|
|
7905
|
-
static readonly componentId = 'minecraft:strength';
|
|
7906
|
-
}
|
|
7907
|
-
|
|
7908
|
-
/**
|
|
7909
|
-
* @rc
|
|
7910
7823
|
* Defines the rules for an entity to be tamed by the player.
|
|
7911
7824
|
*/
|
|
7912
7825
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7974,7 +7887,6 @@ export class EntityTameableComponent extends EntityComponent {
|
|
|
7974
7887
|
export class EntityTameMountComponent extends EntityComponent {
|
|
7975
7888
|
private constructor();
|
|
7976
7889
|
/**
|
|
7977
|
-
* @rc
|
|
7978
7890
|
* @remarks
|
|
7979
7891
|
* Returns true if the entity is tamed.
|
|
7980
7892
|
*
|
|
@@ -7982,7 +7894,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
7982
7894
|
*/
|
|
7983
7895
|
readonly isTamed: boolean;
|
|
7984
7896
|
/**
|
|
7985
|
-
* @rc
|
|
7986
7897
|
* @remarks
|
|
7987
7898
|
* Returns true if the entity is tamed by a player.
|
|
7988
7899
|
*
|
|
@@ -7990,7 +7901,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
7990
7901
|
*/
|
|
7991
7902
|
readonly isTamedToPlayer: boolean;
|
|
7992
7903
|
/**
|
|
7993
|
-
* @rc
|
|
7994
7904
|
* @remarks
|
|
7995
7905
|
* Returns the player that has tamed the entity, or 'undefined'
|
|
7996
7906
|
* if entity is not tamed by a player.
|
|
@@ -7999,7 +7909,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
7999
7909
|
*/
|
|
8000
7910
|
readonly tamedToPlayer?: Player;
|
|
8001
7911
|
/**
|
|
8002
|
-
* @rc
|
|
8003
7912
|
* @remarks
|
|
8004
7913
|
* Returns the id of player that has tamed the entity, or
|
|
8005
7914
|
* 'undefined' if entity is not tamed.
|
|
@@ -8020,7 +7929,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
8020
7929
|
*/
|
|
8021
7930
|
tame(showParticles: boolean): void;
|
|
8022
7931
|
/**
|
|
8023
|
-
* @rc
|
|
8024
7932
|
* @remarks
|
|
8025
7933
|
* Sets this rideable entity as tamed by the given player.
|
|
8026
7934
|
*
|
|
@@ -8086,7 +7994,6 @@ export class EntityTypes {
|
|
|
8086
7994
|
}
|
|
8087
7995
|
|
|
8088
7996
|
/**
|
|
8089
|
-
* @rc
|
|
8090
7997
|
* Defines the general movement speed underwater of this
|
|
8091
7998
|
* entity.
|
|
8092
7999
|
*/
|
|
@@ -8528,7 +8435,6 @@ export class GameRules {
|
|
|
8528
8435
|
*/
|
|
8529
8436
|
showCoordinates: boolean;
|
|
8530
8437
|
/**
|
|
8531
|
-
* @rc
|
|
8532
8438
|
* @remarks
|
|
8533
8439
|
* This property can't be edited in read-only mode.
|
|
8534
8440
|
*
|
|
@@ -8746,7 +8652,6 @@ export class ItemCompleteUseAfterEventSignal {
|
|
|
8746
8652
|
}
|
|
8747
8653
|
|
|
8748
8654
|
/**
|
|
8749
|
-
* @rc
|
|
8750
8655
|
* Contains information related to a chargeable item completing
|
|
8751
8656
|
* being charged.
|
|
8752
8657
|
*/
|
|
@@ -8775,7 +8680,6 @@ export class ItemComponent extends Component {
|
|
|
8775
8680
|
}
|
|
8776
8681
|
|
|
8777
8682
|
/**
|
|
8778
|
-
* @rc
|
|
8779
8683
|
* Contains information regarding an item before it is damaged
|
|
8780
8684
|
* from hitting an entity.
|
|
8781
8685
|
*/
|
|
@@ -8809,7 +8713,6 @@ export class ItemComponentBeforeDurabilityDamageEvent {
|
|
|
8809
8713
|
}
|
|
8810
8714
|
|
|
8811
8715
|
/**
|
|
8812
|
-
* @rc
|
|
8813
8716
|
* Contains information related to a chargeable item completing
|
|
8814
8717
|
* being charged via a component.
|
|
8815
8718
|
*/
|
|
@@ -8819,7 +8722,6 @@ export class ItemComponentCompleteUseEvent extends ItemCompleteUseEvent {
|
|
|
8819
8722
|
}
|
|
8820
8723
|
|
|
8821
8724
|
/**
|
|
8822
|
-
* @rc
|
|
8823
8725
|
* Contains information related to a food item being consumed.
|
|
8824
8726
|
*/
|
|
8825
8727
|
export class ItemComponentConsumeEvent {
|
|
@@ -8839,7 +8741,6 @@ export class ItemComponentConsumeEvent {
|
|
|
8839
8741
|
}
|
|
8840
8742
|
|
|
8841
8743
|
/**
|
|
8842
|
-
* @rc
|
|
8843
8744
|
* Contains information regarding when an item is used to hit
|
|
8844
8745
|
* an entity.
|
|
8845
8746
|
*/
|
|
@@ -8872,7 +8773,6 @@ export class ItemComponentHitEntityEvent {
|
|
|
8872
8773
|
}
|
|
8873
8774
|
|
|
8874
8775
|
/**
|
|
8875
|
-
* @rc
|
|
8876
8776
|
* Contains information regarding the mining of a block using
|
|
8877
8777
|
* an item.
|
|
8878
8778
|
*/
|
|
@@ -8905,7 +8805,6 @@ export class ItemComponentMineBlockEvent {
|
|
|
8905
8805
|
}
|
|
8906
8806
|
|
|
8907
8807
|
/**
|
|
8908
|
-
* @rc
|
|
8909
8808
|
* Provides the functionality for registering custom components
|
|
8910
8809
|
* for items.
|
|
8911
8810
|
*/
|
|
@@ -8944,7 +8843,6 @@ export class ItemComponentRegistry {
|
|
|
8944
8843
|
}
|
|
8945
8844
|
|
|
8946
8845
|
/**
|
|
8947
|
-
* @rc
|
|
8948
8846
|
* Contains information regarding the use of an item.
|
|
8949
8847
|
*/
|
|
8950
8848
|
export class ItemComponentUseEvent {
|
|
@@ -8964,7 +8862,6 @@ export class ItemComponentUseEvent {
|
|
|
8964
8862
|
}
|
|
8965
8863
|
|
|
8966
8864
|
/**
|
|
8967
|
-
* @rc
|
|
8968
8865
|
* Contains information regarding the use of an item on a block
|
|
8969
8866
|
* via a component.
|
|
8970
8867
|
*/
|
|
@@ -10067,7 +9964,6 @@ export class ItemType {
|
|
|
10067
9964
|
}
|
|
10068
9965
|
|
|
10069
9966
|
/**
|
|
10070
|
-
* @rc
|
|
10071
9967
|
* Returns the set of item types registered within Minecraft.
|
|
10072
9968
|
*/
|
|
10073
9969
|
export class ItemTypes {
|
|
@@ -10276,7 +10172,6 @@ export class ItemUseOnBeforeEventSignal {
|
|
|
10276
10172
|
}
|
|
10277
10173
|
|
|
10278
10174
|
/**
|
|
10279
|
-
* @rc
|
|
10280
10175
|
* Contains information regarding the use of an item on a
|
|
10281
10176
|
* block.
|
|
10282
10177
|
*/
|
|
@@ -10584,7 +10479,6 @@ export class Player extends Entity {
|
|
|
10584
10479
|
*/
|
|
10585
10480
|
readonly camera: Camera;
|
|
10586
10481
|
/**
|
|
10587
|
-
* @rc
|
|
10588
10482
|
* @remarks
|
|
10589
10483
|
* Input permissions of the player.
|
|
10590
10484
|
*
|
|
@@ -11166,7 +11060,6 @@ export class PlayerGameModeChangeBeforeEventSignal {
|
|
|
11166
11060
|
}
|
|
11167
11061
|
|
|
11168
11062
|
/**
|
|
11169
|
-
* @rc
|
|
11170
11063
|
* Contains information regarding an event after a players
|
|
11171
11064
|
* input permissions change.
|
|
11172
11065
|
*/
|
|
@@ -11193,7 +11086,6 @@ export class PlayerInputPermissionCategoryChangeAfterEvent {
|
|
|
11193
11086
|
}
|
|
11194
11087
|
|
|
11195
11088
|
/**
|
|
11196
|
-
* @rc
|
|
11197
11089
|
* Manages callbacks that are connected to after a players
|
|
11198
11090
|
* input permissions change.
|
|
11199
11091
|
*/
|
|
@@ -11222,7 +11114,6 @@ export class PlayerInputPermissionCategoryChangeAfterEventSignal {
|
|
|
11222
11114
|
}
|
|
11223
11115
|
|
|
11224
11116
|
/**
|
|
11225
|
-
* @rc
|
|
11226
11117
|
* Contains properties for enabling/disabling player input
|
|
11227
11118
|
* permissions.
|
|
11228
11119
|
*/
|
|
@@ -11246,7 +11137,7 @@ export class PlayerInputPermissions {
|
|
|
11246
11137
|
|
|
11247
11138
|
/**
|
|
11248
11139
|
* Contains information regarding an event after a player
|
|
11249
|
-
*
|
|
11140
|
+
* interacts with a block.
|
|
11250
11141
|
*/
|
|
11251
11142
|
export class PlayerInteractWithBlockAfterEvent {
|
|
11252
11143
|
private constructor();
|
|
@@ -11271,8 +11162,8 @@ export class PlayerInteractWithBlockAfterEvent {
|
|
|
11271
11162
|
readonly faceLocation: Vector3;
|
|
11272
11163
|
/**
|
|
11273
11164
|
* @remarks
|
|
11274
|
-
* The
|
|
11275
|
-
* if hand
|
|
11165
|
+
* The item stack that is being used in the interaction, or
|
|
11166
|
+
* undefined if empty hand.
|
|
11276
11167
|
*
|
|
11277
11168
|
*/
|
|
11278
11169
|
readonly itemStack?: ItemStack;
|
|
@@ -11388,14 +11279,14 @@ export class PlayerInteractWithBlockBeforeEventSignal {
|
|
|
11388
11279
|
|
|
11389
11280
|
/**
|
|
11390
11281
|
* Contains information regarding an event after a player
|
|
11391
|
-
*
|
|
11282
|
+
* interacts with an entity.
|
|
11392
11283
|
*/
|
|
11393
11284
|
export class PlayerInteractWithEntityAfterEvent {
|
|
11394
11285
|
private constructor();
|
|
11395
11286
|
/**
|
|
11396
11287
|
* @remarks
|
|
11397
|
-
* The
|
|
11398
|
-
* if hand
|
|
11288
|
+
* The item stack that is being used in the interaction, or
|
|
11289
|
+
* undefined if empty hand.
|
|
11399
11290
|
*
|
|
11400
11291
|
*/
|
|
11401
11292
|
readonly itemStack?: ItemStack;
|
|
@@ -12759,7 +12650,6 @@ export class System {
|
|
|
12759
12650
|
*/
|
|
12760
12651
|
readonly currentTick: number;
|
|
12761
12652
|
/**
|
|
12762
|
-
* @rc
|
|
12763
12653
|
* @remarks
|
|
12764
12654
|
* Cancels the execution of a job queued via {@link
|
|
12765
12655
|
* System.runJob}.
|
|
@@ -12837,7 +12727,6 @@ export class System {
|
|
|
12837
12727
|
*/
|
|
12838
12728
|
runInterval(callback: () => void, tickInterval?: number): number;
|
|
12839
12729
|
/**
|
|
12840
|
-
* @rc
|
|
12841
12730
|
* @remarks
|
|
12842
12731
|
* Queues a generator to run until completion. The generator
|
|
12843
12732
|
* will be given a time slice each tick, and will be run until
|
|
@@ -12895,7 +12784,6 @@ export class System {
|
|
|
12895
12784
|
*/
|
|
12896
12785
|
runTimeout(callback: () => void, tickDelay?: number): number;
|
|
12897
12786
|
/**
|
|
12898
|
-
* @rc
|
|
12899
12787
|
* @throws This function can throw errors.
|
|
12900
12788
|
*
|
|
12901
12789
|
* {@link minecraftcommon.EngineError}
|
|
@@ -12979,7 +12867,6 @@ export class TargetBlockHitAfterEventSignal {
|
|
|
12979
12867
|
}
|
|
12980
12868
|
|
|
12981
12869
|
/**
|
|
12982
|
-
* @rc
|
|
12983
12870
|
* Represents a trigger for firing an event.
|
|
12984
12871
|
*/
|
|
12985
12872
|
export class Trigger {
|
|
@@ -13731,7 +13618,6 @@ export class World {
|
|
|
13731
13618
|
export class WorldAfterEvents {
|
|
13732
13619
|
private constructor();
|
|
13733
13620
|
/**
|
|
13734
|
-
* @rc
|
|
13735
13621
|
* @remarks
|
|
13736
13622
|
* This event fires for each BlockLocation destroyed by an
|
|
13737
13623
|
* explosion. It is fired after the blocks have already been
|
|
@@ -13907,7 +13793,6 @@ export class WorldAfterEvents {
|
|
|
13907
13793
|
readonly playerDimensionChange: PlayerDimensionChangeAfterEventSignal;
|
|
13908
13794
|
readonly playerGameModeChange: PlayerGameModeChangeAfterEventSignal;
|
|
13909
13795
|
/**
|
|
13910
|
-
* @rc
|
|
13911
13796
|
* @remarks
|
|
13912
13797
|
* This event fires when a players input permissions change.
|
|
13913
13798
|
*
|
|
@@ -14053,7 +13938,6 @@ export class WorldBeforeEvents {
|
|
|
14053
13938
|
readonly playerLeave: PlayerLeaveBeforeEventSignal;
|
|
14054
13939
|
readonly weatherChange: WeatherChangeBeforeEventSignal;
|
|
14055
13940
|
/**
|
|
14056
|
-
* @rc
|
|
14057
13941
|
* @remarks
|
|
14058
13942
|
* This event fires immediately when the script environment is
|
|
14059
13943
|
* initialized on a World. Not all script functionality may be
|
|
@@ -14100,7 +13984,6 @@ export class WorldInitializeAfterEventSignal {
|
|
|
14100
13984
|
}
|
|
14101
13985
|
|
|
14102
13986
|
/**
|
|
14103
|
-
* @rc
|
|
14104
13987
|
* Contains information and methods that can be used at the
|
|
14105
13988
|
* initialization of the scripting environment for a World.
|
|
14106
13989
|
* Also, use the supplied blockRegistry object to register
|
|
@@ -14120,7 +14003,6 @@ export class WorldInitializeBeforeEvent {
|
|
|
14120
14003
|
}
|
|
14121
14004
|
|
|
14122
14005
|
/**
|
|
14123
|
-
* @rc
|
|
14124
14006
|
* Manages callbacks that are run at the initialization of the
|
|
14125
14007
|
* scripting environment for a World. Do note that this event
|
|
14126
14008
|
* may run multiple times within a session in the case that the
|
|
@@ -14149,7 +14031,6 @@ export class WorldInitializeBeforeEventSignal {
|
|
|
14149
14031
|
}
|
|
14150
14032
|
|
|
14151
14033
|
/**
|
|
14152
|
-
* @rc
|
|
14153
14034
|
* Contains a set of events that will be raised for a block.
|
|
14154
14035
|
* This object must be bound using the BlockRegistry.
|
|
14155
14036
|
*/
|
|
@@ -15071,7 +14952,6 @@ export interface EntityRaycastHit {
|
|
|
15071
14952
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15072
14953
|
export interface EntityRaycastOptions extends EntityFilter {
|
|
15073
14954
|
/**
|
|
15074
|
-
* @rc
|
|
15075
14955
|
* @remarks
|
|
15076
14956
|
* If true, blocks will not be considered as blocks that 'stop'
|
|
15077
14957
|
* the raycast.
|
|
@@ -15079,7 +14959,6 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
15079
14959
|
*/
|
|
15080
14960
|
ignoreBlockCollision?: boolean;
|
|
15081
14961
|
/**
|
|
15082
|
-
* @rc
|
|
15083
14962
|
* @remarks
|
|
15084
14963
|
* If true, liquid blocks will be considered as blocks that
|
|
15085
14964
|
* 'stop' the raycast.
|
|
@@ -15087,7 +14966,6 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
15087
14966
|
*/
|
|
15088
14967
|
includeLiquidBlocks?: boolean;
|
|
15089
14968
|
/**
|
|
15090
|
-
* @rc
|
|
15091
14969
|
* @remarks
|
|
15092
14970
|
* If true, passable blocks like vines and flowers will be
|
|
15093
14971
|
* considered as blocks that 'stop' the raycast.
|
|
@@ -15152,7 +15030,6 @@ export interface ExplosionOptions {
|
|
|
15152
15030
|
}
|
|
15153
15031
|
|
|
15154
15032
|
/**
|
|
15155
|
-
* @rc
|
|
15156
15033
|
* Contains a set of events that will be raised for an item.
|
|
15157
15034
|
* This object must be bound using the ItemComponentRegistry.
|
|
15158
15035
|
*/
|
|
@@ -15764,9 +15641,6 @@ export interface Vector3 {
|
|
|
15764
15641
|
z: number;
|
|
15765
15642
|
}
|
|
15766
15643
|
|
|
15767
|
-
/**
|
|
15768
|
-
* @rc
|
|
15769
|
-
*/
|
|
15770
15644
|
export interface VectorXZ {
|
|
15771
15645
|
x: number;
|
|
15772
15646
|
z: number;
|
|
@@ -15790,33 +15664,21 @@ export interface WorldSoundOptions {
|
|
|
15790
15664
|
volume?: number;
|
|
15791
15665
|
}
|
|
15792
15666
|
|
|
15793
|
-
/**
|
|
15794
|
-
* @rc
|
|
15795
|
-
*/
|
|
15796
15667
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15797
15668
|
export class BlockCustomComponentAlreadyRegisteredError extends Error {
|
|
15798
15669
|
private constructor();
|
|
15799
15670
|
}
|
|
15800
15671
|
|
|
15801
|
-
/**
|
|
15802
|
-
* @rc
|
|
15803
|
-
*/
|
|
15804
15672
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15805
15673
|
export class BlockCustomComponentReloadNewComponentError extends Error {
|
|
15806
15674
|
private constructor();
|
|
15807
15675
|
}
|
|
15808
15676
|
|
|
15809
|
-
/**
|
|
15810
|
-
* @rc
|
|
15811
|
-
*/
|
|
15812
15677
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15813
15678
|
export class BlockCustomComponentReloadNewEventError extends Error {
|
|
15814
15679
|
private constructor();
|
|
15815
15680
|
}
|
|
15816
15681
|
|
|
15817
|
-
/**
|
|
15818
|
-
* @rc
|
|
15819
|
-
*/
|
|
15820
15682
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15821
15683
|
export class BlockCustomComponentReloadVersionError extends Error {
|
|
15822
15684
|
private constructor();
|
|
@@ -15827,17 +15689,11 @@ export class CommandError extends Error {
|
|
|
15827
15689
|
private constructor();
|
|
15828
15690
|
}
|
|
15829
15691
|
|
|
15830
|
-
/**
|
|
15831
|
-
* @rc
|
|
15832
|
-
*/
|
|
15833
15692
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15834
15693
|
export class CustomComponentInvalidRegistryError extends Error {
|
|
15835
15694
|
private constructor();
|
|
15836
15695
|
}
|
|
15837
15696
|
|
|
15838
|
-
/**
|
|
15839
|
-
* @rc
|
|
15840
|
-
*/
|
|
15841
15697
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15842
15698
|
export class CustomComponentNameError extends Error {
|
|
15843
15699
|
private constructor();
|
|
@@ -15878,7 +15734,6 @@ export class InvalidStructureError extends Error {
|
|
|
15878
15734
|
}
|
|
15879
15735
|
|
|
15880
15736
|
/**
|
|
15881
|
-
* @rc
|
|
15882
15737
|
* Thrown when trying to register an item custom component with
|
|
15883
15738
|
* a name that has already been registered.
|
|
15884
15739
|
*/
|
|
@@ -15888,7 +15743,6 @@ export class ItemCustomComponentAlreadyRegisteredError extends Error {
|
|
|
15888
15743
|
}
|
|
15889
15744
|
|
|
15890
15745
|
/**
|
|
15891
|
-
* @rc
|
|
15892
15746
|
* Thrown after using the /reload command when trying to
|
|
15893
15747
|
* register a previously unregistered item custom component.
|
|
15894
15748
|
*/
|
|
@@ -15898,7 +15752,6 @@ export class ItemCustomComponentReloadNewComponentError extends Error {
|
|
|
15898
15752
|
}
|
|
15899
15753
|
|
|
15900
15754
|
/**
|
|
15901
|
-
* @rc
|
|
15902
15755
|
* Thrown after using the /reload command when trying to
|
|
15903
15756
|
* register a previously registered item custom component that
|
|
15904
15757
|
* handles a new event.
|
|
@@ -15909,7 +15762,6 @@ export class ItemCustomComponentReloadNewEventError extends Error {
|
|
|
15909
15762
|
}
|
|
15910
15763
|
|
|
15911
15764
|
/**
|
|
15912
|
-
* @rc
|
|
15913
15765
|
* Thrown after using the /reload command when trying to
|
|
15914
15766
|
* register a previously registered item custom component with
|
|
15915
15767
|
* a newer API version.
|