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

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