@minecraft/server 2.7.0-beta.1.26.10-preview.20 → 2.7.0-beta.1.26.10-preview.22
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 +8 -8
- package/index.d.ts +69 -23
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# `@minecraft/server`
|
|
2
|
-
|
|
3
|
-
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
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
|
-
See full documentation for this module here:
|
|
8
|
-
|
|
1
|
+
# `@minecraft/server`
|
|
2
|
+
|
|
3
|
+
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
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
|
+
See full documentation for this module here:
|
|
8
|
+
|
|
9
9
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
|
package/index.d.ts
CHANGED
|
@@ -3800,6 +3800,28 @@ export class AimAssistRegistry {
|
|
|
3800
3800
|
getPresets(): AimAssistPreset[];
|
|
3801
3801
|
}
|
|
3802
3802
|
|
|
3803
|
+
/**
|
|
3804
|
+
* @beta
|
|
3805
|
+
* Describes a single banner pattern, which includes a colour
|
|
3806
|
+
* and a pattern type.
|
|
3807
|
+
*/
|
|
3808
|
+
export class BannerPattern {
|
|
3809
|
+
private constructor();
|
|
3810
|
+
/**
|
|
3811
|
+
* @remarks
|
|
3812
|
+
* The color to apply to this banner pattern.
|
|
3813
|
+
*
|
|
3814
|
+
*/
|
|
3815
|
+
readonly color: string;
|
|
3816
|
+
/**
|
|
3817
|
+
* @remarks
|
|
3818
|
+
* The pattern type (e.g. gradient, chevron, cross, etc.) to
|
|
3819
|
+
* apply to the banner.
|
|
3820
|
+
*
|
|
3821
|
+
*/
|
|
3822
|
+
readonly pattern: string;
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3803
3825
|
/**
|
|
3804
3826
|
* Describes a type of biome.
|
|
3805
3827
|
*/
|
|
@@ -4859,7 +4881,7 @@ export class BlockComponentRedstoneUpdateEvent extends BlockEvent {
|
|
|
4859
4881
|
*/
|
|
4860
4882
|
readonly powerLevel: number;
|
|
4861
4883
|
/**
|
|
4862
|
-
* @
|
|
4884
|
+
* @rc
|
|
4863
4885
|
* @remarks
|
|
4864
4886
|
* The redstone signal strength from the last tick that was
|
|
4865
4887
|
* passing through this block. It is guaranteed to be >= the
|
|
@@ -7835,7 +7857,7 @@ export class Dimension {
|
|
|
7835
7857
|
*/
|
|
7836
7858
|
readonly localizationKey: string;
|
|
7837
7859
|
/**
|
|
7838
|
-
* @
|
|
7860
|
+
* @rc
|
|
7839
7861
|
* @remarks
|
|
7840
7862
|
* Checks if an area contains the specified biomes. If the area
|
|
7841
7863
|
* is partially inside world boundaries, only the area that is
|
|
@@ -7849,11 +7871,14 @@ export class Dimension {
|
|
|
7849
7871
|
* A list of biomes to include and exclude. A list of tags to
|
|
7850
7872
|
* include and exclude. Will return false if a biome is found
|
|
7851
7873
|
* in the area that is in the excluded list or contains any of
|
|
7852
|
-
* the excluded tags.
|
|
7853
|
-
*
|
|
7854
|
-
*
|
|
7855
|
-
*
|
|
7856
|
-
* list
|
|
7874
|
+
* the excluded tags.
|
|
7875
|
+
* @param isSuperset
|
|
7876
|
+
* Superset is used to determine the strictness of the filter.
|
|
7877
|
+
* If superset is set to true then the area must contain one or
|
|
7878
|
+
* more biomes in the included list or that contains all of the
|
|
7879
|
+
* included tags. If superset is set to false then the area
|
|
7880
|
+
* must contain only biomes in the included list and that
|
|
7881
|
+
* contain all of the included tags
|
|
7857
7882
|
* @returns
|
|
7858
7883
|
* Returns true if the biomes in the area match the filter
|
|
7859
7884
|
* settings passed in. Otherwise, returns false.
|
|
@@ -7873,7 +7898,7 @@ export class Dimension {
|
|
|
7873
7898
|
*
|
|
7874
7899
|
* {@link UnloadedChunksError}
|
|
7875
7900
|
*/
|
|
7876
|
-
containsBiomes(volume: BlockVolumeBase, biomeFilter: BiomeFilter): boolean;
|
|
7901
|
+
containsBiomes(volume: BlockVolumeBase, biomeFilter: BiomeFilter, isSuperset: boolean): boolean;
|
|
7877
7902
|
/**
|
|
7878
7903
|
* @remarks
|
|
7879
7904
|
* Searches the block volume for a block that satisfies the
|
|
@@ -14526,10 +14551,10 @@ export class ItemDurabilityComponent extends ItemComponent {
|
|
|
14526
14551
|
*/
|
|
14527
14552
|
readonly maxDurability: number;
|
|
14528
14553
|
/**
|
|
14529
|
-
* @
|
|
14554
|
+
* @rc
|
|
14530
14555
|
* @remarks
|
|
14531
14556
|
* Whether an item breaks or loses durability. Setting to true
|
|
14532
|
-
* temporarily removes item's
|
|
14557
|
+
* temporarily removes item's durability HUD, and freezes
|
|
14533
14558
|
* durability loss on item.
|
|
14534
14559
|
*
|
|
14535
14560
|
* This property can't be edited in restricted-execution mode.
|
|
@@ -16807,6 +16832,13 @@ export class Player extends Entity {
|
|
|
16807
16832
|
* @throws This property can throw when used.
|
|
16808
16833
|
*/
|
|
16809
16834
|
readonly onScreenDisplay: ScreenDisplay;
|
|
16835
|
+
/**
|
|
16836
|
+
* @beta
|
|
16837
|
+
* @throws This property can throw when used.
|
|
16838
|
+
*
|
|
16839
|
+
* {@link InvalidEntityError}
|
|
16840
|
+
*/
|
|
16841
|
+
readonly partyId?: string;
|
|
16810
16842
|
/**
|
|
16811
16843
|
* @throws This property can throw when used.
|
|
16812
16844
|
*
|
|
@@ -20093,6 +20125,21 @@ export class SetArmorTrimFunction extends LootItemFunction {
|
|
|
20093
20125
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
20094
20126
|
export class SetBannerDetailsFunction extends LootItemFunction {
|
|
20095
20127
|
private constructor();
|
|
20128
|
+
/**
|
|
20129
|
+
* @beta
|
|
20130
|
+
* @remarks
|
|
20131
|
+
* The base color for the dropped banner.
|
|
20132
|
+
*
|
|
20133
|
+
*/
|
|
20134
|
+
readonly baseColor: string;
|
|
20135
|
+
/**
|
|
20136
|
+
* @beta
|
|
20137
|
+
* @remarks
|
|
20138
|
+
* An array of {@link BannerPattern} objects used to decorate
|
|
20139
|
+
* the banner, including color and pattern type.
|
|
20140
|
+
*
|
|
20141
|
+
*/
|
|
20142
|
+
readonly patterns: BannerPattern[];
|
|
20096
20143
|
/**
|
|
20097
20144
|
* @remarks
|
|
20098
20145
|
* The type of banner to drop.
|
|
@@ -22793,14 +22840,13 @@ export interface AnimationOptions {
|
|
|
22793
22840
|
}
|
|
22794
22841
|
|
|
22795
22842
|
/**
|
|
22796
|
-
* @
|
|
22843
|
+
* @rc
|
|
22797
22844
|
*/
|
|
22798
22845
|
export interface BiomeFilter {
|
|
22799
22846
|
excludeBiomes?: string[];
|
|
22800
22847
|
excludeTags?: string[];
|
|
22801
22848
|
includeBiomes?: string[];
|
|
22802
22849
|
includeTags?: string[];
|
|
22803
|
-
superset: boolean;
|
|
22804
22850
|
}
|
|
22805
22851
|
|
|
22806
22852
|
/**
|
|
@@ -25518,7 +25564,7 @@ export class BookError extends Error {
|
|
|
25518
25564
|
* This property can be read in early-execution mode.
|
|
25519
25565
|
*
|
|
25520
25566
|
*/
|
|
25521
|
-
reason: BookErrorReason;
|
|
25567
|
+
readonly reason: BookErrorReason;
|
|
25522
25568
|
}
|
|
25523
25569
|
|
|
25524
25570
|
/**
|
|
@@ -25536,7 +25582,7 @@ export class BookPageContentError extends Error {
|
|
|
25536
25582
|
* This property can be read in early-execution mode.
|
|
25537
25583
|
*
|
|
25538
25584
|
*/
|
|
25539
|
-
pageIndex: number;
|
|
25585
|
+
readonly pageIndex: number;
|
|
25540
25586
|
/**
|
|
25541
25587
|
* @remarks
|
|
25542
25588
|
* The reason for the error.
|
|
@@ -25544,7 +25590,7 @@ export class BookPageContentError extends Error {
|
|
|
25544
25590
|
* This property can be read in early-execution mode.
|
|
25545
25591
|
*
|
|
25546
25592
|
*/
|
|
25547
|
-
reason: BookErrorReason;
|
|
25593
|
+
readonly reason: BookErrorReason;
|
|
25548
25594
|
}
|
|
25549
25595
|
|
|
25550
25596
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -25566,7 +25612,7 @@ export class ContainerRulesError extends Error {
|
|
|
25566
25612
|
* This property can be read in early-execution mode.
|
|
25567
25613
|
*
|
|
25568
25614
|
*/
|
|
25569
|
-
reason: ContainerRulesErrorReason;
|
|
25615
|
+
readonly reason: ContainerRulesErrorReason;
|
|
25570
25616
|
}
|
|
25571
25617
|
|
|
25572
25618
|
/**
|
|
@@ -25582,7 +25628,7 @@ export class CustomCommandError extends Error {
|
|
|
25582
25628
|
* This property can be read in early-execution mode.
|
|
25583
25629
|
*
|
|
25584
25630
|
*/
|
|
25585
|
-
reason: CustomCommandErrorReason;
|
|
25631
|
+
readonly reason: CustomCommandErrorReason;
|
|
25586
25632
|
}
|
|
25587
25633
|
|
|
25588
25634
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -25598,7 +25644,7 @@ export class CustomComponentNameError extends Error {
|
|
|
25598
25644
|
* This property can be read in early-execution mode.
|
|
25599
25645
|
*
|
|
25600
25646
|
*/
|
|
25601
|
-
reason: CustomComponentNameErrorReason;
|
|
25647
|
+
readonly reason: CustomComponentNameErrorReason;
|
|
25602
25648
|
}
|
|
25603
25649
|
|
|
25604
25650
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -25663,7 +25709,7 @@ export class InvalidEntityError extends Error {
|
|
|
25663
25709
|
* This property can be read in early-execution mode.
|
|
25664
25710
|
*
|
|
25665
25711
|
*/
|
|
25666
|
-
id: string;
|
|
25712
|
+
readonly id: string;
|
|
25667
25713
|
/**
|
|
25668
25714
|
* @remarks
|
|
25669
25715
|
* The type of the entity that is now invalid.
|
|
@@ -25671,7 +25717,7 @@ export class InvalidEntityError extends Error {
|
|
|
25671
25717
|
* This property can be read in early-execution mode.
|
|
25672
25718
|
*
|
|
25673
25719
|
*/
|
|
25674
|
-
type: string;
|
|
25720
|
+
readonly type: string;
|
|
25675
25721
|
}
|
|
25676
25722
|
|
|
25677
25723
|
/**
|
|
@@ -25688,7 +25734,7 @@ export class InvalidItemStackError extends Error {
|
|
|
25688
25734
|
* This property can be read in early-execution mode.
|
|
25689
25735
|
*
|
|
25690
25736
|
*/
|
|
25691
|
-
itemType: ItemType;
|
|
25737
|
+
readonly itemType: ItemType;
|
|
25692
25738
|
}
|
|
25693
25739
|
|
|
25694
25740
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -25783,7 +25829,7 @@ export class NamespaceNameError extends Error {
|
|
|
25783
25829
|
* This property can be read in early-execution mode.
|
|
25784
25830
|
*
|
|
25785
25831
|
*/
|
|
25786
|
-
reason: NamespaceNameErrorReason;
|
|
25832
|
+
readonly reason: NamespaceNameErrorReason;
|
|
25787
25833
|
}
|
|
25788
25834
|
|
|
25789
25835
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -25811,7 +25857,7 @@ export class TickingAreaError extends Error {
|
|
|
25811
25857
|
* This property can be read in early-execution mode.
|
|
25812
25858
|
*
|
|
25813
25859
|
*/
|
|
25814
|
-
reason: TickingAreaErrorReason;
|
|
25860
|
+
readonly reason: TickingAreaErrorReason;
|
|
25815
25861
|
}
|
|
25816
25862
|
|
|
25817
25863
|
/**
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.7.0-beta.1.26.10-preview.
|
|
4
|
-
"description": "",
|
|
5
|
-
"contributors": [
|
|
6
|
-
{
|
|
7
|
-
"name": "Jake Shirley",
|
|
8
|
-
"email": "jake@xbox.com"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"name": "Mike Ammerlaan",
|
|
12
|
-
"email": "mikeam@microsoft.com"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@minecraft/common": "^1.2.0",
|
|
17
|
-
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.10-preview.
|
|
18
|
-
},
|
|
19
|
-
"license": "MIT"
|
|
1
|
+
{
|
|
2
|
+
"name": "@minecraft/server",
|
|
3
|
+
"version": "2.7.0-beta.1.26.10-preview.22",
|
|
4
|
+
"description": "",
|
|
5
|
+
"contributors": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Jake Shirley",
|
|
8
|
+
"email": "jake@xbox.com"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Mike Ammerlaan",
|
|
12
|
+
"email": "mikeam@microsoft.com"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@minecraft/common": "^1.2.0",
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.10-preview.22"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT"
|
|
20
20
|
}
|