@minecraft/server-ui 1.1.0-beta.1.20.0-preview.25 → 1.1.0-beta.1.20.0-stable
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
|
*
|
|
@@ -112,8 +111,9 @@ export class ActionFormData {
|
|
|
112
111
|
* Returns data about the player results from a modal action
|
|
113
112
|
* form.
|
|
114
113
|
*/
|
|
114
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
115
115
|
export class ActionFormResponse extends FormResponse {
|
|
116
|
-
|
|
116
|
+
private constructor();
|
|
117
117
|
/**
|
|
118
118
|
* @remarks
|
|
119
119
|
* Returns the index of the button that was pushed.
|
|
@@ -126,7 +126,7 @@ export class ActionFormResponse extends FormResponse {
|
|
|
126
126
|
* Base type for a form response.
|
|
127
127
|
*/
|
|
128
128
|
export class FormResponse {
|
|
129
|
-
|
|
129
|
+
private constructor();
|
|
130
130
|
/**
|
|
131
131
|
* @beta
|
|
132
132
|
* @remarks
|
|
@@ -201,8 +201,9 @@ export class MessageFormData {
|
|
|
201
201
|
* Returns data about the player results from a modal message
|
|
202
202
|
* form.
|
|
203
203
|
*/
|
|
204
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
204
205
|
export class MessageFormResponse extends FormResponse {
|
|
205
|
-
|
|
206
|
+
private constructor();
|
|
206
207
|
/**
|
|
207
208
|
* @remarks
|
|
208
209
|
* Returns the index of the button that was pushed.
|
|
@@ -288,8 +289,9 @@ export class ModalFormData {
|
|
|
288
289
|
/**
|
|
289
290
|
* Returns data about player responses to a modal form.
|
|
290
291
|
*/
|
|
292
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
291
293
|
export class ModalFormResponse extends FormResponse {
|
|
292
|
-
|
|
294
|
+
private constructor();
|
|
293
295
|
/**
|
|
294
296
|
* @remarks
|
|
295
297
|
* An ordered set of values based on the order of controls
|
|
@@ -299,7 +301,8 @@ export class ModalFormResponse extends FormResponse {
|
|
|
299
301
|
readonly formValues?: (boolean | number | string)[];
|
|
300
302
|
}
|
|
301
303
|
|
|
304
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
302
305
|
export class FormRejectError extends Error {
|
|
303
|
-
|
|
306
|
+
private constructor();
|
|
304
307
|
reason: FormRejectReason;
|
|
305
308
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-ui",
|
|
3
|
-
"version": "1.1.0-beta.1.20.0-
|
|
3
|
+
"version": "1.1.0-beta.1.20.0-stable",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/server": "1.3.0-beta.1.20.0-
|
|
16
|
+
"@minecraft/server": "1.3.0-beta.1.20.0-stable"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|