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