@minecraft/server-ui 1.0.0-rc.1.20.10-preview.21 → 1.0.0
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/README.md +0 -2
- package/index.d.ts +10 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,8 +10,6 @@ The `@minecraft/server-ui` module contains types for expressing simple dialog-ba
|
|
|
10
10
|
|
|
11
11
|
* [*@minecraft/server-ui.ModalFormData*](../../minecraft/server-ui/ModalFormData.md) allow for a more flexible "questionnaire-style" list of controls that can be used to take input.
|
|
12
12
|
|
|
13
|
-
## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
|
|
14
|
-
|
|
15
13
|
See full documentation for this module here:
|
|
16
14
|
|
|
17
15
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/@minecraft/server-ui/@minecraft/server-ui
|
package/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
***************************************************************************** */
|
|
9
9
|
/**
|
|
10
|
-
* @beta
|
|
11
10
|
* @packageDocumentation
|
|
12
11
|
* The `@minecraft/server-ui` module contains types for
|
|
13
12
|
* expressing simple dialog-based user experiences.
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
* ```json
|
|
44
43
|
* {
|
|
45
44
|
* "module_name": "@minecraft/server-ui",
|
|
46
|
-
* "version": "1.
|
|
45
|
+
* "version": "1.0.0"
|
|
47
46
|
* }
|
|
48
47
|
* ```
|
|
49
48
|
*
|
|
@@ -104,8 +103,9 @@ export class ActionFormData {
|
|
|
104
103
|
* Returns data about the player results from a modal action
|
|
105
104
|
* form.
|
|
106
105
|
*/
|
|
106
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
107
107
|
export class ActionFormResponse extends FormResponse {
|
|
108
|
-
|
|
108
|
+
private constructor();
|
|
109
109
|
/**
|
|
110
110
|
* @remarks
|
|
111
111
|
* Returns the index of the button that was pushed.
|
|
@@ -118,7 +118,7 @@ export class ActionFormResponse extends FormResponse {
|
|
|
118
118
|
* Base type for a form response.
|
|
119
119
|
*/
|
|
120
120
|
export class FormResponse {
|
|
121
|
-
|
|
121
|
+
private constructor();
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/**
|
|
@@ -178,8 +178,9 @@ export class MessageFormData {
|
|
|
178
178
|
* Returns data about the player results from a modal message
|
|
179
179
|
* form.
|
|
180
180
|
*/
|
|
181
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
181
182
|
export class MessageFormResponse extends FormResponse {
|
|
182
|
-
|
|
183
|
+
private constructor();
|
|
183
184
|
/**
|
|
184
185
|
* @remarks
|
|
185
186
|
* Returns the index of the button that was pushed.
|
|
@@ -265,8 +266,9 @@ export class ModalFormData {
|
|
|
265
266
|
/**
|
|
266
267
|
* Returns data about player responses to a modal form.
|
|
267
268
|
*/
|
|
269
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
268
270
|
export class ModalFormResponse extends FormResponse {
|
|
269
|
-
|
|
271
|
+
private constructor();
|
|
270
272
|
/**
|
|
271
273
|
* @remarks
|
|
272
274
|
* An ordered set of values based on the order of controls
|
|
@@ -276,7 +278,8 @@ export class ModalFormResponse extends FormResponse {
|
|
|
276
278
|
readonly formValues?: (boolean | number | string)[];
|
|
277
279
|
}
|
|
278
280
|
|
|
281
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
279
282
|
export class FormRejectError extends Error {
|
|
280
|
-
|
|
283
|
+
private constructor();
|
|
281
284
|
reason: FormRejectReason;
|
|
282
285
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-ui",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/server": "1.2.0
|
|
16
|
+
"@minecraft/server": "1.2.0"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|