@minecraft/server-editor 0.1.0-beta.1.20.50-preview.24 → 0.1.0-beta.1.20.60-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 +117 -4
- 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.21"
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
@@ -940,6 +940,30 @@ export class Cursor {
|
|
|
940
940
|
show(): void;
|
|
941
941
|
}
|
|
942
942
|
|
|
943
|
+
export class CursorPropertiesChangeAfterEvent {
|
|
944
|
+
private constructor();
|
|
945
|
+
readonly properties: CursorProperties;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
export class CursorPropertyChangeAfterEventSignal {
|
|
949
|
+
private constructor();
|
|
950
|
+
/**
|
|
951
|
+
* @remarks
|
|
952
|
+
* This function can't be called in read-only mode.
|
|
953
|
+
*
|
|
954
|
+
*/
|
|
955
|
+
subscribe(
|
|
956
|
+
callback: (arg: CursorPropertiesChangeAfterEvent) => void,
|
|
957
|
+
): (arg: CursorPropertiesChangeAfterEvent) => void;
|
|
958
|
+
/**
|
|
959
|
+
* @remarks
|
|
960
|
+
* This function can't be called in read-only mode.
|
|
961
|
+
*
|
|
962
|
+
* @throws This function can throw errors.
|
|
963
|
+
*/
|
|
964
|
+
unsubscribe(callback: (arg: CursorPropertiesChangeAfterEvent) => void): void;
|
|
965
|
+
}
|
|
966
|
+
|
|
943
967
|
/**
|
|
944
968
|
* Editor Extensions are the basis for all player specific,
|
|
945
969
|
* editor specific functionality within the game. Almost all
|
|
@@ -959,6 +983,31 @@ export class Cursor {
|
|
|
959
983
|
*/
|
|
960
984
|
export class Extension {
|
|
961
985
|
private constructor();
|
|
986
|
+
/**
|
|
987
|
+
* @remarks
|
|
988
|
+
* Default identifier for tool rail grouping. All modal tools
|
|
989
|
+
* created from the extension will use this.
|
|
990
|
+
*
|
|
991
|
+
*/
|
|
992
|
+
readonly defaultToolGroupId: string;
|
|
993
|
+
/**
|
|
994
|
+
* @remarks
|
|
995
|
+
* Description specified during registration for the extension.
|
|
996
|
+
*
|
|
997
|
+
*/
|
|
998
|
+
readonly description: string;
|
|
999
|
+
/**
|
|
1000
|
+
* @remarks
|
|
1001
|
+
* Name of the extension.
|
|
1002
|
+
*
|
|
1003
|
+
*/
|
|
1004
|
+
readonly name: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* @remarks
|
|
1007
|
+
* Notes specified during registration for the extension.
|
|
1008
|
+
*
|
|
1009
|
+
*/
|
|
1010
|
+
readonly notes: string;
|
|
962
1011
|
}
|
|
963
1012
|
|
|
964
1013
|
/**
|
|
@@ -1000,11 +1049,11 @@ export class ExtensionContext {
|
|
|
1000
1049
|
readonly cursor: Cursor;
|
|
1001
1050
|
/**
|
|
1002
1051
|
* @remarks
|
|
1003
|
-
*
|
|
1004
|
-
*
|
|
1052
|
+
* Contains information about the registered extension
|
|
1053
|
+
* instance.
|
|
1005
1054
|
*
|
|
1006
1055
|
*/
|
|
1007
|
-
readonly
|
|
1056
|
+
readonly extensionInfo: Extension;
|
|
1008
1057
|
/**
|
|
1009
1058
|
* @remarks
|
|
1010
1059
|
* The current player which is the subject of the extension
|
|
@@ -1045,6 +1094,7 @@ export class ExtensionContext {
|
|
|
1045
1094
|
*/
|
|
1046
1095
|
export class ExtensionContextAfterEvents {
|
|
1047
1096
|
private constructor();
|
|
1097
|
+
readonly cursorPropertyChange: CursorPropertyChangeAfterEventSignal;
|
|
1048
1098
|
/**
|
|
1049
1099
|
* @remarks
|
|
1050
1100
|
* This event triggers when the editor mode changes for the
|
|
@@ -1190,6 +1240,13 @@ export class MinecraftEditor {
|
|
|
1190
1240
|
* @throws This property can throw when used.
|
|
1191
1241
|
*/
|
|
1192
1242
|
readonly log: Logger;
|
|
1243
|
+
/**
|
|
1244
|
+
* @remarks
|
|
1245
|
+
* Allows querying and modifying some properties of the
|
|
1246
|
+
* simulation.
|
|
1247
|
+
*
|
|
1248
|
+
*/
|
|
1249
|
+
readonly simulation: SimulationState;
|
|
1193
1250
|
/**
|
|
1194
1251
|
* @remarks
|
|
1195
1252
|
* This is an internal command which interfaces with the native
|
|
@@ -1541,6 +1598,30 @@ export class SettingsManager {
|
|
|
1541
1598
|
readonly graphics: GraphicsSettings;
|
|
1542
1599
|
}
|
|
1543
1600
|
|
|
1601
|
+
/**
|
|
1602
|
+
* Responsible for querying and modifying various properties of
|
|
1603
|
+
* the simulation.
|
|
1604
|
+
*/
|
|
1605
|
+
export class SimulationState {
|
|
1606
|
+
private constructor();
|
|
1607
|
+
/**
|
|
1608
|
+
* @remarks
|
|
1609
|
+
* Returns `true` if mob simulation is paused.
|
|
1610
|
+
*
|
|
1611
|
+
*/
|
|
1612
|
+
isPaused(): boolean;
|
|
1613
|
+
/**
|
|
1614
|
+
* @remarks
|
|
1615
|
+
* Sets the state of mob simulation. If set to `true`, mobs
|
|
1616
|
+
* are paused.
|
|
1617
|
+
*
|
|
1618
|
+
* This function can't be called in read-only mode.
|
|
1619
|
+
*
|
|
1620
|
+
* @throws This function can throw errors.
|
|
1621
|
+
*/
|
|
1622
|
+
setPaused(isPaused: boolean): void;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1544
1625
|
/**
|
|
1545
1626
|
* The Transaction Manager is responsible for tracking and
|
|
1546
1627
|
* managing all of the registered transaction operations which
|
|
@@ -1841,6 +1922,7 @@ export interface CursorProperties {
|
|
|
1841
1922
|
*
|
|
1842
1923
|
*/
|
|
1843
1924
|
outlineColor?: minecraftserver.RGBA;
|
|
1925
|
+
projectThroughLiquid?: boolean;
|
|
1844
1926
|
/**
|
|
1845
1927
|
* @remarks
|
|
1846
1928
|
* An enum representing the cursor target mode
|
|
@@ -1892,6 +1974,14 @@ export interface ExtensionOptionalParameters {
|
|
|
1892
1974
|
*
|
|
1893
1975
|
*/
|
|
1894
1976
|
notes?: string;
|
|
1977
|
+
/**
|
|
1978
|
+
* @remarks
|
|
1979
|
+
* An optional custom identifier that will be used for all
|
|
1980
|
+
* Modal Tools created from the registered extension.
|
|
1981
|
+
* The length of the string is capped to 256 characters
|
|
1982
|
+
*
|
|
1983
|
+
*/
|
|
1984
|
+
toolGroupId?: string;
|
|
1895
1985
|
}
|
|
1896
1986
|
|
|
1897
1987
|
/**
|
|
@@ -2069,6 +2159,13 @@ export interface IGlobalInputManager {
|
|
|
2069
2159
|
}
|
|
2070
2160
|
|
|
2071
2161
|
export interface IMenu {
|
|
2162
|
+
/**
|
|
2163
|
+
* @remarks
|
|
2164
|
+
* If defined, the menu will show a checked or unchecked
|
|
2165
|
+
* checkbox.
|
|
2166
|
+
*
|
|
2167
|
+
*/
|
|
2168
|
+
checked?: boolean;
|
|
2072
2169
|
/**
|
|
2073
2170
|
* @remarks
|
|
2074
2171
|
* Unique ID for the menu
|
|
@@ -2093,6 +2190,12 @@ export interface IMenu {
|
|
|
2093
2190
|
* Properties required to create a Menu
|
|
2094
2191
|
*/
|
|
2095
2192
|
export interface IMenuCreationParams {
|
|
2193
|
+
/**
|
|
2194
|
+
* @remarks
|
|
2195
|
+
* Whether the menu should show a checkmark
|
|
2196
|
+
*
|
|
2197
|
+
*/
|
|
2198
|
+
checked?: boolean;
|
|
2096
2199
|
/**
|
|
2097
2200
|
* @remarks
|
|
2098
2201
|
* Loc ID (resolved on client)
|
|
@@ -2677,6 +2780,16 @@ export declare function executeLargeOperation(
|
|
|
2677
2780
|
selection: Selection,
|
|
2678
2781
|
operation: (blockLocation: minecraftserver.Vector3) => void,
|
|
2679
2782
|
): Promise<void>;
|
|
2783
|
+
/**
|
|
2784
|
+
* @remarks
|
|
2785
|
+
* Returns a string array of the default block types for the
|
|
2786
|
+
* Block picker control. Can be used to further filter blocks
|
|
2787
|
+
* from the Block picker.
|
|
2788
|
+
*
|
|
2789
|
+
* @returns
|
|
2790
|
+
* Default allowed block list
|
|
2791
|
+
*/
|
|
2792
|
+
export declare function getBlockPickerDefaultAllowBlockList(): string[];
|
|
2680
2793
|
/**
|
|
2681
2794
|
* @remarks
|
|
2682
2795
|
* 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.21",
|
|
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.21"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|