@minecraft/server 1.14.0-beta.1.21.20-preview.23 → 1.14.0-beta.1.21.20-stable
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +0 -103
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -193,9 +193,6 @@ export enum CompoundBlockVolumePositionRelativity {
|
|
|
193
193
|
Absolute = 1,
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
/**
|
|
197
|
-
* @rc
|
|
198
|
-
*/
|
|
199
196
|
export enum CustomComponentNameErrorReason {
|
|
200
197
|
NoNamespace = 1,
|
|
201
198
|
DisallowedNamespace = 2,
|
|
@@ -471,7 +468,6 @@ export enum EntityComponentTypes {
|
|
|
471
468
|
*/
|
|
472
469
|
AddRider = 'minecraft:addrider',
|
|
473
470
|
/**
|
|
474
|
-
* @rc
|
|
475
471
|
* @remarks
|
|
476
472
|
* Adds a timer for the entity to grow up. It can be
|
|
477
473
|
* accelerated by giving the entity the items it likes as
|
|
@@ -688,14 +684,12 @@ export enum EntityComponentTypes {
|
|
|
688
684
|
*/
|
|
689
685
|
Item = 'minecraft:item',
|
|
690
686
|
/**
|
|
691
|
-
* @rc
|
|
692
687
|
* @remarks
|
|
693
688
|
* Defines the base movement speed in lava of this entity.
|
|
694
689
|
*
|
|
695
690
|
*/
|
|
696
691
|
LavaMovement = 'minecraft:lava_movement',
|
|
697
692
|
/**
|
|
698
|
-
* @rc
|
|
699
693
|
* @remarks
|
|
700
694
|
* Allows this entity to be leashed and defines the conditions
|
|
701
695
|
* and events for this entity when is leashed.
|
|
@@ -711,7 +705,6 @@ export enum EntityComponentTypes {
|
|
|
711
705
|
*/
|
|
712
706
|
MarkVariant = 'minecraft:mark_variant',
|
|
713
707
|
/**
|
|
714
|
-
* @rc
|
|
715
708
|
* @remarks
|
|
716
709
|
* Defines the general movement speed of this entity.
|
|
717
710
|
*
|
|
@@ -744,7 +737,6 @@ export enum EntityComponentTypes {
|
|
|
744
737
|
*/
|
|
745
738
|
MovementGeneric = 'minecraft:movement.generic',
|
|
746
739
|
/**
|
|
747
|
-
* @rc
|
|
748
740
|
* @remarks
|
|
749
741
|
* When added, this movement control allows the mob to glide.
|
|
750
742
|
*
|
|
@@ -771,7 +763,6 @@ export enum EntityComponentTypes {
|
|
|
771
763
|
*/
|
|
772
764
|
MovementSkip = 'minecraft:movement.skip',
|
|
773
765
|
/**
|
|
774
|
-
* @rc
|
|
775
766
|
* @remarks
|
|
776
767
|
* When added, this move control causes the mob to sway side to
|
|
777
768
|
* side giving the impression it is swimming.
|
|
@@ -886,7 +877,6 @@ export enum EntityComponentTypes {
|
|
|
886
877
|
*/
|
|
887
878
|
Strength = 'minecraft:strength',
|
|
888
879
|
/**
|
|
889
|
-
* @rc
|
|
890
880
|
* @remarks
|
|
891
881
|
* Defines the rules for an entity to be tamed by the player.
|
|
892
882
|
*
|
|
@@ -906,7 +896,6 @@ export enum EntityComponentTypes {
|
|
|
906
896
|
*/
|
|
907
897
|
TypeFamily = 'minecraft:type_family',
|
|
908
898
|
/**
|
|
909
|
-
* @rc
|
|
910
899
|
* @remarks
|
|
911
900
|
* Defines the general movement speed underwater of this
|
|
912
901
|
* entity.
|
|
@@ -1547,7 +1536,6 @@ export enum GameRule {
|
|
|
1547
1536
|
*/
|
|
1548
1537
|
ShowCoordinates = 'showCoordinates',
|
|
1549
1538
|
/**
|
|
1550
|
-
* @rc
|
|
1551
1539
|
* @remarks
|
|
1552
1540
|
* Controls whether the days a player has played is displayed.
|
|
1553
1541
|
*
|
|
@@ -1635,7 +1623,6 @@ export enum HudVisibility {
|
|
|
1635
1623
|
}
|
|
1636
1624
|
|
|
1637
1625
|
/**
|
|
1638
|
-
* @rc
|
|
1639
1626
|
* Input permission categories. Used by
|
|
1640
1627
|
* @minecraft/server.PlayerInputPermissionCategoryChangeAfterEvent
|
|
1641
1628
|
* to specify which category was changed.
|
|
@@ -2897,7 +2884,6 @@ export class BlockComponent extends Component {
|
|
|
2897
2884
|
}
|
|
2898
2885
|
|
|
2899
2886
|
/**
|
|
2900
|
-
* @rc
|
|
2901
2887
|
* Contains information regarding an entity falling onto a
|
|
2902
2888
|
* specific block.
|
|
2903
2889
|
*/
|
|
@@ -2919,7 +2905,6 @@ export class BlockComponentEntityFallOnEvent extends BlockEvent {
|
|
|
2919
2905
|
}
|
|
2920
2906
|
|
|
2921
2907
|
/**
|
|
2922
|
-
* @rc
|
|
2923
2908
|
* Contains information regarding a specific block that was
|
|
2924
2909
|
* placed.
|
|
2925
2910
|
*/
|
|
@@ -2935,7 +2920,6 @@ export class BlockComponentOnPlaceEvent extends BlockEvent {
|
|
|
2935
2920
|
}
|
|
2936
2921
|
|
|
2937
2922
|
/**
|
|
2938
|
-
* @rc
|
|
2939
2923
|
* Contains information regarding a specific block being
|
|
2940
2924
|
* destroyed.
|
|
2941
2925
|
*/
|
|
@@ -2958,7 +2942,6 @@ export class BlockComponentPlayerDestroyEvent extends BlockEvent {
|
|
|
2958
2942
|
}
|
|
2959
2943
|
|
|
2960
2944
|
/**
|
|
2961
|
-
* @rc
|
|
2962
2945
|
* Contains information regarding a specific block being
|
|
2963
2946
|
* interacted with.
|
|
2964
2947
|
*/
|
|
@@ -2987,7 +2970,6 @@ export class BlockComponentPlayerInteractEvent extends BlockEvent {
|
|
|
2987
2970
|
}
|
|
2988
2971
|
|
|
2989
2972
|
/**
|
|
2990
|
-
* @rc
|
|
2991
2973
|
* Contains information regarding an event before a player
|
|
2992
2974
|
* places a block.
|
|
2993
2975
|
*/
|
|
@@ -3023,7 +3005,6 @@ export class BlockComponentPlayerPlaceBeforeEvent extends BlockEvent {
|
|
|
3023
3005
|
}
|
|
3024
3006
|
|
|
3025
3007
|
/**
|
|
3026
|
-
* @rc
|
|
3027
3008
|
* Contains information regarding a specific block randomly
|
|
3028
3009
|
* ticking.
|
|
3029
3010
|
*/
|
|
@@ -3032,9 +3013,6 @@ export class BlockComponentRandomTickEvent extends BlockEvent {
|
|
|
3032
3013
|
private constructor();
|
|
3033
3014
|
}
|
|
3034
3015
|
|
|
3035
|
-
/**
|
|
3036
|
-
* @rc
|
|
3037
|
-
*/
|
|
3038
3016
|
export class BlockComponentRegistry {
|
|
3039
3017
|
private constructor();
|
|
3040
3018
|
/**
|
|
@@ -3058,7 +3036,6 @@ export class BlockComponentRegistry {
|
|
|
3058
3036
|
}
|
|
3059
3037
|
|
|
3060
3038
|
/**
|
|
3061
|
-
* @rc
|
|
3062
3039
|
* Contains information regarding an entity stepping off a
|
|
3063
3040
|
* specific block.
|
|
3064
3041
|
*/
|
|
@@ -3074,7 +3051,6 @@ export class BlockComponentStepOffEvent extends BlockEvent {
|
|
|
3074
3051
|
}
|
|
3075
3052
|
|
|
3076
3053
|
/**
|
|
3077
|
-
* @rc
|
|
3078
3054
|
* Contains information regarding an entity stepping onto a
|
|
3079
3055
|
* specific block.
|
|
3080
3056
|
*/
|
|
@@ -3090,7 +3066,6 @@ export class BlockComponentStepOnEvent extends BlockEvent {
|
|
|
3090
3066
|
}
|
|
3091
3067
|
|
|
3092
3068
|
/**
|
|
3093
|
-
* @rc
|
|
3094
3069
|
* Contains information regarding a specific block ticking.
|
|
3095
3070
|
*/
|
|
3096
3071
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -3120,7 +3095,6 @@ export class BlockEvent {
|
|
|
3120
3095
|
}
|
|
3121
3096
|
|
|
3122
3097
|
/**
|
|
3123
|
-
* @rc
|
|
3124
3098
|
* Contains information regarding an explosion that has
|
|
3125
3099
|
* occurred for a specific block.
|
|
3126
3100
|
*/
|
|
@@ -3142,7 +3116,6 @@ export class BlockExplodeAfterEvent extends BlockEvent {
|
|
|
3142
3116
|
}
|
|
3143
3117
|
|
|
3144
3118
|
/**
|
|
3145
|
-
* @rc
|
|
3146
3119
|
* Manages callbacks that are connected to when an explosion
|
|
3147
3120
|
* occurs, as it impacts individual blocks.
|
|
3148
3121
|
*/
|
|
@@ -3351,14 +3324,12 @@ export class BlockPermutation {
|
|
|
3351
3324
|
*/
|
|
3352
3325
|
getState(stateName: string): boolean | number | string | undefined;
|
|
3353
3326
|
/**
|
|
3354
|
-
* @rc
|
|
3355
3327
|
* @remarks
|
|
3356
3328
|
* Creates a copy of the permutation.
|
|
3357
3329
|
*
|
|
3358
3330
|
*/
|
|
3359
3331
|
getTags(): string[];
|
|
3360
3332
|
/**
|
|
3361
|
-
* @rc
|
|
3362
3333
|
* @remarks
|
|
3363
3334
|
* Checks to see if the permutation has a specific tag.
|
|
3364
3335
|
*
|
|
@@ -5750,7 +5721,6 @@ export class Dimension {
|
|
|
5750
5721
|
*/
|
|
5751
5722
|
getPlayers(options?: EntityQueryOptions): Player[];
|
|
5752
5723
|
/**
|
|
5753
|
-
* @rc
|
|
5754
5724
|
* @remarks
|
|
5755
5725
|
* This function can't be called in read-only mode.
|
|
5756
5726
|
*
|
|
@@ -5867,7 +5837,6 @@ export class Dimension {
|
|
|
5867
5837
|
*/
|
|
5868
5838
|
runCommandAsync(commandString: string): Promise<CommandResult>;
|
|
5869
5839
|
/**
|
|
5870
|
-
* @rc
|
|
5871
5840
|
* @remarks
|
|
5872
5841
|
* Sets a block in the world using a BlockPermutation.
|
|
5873
5842
|
* BlockPermutations are blocks with a particular state.
|
|
@@ -5888,7 +5857,6 @@ export class Dimension {
|
|
|
5888
5857
|
*/
|
|
5889
5858
|
setBlockPermutation(location: Vector3, permutation: BlockPermutation): void;
|
|
5890
5859
|
/**
|
|
5891
|
-
* @rc
|
|
5892
5860
|
* @remarks
|
|
5893
5861
|
* Sets a block at a given location within the dimension.
|
|
5894
5862
|
*
|
|
@@ -6332,7 +6300,6 @@ export class EnchantmentTypes {
|
|
|
6332
6300
|
*/
|
|
6333
6301
|
static get(enchantmentId: string): EnchantmentType | undefined;
|
|
6334
6302
|
/**
|
|
6335
|
-
* @rc
|
|
6336
6303
|
* @remarks
|
|
6337
6304
|
* Returns a collection of all available enchantment types.
|
|
6338
6305
|
*
|
|
@@ -7309,7 +7276,6 @@ export class EntityAddRiderComponent extends EntityComponent {
|
|
|
7309
7276
|
}
|
|
7310
7277
|
|
|
7311
7278
|
/**
|
|
7312
|
-
* @rc
|
|
7313
7279
|
* Adds a timer for the entity to grow up. It can be
|
|
7314
7280
|
* accelerated by giving the entity the items it likes as
|
|
7315
7281
|
* defined by feedItems.
|
|
@@ -7639,7 +7605,6 @@ export class EntityComponent extends Component {
|
|
|
7639
7605
|
}
|
|
7640
7606
|
|
|
7641
7607
|
/**
|
|
7642
|
-
* @rc
|
|
7643
7608
|
* As part of the Ageable component, represents a set of items
|
|
7644
7609
|
* that can be fed to an entity and the rate at which that
|
|
7645
7610
|
* causes them to grow.
|
|
@@ -8012,7 +7977,6 @@ export class EntityHitBlockAfterEvent {
|
|
|
8012
7977
|
*/
|
|
8013
7978
|
readonly hitBlock: Block;
|
|
8014
7979
|
/**
|
|
8015
|
-
* @rc
|
|
8016
7980
|
* @remarks
|
|
8017
7981
|
* Block permutation that was hit by the attack.
|
|
8018
7982
|
*
|
|
@@ -8413,7 +8377,6 @@ export class EntityIterator implements Iterable<Entity> {
|
|
|
8413
8377
|
}
|
|
8414
8378
|
|
|
8415
8379
|
/**
|
|
8416
|
-
* @rc
|
|
8417
8380
|
* Defines the base movement speed in lava of this entity.
|
|
8418
8381
|
*/
|
|
8419
8382
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -8423,7 +8386,6 @@ export class EntityLavaMovementComponent extends EntityAttributeComponent {
|
|
|
8423
8386
|
}
|
|
8424
8387
|
|
|
8425
8388
|
/**
|
|
8426
|
-
* @rc
|
|
8427
8389
|
* Allows the entity to be leashed. Defines the conditions and
|
|
8428
8390
|
* events for when an entity is leashed.
|
|
8429
8391
|
*/
|
|
@@ -8594,7 +8556,6 @@ export class EntityMovementBasicComponent extends EntityBaseMovementComponent {
|
|
|
8594
8556
|
}
|
|
8595
8557
|
|
|
8596
8558
|
/**
|
|
8597
|
-
* @rc
|
|
8598
8559
|
* Defines the general movement speed of this entity.
|
|
8599
8560
|
*/
|
|
8600
8561
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -8623,7 +8584,6 @@ export class EntityMovementGenericComponent extends EntityBaseMovementComponent
|
|
|
8623
8584
|
}
|
|
8624
8585
|
|
|
8625
8586
|
/**
|
|
8626
|
-
* @rc
|
|
8627
8587
|
* When added, this movement control allows the mob to glide.
|
|
8628
8588
|
*/
|
|
8629
8589
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -8676,7 +8636,6 @@ export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
|
|
|
8676
8636
|
}
|
|
8677
8637
|
|
|
8678
8638
|
/**
|
|
8679
|
-
* @rc
|
|
8680
8639
|
* When added, this move control causes the mob to sway side to
|
|
8681
8640
|
* side giving the impression it is swimming.
|
|
8682
8641
|
*/
|
|
@@ -9562,7 +9521,6 @@ export class EntityStrengthComponent extends EntityComponent {
|
|
|
9562
9521
|
}
|
|
9563
9522
|
|
|
9564
9523
|
/**
|
|
9565
|
-
* @rc
|
|
9566
9524
|
* Defines the rules for an entity to be tamed by the player.
|
|
9567
9525
|
*/
|
|
9568
9526
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -9630,7 +9588,6 @@ export class EntityTameableComponent extends EntityComponent {
|
|
|
9630
9588
|
export class EntityTameMountComponent extends EntityComponent {
|
|
9631
9589
|
private constructor();
|
|
9632
9590
|
/**
|
|
9633
|
-
* @rc
|
|
9634
9591
|
* @remarks
|
|
9635
9592
|
* Returns true if the entity is tamed.
|
|
9636
9593
|
*
|
|
@@ -9638,7 +9595,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
9638
9595
|
*/
|
|
9639
9596
|
readonly isTamed: boolean;
|
|
9640
9597
|
/**
|
|
9641
|
-
* @rc
|
|
9642
9598
|
* @remarks
|
|
9643
9599
|
* Returns true if the entity is tamed by a player.
|
|
9644
9600
|
*
|
|
@@ -9646,7 +9602,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
9646
9602
|
*/
|
|
9647
9603
|
readonly isTamedToPlayer: boolean;
|
|
9648
9604
|
/**
|
|
9649
|
-
* @rc
|
|
9650
9605
|
* @remarks
|
|
9651
9606
|
* Returns the player that has tamed the entity, or 'undefined'
|
|
9652
9607
|
* if entity is not tamed by a player.
|
|
@@ -9655,7 +9610,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
9655
9610
|
*/
|
|
9656
9611
|
readonly tamedToPlayer?: Player;
|
|
9657
9612
|
/**
|
|
9658
|
-
* @rc
|
|
9659
9613
|
* @remarks
|
|
9660
9614
|
* Returns the id of player that has tamed the entity, or
|
|
9661
9615
|
* 'undefined' if entity is not tamed.
|
|
@@ -9676,7 +9630,6 @@ export class EntityTameMountComponent extends EntityComponent {
|
|
|
9676
9630
|
*/
|
|
9677
9631
|
tame(showParticles: boolean): void;
|
|
9678
9632
|
/**
|
|
9679
|
-
* @rc
|
|
9680
9633
|
* @remarks
|
|
9681
9634
|
* Sets this rideable entity as tamed by the given player.
|
|
9682
9635
|
*
|
|
@@ -9762,7 +9715,6 @@ export class EntityTypes {
|
|
|
9762
9715
|
}
|
|
9763
9716
|
|
|
9764
9717
|
/**
|
|
9765
|
-
* @rc
|
|
9766
9718
|
* Defines the general movement speed underwater of this
|
|
9767
9719
|
* entity.
|
|
9768
9720
|
*/
|
|
@@ -10234,7 +10186,6 @@ export class GameRules {
|
|
|
10234
10186
|
*/
|
|
10235
10187
|
showCoordinates: boolean;
|
|
10236
10188
|
/**
|
|
10237
|
-
* @rc
|
|
10238
10189
|
* @remarks
|
|
10239
10190
|
* This property can't be edited in read-only mode.
|
|
10240
10191
|
*
|
|
@@ -10452,7 +10403,6 @@ export class ItemCompleteUseAfterEventSignal {
|
|
|
10452
10403
|
}
|
|
10453
10404
|
|
|
10454
10405
|
/**
|
|
10455
|
-
* @rc
|
|
10456
10406
|
* Contains information related to a chargeable item completing
|
|
10457
10407
|
* being charged.
|
|
10458
10408
|
*/
|
|
@@ -10481,7 +10431,6 @@ export class ItemComponent extends Component {
|
|
|
10481
10431
|
}
|
|
10482
10432
|
|
|
10483
10433
|
/**
|
|
10484
|
-
* @rc
|
|
10485
10434
|
* Contains information regarding an item before it is damaged
|
|
10486
10435
|
* from hitting an entity.
|
|
10487
10436
|
*/
|
|
@@ -10515,7 +10464,6 @@ export class ItemComponentBeforeDurabilityDamageEvent {
|
|
|
10515
10464
|
}
|
|
10516
10465
|
|
|
10517
10466
|
/**
|
|
10518
|
-
* @rc
|
|
10519
10467
|
* Contains information related to a chargeable item completing
|
|
10520
10468
|
* being charged via a component.
|
|
10521
10469
|
*/
|
|
@@ -10525,7 +10473,6 @@ export class ItemComponentCompleteUseEvent extends ItemCompleteUseEvent {
|
|
|
10525
10473
|
}
|
|
10526
10474
|
|
|
10527
10475
|
/**
|
|
10528
|
-
* @rc
|
|
10529
10476
|
* Contains information related to a food item being consumed.
|
|
10530
10477
|
*/
|
|
10531
10478
|
export class ItemComponentConsumeEvent {
|
|
@@ -10545,7 +10492,6 @@ export class ItemComponentConsumeEvent {
|
|
|
10545
10492
|
}
|
|
10546
10493
|
|
|
10547
10494
|
/**
|
|
10548
|
-
* @rc
|
|
10549
10495
|
* Contains information regarding when an item is used to hit
|
|
10550
10496
|
* an entity.
|
|
10551
10497
|
*/
|
|
@@ -10578,7 +10524,6 @@ export class ItemComponentHitEntityEvent {
|
|
|
10578
10524
|
}
|
|
10579
10525
|
|
|
10580
10526
|
/**
|
|
10581
|
-
* @rc
|
|
10582
10527
|
* Contains information regarding the mining of a block using
|
|
10583
10528
|
* an item.
|
|
10584
10529
|
*/
|
|
@@ -10611,7 +10556,6 @@ export class ItemComponentMineBlockEvent {
|
|
|
10611
10556
|
}
|
|
10612
10557
|
|
|
10613
10558
|
/**
|
|
10614
|
-
* @rc
|
|
10615
10559
|
* Provides the functionality for registering custom components
|
|
10616
10560
|
* for items.
|
|
10617
10561
|
*/
|
|
@@ -10650,7 +10594,6 @@ export class ItemComponentRegistry {
|
|
|
10650
10594
|
}
|
|
10651
10595
|
|
|
10652
10596
|
/**
|
|
10653
|
-
* @rc
|
|
10654
10597
|
* Contains information regarding the use of an item.
|
|
10655
10598
|
*/
|
|
10656
10599
|
export class ItemComponentUseEvent {
|
|
@@ -10670,7 +10613,6 @@ export class ItemComponentUseEvent {
|
|
|
10670
10613
|
}
|
|
10671
10614
|
|
|
10672
10615
|
/**
|
|
10673
|
-
* @rc
|
|
10674
10616
|
* Contains information regarding the use of an item on a block
|
|
10675
10617
|
* via a component.
|
|
10676
10618
|
*/
|
|
@@ -11814,7 +11756,6 @@ export class ItemType {
|
|
|
11814
11756
|
}
|
|
11815
11757
|
|
|
11816
11758
|
/**
|
|
11817
|
-
* @rc
|
|
11818
11759
|
* Returns the set of item types registered within Minecraft.
|
|
11819
11760
|
*/
|
|
11820
11761
|
export class ItemTypes {
|
|
@@ -12023,7 +11964,6 @@ export class ItemUseOnBeforeEventSignal {
|
|
|
12023
11964
|
}
|
|
12024
11965
|
|
|
12025
11966
|
/**
|
|
12026
|
-
* @rc
|
|
12027
11967
|
* Contains information regarding the use of an item on a
|
|
12028
11968
|
* block.
|
|
12029
11969
|
*/
|
|
@@ -12358,7 +12298,6 @@ export class Player extends Entity {
|
|
|
12358
12298
|
*/
|
|
12359
12299
|
readonly camera: Camera;
|
|
12360
12300
|
/**
|
|
12361
|
-
* @rc
|
|
12362
12301
|
* @remarks
|
|
12363
12302
|
* Input permissions of the player.
|
|
12364
12303
|
*
|
|
@@ -13080,7 +13019,6 @@ export class PlayerGameModeChangeBeforeEventSignal {
|
|
|
13080
13019
|
}
|
|
13081
13020
|
|
|
13082
13021
|
/**
|
|
13083
|
-
* @rc
|
|
13084
13022
|
* Contains information regarding an event after a players
|
|
13085
13023
|
* input permissions change.
|
|
13086
13024
|
*/
|
|
@@ -13107,7 +13045,6 @@ export class PlayerInputPermissionCategoryChangeAfterEvent {
|
|
|
13107
13045
|
}
|
|
13108
13046
|
|
|
13109
13047
|
/**
|
|
13110
|
-
* @rc
|
|
13111
13048
|
* Manages callbacks that are connected to after a players
|
|
13112
13049
|
* input permissions change.
|
|
13113
13050
|
*/
|
|
@@ -13136,7 +13073,6 @@ export class PlayerInputPermissionCategoryChangeAfterEventSignal {
|
|
|
13136
13073
|
}
|
|
13137
13074
|
|
|
13138
13075
|
/**
|
|
13139
|
-
* @rc
|
|
13140
13076
|
* Contains properties for enabling/disabling player input
|
|
13141
13077
|
* permissions.
|
|
13142
13078
|
*/
|
|
@@ -14872,7 +14808,6 @@ export class System {
|
|
|
14872
14808
|
*/
|
|
14873
14809
|
readonly currentTick: number;
|
|
14874
14810
|
/**
|
|
14875
|
-
* @rc
|
|
14876
14811
|
* @remarks
|
|
14877
14812
|
* Cancels the execution of a job queued via {@link
|
|
14878
14813
|
* System.runJob}.
|
|
@@ -14950,7 +14885,6 @@ export class System {
|
|
|
14950
14885
|
*/
|
|
14951
14886
|
runInterval(callback: () => void, tickInterval?: number): number;
|
|
14952
14887
|
/**
|
|
14953
|
-
* @rc
|
|
14954
14888
|
* @remarks
|
|
14955
14889
|
* Queues a generator to run until completion. The generator
|
|
14956
14890
|
* will be given a time slice each tick, and will be run until
|
|
@@ -15008,7 +14942,6 @@ export class System {
|
|
|
15008
14942
|
*/
|
|
15009
14943
|
runTimeout(callback: () => void, tickDelay?: number): number;
|
|
15010
14944
|
/**
|
|
15011
|
-
* @rc
|
|
15012
14945
|
* @throws This function can throw errors.
|
|
15013
14946
|
*
|
|
15014
14947
|
* {@link minecraftcommon.EngineError}
|
|
@@ -15114,7 +15047,6 @@ export class TargetBlockHitAfterEventSignal {
|
|
|
15114
15047
|
}
|
|
15115
15048
|
|
|
15116
15049
|
/**
|
|
15117
|
-
* @rc
|
|
15118
15050
|
* Represents a trigger for firing an event.
|
|
15119
15051
|
*/
|
|
15120
15052
|
export class Trigger {
|
|
@@ -15939,7 +15871,6 @@ export class World {
|
|
|
15939
15871
|
export class WorldAfterEvents {
|
|
15940
15872
|
private constructor();
|
|
15941
15873
|
/**
|
|
15942
|
-
* @rc
|
|
15943
15874
|
* @remarks
|
|
15944
15875
|
* This event fires for each BlockLocation destroyed by an
|
|
15945
15876
|
* explosion. It is fired after the blocks have already been
|
|
@@ -16135,7 +16066,6 @@ export class WorldAfterEvents {
|
|
|
16135
16066
|
readonly playerEmote: PlayerEmoteAfterEventSignal;
|
|
16136
16067
|
readonly playerGameModeChange: PlayerGameModeChangeAfterEventSignal;
|
|
16137
16068
|
/**
|
|
16138
|
-
* @rc
|
|
16139
16069
|
* @remarks
|
|
16140
16070
|
* This event fires when a players input permissions change.
|
|
16141
16071
|
*
|
|
@@ -16324,7 +16254,6 @@ export class WorldBeforeEvents {
|
|
|
16324
16254
|
readonly playerPlaceBlock: PlayerPlaceBlockBeforeEventSignal;
|
|
16325
16255
|
readonly weatherChange: WeatherChangeBeforeEventSignal;
|
|
16326
16256
|
/**
|
|
16327
|
-
* @rc
|
|
16328
16257
|
* @remarks
|
|
16329
16258
|
* This event fires immediately when the script environment is
|
|
16330
16259
|
* initialized on a World. Not all script functionality may be
|
|
@@ -16371,7 +16300,6 @@ export class WorldInitializeAfterEventSignal {
|
|
|
16371
16300
|
}
|
|
16372
16301
|
|
|
16373
16302
|
/**
|
|
16374
|
-
* @rc
|
|
16375
16303
|
* Contains information and methods that can be used at the
|
|
16376
16304
|
* initialization of the scripting environment for a World.
|
|
16377
16305
|
* Also, use the supplied blockRegistry object to register
|
|
@@ -16391,7 +16319,6 @@ export class WorldInitializeBeforeEvent {
|
|
|
16391
16319
|
}
|
|
16392
16320
|
|
|
16393
16321
|
/**
|
|
16394
|
-
* @rc
|
|
16395
16322
|
* Manages callbacks that are run at the initialization of the
|
|
16396
16323
|
* scripting environment for a World. Do note that this event
|
|
16397
16324
|
* may run multiple times within a session in the case that the
|
|
@@ -16434,7 +16361,6 @@ export interface BiomeSearchOptions {
|
|
|
16434
16361
|
}
|
|
16435
16362
|
|
|
16436
16363
|
/**
|
|
16437
|
-
* @rc
|
|
16438
16364
|
* Contains a set of events that will be raised for a block.
|
|
16439
16365
|
* This object must be bound using the BlockRegistry.
|
|
16440
16366
|
*/
|
|
@@ -17470,7 +17396,6 @@ export interface EntityRaycastHit {
|
|
|
17470
17396
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17471
17397
|
export interface EntityRaycastOptions extends EntityFilter {
|
|
17472
17398
|
/**
|
|
17473
|
-
* @rc
|
|
17474
17399
|
* @remarks
|
|
17475
17400
|
* If true, blocks will not be considered as blocks that 'stop'
|
|
17476
17401
|
* the raycast.
|
|
@@ -17478,7 +17403,6 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
17478
17403
|
*/
|
|
17479
17404
|
ignoreBlockCollision?: boolean;
|
|
17480
17405
|
/**
|
|
17481
|
-
* @rc
|
|
17482
17406
|
* @remarks
|
|
17483
17407
|
* If true, liquid blocks will be considered as blocks that
|
|
17484
17408
|
* 'stop' the raycast.
|
|
@@ -17486,7 +17410,6 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
17486
17410
|
*/
|
|
17487
17411
|
includeLiquidBlocks?: boolean;
|
|
17488
17412
|
/**
|
|
17489
|
-
* @rc
|
|
17490
17413
|
* @remarks
|
|
17491
17414
|
* If true, passable blocks like vines and flowers will be
|
|
17492
17415
|
* considered as blocks that 'stop' the raycast.
|
|
@@ -17590,7 +17513,6 @@ export interface GreaterThanOrEqualsComparison {
|
|
|
17590
17513
|
}
|
|
17591
17514
|
|
|
17592
17515
|
/**
|
|
17593
|
-
* @rc
|
|
17594
17516
|
* Contains a set of events that will be raised for an item.
|
|
17595
17517
|
* This object must be bound using the ItemComponentRegistry.
|
|
17596
17518
|
*/
|
|
@@ -18297,9 +18219,6 @@ export interface Vector3 {
|
|
|
18297
18219
|
z: number;
|
|
18298
18220
|
}
|
|
18299
18221
|
|
|
18300
|
-
/**
|
|
18301
|
-
* @rc
|
|
18302
|
-
*/
|
|
18303
18222
|
export interface VectorXZ {
|
|
18304
18223
|
x: number;
|
|
18305
18224
|
z: number;
|
|
@@ -18323,33 +18242,21 @@ export interface WorldSoundOptions {
|
|
|
18323
18242
|
volume?: number;
|
|
18324
18243
|
}
|
|
18325
18244
|
|
|
18326
|
-
/**
|
|
18327
|
-
* @rc
|
|
18328
|
-
*/
|
|
18329
18245
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
18330
18246
|
export class BlockCustomComponentAlreadyRegisteredError extends Error {
|
|
18331
18247
|
private constructor();
|
|
18332
18248
|
}
|
|
18333
18249
|
|
|
18334
|
-
/**
|
|
18335
|
-
* @rc
|
|
18336
|
-
*/
|
|
18337
18250
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
18338
18251
|
export class BlockCustomComponentReloadNewComponentError extends Error {
|
|
18339
18252
|
private constructor();
|
|
18340
18253
|
}
|
|
18341
18254
|
|
|
18342
|
-
/**
|
|
18343
|
-
* @rc
|
|
18344
|
-
*/
|
|
18345
18255
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
18346
18256
|
export class BlockCustomComponentReloadNewEventError extends Error {
|
|
18347
18257
|
private constructor();
|
|
18348
18258
|
}
|
|
18349
18259
|
|
|
18350
|
-
/**
|
|
18351
|
-
* @rc
|
|
18352
|
-
*/
|
|
18353
18260
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
18354
18261
|
export class BlockCustomComponentReloadVersionError extends Error {
|
|
18355
18262
|
private constructor();
|
|
@@ -18360,17 +18267,11 @@ export class CommandError extends Error {
|
|
|
18360
18267
|
private constructor();
|
|
18361
18268
|
}
|
|
18362
18269
|
|
|
18363
|
-
/**
|
|
18364
|
-
* @rc
|
|
18365
|
-
*/
|
|
18366
18270
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
18367
18271
|
export class CustomComponentInvalidRegistryError extends Error {
|
|
18368
18272
|
private constructor();
|
|
18369
18273
|
}
|
|
18370
18274
|
|
|
18371
|
-
/**
|
|
18372
|
-
* @rc
|
|
18373
|
-
*/
|
|
18374
18275
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
18375
18276
|
export class CustomComponentNameError extends Error {
|
|
18376
18277
|
private constructor();
|
|
@@ -18411,7 +18312,6 @@ export class InvalidStructureError extends Error {
|
|
|
18411
18312
|
}
|
|
18412
18313
|
|
|
18413
18314
|
/**
|
|
18414
|
-
* @rc
|
|
18415
18315
|
* Thrown when trying to register an item custom component with
|
|
18416
18316
|
* a name that has already been registered.
|
|
18417
18317
|
*/
|
|
@@ -18421,7 +18321,6 @@ export class ItemCustomComponentAlreadyRegisteredError extends Error {
|
|
|
18421
18321
|
}
|
|
18422
18322
|
|
|
18423
18323
|
/**
|
|
18424
|
-
* @rc
|
|
18425
18324
|
* Thrown after using the /reload command when trying to
|
|
18426
18325
|
* register a previously unregistered item custom component.
|
|
18427
18326
|
*/
|
|
@@ -18431,7 +18330,6 @@ export class ItemCustomComponentReloadNewComponentError extends Error {
|
|
|
18431
18330
|
}
|
|
18432
18331
|
|
|
18433
18332
|
/**
|
|
18434
|
-
* @rc
|
|
18435
18333
|
* Thrown after using the /reload command when trying to
|
|
18436
18334
|
* register a previously registered item custom component that
|
|
18437
18335
|
* handles a new event.
|
|
@@ -18442,7 +18340,6 @@ export class ItemCustomComponentReloadNewEventError extends Error {
|
|
|
18442
18340
|
}
|
|
18443
18341
|
|
|
18444
18342
|
/**
|
|
18445
|
-
* @rc
|
|
18446
18343
|
* Thrown after using the /reload command when trying to
|
|
18447
18344
|
* register a previously registered item custom component with
|
|
18448
18345
|
* a newer API version.
|