@minecraft/server 2.11.0-rc.1.26.60-preview.30 → 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.
Files changed (2) hide show
  1. package/index.d.ts +41 -8
  2. 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:block_actor_dynamic_properties',
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
- block_actor_dynamic_properties: ItemBlockDynamicPropertiesComponent;
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:block_actor_dynamic_properties': ItemBlockDynamicPropertiesComponent;
3266
+ 'minecraft:block_dynamic_properties': ItemBlockDynamicPropertiesComponent;
3267
3267
  'minecraft:book': ItemBookComponent;
3268
3268
  'minecraft:compostable': ItemCompostableComponent;
3269
3269
  'minecraft:cooldown': ItemCooldownComponent;
@@ -7399,6 +7399,8 @@ export class CustomCommandRegistry {
7399
7399
  * {@link minecraftcommon.EngineError}
7400
7400
  *
7401
7401
  * {@link NamespaceNameError}
7402
+ *
7403
+ * {@link RawMessageError}
7402
7404
  */
7403
7405
  registerCommand(
7404
7406
  customCommand: CustomCommand,
@@ -7419,6 +7421,8 @@ export class CustomCommandRegistry {
7419
7421
  * {@link minecraftcommon.EngineError}
7420
7422
  *
7421
7423
  * {@link NamespaceNameError}
7424
+ *
7425
+ * {@link RawMessageError}
7422
7426
  */
7423
7427
  registerEnum(name: string, values: string[]): void;
7424
7428
  }
@@ -7813,7 +7817,7 @@ export class Dimension {
7813
7817
  * The options to decide if a block is a valid result.
7814
7818
  * @throws This function can throw errors.
7815
7819
  */
7816
- getBlockAbove(location: Vector3, options?: BlockRaycastOptions): Block | undefined;
7820
+ getBlockAbove(location: Vector3, options?: BlockSearchOptions): Block | undefined;
7817
7821
  /**
7818
7822
  * @remarks
7819
7823
  * Gets the first block found below a given block location
@@ -7826,7 +7830,7 @@ export class Dimension {
7826
7830
  * The options to decide if a block is a valid result.
7827
7831
  * @throws This function can throw errors.
7828
7832
  */
7829
- getBlockBelow(location: Vector3, options?: BlockRaycastOptions): Block | undefined;
7833
+ getBlockBelow(location: Vector3, options?: BlockSearchOptions): Block | undefined;
7830
7834
  /**
7831
7835
  * @remarks
7832
7836
  * Gets the first block that intersects with a vector emanating
@@ -14174,7 +14178,7 @@ export class ISerializable {
14174
14178
  // @ts-ignore Class inheritance allowed for native defined classes
14175
14179
  export class ItemBlockDynamicPropertiesComponent extends ItemComponent {
14176
14180
  private constructor();
14177
- static readonly componentId = 'minecraft:block_actor_dynamic_properties';
14181
+ static readonly componentId = 'minecraft:block_dynamic_properties';
14178
14182
  /**
14179
14183
  * @remarks
14180
14184
  * Returns a DynamicProperty that was stored with the provided
@@ -24608,7 +24612,35 @@ export interface BlockRaycastOptions extends BlockFilter {
24608
24612
  includePassableBlocks?: boolean;
24609
24613
  /**
24610
24614
  * @remarks
24611
- * Maximum distance, in blocks, to process the raycast.
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.
24612
24644
  *
24613
24645
  */
24614
24646
  maxDistance?: number;
@@ -25769,8 +25801,9 @@ export interface EntityRaycastOptions extends EntityFilter {
25769
25801
  includePassableBlocks?: boolean;
25770
25802
  /**
25771
25803
  * @remarks
25772
- * Maximum distance, in blocks, to process the raycast.
25804
+ * Maximum raycast distance, in blocks.
25773
25805
  *
25806
+ * Bounds: [-2147483648, 2147483647]
25774
25807
  */
25775
25808
  maxDistance?: number;
25776
25809
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "2.11.0-rc.1.26.60-preview.30",
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.60-preview.30"
17
+ "@minecraft/vanilla-data": ">=1.20.70 || 1.26.70-preview.21"
18
18
  },
19
19
  "license": "MIT"
20
20
  }