@minecraft/server 2.13.0-beta.1.26.70-preview.20 → 2.13.0-beta.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 +83 -19
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -2152,6 +2152,13 @@ export enum InputMode {
|
|
|
2152
2152
|
*
|
|
2153
2153
|
*/
|
|
2154
2154
|
Gamepad = 'Gamepad',
|
|
2155
|
+
/**
|
|
2156
|
+
* @rc
|
|
2157
|
+
* @remarks
|
|
2158
|
+
* Gamepad and mouse input.
|
|
2159
|
+
*
|
|
2160
|
+
*/
|
|
2161
|
+
GamepadAndMouse = 'GamepadAndMouse',
|
|
2155
2162
|
/**
|
|
2156
2163
|
* @remarks
|
|
2157
2164
|
* Keyboard and mouse input.
|
|
@@ -2261,7 +2268,7 @@ export enum InputPermissionCategory {
|
|
|
2261
2268
|
* function ItemStack.getComponent.
|
|
2262
2269
|
*/
|
|
2263
2270
|
export enum ItemComponentTypes {
|
|
2264
|
-
BlockDynamicProperties = 'minecraft:
|
|
2271
|
+
BlockDynamicProperties = 'minecraft:block_dynamic_properties',
|
|
2265
2272
|
/**
|
|
2266
2273
|
* @beta
|
|
2267
2274
|
*/
|
|
@@ -2771,7 +2778,7 @@ export enum PlayerWaypointsMode {
|
|
|
2771
2778
|
}
|
|
2772
2779
|
|
|
2773
2780
|
/**
|
|
2774
|
-
* @
|
|
2781
|
+
* @rc
|
|
2775
2782
|
* Specifies how a block point-of-interest query filters
|
|
2776
2783
|
* instances by ticket occupancy.
|
|
2777
2784
|
*/
|
|
@@ -3408,7 +3415,7 @@ export type ItemComponentReturnType<T extends string> = T extends keyof ItemComp
|
|
|
3408
3415
|
: ItemCustomComponentInstance;
|
|
3409
3416
|
|
|
3410
3417
|
export type ItemComponentTypeMap = {
|
|
3411
|
-
|
|
3418
|
+
block_dynamic_properties: ItemBlockDynamicPropertiesComponent;
|
|
3412
3419
|
block_entity_storage: ItemBlockEntityStorageComponent;
|
|
3413
3420
|
book: ItemBookComponent;
|
|
3414
3421
|
compostable: ItemCompostableComponent;
|
|
@@ -3418,7 +3425,7 @@ export type ItemComponentTypeMap = {
|
|
|
3418
3425
|
enchantable: ItemEnchantableComponent;
|
|
3419
3426
|
food: ItemFoodComponent;
|
|
3420
3427
|
inventory: ItemInventoryComponent;
|
|
3421
|
-
'minecraft:
|
|
3428
|
+
'minecraft:block_dynamic_properties': ItemBlockDynamicPropertiesComponent;
|
|
3422
3429
|
'minecraft:block_entity_storage': ItemBlockEntityStorageComponent;
|
|
3423
3430
|
'minecraft:book': ItemBookComponent;
|
|
3424
3431
|
'minecraft:compostable': ItemCompostableComponent;
|
|
@@ -8664,7 +8671,7 @@ export class Dimension {
|
|
|
8664
8671
|
*/
|
|
8665
8672
|
readonly localizationKey: string;
|
|
8666
8673
|
/**
|
|
8667
|
-
* @
|
|
8674
|
+
* @rc
|
|
8668
8675
|
* @remarks
|
|
8669
8676
|
* Provides access to point-of-interest (POI) managers for this
|
|
8670
8677
|
* dimension. This property is available only when the POI
|
|
@@ -8945,7 +8952,7 @@ export class Dimension {
|
|
|
8945
8952
|
* The options to decide if a block is a valid result.
|
|
8946
8953
|
* @throws This function can throw errors.
|
|
8947
8954
|
*/
|
|
8948
|
-
getBlockAbove(location: Vector3, options?:
|
|
8955
|
+
getBlockAbove(location: Vector3, options?: BlockSearchOptions): Block | undefined;
|
|
8949
8956
|
/**
|
|
8950
8957
|
* @remarks
|
|
8951
8958
|
* Gets the first block found below a given block location
|
|
@@ -8958,7 +8965,7 @@ export class Dimension {
|
|
|
8958
8965
|
* The options to decide if a block is a valid result.
|
|
8959
8966
|
* @throws This function can throw errors.
|
|
8960
8967
|
*/
|
|
8961
|
-
getBlockBelow(location: Vector3, options?:
|
|
8968
|
+
getBlockBelow(location: Vector3, options?: BlockSearchOptions): Block | undefined;
|
|
8962
8969
|
/**
|
|
8963
8970
|
* @remarks
|
|
8964
8971
|
* Gets the first block that intersects with a vector emanating
|
|
@@ -15490,7 +15497,7 @@ export class ISerializable {
|
|
|
15490
15497
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15491
15498
|
export class ItemBlockDynamicPropertiesComponent extends ItemComponent {
|
|
15492
15499
|
private constructor();
|
|
15493
|
-
static readonly componentId = 'minecraft:
|
|
15500
|
+
static readonly componentId = 'minecraft:block_dynamic_properties';
|
|
15494
15501
|
/**
|
|
15495
15502
|
* @remarks
|
|
15496
15503
|
* Returns a DynamicProperty that was stored with the provided
|
|
@@ -21398,7 +21405,7 @@ export class PlayerWaypoint extends EntityWaypoint {
|
|
|
21398
21405
|
}
|
|
21399
21406
|
|
|
21400
21407
|
/**
|
|
21401
|
-
* @
|
|
21408
|
+
* @rc
|
|
21402
21409
|
* Describes a block point-of-interest instance returned by a
|
|
21403
21410
|
* query.
|
|
21404
21411
|
*/
|
|
@@ -21426,7 +21433,7 @@ export class PoiBlockInstance {
|
|
|
21426
21433
|
}
|
|
21427
21434
|
|
|
21428
21435
|
/**
|
|
21429
|
-
* @
|
|
21436
|
+
* @rc
|
|
21430
21437
|
* Provides methods for querying and managing block-based
|
|
21431
21438
|
* points of interest in a dimension.
|
|
21432
21439
|
*/
|
|
@@ -21615,7 +21622,7 @@ export class PoiBlockManager {
|
|
|
21615
21622
|
}
|
|
21616
21623
|
|
|
21617
21624
|
/**
|
|
21618
|
-
* @
|
|
21625
|
+
* @rc
|
|
21619
21626
|
* Describes a block point-of-interest type.
|
|
21620
21627
|
*/
|
|
21621
21628
|
export class PoiBlockType {
|
|
@@ -21675,7 +21682,7 @@ export class PoiBlockType {
|
|
|
21675
21682
|
}
|
|
21676
21683
|
|
|
21677
21684
|
/**
|
|
21678
|
-
* @
|
|
21685
|
+
* @rc
|
|
21679
21686
|
* Provides access to point-of-interest (POI) data in a
|
|
21680
21687
|
* dimension.
|
|
21681
21688
|
*/
|
|
@@ -21911,7 +21918,13 @@ export class PrimitiveShape {
|
|
|
21911
21918
|
*/
|
|
21912
21919
|
color: RGBA;
|
|
21913
21920
|
/**
|
|
21914
|
-
* @
|
|
21921
|
+
* @rc
|
|
21922
|
+
* @remarks
|
|
21923
|
+
* Defaults to true. If set to true, we default to being
|
|
21924
|
+
* visible to all players if visibleTo is empty - hiddenFrom
|
|
21925
|
+
* still applies afterwards. If set to false, we default to
|
|
21926
|
+
* hiding the shape from all players if visibleTo is empty.
|
|
21927
|
+
*
|
|
21915
21928
|
*/
|
|
21916
21929
|
defaultVisibleToAll: boolean;
|
|
21917
21930
|
/**
|
|
@@ -21929,7 +21942,12 @@ export class PrimitiveShape {
|
|
|
21929
21942
|
*/
|
|
21930
21943
|
readonly hasDuration: boolean;
|
|
21931
21944
|
/**
|
|
21932
|
-
* @
|
|
21945
|
+
* @rc
|
|
21946
|
+
* @remarks
|
|
21947
|
+
* The list of players that this shape will be hidden from. If
|
|
21948
|
+
* a player is listed in both this and visibleTo, this takes
|
|
21949
|
+
* priority (it will be hidden from the player).
|
|
21950
|
+
*
|
|
21933
21951
|
*/
|
|
21934
21952
|
hiddenFrom: Player[];
|
|
21935
21953
|
/**
|
|
@@ -27379,7 +27397,43 @@ export interface BlockRaycastOptions extends BlockFilter {
|
|
|
27379
27397
|
includePassableBlocks?: boolean;
|
|
27380
27398
|
/**
|
|
27381
27399
|
* @remarks
|
|
27382
|
-
* Maximum distance, in blocks
|
|
27400
|
+
* Maximum raycast distance, in blocks.
|
|
27401
|
+
*
|
|
27402
|
+
* Bounds: [-2147483648, 2147483647]
|
|
27403
|
+
*/
|
|
27404
|
+
maxDistance?: number;
|
|
27405
|
+
/**
|
|
27406
|
+
* @beta
|
|
27407
|
+
* @remarks
|
|
27408
|
+
* When true, keeps fractional distances and checks the full
|
|
27409
|
+
* ray. Defaults to false.
|
|
27410
|
+
*
|
|
27411
|
+
*/
|
|
27412
|
+
usePreciseRaycast?: boolean;
|
|
27413
|
+
}
|
|
27414
|
+
|
|
27415
|
+
/**
|
|
27416
|
+
* Options for finding blocks.
|
|
27417
|
+
*/
|
|
27418
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
27419
|
+
export interface BlockSearchOptions extends BlockFilter {
|
|
27420
|
+
/**
|
|
27421
|
+
* @remarks
|
|
27422
|
+
* When true, includes liquid blocks.
|
|
27423
|
+
*
|
|
27424
|
+
*/
|
|
27425
|
+
includeLiquidBlocks?: boolean;
|
|
27426
|
+
/**
|
|
27427
|
+
* @remarks
|
|
27428
|
+
* When true, includes passable blocks, such as vines and
|
|
27429
|
+
* flowers.
|
|
27430
|
+
*
|
|
27431
|
+
*/
|
|
27432
|
+
includePassableBlocks?: boolean;
|
|
27433
|
+
/**
|
|
27434
|
+
* @remarks
|
|
27435
|
+
* Maximum search distance, in blocks. Vertical searches use
|
|
27436
|
+
* whole blocks.
|
|
27383
27437
|
*
|
|
27384
27438
|
*/
|
|
27385
27439
|
maxDistance?: number;
|
|
@@ -28558,10 +28612,20 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
28558
28612
|
includePassableBlocks?: boolean;
|
|
28559
28613
|
/**
|
|
28560
28614
|
* @remarks
|
|
28561
|
-
* Maximum distance, in blocks
|
|
28615
|
+
* Maximum raycast distance, in blocks.
|
|
28562
28616
|
*
|
|
28617
|
+
* Bounds: [-2147483648, 2147483647]
|
|
28563
28618
|
*/
|
|
28564
28619
|
maxDistance?: number;
|
|
28620
|
+
/**
|
|
28621
|
+
* @beta
|
|
28622
|
+
* @remarks
|
|
28623
|
+
* When true, keeps fractional distances and checks the full
|
|
28624
|
+
* ray. Defaults to false. When true, negative distances throw
|
|
28625
|
+
* InvalidArgumentError.
|
|
28626
|
+
*
|
|
28627
|
+
*/
|
|
28628
|
+
usePreciseRaycast?: boolean;
|
|
28565
28629
|
}
|
|
28566
28630
|
|
|
28567
28631
|
/**
|
|
@@ -29263,7 +29327,7 @@ export interface PlayerVisibilityRules extends EntityVisibilityRules {
|
|
|
29263
29327
|
}
|
|
29264
29328
|
|
|
29265
29329
|
/**
|
|
29266
|
-
* @
|
|
29330
|
+
* @rc
|
|
29267
29331
|
* Associates a block point-of-interest instance with its
|
|
29268
29332
|
* squared distance from a query center.
|
|
29269
29333
|
*/
|
|
@@ -29284,7 +29348,7 @@ export interface PoiDistancePair {
|
|
|
29284
29348
|
}
|
|
29285
29349
|
|
|
29286
29350
|
/**
|
|
29287
|
-
* @
|
|
29351
|
+
* @rc
|
|
29288
29352
|
* Selects block point-of-interest types by their exact
|
|
29289
29353
|
* namespaced identifier.
|
|
29290
29354
|
*/
|
|
@@ -29298,7 +29362,7 @@ export interface PoiNameFilter {
|
|
|
29298
29362
|
}
|
|
29299
29363
|
|
|
29300
29364
|
/**
|
|
29301
|
-
* @
|
|
29365
|
+
* @rc
|
|
29302
29366
|
* Selects block point-of-interest types that have all
|
|
29303
29367
|
* specified tags.
|
|
29304
29368
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.13.0-beta.1.26.70-preview.
|
|
3
|
+
"version": "2.13.0-beta.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
|
}
|