@minecraft/server-editor 0.1.0-beta.1.20.50-preview.24 → 0.1.0-beta.1.20.60-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 +55 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* ```json
|
|
15
15
|
* {
|
|
16
16
|
* "module_name": "@minecraft/server-editor",
|
|
17
|
-
* "version": "0.1.0-beta.1.20.
|
|
17
|
+
* "version": "0.1.0-beta.1.20.60-preview.20"
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
@@ -1190,6 +1190,13 @@ export class MinecraftEditor {
|
|
|
1190
1190
|
* @throws This property can throw when used.
|
|
1191
1191
|
*/
|
|
1192
1192
|
readonly log: Logger;
|
|
1193
|
+
/**
|
|
1194
|
+
* @remarks
|
|
1195
|
+
* Allows querying and modifying some properties of the
|
|
1196
|
+
* simulation.
|
|
1197
|
+
*
|
|
1198
|
+
*/
|
|
1199
|
+
readonly simulation: SimulationState;
|
|
1193
1200
|
/**
|
|
1194
1201
|
* @remarks
|
|
1195
1202
|
* This is an internal command which interfaces with the native
|
|
@@ -1541,6 +1548,30 @@ export class SettingsManager {
|
|
|
1541
1548
|
readonly graphics: GraphicsSettings;
|
|
1542
1549
|
}
|
|
1543
1550
|
|
|
1551
|
+
/**
|
|
1552
|
+
* Responsible for querying and modifying various properties of
|
|
1553
|
+
* the simulation.
|
|
1554
|
+
*/
|
|
1555
|
+
export class SimulationState {
|
|
1556
|
+
private constructor();
|
|
1557
|
+
/**
|
|
1558
|
+
* @remarks
|
|
1559
|
+
* Returns `true` if mob simulation is paused.
|
|
1560
|
+
*
|
|
1561
|
+
*/
|
|
1562
|
+
isPaused(): boolean;
|
|
1563
|
+
/**
|
|
1564
|
+
* @remarks
|
|
1565
|
+
* Sets the state of mob simulation. If set to `true`, mobs
|
|
1566
|
+
* are paused.
|
|
1567
|
+
*
|
|
1568
|
+
* This function can't be called in read-only mode.
|
|
1569
|
+
*
|
|
1570
|
+
* @throws This function can throw errors.
|
|
1571
|
+
*/
|
|
1572
|
+
setPaused(isPaused: boolean): void;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1544
1575
|
/**
|
|
1545
1576
|
* The Transaction Manager is responsible for tracking and
|
|
1546
1577
|
* managing all of the registered transaction operations which
|
|
@@ -2069,6 +2100,13 @@ export interface IGlobalInputManager {
|
|
|
2069
2100
|
}
|
|
2070
2101
|
|
|
2071
2102
|
export interface IMenu {
|
|
2103
|
+
/**
|
|
2104
|
+
* @remarks
|
|
2105
|
+
* If defined, the menu will show a checked or unchecked
|
|
2106
|
+
* checkbox.
|
|
2107
|
+
*
|
|
2108
|
+
*/
|
|
2109
|
+
checked?: boolean;
|
|
2072
2110
|
/**
|
|
2073
2111
|
* @remarks
|
|
2074
2112
|
* Unique ID for the menu
|
|
@@ -2093,6 +2131,12 @@ export interface IMenu {
|
|
|
2093
2131
|
* Properties required to create a Menu
|
|
2094
2132
|
*/
|
|
2095
2133
|
export interface IMenuCreationParams {
|
|
2134
|
+
/**
|
|
2135
|
+
* @remarks
|
|
2136
|
+
* Whether the menu should show a checkmark
|
|
2137
|
+
*
|
|
2138
|
+
*/
|
|
2139
|
+
checked?: boolean;
|
|
2096
2140
|
/**
|
|
2097
2141
|
* @remarks
|
|
2098
2142
|
* Loc ID (resolved on client)
|
|
@@ -2677,6 +2721,16 @@ export declare function executeLargeOperation(
|
|
|
2677
2721
|
selection: Selection,
|
|
2678
2722
|
operation: (blockLocation: minecraftserver.Vector3) => void,
|
|
2679
2723
|
): Promise<void>;
|
|
2724
|
+
/**
|
|
2725
|
+
* @remarks
|
|
2726
|
+
* Returns a string array of the default block types for the
|
|
2727
|
+
* Block picker control. Can be used to further filter blocks
|
|
2728
|
+
* from the Block picker.
|
|
2729
|
+
*
|
|
2730
|
+
* @returns
|
|
2731
|
+
* Default allowed block list
|
|
2732
|
+
*/
|
|
2733
|
+
export declare function getBlockPickerDefaultAllowBlockList(): string[];
|
|
2680
2734
|
/**
|
|
2681
2735
|
* @remarks
|
|
2682
2736
|
* Adds the resource pack editor prefix and returns the full
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.20.
|
|
3
|
+
"version": "0.1.0-beta.1.20.60-preview.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^1.
|
|
17
|
+
"@minecraft/server": "^1.9.0-beta.1.20.60-preview.20"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|