@minecraft/server 1.12.0-rc.1.21.30-preview.21 → 1.12.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 -106
- 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,7 +525,6 @@ 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
|
*
|
|
@@ -545,7 +539,6 @@ export enum EntityComponentTypes {
|
|
|
545
539
|
*/
|
|
546
540
|
MarkVariant = 'minecraft:mark_variant',
|
|
547
541
|
/**
|
|
548
|
-
* @rc
|
|
549
542
|
* @remarks
|
|
550
543
|
* Defines the general movement speed of this entity.
|
|
551
544
|
*
|
|
@@ -578,7 +571,6 @@ export enum EntityComponentTypes {
|
|
|
578
571
|
*/
|
|
579
572
|
MovementGeneric = 'minecraft:movement.generic',
|
|
580
573
|
/**
|
|
581
|
-
* @rc
|
|
582
574
|
* @remarks
|
|
583
575
|
* When added, this movement control allows the mob to glide.
|
|
584
576
|
*
|
|
@@ -605,7 +597,6 @@ export enum EntityComponentTypes {
|
|
|
605
597
|
*/
|
|
606
598
|
MovementSkip = 'minecraft:movement.skip',
|
|
607
599
|
/**
|
|
608
|
-
* @rc
|
|
609
600
|
* @remarks
|
|
610
601
|
* When added, this move control causes the mob to sway side to
|
|
611
602
|
* side giving the impression it is swimming.
|
|
@@ -705,7 +696,6 @@ export enum EntityComponentTypes {
|
|
|
705
696
|
*/
|
|
706
697
|
SkinId = 'minecraft:skin_id',
|
|
707
698
|
/**
|
|
708
|
-
* @rc
|
|
709
699
|
* @remarks
|
|
710
700
|
* Defines the rules for an entity to be tamed by the player.
|
|
711
701
|
*
|
|
@@ -725,7 +715,6 @@ export enum EntityComponentTypes {
|
|
|
725
715
|
*/
|
|
726
716
|
TypeFamily = 'minecraft:type_family',
|
|
727
717
|
/**
|
|
728
|
-
* @rc
|
|
729
718
|
* @remarks
|
|
730
719
|
* Defines the general movement speed underwater of this
|
|
731
720
|
* entity.
|
|
@@ -1358,7 +1347,6 @@ export enum GameRule {
|
|
|
1358
1347
|
*/
|
|
1359
1348
|
ShowCoordinates = 'showCoordinates',
|
|
1360
1349
|
/**
|
|
1361
|
-
* @rc
|
|
1362
1350
|
* @remarks
|
|
1363
1351
|
* Controls whether the days a player has played is displayed.
|
|
1364
1352
|
*
|
|
@@ -1446,7 +1434,6 @@ export enum HudVisibility {
|
|
|
1446
1434
|
}
|
|
1447
1435
|
|
|
1448
1436
|
/**
|
|
1449
|
-
* @rc
|
|
1450
1437
|
* Input permission categories. Used by
|
|
1451
1438
|
* @minecraft/server.PlayerInputPermissionCategoryChangeAfterEvent
|
|
1452
1439
|
* to specify which category was changed.
|
|
@@ -2350,7 +2337,6 @@ export class BlockComponent extends Component {
|
|
|
2350
2337
|
}
|
|
2351
2338
|
|
|
2352
2339
|
/**
|
|
2353
|
-
* @rc
|
|
2354
2340
|
* Contains information regarding an entity falling onto a
|
|
2355
2341
|
* specific block.
|
|
2356
2342
|
*/
|
|
@@ -2372,7 +2358,6 @@ export class BlockComponentEntityFallOnEvent extends BlockEvent {
|
|
|
2372
2358
|
}
|
|
2373
2359
|
|
|
2374
2360
|
/**
|
|
2375
|
-
* @rc
|
|
2376
2361
|
* Contains information regarding a specific block that was
|
|
2377
2362
|
* placed.
|
|
2378
2363
|
*/
|
|
@@ -2388,7 +2373,6 @@ export class BlockComponentOnPlaceEvent extends BlockEvent {
|
|
|
2388
2373
|
}
|
|
2389
2374
|
|
|
2390
2375
|
/**
|
|
2391
|
-
* @rc
|
|
2392
2376
|
* Contains information regarding a specific block being
|
|
2393
2377
|
* destroyed.
|
|
2394
2378
|
*/
|
|
@@ -2411,7 +2395,6 @@ export class BlockComponentPlayerDestroyEvent extends BlockEvent {
|
|
|
2411
2395
|
}
|
|
2412
2396
|
|
|
2413
2397
|
/**
|
|
2414
|
-
* @rc
|
|
2415
2398
|
* Contains information regarding a specific block being
|
|
2416
2399
|
* interacted with.
|
|
2417
2400
|
*/
|
|
@@ -2440,7 +2423,6 @@ export class BlockComponentPlayerInteractEvent extends BlockEvent {
|
|
|
2440
2423
|
}
|
|
2441
2424
|
|
|
2442
2425
|
/**
|
|
2443
|
-
* @rc
|
|
2444
2426
|
* Contains information regarding an event before a player
|
|
2445
2427
|
* places a block.
|
|
2446
2428
|
*/
|
|
@@ -2476,7 +2458,6 @@ export class BlockComponentPlayerPlaceBeforeEvent extends BlockEvent {
|
|
|
2476
2458
|
}
|
|
2477
2459
|
|
|
2478
2460
|
/**
|
|
2479
|
-
* @rc
|
|
2480
2461
|
* Contains information regarding a specific block randomly
|
|
2481
2462
|
* ticking.
|
|
2482
2463
|
*/
|
|
@@ -2485,9 +2466,6 @@ export class BlockComponentRandomTickEvent extends BlockEvent {
|
|
|
2485
2466
|
private constructor();
|
|
2486
2467
|
}
|
|
2487
2468
|
|
|
2488
|
-
/**
|
|
2489
|
-
* @rc
|
|
2490
|
-
*/
|
|
2491
2469
|
export class BlockComponentRegistry {
|
|
2492
2470
|
private constructor();
|
|
2493
2471
|
/**
|
|
@@ -2511,7 +2489,6 @@ export class BlockComponentRegistry {
|
|
|
2511
2489
|
}
|
|
2512
2490
|
|
|
2513
2491
|
/**
|
|
2514
|
-
* @rc
|
|
2515
2492
|
* Contains information regarding an entity stepping off a
|
|
2516
2493
|
* specific block.
|
|
2517
2494
|
*/
|
|
@@ -2527,7 +2504,6 @@ export class BlockComponentStepOffEvent extends BlockEvent {
|
|
|
2527
2504
|
}
|
|
2528
2505
|
|
|
2529
2506
|
/**
|
|
2530
|
-
* @rc
|
|
2531
2507
|
* Contains information regarding an entity stepping onto a
|
|
2532
2508
|
* specific block.
|
|
2533
2509
|
*/
|
|
@@ -2543,7 +2519,6 @@ export class BlockComponentStepOnEvent extends BlockEvent {
|
|
|
2543
2519
|
}
|
|
2544
2520
|
|
|
2545
2521
|
/**
|
|
2546
|
-
* @rc
|
|
2547
2522
|
* Contains information regarding a specific block ticking.
|
|
2548
2523
|
*/
|
|
2549
2524
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -2573,7 +2548,6 @@ export class BlockEvent {
|
|
|
2573
2548
|
}
|
|
2574
2549
|
|
|
2575
2550
|
/**
|
|
2576
|
-
* @rc
|
|
2577
2551
|
* Contains information regarding an explosion that has
|
|
2578
2552
|
* occurred for a specific block.
|
|
2579
2553
|
*/
|
|
@@ -2595,7 +2569,6 @@ export class BlockExplodeAfterEvent extends BlockEvent {
|
|
|
2595
2569
|
}
|
|
2596
2570
|
|
|
2597
2571
|
/**
|
|
2598
|
-
* @rc
|
|
2599
2572
|
* Manages callbacks that are connected to when an explosion
|
|
2600
2573
|
* occurs, as it impacts individual blocks.
|
|
2601
2574
|
*/
|
|
@@ -2728,14 +2701,12 @@ export class BlockPermutation {
|
|
|
2728
2701
|
*/
|
|
2729
2702
|
getState(stateName: string): boolean | number | string | undefined;
|
|
2730
2703
|
/**
|
|
2731
|
-
* @rc
|
|
2732
2704
|
* @remarks
|
|
2733
2705
|
* Creates a copy of the permutation.
|
|
2734
2706
|
*
|
|
2735
2707
|
*/
|
|
2736
2708
|
getTags(): string[];
|
|
2737
2709
|
/**
|
|
2738
|
-
* @rc
|
|
2739
2710
|
* @remarks
|
|
2740
2711
|
* Checks to see if the permutation has a specific tag.
|
|
2741
2712
|
*
|
|
@@ -4352,7 +4323,6 @@ export class Dimension {
|
|
|
4352
4323
|
*/
|
|
4353
4324
|
runCommandAsync(commandString: string): Promise<CommandResult>;
|
|
4354
4325
|
/**
|
|
4355
|
-
* @rc
|
|
4356
4326
|
* @remarks
|
|
4357
4327
|
* Sets a block in the world using a BlockPermutation.
|
|
4358
4328
|
* BlockPermutations are blocks with a particular state.
|
|
@@ -4373,7 +4343,6 @@ export class Dimension {
|
|
|
4373
4343
|
*/
|
|
4374
4344
|
setBlockPermutation(location: Vector3, permutation: BlockPermutation): void;
|
|
4375
4345
|
/**
|
|
4376
|
-
* @rc
|
|
4377
4346
|
* @remarks
|
|
4378
4347
|
* Sets a block at a given location within the dimension.
|
|
4379
4348
|
*
|
|
@@ -4759,8 +4728,6 @@ export class EffectTypes {
|
|
|
4759
4728
|
*
|
|
4760
4729
|
* This function can't be called in read-only mode.
|
|
4761
4730
|
*
|
|
4762
|
-
* @param identifier
|
|
4763
|
-
* The identifier for the effect.
|
|
4764
4731
|
* @returns
|
|
4765
4732
|
* Effect type for the given identifier or undefined if the
|
|
4766
4733
|
* effect does not exist.
|
|
@@ -4819,7 +4786,6 @@ export class EnchantmentTypes {
|
|
|
4819
4786
|
*/
|
|
4820
4787
|
static get(enchantmentId: string): EnchantmentType | undefined;
|
|
4821
4788
|
/**
|
|
4822
|
-
* @rc
|
|
4823
4789
|
* @remarks
|
|
4824
4790
|
* Returns a collection of all available enchantment types.
|
|
4825
4791
|
*
|
|
@@ -5786,7 +5752,6 @@ export class EntityAddRiderComponent extends EntityComponent {
|
|
|
5786
5752
|
}
|
|
5787
5753
|
|
|
5788
5754
|
/**
|
|
5789
|
-
* @rc
|
|
5790
5755
|
* Adds a timer for the entity to grow up. It can be
|
|
5791
5756
|
* accelerated by giving the entity the items it likes as
|
|
5792
5757
|
* defined by feedItems.
|
|
@@ -6015,7 +5980,6 @@ export class EntityComponent extends Component {
|
|
|
6015
5980
|
}
|
|
6016
5981
|
|
|
6017
5982
|
/**
|
|
6018
|
-
* @rc
|
|
6019
5983
|
* As part of the Ageable component, represents a set of items
|
|
6020
5984
|
* that can be fed to an entity and the rate at which that
|
|
6021
5985
|
* causes them to grow.
|
|
@@ -6388,7 +6352,6 @@ export class EntityHitBlockAfterEvent {
|
|
|
6388
6352
|
*/
|
|
6389
6353
|
readonly hitBlock: Block;
|
|
6390
6354
|
/**
|
|
6391
|
-
* @rc
|
|
6392
6355
|
* @remarks
|
|
6393
6356
|
* Block permutation that was hit by the attack.
|
|
6394
6357
|
*
|
|
@@ -6763,7 +6726,6 @@ export class EntityItemComponent extends EntityComponent {
|
|
|
6763
6726
|
}
|
|
6764
6727
|
|
|
6765
6728
|
/**
|
|
6766
|
-
* @rc
|
|
6767
6729
|
* Defines the base movement speed in lava of this entity.
|
|
6768
6730
|
*/
|
|
6769
6731
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6858,7 +6820,6 @@ export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
|
|
|
6858
6820
|
}
|
|
6859
6821
|
|
|
6860
6822
|
/**
|
|
6861
|
-
* @rc
|
|
6862
6823
|
* Defines the general movement speed of this entity.
|
|
6863
6824
|
*/
|
|
6864
6825
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6887,7 +6848,6 @@ export class EntityMovementGenericComponent extends EntityBaseMovementComponent
|
|
|
6887
6848
|
}
|
|
6888
6849
|
|
|
6889
6850
|
/**
|
|
6890
|
-
* @rc
|
|
6891
6851
|
* When added, this movement control allows the mob to glide.
|
|
6892
6852
|
*/
|
|
6893
6853
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6940,7 +6900,6 @@ export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
|
|
|
6940
6900
|
}
|
|
6941
6901
|
|
|
6942
6902
|
/**
|
|
6943
|
-
* @rc
|
|
6944
6903
|
* When added, this move control causes the mob to sway side to
|
|
6945
6904
|
* side giving the impression it is swimming.
|
|
6946
6905
|
*/
|
|
@@ -7762,7 +7721,6 @@ export class EntitySpawnAfterEventSignal {
|
|
|
7762
7721
|
}
|
|
7763
7722
|
|
|
7764
7723
|
/**
|
|
7765
|
-
* @rc
|
|
7766
7724
|
* Defines the rules for an entity to be tamed by the player.
|
|
7767
7725
|
*/
|
|
7768
7726
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7830,7 +7788,6 @@ export class EntityTameableComponent extends EntityComponent {
|
|
|
7830
7788
|
export class EntityTameMountComponent extends EntityComponent {
|
|
7831
7789
|
private constructor();
|
|
7832
7790
|
/**
|
|
7833
|
-
* @rc
|
|
7834
7791
|
* @remarks
|
|
7835
7792
|
* Returns true if the entity is tamed.
|
|
7836
7793
|
*
|
|
@@ -7838,7 +7795,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
7838
7795
|
*/
|
|
7839
7796
|
readonly isTamed: boolean;
|
|
7840
7797
|
/**
|
|
7841
|
-
* @rc
|
|
7842
7798
|
* @remarks
|
|
7843
7799
|
* Returns true if the entity is tamed by a player.
|
|
7844
7800
|
*
|
|
@@ -7846,7 +7802,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
7846
7802
|
*/
|
|
7847
7803
|
readonly isTamedToPlayer: boolean;
|
|
7848
7804
|
/**
|
|
7849
|
-
* @rc
|
|
7850
7805
|
* @remarks
|
|
7851
7806
|
* Returns the player that has tamed the entity, or 'undefined'
|
|
7852
7807
|
* if entity is not tamed by a player.
|
|
@@ -7855,7 +7810,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
7855
7810
|
*/
|
|
7856
7811
|
readonly tamedToPlayer?: Player;
|
|
7857
7812
|
/**
|
|
7858
|
-
* @rc
|
|
7859
7813
|
* @remarks
|
|
7860
7814
|
* Returns the id of player that has tamed the entity, or
|
|
7861
7815
|
* 'undefined' if entity is not tamed.
|
|
@@ -7876,7 +7830,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
7876
7830
|
*/
|
|
7877
7831
|
tame(showParticles: boolean): void;
|
|
7878
7832
|
/**
|
|
7879
|
-
* @rc
|
|
7880
7833
|
* @remarks
|
|
7881
7834
|
* Sets this rideable entity as tamed by the given player.
|
|
7882
7835
|
*
|
|
@@ -7942,7 +7895,6 @@ export class EntityTypes {
|
|
|
7942
7895
|
}
|
|
7943
7896
|
|
|
7944
7897
|
/**
|
|
7945
|
-
* @rc
|
|
7946
7898
|
* Defines the general movement speed underwater of this
|
|
7947
7899
|
* entity.
|
|
7948
7900
|
*/
|
|
@@ -8384,7 +8336,6 @@ export class GameRules {
|
|
|
8384
8336
|
*/
|
|
8385
8337
|
showCoordinates: boolean;
|
|
8386
8338
|
/**
|
|
8387
|
-
* @rc
|
|
8388
8339
|
* @remarks
|
|
8389
8340
|
* This property can't be edited in read-only mode.
|
|
8390
8341
|
*
|
|
@@ -8602,7 +8553,6 @@ export class ItemCompleteUseAfterEventSignal {
|
|
|
8602
8553
|
}
|
|
8603
8554
|
|
|
8604
8555
|
/**
|
|
8605
|
-
* @rc
|
|
8606
8556
|
* Contains information related to a chargeable item completing
|
|
8607
8557
|
* being charged.
|
|
8608
8558
|
*/
|
|
@@ -8631,7 +8581,6 @@ export class ItemComponent extends Component {
|
|
|
8631
8581
|
}
|
|
8632
8582
|
|
|
8633
8583
|
/**
|
|
8634
|
-
* @rc
|
|
8635
8584
|
* Contains information regarding an item before it is damaged
|
|
8636
8585
|
* from hitting an entity.
|
|
8637
8586
|
*/
|
|
@@ -8665,7 +8614,6 @@ export class ItemComponentBeforeDurabilityDamageEvent {
|
|
|
8665
8614
|
}
|
|
8666
8615
|
|
|
8667
8616
|
/**
|
|
8668
|
-
* @rc
|
|
8669
8617
|
* Contains information related to a chargeable item completing
|
|
8670
8618
|
* being charged via a component.
|
|
8671
8619
|
*/
|
|
@@ -8675,7 +8623,6 @@ export class ItemComponentCompleteUseEvent extends ItemCompleteUseEvent {
|
|
|
8675
8623
|
}
|
|
8676
8624
|
|
|
8677
8625
|
/**
|
|
8678
|
-
* @rc
|
|
8679
8626
|
* Contains information related to a food item being consumed.
|
|
8680
8627
|
*/
|
|
8681
8628
|
export class ItemComponentConsumeEvent {
|
|
@@ -8695,7 +8642,6 @@ export class ItemComponentConsumeEvent {
|
|
|
8695
8642
|
}
|
|
8696
8643
|
|
|
8697
8644
|
/**
|
|
8698
|
-
* @rc
|
|
8699
8645
|
* Contains information regarding when an item is used to hit
|
|
8700
8646
|
* an entity.
|
|
8701
8647
|
*/
|
|
@@ -8728,7 +8674,6 @@ export class ItemComponentHitEntityEvent {
|
|
|
8728
8674
|
}
|
|
8729
8675
|
|
|
8730
8676
|
/**
|
|
8731
|
-
* @rc
|
|
8732
8677
|
* Contains information regarding the mining of a block using
|
|
8733
8678
|
* an item.
|
|
8734
8679
|
*/
|
|
@@ -8761,7 +8706,6 @@ export class ItemComponentMineBlockEvent {
|
|
|
8761
8706
|
}
|
|
8762
8707
|
|
|
8763
8708
|
/**
|
|
8764
|
-
* @rc
|
|
8765
8709
|
* Provides the functionality for registering custom components
|
|
8766
8710
|
* for items.
|
|
8767
8711
|
*/
|
|
@@ -8800,7 +8744,6 @@ export class ItemComponentRegistry {
|
|
|
8800
8744
|
}
|
|
8801
8745
|
|
|
8802
8746
|
/**
|
|
8803
|
-
* @rc
|
|
8804
8747
|
* Contains information regarding the use of an item.
|
|
8805
8748
|
*/
|
|
8806
8749
|
export class ItemComponentUseEvent {
|
|
@@ -8820,7 +8763,6 @@ export class ItemComponentUseEvent {
|
|
|
8820
8763
|
}
|
|
8821
8764
|
|
|
8822
8765
|
/**
|
|
8823
|
-
* @rc
|
|
8824
8766
|
* Contains information regarding the use of an item on a block
|
|
8825
8767
|
* via a component.
|
|
8826
8768
|
*/
|
|
@@ -9923,7 +9865,6 @@ export class ItemType {
|
|
|
9923
9865
|
}
|
|
9924
9866
|
|
|
9925
9867
|
/**
|
|
9926
|
-
* @rc
|
|
9927
9868
|
* Returns the set of item types registered within Minecraft.
|
|
9928
9869
|
*/
|
|
9929
9870
|
export class ItemTypes {
|
|
@@ -10132,7 +10073,6 @@ export class ItemUseOnBeforeEventSignal {
|
|
|
10132
10073
|
}
|
|
10133
10074
|
|
|
10134
10075
|
/**
|
|
10135
|
-
* @rc
|
|
10136
10076
|
* Contains information regarding the use of an item on a
|
|
10137
10077
|
* block.
|
|
10138
10078
|
*/
|
|
@@ -10440,7 +10380,6 @@ export class Player extends Entity {
|
|
|
10440
10380
|
*/
|
|
10441
10381
|
readonly camera: Camera;
|
|
10442
10382
|
/**
|
|
10443
|
-
* @rc
|
|
10444
10383
|
* @remarks
|
|
10445
10384
|
* Input permissions of the player.
|
|
10446
10385
|
*
|
|
@@ -11022,7 +10961,6 @@ export class PlayerGameModeChangeBeforeEventSignal {
|
|
|
11022
10961
|
}
|
|
11023
10962
|
|
|
11024
10963
|
/**
|
|
11025
|
-
* @rc
|
|
11026
10964
|
* Contains information regarding an event after a players
|
|
11027
10965
|
* input permissions change.
|
|
11028
10966
|
*/
|
|
@@ -11049,7 +10987,6 @@ export class PlayerInputPermissionCategoryChangeAfterEvent {
|
|
|
11049
10987
|
}
|
|
11050
10988
|
|
|
11051
10989
|
/**
|
|
11052
|
-
* @rc
|
|
11053
10990
|
* Manages callbacks that are connected to after a players
|
|
11054
10991
|
* input permissions change.
|
|
11055
10992
|
*/
|
|
@@ -11078,7 +11015,6 @@ export class PlayerInputPermissionCategoryChangeAfterEventSignal {
|
|
|
11078
11015
|
}
|
|
11079
11016
|
|
|
11080
11017
|
/**
|
|
11081
|
-
* @rc
|
|
11082
11018
|
* Contains properties for enabling/disabling player input
|
|
11083
11019
|
* permissions.
|
|
11084
11020
|
*/
|
|
@@ -11102,7 +11038,7 @@ export class PlayerInputPermissions {
|
|
|
11102
11038
|
|
|
11103
11039
|
/**
|
|
11104
11040
|
* Contains information regarding an event after a player
|
|
11105
|
-
*
|
|
11041
|
+
* interacts with a block.
|
|
11106
11042
|
*/
|
|
11107
11043
|
export class PlayerInteractWithBlockAfterEvent {
|
|
11108
11044
|
private constructor();
|
|
@@ -11127,8 +11063,8 @@ export class PlayerInteractWithBlockAfterEvent {
|
|
|
11127
11063
|
readonly faceLocation: Vector3;
|
|
11128
11064
|
/**
|
|
11129
11065
|
* @remarks
|
|
11130
|
-
* The
|
|
11131
|
-
* if hand
|
|
11066
|
+
* The item stack that is being used in the interaction, or
|
|
11067
|
+
* undefined if empty hand.
|
|
11132
11068
|
*
|
|
11133
11069
|
*/
|
|
11134
11070
|
readonly itemStack?: ItemStack;
|
|
@@ -11244,14 +11180,14 @@ export class PlayerInteractWithBlockBeforeEventSignal {
|
|
|
11244
11180
|
|
|
11245
11181
|
/**
|
|
11246
11182
|
* Contains information regarding an event after a player
|
|
11247
|
-
*
|
|
11183
|
+
* interacts with an entity.
|
|
11248
11184
|
*/
|
|
11249
11185
|
export class PlayerInteractWithEntityAfterEvent {
|
|
11250
11186
|
private constructor();
|
|
11251
11187
|
/**
|
|
11252
11188
|
* @remarks
|
|
11253
|
-
* The
|
|
11254
|
-
* if hand
|
|
11189
|
+
* The item stack that is being used in the interaction, or
|
|
11190
|
+
* undefined if empty hand.
|
|
11255
11191
|
*
|
|
11256
11192
|
*/
|
|
11257
11193
|
readonly itemStack?: ItemStack;
|
|
@@ -12615,7 +12551,6 @@ export class System {
|
|
|
12615
12551
|
*/
|
|
12616
12552
|
readonly currentTick: number;
|
|
12617
12553
|
/**
|
|
12618
|
-
* @rc
|
|
12619
12554
|
* @remarks
|
|
12620
12555
|
* Cancels the execution of a job queued via {@link
|
|
12621
12556
|
* System.runJob}.
|
|
@@ -12693,7 +12628,6 @@ export class System {
|
|
|
12693
12628
|
*/
|
|
12694
12629
|
runInterval(callback: () => void, tickInterval?: number): number;
|
|
12695
12630
|
/**
|
|
12696
|
-
* @rc
|
|
12697
12631
|
* @remarks
|
|
12698
12632
|
* Queues a generator to run until completion. The generator
|
|
12699
12633
|
* will be given a time slice each tick, and will be run until
|
|
@@ -12751,7 +12685,6 @@ export class System {
|
|
|
12751
12685
|
*/
|
|
12752
12686
|
runTimeout(callback: () => void, tickDelay?: number): number;
|
|
12753
12687
|
/**
|
|
12754
|
-
* @rc
|
|
12755
12688
|
* @throws This function can throw errors.
|
|
12756
12689
|
*
|
|
12757
12690
|
* {@link minecraftcommon.EngineError}
|
|
@@ -12835,7 +12768,6 @@ export class TargetBlockHitAfterEventSignal {
|
|
|
12835
12768
|
}
|
|
12836
12769
|
|
|
12837
12770
|
/**
|
|
12838
|
-
* @rc
|
|
12839
12771
|
* Represents a trigger for firing an event.
|
|
12840
12772
|
*/
|
|
12841
12773
|
export class Trigger {
|
|
@@ -13587,7 +13519,6 @@ export class World {
|
|
|
13587
13519
|
export class WorldAfterEvents {
|
|
13588
13520
|
private constructor();
|
|
13589
13521
|
/**
|
|
13590
|
-
* @rc
|
|
13591
13522
|
* @remarks
|
|
13592
13523
|
* This event fires for each BlockLocation destroyed by an
|
|
13593
13524
|
* explosion. It is fired after the blocks have already been
|
|
@@ -13763,7 +13694,6 @@ export class WorldAfterEvents {
|
|
|
13763
13694
|
readonly playerDimensionChange: PlayerDimensionChangeAfterEventSignal;
|
|
13764
13695
|
readonly playerGameModeChange: PlayerGameModeChangeAfterEventSignal;
|
|
13765
13696
|
/**
|
|
13766
|
-
* @rc
|
|
13767
13697
|
* @remarks
|
|
13768
13698
|
* This event fires when a players input permissions change.
|
|
13769
13699
|
*
|
|
@@ -13909,7 +13839,6 @@ export class WorldBeforeEvents {
|
|
|
13909
13839
|
readonly playerLeave: PlayerLeaveBeforeEventSignal;
|
|
13910
13840
|
readonly weatherChange: WeatherChangeBeforeEventSignal;
|
|
13911
13841
|
/**
|
|
13912
|
-
* @rc
|
|
13913
13842
|
* @remarks
|
|
13914
13843
|
* This event fires immediately when the script environment is
|
|
13915
13844
|
* initialized on a World. Not all script functionality may be
|
|
@@ -13956,7 +13885,6 @@ export class WorldInitializeAfterEventSignal {
|
|
|
13956
13885
|
}
|
|
13957
13886
|
|
|
13958
13887
|
/**
|
|
13959
|
-
* @rc
|
|
13960
13888
|
* Contains information and methods that can be used at the
|
|
13961
13889
|
* initialization of the scripting environment for a World.
|
|
13962
13890
|
* Also, use the supplied blockRegistry object to register
|
|
@@ -13976,7 +13904,6 @@ export class WorldInitializeBeforeEvent {
|
|
|
13976
13904
|
}
|
|
13977
13905
|
|
|
13978
13906
|
/**
|
|
13979
|
-
* @rc
|
|
13980
13907
|
* Manages callbacks that are run at the initialization of the
|
|
13981
13908
|
* scripting environment for a World. Do note that this event
|
|
13982
13909
|
* may run multiple times within a session in the case that the
|
|
@@ -14005,7 +13932,6 @@ export class WorldInitializeBeforeEventSignal {
|
|
|
14005
13932
|
}
|
|
14006
13933
|
|
|
14007
13934
|
/**
|
|
14008
|
-
* @rc
|
|
14009
13935
|
* Contains a set of events that will be raised for a block.
|
|
14010
13936
|
* This object must be bound using the BlockRegistry.
|
|
14011
13937
|
*/
|
|
@@ -14927,7 +14853,6 @@ export interface EntityRaycastHit {
|
|
|
14927
14853
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
14928
14854
|
export interface EntityRaycastOptions extends EntityFilter {
|
|
14929
14855
|
/**
|
|
14930
|
-
* @rc
|
|
14931
14856
|
* @remarks
|
|
14932
14857
|
* If true, blocks will not be considered as blocks that 'stop'
|
|
14933
14858
|
* the raycast.
|
|
@@ -14935,7 +14860,6 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
14935
14860
|
*/
|
|
14936
14861
|
ignoreBlockCollision?: boolean;
|
|
14937
14862
|
/**
|
|
14938
|
-
* @rc
|
|
14939
14863
|
* @remarks
|
|
14940
14864
|
* If true, liquid blocks will be considered as blocks that
|
|
14941
14865
|
* 'stop' the raycast.
|
|
@@ -14943,7 +14867,6 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
14943
14867
|
*/
|
|
14944
14868
|
includeLiquidBlocks?: boolean;
|
|
14945
14869
|
/**
|
|
14946
|
-
* @rc
|
|
14947
14870
|
* @remarks
|
|
14948
14871
|
* If true, passable blocks like vines and flowers will be
|
|
14949
14872
|
* considered as blocks that 'stop' the raycast.
|
|
@@ -15008,7 +14931,6 @@ export interface ExplosionOptions {
|
|
|
15008
14931
|
}
|
|
15009
14932
|
|
|
15010
14933
|
/**
|
|
15011
|
-
* @rc
|
|
15012
14934
|
* Contains a set of events that will be raised for an item.
|
|
15013
14935
|
* This object must be bound using the ItemComponentRegistry.
|
|
15014
14936
|
*/
|
|
@@ -15638,33 +15560,21 @@ export interface WorldSoundOptions {
|
|
|
15638
15560
|
volume?: number;
|
|
15639
15561
|
}
|
|
15640
15562
|
|
|
15641
|
-
/**
|
|
15642
|
-
* @rc
|
|
15643
|
-
*/
|
|
15644
15563
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15645
15564
|
export class BlockCustomComponentAlreadyRegisteredError extends Error {
|
|
15646
15565
|
private constructor();
|
|
15647
15566
|
}
|
|
15648
15567
|
|
|
15649
|
-
/**
|
|
15650
|
-
* @rc
|
|
15651
|
-
*/
|
|
15652
15568
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15653
15569
|
export class BlockCustomComponentReloadNewComponentError extends Error {
|
|
15654
15570
|
private constructor();
|
|
15655
15571
|
}
|
|
15656
15572
|
|
|
15657
|
-
/**
|
|
15658
|
-
* @rc
|
|
15659
|
-
*/
|
|
15660
15573
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15661
15574
|
export class BlockCustomComponentReloadNewEventError extends Error {
|
|
15662
15575
|
private constructor();
|
|
15663
15576
|
}
|
|
15664
15577
|
|
|
15665
|
-
/**
|
|
15666
|
-
* @rc
|
|
15667
|
-
*/
|
|
15668
15578
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15669
15579
|
export class BlockCustomComponentReloadVersionError extends Error {
|
|
15670
15580
|
private constructor();
|
|
@@ -15675,17 +15585,11 @@ export class CommandError extends Error {
|
|
|
15675
15585
|
private constructor();
|
|
15676
15586
|
}
|
|
15677
15587
|
|
|
15678
|
-
/**
|
|
15679
|
-
* @rc
|
|
15680
|
-
*/
|
|
15681
15588
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15682
15589
|
export class CustomComponentInvalidRegistryError extends Error {
|
|
15683
15590
|
private constructor();
|
|
15684
15591
|
}
|
|
15685
15592
|
|
|
15686
|
-
/**
|
|
15687
|
-
* @rc
|
|
15688
|
-
*/
|
|
15689
15593
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15690
15594
|
export class CustomComponentNameError extends Error {
|
|
15691
15595
|
private constructor();
|
|
@@ -15726,7 +15630,6 @@ export class InvalidStructureError extends Error {
|
|
|
15726
15630
|
}
|
|
15727
15631
|
|
|
15728
15632
|
/**
|
|
15729
|
-
* @rc
|
|
15730
15633
|
* Thrown when trying to register an item custom component with
|
|
15731
15634
|
* a name that has already been registered.
|
|
15732
15635
|
*/
|
|
@@ -15736,7 +15639,6 @@ export class ItemCustomComponentAlreadyRegisteredError extends Error {
|
|
|
15736
15639
|
}
|
|
15737
15640
|
|
|
15738
15641
|
/**
|
|
15739
|
-
* @rc
|
|
15740
15642
|
* Thrown after using the /reload command when trying to
|
|
15741
15643
|
* register a previously unregistered item custom component.
|
|
15742
15644
|
*/
|
|
@@ -15746,7 +15648,6 @@ export class ItemCustomComponentReloadNewComponentError extends Error {
|
|
|
15746
15648
|
}
|
|
15747
15649
|
|
|
15748
15650
|
/**
|
|
15749
|
-
* @rc
|
|
15750
15651
|
* Thrown after using the /reload command when trying to
|
|
15751
15652
|
* register a previously registered item custom component that
|
|
15752
15653
|
* handles a new event.
|
|
@@ -15757,7 +15658,6 @@ export class ItemCustomComponentReloadNewEventError extends Error {
|
|
|
15757
15658
|
}
|
|
15758
15659
|
|
|
15759
15660
|
/**
|
|
15760
|
-
* @rc
|
|
15761
15661
|
* Thrown after using the /reload command when trying to
|
|
15762
15662
|
* register a previously registered item custom component with
|
|
15763
15663
|
* a newer API version.
|