@minecraft/server 2.2.0-beta.1.21.100-preview.25 → 2.3.0-beta.1.21.110-preview.20
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 +107 -3
- package/package.json +3 -5
package/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* ```json
|
|
17
17
|
* {
|
|
18
18
|
* "module_name": "@minecraft/server",
|
|
19
|
-
* "version": "2.
|
|
19
|
+
* "version": "2.3.0-beta"
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -3365,6 +3365,13 @@ export class AimAssistPresetSettings {
|
|
|
3365
3365
|
*/
|
|
3366
3366
|
export class AimAssistRegistry {
|
|
3367
3367
|
private constructor();
|
|
3368
|
+
/**
|
|
3369
|
+
* @remarks
|
|
3370
|
+
* The default aim-assist category Id that is used when not
|
|
3371
|
+
* otherwise specified.
|
|
3372
|
+
*
|
|
3373
|
+
*/
|
|
3374
|
+
static readonly DefaultCategoryId = 'minecraft:default';
|
|
3368
3375
|
/**
|
|
3369
3376
|
* @remarks
|
|
3370
3377
|
* The default aim-assist preset Id that is used when not
|
|
@@ -7498,6 +7505,25 @@ export class Dimension {
|
|
|
7498
7505
|
* {@link minecraftcommon.UnsupportedFunctionalityError}
|
|
7499
7506
|
*/
|
|
7500
7507
|
getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): EntityRaycastHit[];
|
|
7508
|
+
/**
|
|
7509
|
+
* @beta
|
|
7510
|
+
* @remarks
|
|
7511
|
+
* Returns the total brightness level of light shining on a
|
|
7512
|
+
* certain block position.
|
|
7513
|
+
*
|
|
7514
|
+
* This function can't be called in read-only mode.
|
|
7515
|
+
*
|
|
7516
|
+
* @param location
|
|
7517
|
+
* Location of the block we want to check the brightness of.
|
|
7518
|
+
* @returns
|
|
7519
|
+
* The brightness level on the block.
|
|
7520
|
+
* @throws This function can throw errors.
|
|
7521
|
+
*
|
|
7522
|
+
* {@link minecraftcommon.InvalidArgumentError}
|
|
7523
|
+
*
|
|
7524
|
+
* {@link LocationInUnloadedChunkError}
|
|
7525
|
+
*/
|
|
7526
|
+
getLightLevel(location: Vector3): number;
|
|
7501
7527
|
/**
|
|
7502
7528
|
* @remarks
|
|
7503
7529
|
* Returns a set of players based on a set of conditions
|
|
@@ -7515,6 +7541,25 @@ export class Dimension {
|
|
|
7515
7541
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
7516
7542
|
*/
|
|
7517
7543
|
getPlayers(options?: EntityQueryOptions): Player[];
|
|
7544
|
+
/**
|
|
7545
|
+
* @beta
|
|
7546
|
+
* @remarks
|
|
7547
|
+
* Returns the brightness level of light shining from the sky
|
|
7548
|
+
* on a certain block position.
|
|
7549
|
+
*
|
|
7550
|
+
* This function can't be called in read-only mode.
|
|
7551
|
+
*
|
|
7552
|
+
* @param location
|
|
7553
|
+
* Position of the block we want to check the brightness of.
|
|
7554
|
+
* @returns
|
|
7555
|
+
* The brightness level on the block.
|
|
7556
|
+
* @throws This function can throw errors.
|
|
7557
|
+
*
|
|
7558
|
+
* {@link minecraftcommon.InvalidArgumentError}
|
|
7559
|
+
*
|
|
7560
|
+
* {@link LocationInUnloadedChunkError}
|
|
7561
|
+
*/
|
|
7562
|
+
getSkyLightLevel(location: Vector3): number;
|
|
7518
7563
|
/**
|
|
7519
7564
|
* @remarks
|
|
7520
7565
|
* Returns the highest block at the given XZ location.
|
|
@@ -14745,6 +14790,49 @@ export class MolangVariableMap {
|
|
|
14745
14790
|
setVector3(variableName: string, vector: Vector3): void;
|
|
14746
14791
|
}
|
|
14747
14792
|
|
|
14793
|
+
/**
|
|
14794
|
+
* @beta
|
|
14795
|
+
* Pack setting name and value that changed.
|
|
14796
|
+
*/
|
|
14797
|
+
export class PackSettingChangeAfterEvent {
|
|
14798
|
+
private constructor();
|
|
14799
|
+
/**
|
|
14800
|
+
* @remarks
|
|
14801
|
+
* The name of the setting.
|
|
14802
|
+
*
|
|
14803
|
+
*/
|
|
14804
|
+
readonly settingName: string;
|
|
14805
|
+
/**
|
|
14806
|
+
* @remarks
|
|
14807
|
+
* The value of the setting.
|
|
14808
|
+
*
|
|
14809
|
+
*/
|
|
14810
|
+
readonly settingValue: boolean | number;
|
|
14811
|
+
}
|
|
14812
|
+
|
|
14813
|
+
/**
|
|
14814
|
+
* @beta
|
|
14815
|
+
*/
|
|
14816
|
+
export class PackSettingChangeAfterEventSignal {
|
|
14817
|
+
private constructor();
|
|
14818
|
+
/**
|
|
14819
|
+
* @remarks
|
|
14820
|
+
* This function can't be called in read-only mode.
|
|
14821
|
+
*
|
|
14822
|
+
* This function can be called in early-execution mode.
|
|
14823
|
+
*
|
|
14824
|
+
*/
|
|
14825
|
+
subscribe(callback: (arg0: PackSettingChangeAfterEvent) => void): (arg0: PackSettingChangeAfterEvent) => void;
|
|
14826
|
+
/**
|
|
14827
|
+
* @remarks
|
|
14828
|
+
* This function can't be called in read-only mode.
|
|
14829
|
+
*
|
|
14830
|
+
* This function can be called in early-execution mode.
|
|
14831
|
+
*
|
|
14832
|
+
*/
|
|
14833
|
+
unsubscribe(callback: (arg0: PackSettingChangeAfterEvent) => void): void;
|
|
14834
|
+
}
|
|
14835
|
+
|
|
14748
14836
|
/**
|
|
14749
14837
|
* Contains information related to changes to a piston
|
|
14750
14838
|
* expanding or retracting.
|
|
@@ -18529,8 +18617,6 @@ export class System {
|
|
|
18529
18617
|
* Causes an event to fire within script with the specified
|
|
18530
18618
|
* message ID and payload.
|
|
18531
18619
|
*
|
|
18532
|
-
* This function can't be called in read-only mode.
|
|
18533
|
-
*
|
|
18534
18620
|
* @param id
|
|
18535
18621
|
* Identifier of the message to send. This is custom and
|
|
18536
18622
|
* dependent on the kinds of behavior packs and content you may
|
|
@@ -19286,6 +19372,15 @@ export class World {
|
|
|
19286
19372
|
*
|
|
19287
19373
|
*/
|
|
19288
19374
|
getMoonPhase(): MoonPhase;
|
|
19375
|
+
/**
|
|
19376
|
+
* @beta
|
|
19377
|
+
* @remarks
|
|
19378
|
+
* Returns a map of pack setting name and value pairs.
|
|
19379
|
+
*
|
|
19380
|
+
* This function can be called in early-execution mode.
|
|
19381
|
+
*
|
|
19382
|
+
*/
|
|
19383
|
+
getPackSettings(): Record<string, boolean | number>;
|
|
19289
19384
|
/**
|
|
19290
19385
|
* @remarks
|
|
19291
19386
|
* Returns a set of players based on a set of conditions
|
|
@@ -19755,6 +19850,15 @@ export class WorldAfterEvents {
|
|
|
19755
19850
|
*
|
|
19756
19851
|
*/
|
|
19757
19852
|
readonly messageReceive: ServerMessageAfterEventSignal;
|
|
19853
|
+
/**
|
|
19854
|
+
* @beta
|
|
19855
|
+
* @remarks
|
|
19856
|
+
* This event is triggered when a pack setting is changed.
|
|
19857
|
+
*
|
|
19858
|
+
* This property can be read in early-execution mode.
|
|
19859
|
+
*
|
|
19860
|
+
*/
|
|
19861
|
+
readonly packSettingChange: PackSettingChangeAfterEventSignal;
|
|
19758
19862
|
/**
|
|
19759
19863
|
* @remarks
|
|
19760
19864
|
* This event fires when a piston expands or retracts.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-beta.1.21.110-preview.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -12,11 +12,9 @@
|
|
|
12
12
|
"email": "mikeam@microsoft.com"
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@minecraft/common": "^1.2.0"
|
|
17
|
-
},
|
|
18
15
|
"peerDependencies": {
|
|
19
|
-
"@minecraft/
|
|
16
|
+
"@minecraft/common": "^1.2.0",
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.21.110-preview.20"
|
|
20
18
|
},
|
|
21
19
|
"license": "MIT"
|
|
22
20
|
}
|