@minecraft/server 2.3.0-beta.1.21.110-preview.23 → 2.3.0-beta.1.21.110-preview.24
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 +95 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -5708,6 +5708,23 @@ export class Camera {
|
|
|
5708
5708
|
| CameraSetRotOptions
|
|
5709
5709
|
| CameraTargetOptions,
|
|
5710
5710
|
): void;
|
|
5711
|
+
/**
|
|
5712
|
+
* @beta
|
|
5713
|
+
* @remarks
|
|
5714
|
+
* Sets the current active camera with easing.
|
|
5715
|
+
*
|
|
5716
|
+
* This function can't be called in read-only mode.
|
|
5717
|
+
*
|
|
5718
|
+
* @param cameraPreset
|
|
5719
|
+
* Identifier of a camera preset file defined within JSON.
|
|
5720
|
+
* @param easeOptions
|
|
5721
|
+
* Options to ease the camera from the previous camera to the
|
|
5722
|
+
* current one.
|
|
5723
|
+
* @throws
|
|
5724
|
+
* Throws when easing to minecraft:first_person presets
|
|
5725
|
+
* currently without the experimental cameras toggle enabled.
|
|
5726
|
+
*/
|
|
5727
|
+
setCameraWithEase(cameraPreset: string, easeOptions: EaseOptions): void;
|
|
5711
5728
|
/**
|
|
5712
5729
|
* @remarks
|
|
5713
5730
|
* Sets the current active camera for the specified player and
|
|
@@ -7319,6 +7336,24 @@ export class Dimension {
|
|
|
7319
7336
|
* {@link Error}
|
|
7320
7337
|
*/
|
|
7321
7338
|
findClosestBiome(pos: Vector3, biomeToFind: BiomeType | string, options?: BiomeSearchOptions): Vector3 | undefined;
|
|
7339
|
+
/**
|
|
7340
|
+
* @beta
|
|
7341
|
+
* @remarks
|
|
7342
|
+
* Returns the biome type at the specified location.
|
|
7343
|
+
*
|
|
7344
|
+
* @param location
|
|
7345
|
+
* Location at which to check the biome.
|
|
7346
|
+
* @throws
|
|
7347
|
+
* An error will be thrown if the location is out of world
|
|
7348
|
+
* bounds.
|
|
7349
|
+
* An error will be thrown if the location is in an unloaded
|
|
7350
|
+
* chunk.
|
|
7351
|
+
*
|
|
7352
|
+
* {@link LocationInUnloadedChunkError}
|
|
7353
|
+
*
|
|
7354
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
7355
|
+
*/
|
|
7356
|
+
getBiome(location: Vector3): BiomeType;
|
|
7322
7357
|
/**
|
|
7323
7358
|
* @remarks
|
|
7324
7359
|
* Returns a block instance at the given location.
|
|
@@ -8726,6 +8761,23 @@ export class Entity {
|
|
|
8726
8761
|
* ```
|
|
8727
8762
|
*/
|
|
8728
8763
|
extinguishFire(useEffects?: boolean): boolean;
|
|
8764
|
+
/**
|
|
8765
|
+
* @beta
|
|
8766
|
+
* @remarks
|
|
8767
|
+
* Gets the solid blocks that this entity is directly standing
|
|
8768
|
+
* on. Ignores pressure plates.
|
|
8769
|
+
*
|
|
8770
|
+
* @param options
|
|
8771
|
+
* Additional configuration options for what blocks are
|
|
8772
|
+
* returned.
|
|
8773
|
+
* @returns
|
|
8774
|
+
* The solid blocks that this entity is directly standing on.
|
|
8775
|
+
* Returns an empty list if the entity is jumping or flying.
|
|
8776
|
+
* @throws This function can throw errors.
|
|
8777
|
+
*
|
|
8778
|
+
* {@link InvalidEntityError}
|
|
8779
|
+
*/
|
|
8780
|
+
getAllBlocksStandingOn(options?: GetBlocksStandingOnOptions): Block[];
|
|
8729
8781
|
/**
|
|
8730
8782
|
* @remarks
|
|
8731
8783
|
* Returns the first intersecting block from the direction that
|
|
@@ -8741,6 +8793,24 @@ export class Entity {
|
|
|
8741
8793
|
* {@link InvalidEntityError}
|
|
8742
8794
|
*/
|
|
8743
8795
|
getBlockFromViewDirection(options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
8796
|
+
/**
|
|
8797
|
+
* @beta
|
|
8798
|
+
* @remarks
|
|
8799
|
+
* Gets a single solid block closest to the center of the
|
|
8800
|
+
* entity that this entity is directly standing on. Ignores
|
|
8801
|
+
* pressure plates.
|
|
8802
|
+
*
|
|
8803
|
+
* @param options
|
|
8804
|
+
* Additional configuration options for what block is returned.
|
|
8805
|
+
* @returns
|
|
8806
|
+
* A single solid block closest to the center of the entity
|
|
8807
|
+
* that this entity is directly standing on. Undefined if
|
|
8808
|
+
* entity is flying or jumping.
|
|
8809
|
+
* @throws This function can throw errors.
|
|
8810
|
+
*
|
|
8811
|
+
* {@link InvalidEntityError}
|
|
8812
|
+
*/
|
|
8813
|
+
getBlockStandingOn(options?: GetBlocksStandingOnOptions): Block | undefined;
|
|
8744
8814
|
/**
|
|
8745
8815
|
* @remarks
|
|
8746
8816
|
* Gets a component (that represents additional capabilities)
|
|
@@ -14811,7 +14881,7 @@ export class PackSettingChangeAfterEvent {
|
|
|
14811
14881
|
* The value of the setting.
|
|
14812
14882
|
*
|
|
14813
14883
|
*/
|
|
14814
|
-
readonly settingValue: boolean | number;
|
|
14884
|
+
readonly settingValue: boolean | number | string;
|
|
14815
14885
|
}
|
|
14816
14886
|
|
|
14817
14887
|
/**
|
|
@@ -19399,7 +19469,7 @@ export class World {
|
|
|
19399
19469
|
* This function can be called in early-execution mode.
|
|
19400
19470
|
*
|
|
19401
19471
|
*/
|
|
19402
|
-
getPackSettings(): Record<string, boolean | number>;
|
|
19472
|
+
getPackSettings(): Record<string, boolean | number | string>;
|
|
19403
19473
|
/**
|
|
19404
19474
|
* @remarks
|
|
19405
19475
|
* Returns a set of players based on a set of conditions
|
|
@@ -21565,6 +21635,29 @@ export interface ExplosionOptions {
|
|
|
21565
21635
|
source?: Entity;
|
|
21566
21636
|
}
|
|
21567
21637
|
|
|
21638
|
+
/**
|
|
21639
|
+
* @beta
|
|
21640
|
+
* Contains additional options for getBlockStandingOn and
|
|
21641
|
+
* getAllBlocksStandingOn.
|
|
21642
|
+
*/
|
|
21643
|
+
export interface GetBlocksStandingOnOptions {
|
|
21644
|
+
/**
|
|
21645
|
+
* @remarks
|
|
21646
|
+
* When specified, the function will include / exclude what
|
|
21647
|
+
* block(s) are returned based on the block filter.
|
|
21648
|
+
*
|
|
21649
|
+
*/
|
|
21650
|
+
blockFilter?: BlockFilter;
|
|
21651
|
+
/**
|
|
21652
|
+
* @remarks
|
|
21653
|
+
* If true, all blocks of height 0.2 or lower like trapdoors
|
|
21654
|
+
* and carpets will be ignored, and the block underneath will
|
|
21655
|
+
* be returned.
|
|
21656
|
+
*
|
|
21657
|
+
*/
|
|
21658
|
+
ignoreThinBlocks?: boolean;
|
|
21659
|
+
}
|
|
21660
|
+
|
|
21568
21661
|
/**
|
|
21569
21662
|
* Greater than operator.
|
|
21570
21663
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.3.0-beta.1.21.110-preview.
|
|
3
|
+
"version": "2.3.0-beta.1.21.110-preview.24",
|
|
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.21.110-preview.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.21.110-preview.24"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|