@minecraft/server-ui 1.2.0-beta.1.20.40-preview.21 → 1.2.0-beta.1.20.40-preview.23

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +2 -25
  3. package/package.json +3 -2
package/README.md CHANGED
@@ -14,4 +14,4 @@ The `@minecraft/server-ui` module contains types for expressing simple dialog-ba
14
14
 
15
15
  See full documentation for this module here:
16
16
 
17
- https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/@minecraft/server-ui/@minecraft/server-ui
17
+ https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server-ui/minecraft-server-ui
package/index.d.ts CHANGED
@@ -43,11 +43,12 @@
43
43
  * ```json
44
44
  * {
45
45
  * "module_name": "@minecraft/server-ui",
46
- * "version": "1.2.0-internal.1.20.40-preview.21"
46
+ * "version": "1.2.0-internal.1.20.40-preview.23"
47
47
  * }
48
48
  * ```
49
49
  *
50
50
  */
51
+ import * as minecraftcommon from '@minecraft/common';
51
52
  import * as minecraftserver from '@minecraft/server';
52
53
  /**
53
54
  * @beta
@@ -72,8 +73,6 @@ export class ActionFormData {
72
73
  * @remarks
73
74
  * Method that sets the body text for the modal form.
74
75
  *
75
- * This function can't be called in read-only mode.
76
- *
77
76
  */
78
77
  body(bodyText: minecraftserver.RawMessage | string): ActionFormData;
79
78
  /**
@@ -81,8 +80,6 @@ export class ActionFormData {
81
80
  * Adds a button to this form with an icon from a resource
82
81
  * pack.
83
82
  *
84
- * This function can't be called in read-only mode.
85
- *
86
83
  */
87
84
  button(text: minecraftserver.RawMessage | string, iconPath?: string): ActionFormData;
88
85
  /**
@@ -102,8 +99,6 @@ export class ActionFormData {
102
99
  * @remarks
103
100
  * This builder method sets the title for the modal dialog.
104
101
  *
105
- * This function can't be called in read-only mode.
106
- *
107
102
  */
108
103
  title(titleText: minecraftserver.RawMessage | string): ActionFormData;
109
104
  }
@@ -153,8 +148,6 @@ export class MessageFormData {
153
148
  * @remarks
154
149
  * Method that sets the body text for the modal form.
155
150
  *
156
- * This function can't be called in read-only mode.
157
- *
158
151
  */
159
152
  body(bodyText: minecraftserver.RawMessage | string): MessageFormData;
160
153
  /**
@@ -162,8 +155,6 @@ export class MessageFormData {
162
155
  * Method that sets the text for the first button of the
163
156
  * dialog.
164
157
  *
165
- * This function can't be called in read-only mode.
166
- *
167
158
  */
168
159
  button1(text: minecraftserver.RawMessage | string): MessageFormData;
169
160
  /**
@@ -171,8 +162,6 @@ export class MessageFormData {
171
162
  * This method sets the text for the second button on the
172
163
  * dialog.
173
164
  *
174
- * This function can't be called in read-only mode.
175
- *
176
165
  */
177
166
  button2(text: minecraftserver.RawMessage | string): MessageFormData;
178
167
  /**
@@ -192,8 +181,6 @@ export class MessageFormData {
192
181
  * @remarks
193
182
  * This builder method sets the title for the modal dialog.
194
183
  *
195
- * This function can't be called in read-only mode.
196
- *
197
184
  */
198
185
  title(titleText: minecraftserver.RawMessage | string): MessageFormData;
199
186
  }
@@ -222,8 +209,6 @@ export class ModalFormData {
222
209
  * @remarks
223
210
  * Adds a dropdown with choices to the form.
224
211
  *
225
- * This function can't be called in read-only mode.
226
- *
227
212
  */
228
213
  dropdown(
229
214
  label: minecraftserver.RawMessage | string,
@@ -247,8 +232,6 @@ export class ModalFormData {
247
232
  * @remarks
248
233
  * Adds a numeric slider to the form.
249
234
  *
250
- * This function can't be called in read-only mode.
251
- *
252
235
  */
253
236
  slider(
254
237
  label: minecraftserver.RawMessage | string,
@@ -261,8 +244,6 @@ export class ModalFormData {
261
244
  * @remarks
262
245
  * Adds a textbox to the form.
263
246
  *
264
- * This function can't be called in read-only mode.
265
- *
266
247
  */
267
248
  textField(
268
249
  label: minecraftserver.RawMessage | string,
@@ -273,16 +254,12 @@ export class ModalFormData {
273
254
  * @remarks
274
255
  * This builder method sets the title for the modal dialog.
275
256
  *
276
- * This function can't be called in read-only mode.
277
- *
278
257
  */
279
258
  title(titleText: minecraftserver.RawMessage | string): ModalFormData;
280
259
  /**
281
260
  * @remarks
282
261
  * Adds a toggle checkbox button to the form.
283
262
  *
284
- * This function can't be called in read-only mode.
285
- *
286
263
  */
287
264
  toggle(label: minecraftserver.RawMessage | string, defaultValue?: boolean): ModalFormData;
288
265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-ui",
3
- "version": "1.2.0-beta.1.20.40-preview.21",
3
+ "version": "1.2.0-beta.1.20.40-preview.23",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -13,7 +13,8 @@
13
13
  }
14
14
  ],
15
15
  "dependencies": {
16
- "@minecraft/server": "^1.7.0-beta.1.20.40-preview.21"
16
+ "@minecraft/common": "^1.0.0-rc.1.20.40-preview.23",
17
+ "@minecraft/server": "^1.7.0-beta.1.20.40-preview.23"
17
18
  },
18
19
  "license": "MIT"
19
20
  }