@minecraft/server-ui 1.1.0-beta.1.20.0-preview.24 → 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 -8
- 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.
|
|
@@ -37,14 +36,13 @@
|
|
|
37
36
|
* dimension.runCommand("say I like April too!");
|
|
38
37
|
* }
|
|
39
38
|
* });
|
|
40
|
-
*
|
|
41
39
|
* ```
|
|
42
40
|
*
|
|
43
41
|
* Manifest Details
|
|
44
42
|
* ```json
|
|
45
43
|
* {
|
|
46
44
|
* "module_name": "@minecraft/server-ui",
|
|
47
|
-
* "version": "1.
|
|
45
|
+
* "version": "1.0.0"
|
|
48
46
|
* }
|
|
49
47
|
* ```
|
|
50
48
|
*
|
|
@@ -113,8 +111,9 @@ export class ActionFormData {
|
|
|
113
111
|
* Returns data about the player results from a modal action
|
|
114
112
|
* form.
|
|
115
113
|
*/
|
|
114
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
116
115
|
export class ActionFormResponse extends FormResponse {
|
|
117
|
-
|
|
116
|
+
private constructor();
|
|
118
117
|
/**
|
|
119
118
|
* @remarks
|
|
120
119
|
* Returns the index of the button that was pushed.
|
|
@@ -127,7 +126,7 @@ export class ActionFormResponse extends FormResponse {
|
|
|
127
126
|
* Base type for a form response.
|
|
128
127
|
*/
|
|
129
128
|
export class FormResponse {
|
|
130
|
-
|
|
129
|
+
private constructor();
|
|
131
130
|
/**
|
|
132
131
|
* @beta
|
|
133
132
|
* @remarks
|
|
@@ -202,8 +201,9 @@ export class MessageFormData {
|
|
|
202
201
|
* Returns data about the player results from a modal message
|
|
203
202
|
* form.
|
|
204
203
|
*/
|
|
204
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
205
205
|
export class MessageFormResponse extends FormResponse {
|
|
206
|
-
|
|
206
|
+
private constructor();
|
|
207
207
|
/**
|
|
208
208
|
* @remarks
|
|
209
209
|
* Returns the index of the button that was pushed.
|
|
@@ -289,8 +289,9 @@ export class ModalFormData {
|
|
|
289
289
|
/**
|
|
290
290
|
* Returns data about player responses to a modal form.
|
|
291
291
|
*/
|
|
292
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
292
293
|
export class ModalFormResponse extends FormResponse {
|
|
293
|
-
|
|
294
|
+
private constructor();
|
|
294
295
|
/**
|
|
295
296
|
* @remarks
|
|
296
297
|
* An ordered set of values based on the order of controls
|
|
@@ -300,7 +301,8 @@ export class ModalFormResponse extends FormResponse {
|
|
|
300
301
|
readonly formValues?: (boolean | number | string)[];
|
|
301
302
|
}
|
|
302
303
|
|
|
304
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
303
305
|
export class FormRejectError extends Error {
|
|
304
|
-
|
|
306
|
+
private constructor();
|
|
305
307
|
reason: FormRejectReason;
|
|
306
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.
|
|
16
|
+
"@minecraft/server": "1.3.0-beta.1.20.0-stable"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|