@minecraft/server 2.11.0-rc.1.26.70-preview.20 → 2.11.0-rc.1.26.70-preview.21
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 +37 -8
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -2214,7 +2214,7 @@ export enum InputPermissionCategory {
|
|
|
2214
2214
|
* function ItemStack.getComponent.
|
|
2215
2215
|
*/
|
|
2216
2216
|
export enum ItemComponentTypes {
|
|
2217
|
-
BlockDynamicProperties = 'minecraft:
|
|
2217
|
+
BlockDynamicProperties = 'minecraft:block_dynamic_properties',
|
|
2218
2218
|
/**
|
|
2219
2219
|
* @remarks
|
|
2220
2220
|
* The minecraft:book component.
|
|
@@ -3254,7 +3254,7 @@ export type ItemComponentReturnType<T extends string> = T extends keyof ItemComp
|
|
|
3254
3254
|
: ItemCustomComponentInstance;
|
|
3255
3255
|
|
|
3256
3256
|
export type ItemComponentTypeMap = {
|
|
3257
|
-
|
|
3257
|
+
block_dynamic_properties: ItemBlockDynamicPropertiesComponent;
|
|
3258
3258
|
book: ItemBookComponent;
|
|
3259
3259
|
compostable: ItemCompostableComponent;
|
|
3260
3260
|
cooldown: ItemCooldownComponent;
|
|
@@ -3263,7 +3263,7 @@ export type ItemComponentTypeMap = {
|
|
|
3263
3263
|
enchantable: ItemEnchantableComponent;
|
|
3264
3264
|
food: ItemFoodComponent;
|
|
3265
3265
|
inventory: ItemInventoryComponent;
|
|
3266
|
-
'minecraft:
|
|
3266
|
+
'minecraft:block_dynamic_properties': ItemBlockDynamicPropertiesComponent;
|
|
3267
3267
|
'minecraft:book': ItemBookComponent;
|
|
3268
3268
|
'minecraft:compostable': ItemCompostableComponent;
|
|
3269
3269
|
'minecraft:cooldown': ItemCooldownComponent;
|
|
@@ -7817,7 +7817,7 @@ export class Dimension {
|
|
|
7817
7817
|
* The options to decide if a block is a valid result.
|
|
7818
7818
|
* @throws This function can throw errors.
|
|
7819
7819
|
*/
|
|
7820
|
-
getBlockAbove(location: Vector3, options?:
|
|
7820
|
+
getBlockAbove(location: Vector3, options?: BlockSearchOptions): Block | undefined;
|
|
7821
7821
|
/**
|
|
7822
7822
|
* @remarks
|
|
7823
7823
|
* Gets the first block found below a given block location
|
|
@@ -7830,7 +7830,7 @@ export class Dimension {
|
|
|
7830
7830
|
* The options to decide if a block is a valid result.
|
|
7831
7831
|
* @throws This function can throw errors.
|
|
7832
7832
|
*/
|
|
7833
|
-
getBlockBelow(location: Vector3, options?:
|
|
7833
|
+
getBlockBelow(location: Vector3, options?: BlockSearchOptions): Block | undefined;
|
|
7834
7834
|
/**
|
|
7835
7835
|
* @remarks
|
|
7836
7836
|
* Gets the first block that intersects with a vector emanating
|
|
@@ -14178,7 +14178,7 @@ export class ISerializable {
|
|
|
14178
14178
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
14179
14179
|
export class ItemBlockDynamicPropertiesComponent extends ItemComponent {
|
|
14180
14180
|
private constructor();
|
|
14181
|
-
static readonly componentId = 'minecraft:
|
|
14181
|
+
static readonly componentId = 'minecraft:block_dynamic_properties';
|
|
14182
14182
|
/**
|
|
14183
14183
|
* @remarks
|
|
14184
14184
|
* Returns a DynamicProperty that was stored with the provided
|
|
@@ -24612,7 +24612,35 @@ export interface BlockRaycastOptions extends BlockFilter {
|
|
|
24612
24612
|
includePassableBlocks?: boolean;
|
|
24613
24613
|
/**
|
|
24614
24614
|
* @remarks
|
|
24615
|
-
* Maximum distance, in blocks
|
|
24615
|
+
* Maximum raycast distance, in blocks.
|
|
24616
|
+
*
|
|
24617
|
+
* Bounds: [-2147483648, 2147483647]
|
|
24618
|
+
*/
|
|
24619
|
+
maxDistance?: number;
|
|
24620
|
+
}
|
|
24621
|
+
|
|
24622
|
+
/**
|
|
24623
|
+
* Options for finding blocks.
|
|
24624
|
+
*/
|
|
24625
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
24626
|
+
export interface BlockSearchOptions extends BlockFilter {
|
|
24627
|
+
/**
|
|
24628
|
+
* @remarks
|
|
24629
|
+
* When true, includes liquid blocks.
|
|
24630
|
+
*
|
|
24631
|
+
*/
|
|
24632
|
+
includeLiquidBlocks?: boolean;
|
|
24633
|
+
/**
|
|
24634
|
+
* @remarks
|
|
24635
|
+
* When true, includes passable blocks, such as vines and
|
|
24636
|
+
* flowers.
|
|
24637
|
+
*
|
|
24638
|
+
*/
|
|
24639
|
+
includePassableBlocks?: boolean;
|
|
24640
|
+
/**
|
|
24641
|
+
* @remarks
|
|
24642
|
+
* Maximum search distance, in blocks. Vertical searches use
|
|
24643
|
+
* whole blocks.
|
|
24616
24644
|
*
|
|
24617
24645
|
*/
|
|
24618
24646
|
maxDistance?: number;
|
|
@@ -25773,8 +25801,9 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
25773
25801
|
includePassableBlocks?: boolean;
|
|
25774
25802
|
/**
|
|
25775
25803
|
* @remarks
|
|
25776
|
-
* Maximum distance, in blocks
|
|
25804
|
+
* Maximum raycast distance, in blocks.
|
|
25777
25805
|
*
|
|
25806
|
+
* Bounds: [-2147483648, 2147483647]
|
|
25778
25807
|
*/
|
|
25779
25808
|
maxDistance?: number;
|
|
25780
25809
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.11.0-rc.1.26.70-preview.
|
|
3
|
+
"version": "2.11.0-rc.1.26.70-preview.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.2.0",
|
|
17
|
-
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.70-preview.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.70-preview.21"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|